[2025-01-28 00:00:05] Production.INFO: next invoice date [2025-01-28 00:00:05] Production.INFO: 2025-02-28 [2025-01-28 00:00:05] Production.INFO: getdaysdiff [2025-01-28 00:00:05] Production.INFO: +31 [2025-01-28 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (103,10,2,31,31,'RMScheduler',2025-01-28 00:00:05,1,0,,,0) [2025-01-28 00:00:05] Production.INFO: next invoice date [2025-01-28 00:00:05] Production.INFO: 2025-02-28 [2025-01-28 00:00:05] Production.INFO: getdaysdiff [2025-01-28 00:00:05] Production.INFO: +31 [2025-01-28 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (103,16,1,31,31,'RMScheduler',2025-01-28 00:00:05,1,0,,,0) [2025-01-28 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:00:07 [end_date_ymd] => 2025-01-28 00:00:07 [RateCDR] => 1 ) [2025-01-28 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-27 21:00:07' and `end` < '2025-01-28 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-28 00:00:42] Production.INFO: count ==821 [2025-01-28 00:00:42] Production.ERROR: pbx CDR StartTime 2025-01-27 21:00:07 - End Time 2025-01-28 00:00:07 [2025-01-28 00:00:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:00:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345174', 'tblTempUsageDetail_20' ) start [2025-01-28 00:00:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345174', 'tblTempUsageDetail_20' ) end [2025-01-28 00:00:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345174', 'tblTempVendorCDR_20' ) start [2025-01-28 00:00:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345174', 'tblTempVendorCDR_20' ) end [2025-01-28 00:00:42] Production.INFO: ProcessCDR(1,14345174,1,1,2) [2025-01-28 00:00:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:00:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:00:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:00:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:00:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345174', 'tblTempUsageDetail_20' ) start [2025-01-28 00:00:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345174', 'tblTempUsageDetail_20' ) end [2025-01-28 00:00:46] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:00:46] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:00:47] Production.INFO: ==6915== Releasing lock... [2025-01-28 00:00:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:00:47] Production.INFO: 35.5 MB #Memory Used# [2025-01-28 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:01:05 [end_date_ymd] => 2025-01-28 00:01:05 [RateCDR] => 1 ) [2025-01-28 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:01:05' and `end` < '2025-01-28 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:01:29] Production.INFO: count ==794 [2025-01-28 00:01:29] Production.ERROR: pbx CDR StartTime 2025-01-27 21:01:05 - End Time 2025-01-28 00:01:05 [2025-01-28 00:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345179', 'tblTempUsageDetail_20' ) start [2025-01-28 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345179', 'tblTempUsageDetail_20' ) end [2025-01-28 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345179', 'tblTempVendorCDR_20' ) start [2025-01-28 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345179', 'tblTempVendorCDR_20' ) end [2025-01-28 00:01:29] Production.INFO: ProcessCDR(1,14345179,1,1,2) [2025-01-28 00:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345179', 'tblTempUsageDetail_20' ) start [2025-01-28 00:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345179', 'tblTempUsageDetail_20' ) end [2025-01-28 00:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:01:32] Production.INFO: ==7011== Releasing lock... [2025-01-28 00:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:01:32] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:02:05 [end_date_ymd] => 2025-01-28 00:02:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:02:05' and `end` < '2025-01-28 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-28 00:02:38] Production.INFO: count ==206 [2025-01-28 00:02:38] Production.ERROR: pbx CDR StartTime 2025-01-27 21:02:05 - End Time 2025-01-28 00:02:05 [2025-01-28 00:02:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345184', 'tblTempUsageDetail_20' ) start [2025-01-28 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345184', 'tblTempUsageDetail_20' ) end [2025-01-28 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345184', 'tblTempVendorCDR_20' ) start [2025-01-28 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345184', 'tblTempVendorCDR_20' ) end [2025-01-28 00:02:38] Production.INFO: ProcessCDR(1,14345184,1,1,2) [2025-01-28 00:02:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:02:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:02:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:02:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345184', 'tblTempUsageDetail_20' ) start [2025-01-28 00:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345184', 'tblTempUsageDetail_20' ) end [2025-01-28 00:02:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:02:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:02:41] Production.INFO: ==7085== Releasing lock... [2025-01-28 00:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:02:41] Production.INFO: 30.75 MB #Memory Used# [2025-01-28 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:03:04 [end_date_ymd] => 2025-01-28 00:03:04 [RateCDR] => 1 ) [2025-01-28 00:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:03:04' and `end` < '2025-01-28 00:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:03:40] Production.INFO: count ==206 [2025-01-28 00:03:40] Production.ERROR: pbx CDR StartTime 2025-01-27 21:03:04 - End Time 2025-01-28 00:03:04 [2025-01-28 00:03:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345189', 'tblTempUsageDetail_20' ) start [2025-01-28 00:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345189', 'tblTempUsageDetail_20' ) end [2025-01-28 00:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345189', 'tblTempVendorCDR_20' ) start [2025-01-28 00:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345189', 'tblTempVendorCDR_20' ) end [2025-01-28 00:03:40] Production.INFO: ProcessCDR(1,14345189,1,1,2) [2025-01-28 00:03:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:03:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:03:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:03:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:03:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345189', 'tblTempUsageDetail_20' ) start [2025-01-28 00:03:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345189', 'tblTempUsageDetail_20' ) end [2025-01-28 00:03:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:03:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:03:43] Production.INFO: ==7161== Releasing lock... [2025-01-28 00:03:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:03:43] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:04:05 [end_date_ymd] => 2025-01-28 00:04:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:04:05' and `end` < '2025-01-28 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-28 00:04:28] Production.INFO: count ==206 [2025-01-28 00:04:28] Production.ERROR: pbx CDR StartTime 2025-01-27 21:04:05 - End Time 2025-01-28 00:04:05 [2025-01-28 00:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345194', 'tblTempUsageDetail_20' ) start [2025-01-28 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345194', 'tblTempUsageDetail_20' ) end [2025-01-28 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345194', 'tblTempVendorCDR_20' ) start [2025-01-28 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345194', 'tblTempVendorCDR_20' ) end [2025-01-28 00:04:28] Production.INFO: ProcessCDR(1,14345194,1,1,2) [2025-01-28 00:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345194', 'tblTempUsageDetail_20' ) start [2025-01-28 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345194', 'tblTempUsageDetail_20' ) end [2025-01-28 00:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:04:32] Production.INFO: ==7240== Releasing lock... [2025-01-28 00:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:04:32] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:05:05 [end_date_ymd] => 2025-01-28 00:05:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:05:05' and `end` < '2025-01-28 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-28 00:05:33] Production.INFO: count ==203 [2025-01-28 00:05:33] Production.ERROR: pbx CDR StartTime 2025-01-27 21:05:05 - End Time 2025-01-28 00:05:05 [2025-01-28 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345199', 'tblTempUsageDetail_20' ) start [2025-01-28 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345199', 'tblTempUsageDetail_20' ) end [2025-01-28 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345199', 'tblTempVendorCDR_20' ) start [2025-01-28 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345199', 'tblTempVendorCDR_20' ) end [2025-01-28 00:05:33] Production.INFO: ProcessCDR(1,14345199,1,1,2) [2025-01-28 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345199', 'tblTempUsageDetail_20' ) start [2025-01-28 00:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345199', 'tblTempUsageDetail_20' ) end [2025-01-28 00:05:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:05:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:05:36] Production.INFO: ==7323== Releasing lock... [2025-01-28 00:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:05:36] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:06:05 [end_date_ymd] => 2025-01-28 00:06:05 [RateCDR] => 1 ) [2025-01-28 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:06:05' and `end` < '2025-01-28 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:06:29] Production.INFO: count ==203 [2025-01-28 00:06:29] Production.ERROR: pbx CDR StartTime 2025-01-27 21:06:05 - End Time 2025-01-28 00:06:05 [2025-01-28 00:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345204', 'tblTempUsageDetail_20' ) start [2025-01-28 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345204', 'tblTempUsageDetail_20' ) end [2025-01-28 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345204', 'tblTempVendorCDR_20' ) start [2025-01-28 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345204', 'tblTempVendorCDR_20' ) end [2025-01-28 00:06:29] Production.INFO: ProcessCDR(1,14345204,1,1,2) [2025-01-28 00:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345204', 'tblTempUsageDetail_20' ) start [2025-01-28 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345204', 'tblTempUsageDetail_20' ) end [2025-01-28 00:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:06:32] Production.INFO: ==7397== Releasing lock... [2025-01-28 00:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:06:32] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:07:05 [end_date_ymd] => 2025-01-28 00:07:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:07:05' and `end` < '2025-01-28 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-28 00:07:25] Production.INFO: count ==205 [2025-01-28 00:07:25] Production.ERROR: pbx CDR StartTime 2025-01-27 21:07:05 - End Time 2025-01-28 00:07:05 [2025-01-28 00:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345209', 'tblTempUsageDetail_20' ) start [2025-01-28 00:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345209', 'tblTempUsageDetail_20' ) end [2025-01-28 00:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345209', 'tblTempVendorCDR_20' ) start [2025-01-28 00:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345209', 'tblTempVendorCDR_20' ) end [2025-01-28 00:07:25] Production.INFO: ProcessCDR(1,14345209,1,1,2) [2025-01-28 00:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345209', 'tblTempUsageDetail_20' ) start [2025-01-28 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345209', 'tblTempUsageDetail_20' ) end [2025-01-28 00:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:07:30] Production.INFO: ==7474== Releasing lock... [2025-01-28 00:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:07:30] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:08:05 [end_date_ymd] => 2025-01-28 00:08:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:08:05' and `end` < '2025-01-28 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-28 00:08:23] Production.INFO: count ==200 [2025-01-28 00:08:23] Production.ERROR: pbx CDR StartTime 2025-01-27 21:08:05 - End Time 2025-01-28 00:08:05 [2025-01-28 00:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345214', 'tblTempUsageDetail_20' ) start [2025-01-28 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345214', 'tblTempUsageDetail_20' ) end [2025-01-28 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345214', 'tblTempVendorCDR_20' ) start [2025-01-28 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345214', 'tblTempVendorCDR_20' ) end [2025-01-28 00:08:23] Production.INFO: ProcessCDR(1,14345214,1,1,2) [2025-01-28 00:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345214', 'tblTempUsageDetail_20' ) start [2025-01-28 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345214', 'tblTempUsageDetail_20' ) end [2025-01-28 00:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:08:26] Production.INFO: ==7552== Releasing lock... [2025-01-28 00:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:08:26] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:09:05 [end_date_ymd] => 2025-01-28 00:09:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:09:05' and `end` < '2025-01-28 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-28 00:09:17] Production.INFO: count ==199 [2025-01-28 00:09:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:09:05 - End Time 2025-01-28 00:09:05 [2025-01-28 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345219', 'tblTempUsageDetail_20' ) start [2025-01-28 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345219', 'tblTempUsageDetail_20' ) end [2025-01-28 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345219', 'tblTempVendorCDR_20' ) start [2025-01-28 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345219', 'tblTempVendorCDR_20' ) end [2025-01-28 00:09:17] Production.INFO: ProcessCDR(1,14345219,1,1,2) [2025-01-28 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345219', 'tblTempUsageDetail_20' ) start [2025-01-28 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345219', 'tblTempUsageDetail_20' ) end [2025-01-28 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:09:21] Production.INFO: ==7627== Releasing lock... [2025-01-28 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:10:05 [end_date_ymd] => 2025-01-28 00:10:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:10:05' and `end` < '2025-01-28 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-28 00:10:19] Production.INFO: count ==210 [2025-01-28 00:10:19] Production.ERROR: pbx CDR StartTime 2025-01-27 21:10:05 - End Time 2025-01-28 00:10:05 [2025-01-28 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345224', 'tblTempUsageDetail_20' ) start [2025-01-28 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345224', 'tblTempUsageDetail_20' ) end [2025-01-28 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345224', 'tblTempVendorCDR_20' ) start [2025-01-28 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345224', 'tblTempVendorCDR_20' ) end [2025-01-28 00:10:19] Production.INFO: ProcessCDR(1,14345224,1,1,2) [2025-01-28 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345224', 'tblTempUsageDetail_20' ) start [2025-01-28 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345224', 'tblTempUsageDetail_20' ) end [2025-01-28 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:10:22] Production.INFO: ==7703== Releasing lock... [2025-01-28 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:11:05 [end_date_ymd] => 2025-01-28 00:11:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:11:05' and `end` < '2025-01-28 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-28 00:11:19] Production.INFO: count ==221 [2025-01-28 00:11:19] Production.ERROR: pbx CDR StartTime 2025-01-27 21:11:05 - End Time 2025-01-28 00:11:05 [2025-01-28 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345230', 'tblTempUsageDetail_20' ) start [2025-01-28 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345230', 'tblTempUsageDetail_20' ) end [2025-01-28 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345230', 'tblTempVendorCDR_20' ) start [2025-01-28 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345230', 'tblTempVendorCDR_20' ) end [2025-01-28 00:11:19] Production.INFO: ProcessCDR(1,14345230,1,1,2) [2025-01-28 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345230', 'tblTempUsageDetail_20' ) start [2025-01-28 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345230', 'tblTempUsageDetail_20' ) end [2025-01-28 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:11:22] Production.INFO: ==7791== Releasing lock... [2025-01-28 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:11:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:12:05 [end_date_ymd] => 2025-01-28 00:12:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:12:05' and `end` < '2025-01-28 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-28 00:12:44] Production.INFO: count ==220 [2025-01-28 00:12:44] Production.ERROR: pbx CDR StartTime 2025-01-27 21:12:05 - End Time 2025-01-28 00:12:05 [2025-01-28 00:12:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:12:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345235', 'tblTempUsageDetail_20' ) start [2025-01-28 00:12:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345235', 'tblTempUsageDetail_20' ) end [2025-01-28 00:12:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345235', 'tblTempVendorCDR_20' ) start [2025-01-28 00:12:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345235', 'tblTempVendorCDR_20' ) end [2025-01-28 00:12:44] Production.INFO: ProcessCDR(1,14345235,1,1,2) [2025-01-28 00:12:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:12:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:12:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:12:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:12:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345235', 'tblTempUsageDetail_20' ) start [2025-01-28 00:12:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345235', 'tblTempUsageDetail_20' ) end [2025-01-28 00:12:47] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:12:47] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:12:47] Production.INFO: ==7865== Releasing lock... [2025-01-28 00:12:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:12:47] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:13:04 [end_date_ymd] => 2025-01-28 00:13:04 [RateCDR] => 1 ) [2025-01-28 00:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:13:04' and `end` < '2025-01-28 00:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:13:23] Production.INFO: count ==221 [2025-01-28 00:13:23] Production.ERROR: pbx CDR StartTime 2025-01-27 21:13:04 - End Time 2025-01-28 00:13:04 [2025-01-28 00:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345240', 'tblTempUsageDetail_20' ) start [2025-01-28 00:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345240', 'tblTempUsageDetail_20' ) end [2025-01-28 00:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345240', 'tblTempVendorCDR_20' ) start [2025-01-28 00:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345240', 'tblTempVendorCDR_20' ) end [2025-01-28 00:13:23] Production.INFO: ProcessCDR(1,14345240,1,1,2) [2025-01-28 00:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345240', 'tblTempUsageDetail_20' ) start [2025-01-28 00:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345240', 'tblTempUsageDetail_20' ) end [2025-01-28 00:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:13:27] Production.INFO: ==7939== Releasing lock... [2025-01-28 00:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:13:27] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:14:06 [end_date_ymd] => 2025-01-28 00:14:06 [RateCDR] => 1 ) [2025-01-28 00:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:14:06' and `end` < '2025-01-28 00:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:14:21] Production.INFO: count ==220 [2025-01-28 00:14:22] Production.ERROR: pbx CDR StartTime 2025-01-27 21:14:06 - End Time 2025-01-28 00:14:06 [2025-01-28 00:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345245', 'tblTempUsageDetail_20' ) start [2025-01-28 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345245', 'tblTempUsageDetail_20' ) end [2025-01-28 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345245', 'tblTempVendorCDR_20' ) start [2025-01-28 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345245', 'tblTempVendorCDR_20' ) end [2025-01-28 00:14:22] Production.INFO: ProcessCDR(1,14345245,1,1,2) [2025-01-28 00:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345245', 'tblTempUsageDetail_20' ) start [2025-01-28 00:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345245', 'tblTempUsageDetail_20' ) end [2025-01-28 00:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:14:25] Production.INFO: ==8054== Releasing lock... [2025-01-28 00:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:14:25] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:15:05 [end_date_ymd] => 2025-01-28 00:15:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:15:05' and `end` < '2025-01-28 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-28 00:15:26] Production.INFO: count ==213 [2025-01-28 00:15:26] Production.ERROR: pbx CDR StartTime 2025-01-27 21:15:05 - End Time 2025-01-28 00:15:05 [2025-01-28 00:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345250', 'tblTempUsageDetail_20' ) start [2025-01-28 00:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345250', 'tblTempUsageDetail_20' ) end [2025-01-28 00:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345250', 'tblTempVendorCDR_20' ) start [2025-01-28 00:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345250', 'tblTempVendorCDR_20' ) end [2025-01-28 00:15:27] Production.INFO: ProcessCDR(1,14345250,1,1,2) [2025-01-28 00:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345250', 'tblTempUsageDetail_20' ) start [2025-01-28 00:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345250', 'tblTempUsageDetail_20' ) end [2025-01-28 00:15:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:15:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:15:30] Production.INFO: ==8130== Releasing lock... [2025-01-28 00:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:15:30] Production.INFO: 30 MB #Memory Used# [2025-01-28 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:16:05 [end_date_ymd] => 2025-01-28 00:16:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:16:05' and `end` < '2025-01-28 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-28 00:16:19] Production.INFO: count ==208 [2025-01-28 00:16:20] Production.ERROR: pbx CDR StartTime 2025-01-27 21:16:05 - End Time 2025-01-28 00:16:05 [2025-01-28 00:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345255', 'tblTempUsageDetail_20' ) start [2025-01-28 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345255', 'tblTempUsageDetail_20' ) end [2025-01-28 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345255', 'tblTempVendorCDR_20' ) start [2025-01-28 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345255', 'tblTempVendorCDR_20' ) end [2025-01-28 00:16:20] Production.INFO: ProcessCDR(1,14345255,1,1,2) [2025-01-28 00:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345255', 'tblTempUsageDetail_20' ) start [2025-01-28 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345255', 'tblTempUsageDetail_20' ) end [2025-01-28 00:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:16:23] Production.INFO: ==8207== Releasing lock... [2025-01-28 00:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:16:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:17:04 [end_date_ymd] => 2025-01-28 00:17:04 [RateCDR] => 1 ) [2025-01-28 00:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:17:04' and `end` < '2025-01-28 00:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:17:17] Production.INFO: count ==204 [2025-01-28 00:17:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:17:04 - End Time 2025-01-28 00:17:04 [2025-01-28 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345260', 'tblTempUsageDetail_20' ) start [2025-01-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345260', 'tblTempUsageDetail_20' ) end [2025-01-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345260', 'tblTempVendorCDR_20' ) start [2025-01-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345260', 'tblTempVendorCDR_20' ) end [2025-01-28 00:17:17] Production.INFO: ProcessCDR(1,14345260,1,1,2) [2025-01-28 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345260', 'tblTempUsageDetail_20' ) start [2025-01-28 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345260', 'tblTempUsageDetail_20' ) end [2025-01-28 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:17:20] Production.INFO: ==8285== Releasing lock... [2025-01-28 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:17:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:18:05 [end_date_ymd] => 2025-01-28 00:18:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:18:05' and `end` < '2025-01-28 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-28 00:18:18] Production.INFO: count ==207 [2025-01-28 00:18:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:18:05 - End Time 2025-01-28 00:18:05 [2025-01-28 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345265', 'tblTempUsageDetail_20' ) start [2025-01-28 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345265', 'tblTempUsageDetail_20' ) end [2025-01-28 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345265', 'tblTempVendorCDR_20' ) start [2025-01-28 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345265', 'tblTempVendorCDR_20' ) end [2025-01-28 00:18:18] Production.INFO: ProcessCDR(1,14345265,1,1,2) [2025-01-28 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345265', 'tblTempUsageDetail_20' ) start [2025-01-28 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345265', 'tblTempUsageDetail_20' ) end [2025-01-28 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:18:21] Production.INFO: ==8371== Releasing lock... [2025-01-28 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:18:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:19:04 [end_date_ymd] => 2025-01-28 00:19:04 [RateCDR] => 1 ) [2025-01-28 00: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-27 21:19:04' and `end` < '2025-01-28 00: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-28 00:19:18] Production.INFO: count ==204 [2025-01-28 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:19:04 - End Time 2025-01-28 00:19:04 [2025-01-28 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345270', 'tblTempUsageDetail_20' ) start [2025-01-28 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345270', 'tblTempUsageDetail_20' ) end [2025-01-28 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345270', 'tblTempVendorCDR_20' ) start [2025-01-28 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345270', 'tblTempVendorCDR_20' ) end [2025-01-28 00:19:18] Production.INFO: ProcessCDR(1,14345270,1,1,2) [2025-01-28 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345270', 'tblTempUsageDetail_20' ) start [2025-01-28 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345270', 'tblTempUsageDetail_20' ) end [2025-01-28 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:19:21] Production.INFO: ==8444== Releasing lock... [2025-01-28 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:20:06 [end_date_ymd] => 2025-01-28 00:20:06 [RateCDR] => 1 ) [2025-01-28 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:20:06' and `end` < '2025-01-28 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:20:18] Production.INFO: count ==218 [2025-01-28 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:20:06 - End Time 2025-01-28 00:20:06 [2025-01-28 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345276', 'tblTempUsageDetail_20' ) start [2025-01-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345276', 'tblTempUsageDetail_20' ) end [2025-01-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345276', 'tblTempVendorCDR_20' ) start [2025-01-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345276', 'tblTempVendorCDR_20' ) end [2025-01-28 00:20:18] Production.INFO: ProcessCDR(1,14345276,1,1,2) [2025-01-28 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345276', 'tblTempUsageDetail_20' ) start [2025-01-28 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345276', 'tblTempUsageDetail_20' ) end [2025-01-28 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:20:22] Production.INFO: ==8522== Releasing lock... [2025-01-28 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:20:22] Production.INFO: 30 MB #Memory Used# [2025-01-28 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:21:05 [end_date_ymd] => 2025-01-28 00:21:05 [RateCDR] => 1 ) [2025-01-28 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:21:05' and `end` < '2025-01-28 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-28 00:21:17] Production.INFO: count ==250 [2025-01-28 00:21:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:21:05 - End Time 2025-01-28 00:21:05 [2025-01-28 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345281', 'tblTempUsageDetail_20' ) start [2025-01-28 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345281', 'tblTempUsageDetail_20' ) end [2025-01-28 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345281', 'tblTempVendorCDR_20' ) start [2025-01-28 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345281', 'tblTempVendorCDR_20' ) end [2025-01-28 00:21:17] Production.INFO: ProcessCDR(1,14345281,1,1,2) [2025-01-28 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345281', 'tblTempUsageDetail_20' ) start [2025-01-28 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345281', 'tblTempUsageDetail_20' ) end [2025-01-28 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:21:20] Production.INFO: ==8603== Releasing lock... [2025-01-28 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:21:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:22:05 [end_date_ymd] => 2025-01-28 00:22:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:22:05' and `end` < '2025-01-28 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-28 00:22:17] Production.INFO: count ==249 [2025-01-28 00:22:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:22:05 - End Time 2025-01-28 00:22:05 [2025-01-28 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345286', 'tblTempUsageDetail_20' ) start [2025-01-28 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345286', 'tblTempUsageDetail_20' ) end [2025-01-28 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345286', 'tblTempVendorCDR_20' ) start [2025-01-28 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345286', 'tblTempVendorCDR_20' ) end [2025-01-28 00:22:17] Production.INFO: ProcessCDR(1,14345286,1,1,2) [2025-01-28 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345286', 'tblTempUsageDetail_20' ) start [2025-01-28 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345286', 'tblTempUsageDetail_20' ) end [2025-01-28 00:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:22:20] Production.INFO: ==8676== Releasing lock... [2025-01-28 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:22:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:23:05 [end_date_ymd] => 2025-01-28 00:23:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:23:05' and `end` < '2025-01-28 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-28 00:23:18] Production.INFO: count ==250 [2025-01-28 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:23:05 - End Time 2025-01-28 00:23:05 [2025-01-28 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345291', 'tblTempUsageDetail_20' ) start [2025-01-28 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345291', 'tblTempUsageDetail_20' ) end [2025-01-28 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345291', 'tblTempVendorCDR_20' ) start [2025-01-28 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345291', 'tblTempVendorCDR_20' ) end [2025-01-28 00:23:18] Production.INFO: ProcessCDR(1,14345291,1,1,2) [2025-01-28 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345291', 'tblTempUsageDetail_20' ) start [2025-01-28 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345291', 'tblTempUsageDetail_20' ) end [2025-01-28 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:23:21] Production.INFO: ==8760== Releasing lock... [2025-01-28 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:24:05 [end_date_ymd] => 2025-01-28 00:24:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:24:05' and `end` < '2025-01-28 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-28 00:24:17] Production.INFO: count ==251 [2025-01-28 00:24:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:24:05 - End Time 2025-01-28 00:24:05 [2025-01-28 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345296', 'tblTempUsageDetail_20' ) start [2025-01-28 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345296', 'tblTempUsageDetail_20' ) end [2025-01-28 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345296', 'tblTempVendorCDR_20' ) start [2025-01-28 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345296', 'tblTempVendorCDR_20' ) end [2025-01-28 00:24:18] Production.INFO: ProcessCDR(1,14345296,1,1,2) [2025-01-28 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345296', 'tblTempUsageDetail_20' ) start [2025-01-28 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345296', 'tblTempUsageDetail_20' ) end [2025-01-28 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:24:21] Production.INFO: ==8833== Releasing lock... [2025-01-28 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:25:05 [end_date_ymd] => 2025-01-28 00:25:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:25:05' and `end` < '2025-01-28 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-28 00:25:18] Production.INFO: count ==251 [2025-01-28 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:25:05 - End Time 2025-01-28 00:25:05 [2025-01-28 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345301', 'tblTempUsageDetail_20' ) start [2025-01-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345301', 'tblTempUsageDetail_20' ) end [2025-01-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345301', 'tblTempVendorCDR_20' ) start [2025-01-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345301', 'tblTempVendorCDR_20' ) end [2025-01-28 00:25:18] Production.INFO: ProcessCDR(1,14345301,1,1,2) [2025-01-28 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345301', 'tblTempUsageDetail_20' ) start [2025-01-28 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345301', 'tblTempUsageDetail_20' ) end [2025-01-28 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:25:21] Production.INFO: ==8919== Releasing lock... [2025-01-28 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:26:05 [end_date_ymd] => 2025-01-28 00:26:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:26:05' and `end` < '2025-01-28 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-28 00:26:18] Production.INFO: count ==251 [2025-01-28 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:26:05 - End Time 2025-01-28 00:26:05 [2025-01-28 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345306', 'tblTempUsageDetail_20' ) start [2025-01-28 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345306', 'tblTempUsageDetail_20' ) end [2025-01-28 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345306', 'tblTempVendorCDR_20' ) start [2025-01-28 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345306', 'tblTempVendorCDR_20' ) end [2025-01-28 00:26:18] Production.INFO: ProcessCDR(1,14345306,1,1,2) [2025-01-28 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345306', 'tblTempUsageDetail_20' ) start [2025-01-28 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345306', 'tblTempUsageDetail_20' ) end [2025-01-28 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:26:21] Production.INFO: ==9000== Releasing lock... [2025-01-28 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:27:05 [end_date_ymd] => 2025-01-28 00:27:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:27:05' and `end` < '2025-01-28 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-28 00:27:18] Production.INFO: count ==249 [2025-01-28 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:27:05 - End Time 2025-01-28 00:27:05 [2025-01-28 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345311', 'tblTempUsageDetail_20' ) start [2025-01-28 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345311', 'tblTempUsageDetail_20' ) end [2025-01-28 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345311', 'tblTempVendorCDR_20' ) start [2025-01-28 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345311', 'tblTempVendorCDR_20' ) end [2025-01-28 00:27:18] Production.INFO: ProcessCDR(1,14345311,1,1,2) [2025-01-28 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345311', 'tblTempUsageDetail_20' ) start [2025-01-28 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345311', 'tblTempUsageDetail_20' ) end [2025-01-28 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:27:21] Production.INFO: ==9083== Releasing lock... [2025-01-28 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:28:05 [end_date_ymd] => 2025-01-28 00:28:05 [RateCDR] => 1 ) [2025-01-28 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:28:05' and `end` < '2025-01-28 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:28:17] Production.INFO: count ==246 [2025-01-28 00:28:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:28:05 - End Time 2025-01-28 00:28:05 [2025-01-28 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345316', 'tblTempUsageDetail_20' ) start [2025-01-28 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345316', 'tblTempUsageDetail_20' ) end [2025-01-28 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345316', 'tblTempVendorCDR_20' ) start [2025-01-28 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345316', 'tblTempVendorCDR_20' ) end [2025-01-28 00:28:17] Production.INFO: ProcessCDR(1,14345316,1,1,2) [2025-01-28 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345316', 'tblTempUsageDetail_20' ) start [2025-01-28 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345316', 'tblTempUsageDetail_20' ) end [2025-01-28 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:28:20] Production.INFO: ==9157== Releasing lock... [2025-01-28 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:28:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:29:05 [end_date_ymd] => 2025-01-28 00:29:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:29:05' and `end` < '2025-01-28 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-28 00:29:18] Production.INFO: count ==241 [2025-01-28 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:29:05 - End Time 2025-01-28 00:29:05 [2025-01-28 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345321', 'tblTempUsageDetail_20' ) start [2025-01-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345321', 'tblTempUsageDetail_20' ) end [2025-01-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345321', 'tblTempVendorCDR_20' ) start [2025-01-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345321', 'tblTempVendorCDR_20' ) end [2025-01-28 00:29:18] Production.INFO: ProcessCDR(1,14345321,1,1,2) [2025-01-28 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345321', 'tblTempUsageDetail_20' ) start [2025-01-28 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345321', 'tblTempUsageDetail_20' ) end [2025-01-28 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:29:21] Production.INFO: ==9274== Releasing lock... [2025-01-28 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:30:06 [end_date_ymd] => 2025-01-28 00:30:06 [RateCDR] => 1 ) [2025-01-28 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-27 21:30:06' and `end` < '2025-01-28 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-28 00:30:18] Production.INFO: count ==255 [2025-01-28 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:30:06 - End Time 2025-01-28 00:30:06 [2025-01-28 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345327', 'tblTempUsageDetail_20' ) start [2025-01-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345327', 'tblTempUsageDetail_20' ) end [2025-01-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345327', 'tblTempVendorCDR_20' ) start [2025-01-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345327', 'tblTempVendorCDR_20' ) end [2025-01-28 00:30:18] Production.INFO: ProcessCDR(1,14345327,1,1,2) [2025-01-28 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345327', 'tblTempUsageDetail_20' ) start [2025-01-28 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345327', 'tblTempUsageDetail_20' ) end [2025-01-28 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:30:21] Production.INFO: ==9359== Releasing lock... [2025-01-28 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:30:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:31:04 [end_date_ymd] => 2025-01-28 00:31:04 [RateCDR] => 1 ) [2025-01-28 00: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-27 21:31:04' and `end` < '2025-01-28 00: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-28 00:31:17] Production.INFO: count ==251 [2025-01-28 00:31:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:31:04 - End Time 2025-01-28 00:31:04 [2025-01-28 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345332', 'tblTempUsageDetail_20' ) start [2025-01-28 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345332', 'tblTempUsageDetail_20' ) end [2025-01-28 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345332', 'tblTempVendorCDR_20' ) start [2025-01-28 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345332', 'tblTempVendorCDR_20' ) end [2025-01-28 00:31:17] Production.INFO: ProcessCDR(1,14345332,1,1,2) [2025-01-28 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345332', 'tblTempUsageDetail_20' ) start [2025-01-28 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345332', 'tblTempUsageDetail_20' ) end [2025-01-28 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:31:20] Production.INFO: ==9438== Releasing lock... [2025-01-28 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:31:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:32:05 [end_date_ymd] => 2025-01-28 00:32:05 [RateCDR] => 1 ) [2025-01-28 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:32:05' and `end` < '2025-01-28 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:32:18] Production.INFO: count ==249 [2025-01-28 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:32:05 - End Time 2025-01-28 00:32:05 [2025-01-28 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345337', 'tblTempUsageDetail_20' ) start [2025-01-28 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345337', 'tblTempUsageDetail_20' ) end [2025-01-28 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345337', 'tblTempVendorCDR_20' ) start [2025-01-28 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345337', 'tblTempVendorCDR_20' ) end [2025-01-28 00:32:18] Production.INFO: ProcessCDR(1,14345337,1,1,2) [2025-01-28 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345337', 'tblTempUsageDetail_20' ) start [2025-01-28 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345337', 'tblTempUsageDetail_20' ) end [2025-01-28 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:32:21] Production.INFO: ==9514== Releasing lock... [2025-01-28 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:33:05 [end_date_ymd] => 2025-01-28 00:33:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:33:05' and `end` < '2025-01-28 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-28 00:33:17] Production.INFO: count ==248 [2025-01-28 00:33:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:33:05 - End Time 2025-01-28 00:33:05 [2025-01-28 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345342', 'tblTempUsageDetail_20' ) start [2025-01-28 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345342', 'tblTempUsageDetail_20' ) end [2025-01-28 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345342', 'tblTempVendorCDR_20' ) start [2025-01-28 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345342', 'tblTempVendorCDR_20' ) end [2025-01-28 00:33:17] Production.INFO: ProcessCDR(1,14345342,1,1,2) [2025-01-28 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345342', 'tblTempUsageDetail_20' ) start [2025-01-28 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345342', 'tblTempUsageDetail_20' ) end [2025-01-28 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:33:20] Production.INFO: ==9595== Releasing lock... [2025-01-28 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:33:20] Production.INFO: 30 MB #Memory Used# [2025-01-28 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:34:05 [end_date_ymd] => 2025-01-28 00:34:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:34:05' and `end` < '2025-01-28 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-28 00:34:18] Production.INFO: count ==246 [2025-01-28 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:34:05 - End Time 2025-01-28 00:34:05 [2025-01-28 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345347', 'tblTempUsageDetail_20' ) start [2025-01-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345347', 'tblTempUsageDetail_20' ) end [2025-01-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345347', 'tblTempVendorCDR_20' ) start [2025-01-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345347', 'tblTempVendorCDR_20' ) end [2025-01-28 00:34:18] Production.INFO: ProcessCDR(1,14345347,1,1,2) [2025-01-28 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345347', 'tblTempUsageDetail_20' ) start [2025-01-28 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345347', 'tblTempUsageDetail_20' ) end [2025-01-28 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:34:21] Production.INFO: ==9675== Releasing lock... [2025-01-28 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:34:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:35:05 [end_date_ymd] => 2025-01-28 00:35:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:35:05' and `end` < '2025-01-28 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-28 00:35:18] Production.INFO: count ==242 [2025-01-28 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:35:05 - End Time 2025-01-28 00:35:05 [2025-01-28 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345352', 'tblTempUsageDetail_20' ) start [2025-01-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345352', 'tblTempUsageDetail_20' ) end [2025-01-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345352', 'tblTempVendorCDR_20' ) start [2025-01-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345352', 'tblTempVendorCDR_20' ) end [2025-01-28 00:35:18] Production.INFO: ProcessCDR(1,14345352,1,1,2) [2025-01-28 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345352', 'tblTempUsageDetail_20' ) start [2025-01-28 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345352', 'tblTempUsageDetail_20' ) end [2025-01-28 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:35:21] Production.INFO: ==9749== Releasing lock... [2025-01-28 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:36:05 [end_date_ymd] => 2025-01-28 00:36:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:36:05' and `end` < '2025-01-28 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-28 00:36:18] Production.INFO: count ==242 [2025-01-28 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:36:05 - End Time 2025-01-28 00:36:05 [2025-01-28 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345357', 'tblTempUsageDetail_20' ) start [2025-01-28 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345357', 'tblTempUsageDetail_20' ) end [2025-01-28 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345357', 'tblTempVendorCDR_20' ) start [2025-01-28 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345357', 'tblTempVendorCDR_20' ) end [2025-01-28 00:36:18] Production.INFO: ProcessCDR(1,14345357,1,1,2) [2025-01-28 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345357', 'tblTempUsageDetail_20' ) start [2025-01-28 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345357', 'tblTempUsageDetail_20' ) end [2025-01-28 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:36:21] Production.INFO: ==9830== Releasing lock... [2025-01-28 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:37:05 [end_date_ymd] => 2025-01-28 00:37:05 [RateCDR] => 1 ) [2025-01-28 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:37:05' and `end` < '2025-01-28 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:37:17] Production.INFO: count ==242 [2025-01-28 00:37:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:37:05 - End Time 2025-01-28 00:37:05 [2025-01-28 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345362', 'tblTempUsageDetail_20' ) start [2025-01-28 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345362', 'tblTempUsageDetail_20' ) end [2025-01-28 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345362', 'tblTempVendorCDR_20' ) start [2025-01-28 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345362', 'tblTempVendorCDR_20' ) end [2025-01-28 00:37:18] Production.INFO: ProcessCDR(1,14345362,1,1,2) [2025-01-28 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345362', 'tblTempUsageDetail_20' ) start [2025-01-28 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345362', 'tblTempUsageDetail_20' ) end [2025-01-28 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:37:21] Production.INFO: ==9907== Releasing lock... [2025-01-28 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:38:05 [end_date_ymd] => 2025-01-28 00:38:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:38:05' and `end` < '2025-01-28 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-28 00:38:17] Production.INFO: count ==242 [2025-01-28 00:38:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:38:05 - End Time 2025-01-28 00:38:05 [2025-01-28 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345367', 'tblTempUsageDetail_20' ) start [2025-01-28 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345367', 'tblTempUsageDetail_20' ) end [2025-01-28 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345367', 'tblTempVendorCDR_20' ) start [2025-01-28 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345367', 'tblTempVendorCDR_20' ) end [2025-01-28 00:38:17] Production.INFO: ProcessCDR(1,14345367,1,1,2) [2025-01-28 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345367', 'tblTempUsageDetail_20' ) start [2025-01-28 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345367', 'tblTempUsageDetail_20' ) end [2025-01-28 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:38:21] Production.INFO: ==9985== Releasing lock... [2025-01-28 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:39:05 [end_date_ymd] => 2025-01-28 00:39:05 [RateCDR] => 1 ) [2025-01-28 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:39:05' and `end` < '2025-01-28 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:39:18] Production.INFO: count ==242 [2025-01-28 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:39:05 - End Time 2025-01-28 00:39:05 [2025-01-28 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345372', 'tblTempUsageDetail_20' ) start [2025-01-28 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345372', 'tblTempUsageDetail_20' ) end [2025-01-28 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345372', 'tblTempVendorCDR_20' ) start [2025-01-28 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345372', 'tblTempVendorCDR_20' ) end [2025-01-28 00:39:18] Production.INFO: ProcessCDR(1,14345372,1,1,2) [2025-01-28 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345372', 'tblTempUsageDetail_20' ) start [2025-01-28 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345372', 'tblTempUsageDetail_20' ) end [2025-01-28 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:39:21] Production.INFO: ==10059== Releasing lock... [2025-01-28 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:40:05 [end_date_ymd] => 2025-01-28 00:40:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:40:05' and `end` < '2025-01-28 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-28 00:40:18] Production.INFO: count ==255 [2025-01-28 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:40:05 - End Time 2025-01-28 00:40:05 [2025-01-28 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345378', 'tblTempUsageDetail_20' ) start [2025-01-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345378', 'tblTempUsageDetail_20' ) end [2025-01-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345378', 'tblTempVendorCDR_20' ) start [2025-01-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345378', 'tblTempVendorCDR_20' ) end [2025-01-28 00:40:18] Production.INFO: ProcessCDR(1,14345378,1,1,2) [2025-01-28 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345378', 'tblTempUsageDetail_20' ) start [2025-01-28 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345378', 'tblTempUsageDetail_20' ) end [2025-01-28 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:40:21] Production.INFO: ==10146== Releasing lock... [2025-01-28 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:40:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:41:05 [end_date_ymd] => 2025-01-28 00:41:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:41:05' and `end` < '2025-01-28 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-28 00:41:17] Production.INFO: count ==269 [2025-01-28 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:41:05 - End Time 2025-01-28 00:41:05 [2025-01-28 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345383', 'tblTempUsageDetail_20' ) start [2025-01-28 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345383', 'tblTempUsageDetail_20' ) end [2025-01-28 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345383', 'tblTempVendorCDR_20' ) start [2025-01-28 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345383', 'tblTempVendorCDR_20' ) end [2025-01-28 00:41:18] Production.INFO: ProcessCDR(1,14345383,1,1,2) [2025-01-28 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345383', 'tblTempUsageDetail_20' ) start [2025-01-28 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345383', 'tblTempUsageDetail_20' ) end [2025-01-28 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:41:22] Production.INFO: ==10227== Releasing lock... [2025-01-28 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:41:22] Production.INFO: 30 MB #Memory Used# [2025-01-28 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:42:05 [end_date_ymd] => 2025-01-28 00:42:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:42:05' and `end` < '2025-01-28 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-28 00:42:18] Production.INFO: count ==274 [2025-01-28 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:42:05 - End Time 2025-01-28 00:42:05 [2025-01-28 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345388', 'tblTempUsageDetail_20' ) start [2025-01-28 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345388', 'tblTempUsageDetail_20' ) end [2025-01-28 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345388', 'tblTempVendorCDR_20' ) start [2025-01-28 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345388', 'tblTempVendorCDR_20' ) end [2025-01-28 00:42:18] Production.INFO: ProcessCDR(1,14345388,1,1,2) [2025-01-28 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345388', 'tblTempUsageDetail_20' ) start [2025-01-28 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345388', 'tblTempUsageDetail_20' ) end [2025-01-28 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:42:22] Production.INFO: ==10298== Releasing lock... [2025-01-28 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:43:05 [end_date_ymd] => 2025-01-28 00:43:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:43:05' and `end` < '2025-01-28 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-28 00:43:18] Production.INFO: count ==274 [2025-01-28 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:43:05 - End Time 2025-01-28 00:43:05 [2025-01-28 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345393', 'tblTempUsageDetail_20' ) start [2025-01-28 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345393', 'tblTempUsageDetail_20' ) end [2025-01-28 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345393', 'tblTempVendorCDR_20' ) start [2025-01-28 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345393', 'tblTempVendorCDR_20' ) end [2025-01-28 00:43:18] Production.INFO: ProcessCDR(1,14345393,1,1,2) [2025-01-28 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345393', 'tblTempUsageDetail_20' ) start [2025-01-28 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345393', 'tblTempUsageDetail_20' ) end [2025-01-28 00:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:43:23] Production.INFO: ==10375== Releasing lock... [2025-01-28 00:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:43:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:44:05 [end_date_ymd] => 2025-01-28 00:44:05 [RateCDR] => 1 ) [2025-01-28 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:44:05' and `end` < '2025-01-28 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:44:18] Production.INFO: count ==274 [2025-01-28 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:44:05 - End Time 2025-01-28 00:44:05 [2025-01-28 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345398', 'tblTempUsageDetail_20' ) start [2025-01-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345398', 'tblTempUsageDetail_20' ) end [2025-01-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345398', 'tblTempVendorCDR_20' ) start [2025-01-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345398', 'tblTempVendorCDR_20' ) end [2025-01-28 00:44:18] Production.INFO: ProcessCDR(1,14345398,1,1,2) [2025-01-28 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345398', 'tblTempUsageDetail_20' ) start [2025-01-28 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345398', 'tblTempUsageDetail_20' ) end [2025-01-28 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:44:21] Production.INFO: ==10492== Releasing lock... [2025-01-28 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:45:05 [end_date_ymd] => 2025-01-28 00:45:05 [RateCDR] => 1 ) [2025-01-28 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:45:05' and `end` < '2025-01-28 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:45:17] Production.INFO: count ==273 [2025-01-28 00:45:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:45:05 - End Time 2025-01-28 00:45:05 [2025-01-28 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345403', 'tblTempUsageDetail_20' ) start [2025-01-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345403', 'tblTempUsageDetail_20' ) end [2025-01-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345403', 'tblTempVendorCDR_20' ) start [2025-01-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345403', 'tblTempVendorCDR_20' ) end [2025-01-28 00:45:17] Production.INFO: ProcessCDR(1,14345403,1,1,2) [2025-01-28 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345403', 'tblTempUsageDetail_20' ) start [2025-01-28 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345403', 'tblTempUsageDetail_20' ) end [2025-01-28 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:45:22] Production.INFO: ==10566== Releasing lock... [2025-01-28 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:45:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:46:06 [end_date_ymd] => 2025-01-28 00:46:06 [RateCDR] => 1 ) [2025-01-28 00:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:46:06' and `end` < '2025-01-28 00:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:46:19] Production.INFO: count ==271 [2025-01-28 00:46:19] Production.ERROR: pbx CDR StartTime 2025-01-27 21:46:06 - End Time 2025-01-28 00:46:06 [2025-01-28 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345408', 'tblTempUsageDetail_20' ) start [2025-01-28 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345408', 'tblTempUsageDetail_20' ) end [2025-01-28 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345408', 'tblTempVendorCDR_20' ) start [2025-01-28 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345408', 'tblTempVendorCDR_20' ) end [2025-01-28 00:46:19] Production.INFO: ProcessCDR(1,14345408,1,1,2) [2025-01-28 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345408', 'tblTempUsageDetail_20' ) start [2025-01-28 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345408', 'tblTempUsageDetail_20' ) end [2025-01-28 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:46:22] Production.INFO: ==10637== Releasing lock... [2025-01-28 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:47:05 [end_date_ymd] => 2025-01-28 00:47:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:47:05' and `end` < '2025-01-28 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-28 00:47:17] Production.INFO: count ==273 [2025-01-28 00:47:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:47:05 - End Time 2025-01-28 00:47:05 [2025-01-28 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345413', 'tblTempUsageDetail_20' ) start [2025-01-28 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345413', 'tblTempUsageDetail_20' ) end [2025-01-28 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345413', 'tblTempVendorCDR_20' ) start [2025-01-28 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345413', 'tblTempVendorCDR_20' ) end [2025-01-28 00:47:17] Production.INFO: ProcessCDR(1,14345413,1,1,2) [2025-01-28 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345413', 'tblTempUsageDetail_20' ) start [2025-01-28 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345413', 'tblTempUsageDetail_20' ) end [2025-01-28 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:47:21] Production.INFO: ==10712== Releasing lock... [2025-01-28 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:48:06 [end_date_ymd] => 2025-01-28 00:48:06 [RateCDR] => 1 ) [2025-01-28 00:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:48:06' and `end` < '2025-01-28 00:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:48:19] Production.INFO: count ==269 [2025-01-28 00:48:19] Production.ERROR: pbx CDR StartTime 2025-01-27 21:48:06 - End Time 2025-01-28 00:48:06 [2025-01-28 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345418', 'tblTempUsageDetail_20' ) start [2025-01-28 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345418', 'tblTempUsageDetail_20' ) end [2025-01-28 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345418', 'tblTempVendorCDR_20' ) start [2025-01-28 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345418', 'tblTempVendorCDR_20' ) end [2025-01-28 00:48:19] Production.INFO: ProcessCDR(1,14345418,1,1,2) [2025-01-28 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345418', 'tblTempUsageDetail_20' ) start [2025-01-28 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345418', 'tblTempUsageDetail_20' ) end [2025-01-28 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:48:22] Production.INFO: ==10789== Releasing lock... [2025-01-28 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:48:22] Production.INFO: 30 MB #Memory Used# [2025-01-28 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:49:05 [end_date_ymd] => 2025-01-28 00:49:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:49:05' and `end` < '2025-01-28 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-28 00:49:17] Production.INFO: count ==268 [2025-01-28 00:49:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:49:05 - End Time 2025-01-28 00:49:05 [2025-01-28 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345423', 'tblTempUsageDetail_20' ) start [2025-01-28 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345423', 'tblTempUsageDetail_20' ) end [2025-01-28 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345423', 'tblTempVendorCDR_20' ) start [2025-01-28 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345423', 'tblTempVendorCDR_20' ) end [2025-01-28 00:49:17] Production.INFO: ProcessCDR(1,14345423,1,1,2) [2025-01-28 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345423', 'tblTempUsageDetail_20' ) start [2025-01-28 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345423', 'tblTempUsageDetail_20' ) end [2025-01-28 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:49:21] Production.INFO: ==10863== Releasing lock... [2025-01-28 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:49:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:50:06 [end_date_ymd] => 2025-01-28 00:50:06 [RateCDR] => 1 ) [2025-01-28 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-27 21:50:06' and `end` < '2025-01-28 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-28 00:50:19] Production.INFO: count ==274 [2025-01-28 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-27 21:50:06 - End Time 2025-01-28 00:50:06 [2025-01-28 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345429', 'tblTempUsageDetail_20' ) start [2025-01-28 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345429', 'tblTempUsageDetail_20' ) end [2025-01-28 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345429', 'tblTempVendorCDR_20' ) start [2025-01-28 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345429', 'tblTempVendorCDR_20' ) end [2025-01-28 00:50:19] Production.INFO: ProcessCDR(1,14345429,1,1,2) [2025-01-28 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345429', 'tblTempUsageDetail_20' ) start [2025-01-28 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345429', 'tblTempUsageDetail_20' ) end [2025-01-28 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:50:22] Production.INFO: ==10951== Releasing lock... [2025-01-28 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:50:22] Production.INFO: 30 MB #Memory Used# [2025-01-28 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:51:05 [end_date_ymd] => 2025-01-28 00:51:05 [RateCDR] => 1 ) [2025-01-28 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:51:05' and `end` < '2025-01-28 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:51:18] Production.INFO: count ==283 [2025-01-28 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:51:05 - End Time 2025-01-28 00:51:05 [2025-01-28 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345434', 'tblTempUsageDetail_20' ) start [2025-01-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345434', 'tblTempUsageDetail_20' ) end [2025-01-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345434', 'tblTempVendorCDR_20' ) start [2025-01-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345434', 'tblTempVendorCDR_20' ) end [2025-01-28 00:51:18] Production.INFO: ProcessCDR(1,14345434,1,1,2) [2025-01-28 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345434', 'tblTempUsageDetail_20' ) start [2025-01-28 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345434', 'tblTempUsageDetail_20' ) end [2025-01-28 00:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:51:23] Production.INFO: ==11040== Releasing lock... [2025-01-28 00:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:51:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:52:05 [end_date_ymd] => 2025-01-28 00:52:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:52:05' and `end` < '2025-01-28 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-28 00:52:18] Production.INFO: count ==283 [2025-01-28 00:52:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:52:05 - End Time 2025-01-28 00:52:05 [2025-01-28 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345439', 'tblTempUsageDetail_20' ) start [2025-01-28 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345439', 'tblTempUsageDetail_20' ) end [2025-01-28 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345439', 'tblTempVendorCDR_20' ) start [2025-01-28 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345439', 'tblTempVendorCDR_20' ) end [2025-01-28 00:52:18] Production.INFO: ProcessCDR(1,14345439,1,1,2) [2025-01-28 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345439', 'tblTempUsageDetail_20' ) start [2025-01-28 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345439', 'tblTempUsageDetail_20' ) end [2025-01-28 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:52:21] Production.INFO: ==11116== Releasing lock... [2025-01-28 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:52:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:53:05 [end_date_ymd] => 2025-01-28 00:53:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:53:05' and `end` < '2025-01-28 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-28 00:53:18] Production.INFO: count ==283 [2025-01-28 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:53:05 - End Time 2025-01-28 00:53:05 [2025-01-28 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345444', 'tblTempUsageDetail_20' ) start [2025-01-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345444', 'tblTempUsageDetail_20' ) end [2025-01-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345444', 'tblTempVendorCDR_20' ) start [2025-01-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345444', 'tblTempVendorCDR_20' ) end [2025-01-28 00:53:18] Production.INFO: ProcessCDR(1,14345444,1,1,2) [2025-01-28 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345444', 'tblTempUsageDetail_20' ) start [2025-01-28 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345444', 'tblTempUsageDetail_20' ) end [2025-01-28 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:53:21] Production.INFO: ==11188== Releasing lock... [2025-01-28 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:53:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:54:05 [end_date_ymd] => 2025-01-28 00:54:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:54:05' and `end` < '2025-01-28 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-28 00:54:18] Production.INFO: count ==282 [2025-01-28 00:54:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:54:05 - End Time 2025-01-28 00:54:05 [2025-01-28 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345449', 'tblTempUsageDetail_20' ) start [2025-01-28 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345449', 'tblTempUsageDetail_20' ) end [2025-01-28 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345449', 'tblTempVendorCDR_20' ) start [2025-01-28 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345449', 'tblTempVendorCDR_20' ) end [2025-01-28 00:54:18] Production.INFO: ProcessCDR(1,14345449,1,1,2) [2025-01-28 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345449', 'tblTempUsageDetail_20' ) start [2025-01-28 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345449', 'tblTempUsageDetail_20' ) end [2025-01-28 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:54:21] Production.INFO: ==11267== Releasing lock... [2025-01-28 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:54:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:55:06 [end_date_ymd] => 2025-01-28 00:55:06 [RateCDR] => 1 ) [2025-01-28 00: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-27 21:55:06' and `end` < '2025-01-28 00: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-28 00:55:18] Production.INFO: count ==282 [2025-01-28 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:55:06 - End Time 2025-01-28 00:55:06 [2025-01-28 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345454', 'tblTempUsageDetail_20' ) start [2025-01-28 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345454', 'tblTempUsageDetail_20' ) end [2025-01-28 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345454', 'tblTempVendorCDR_20' ) start [2025-01-28 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345454', 'tblTempVendorCDR_20' ) end [2025-01-28 00:55:19] Production.INFO: ProcessCDR(1,14345454,1,1,2) [2025-01-28 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345454', 'tblTempUsageDetail_20' ) start [2025-01-28 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345454', 'tblTempUsageDetail_20' ) end [2025-01-28 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:55:22] Production.INFO: ==11342== Releasing lock... [2025-01-28 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:55:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:56:05 [end_date_ymd] => 2025-01-28 00:56:05 [RateCDR] => 1 ) [2025-01-28 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:56:05' and `end` < '2025-01-28 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:56:18] Production.INFO: count ==284 [2025-01-28 00:56:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:56:05 - End Time 2025-01-28 00:56:05 [2025-01-28 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345459', 'tblTempUsageDetail_20' ) start [2025-01-28 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345459', 'tblTempUsageDetail_20' ) end [2025-01-28 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345459', 'tblTempVendorCDR_20' ) start [2025-01-28 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345459', 'tblTempVendorCDR_20' ) end [2025-01-28 00:56:18] Production.INFO: ProcessCDR(1,14345459,1,1,2) [2025-01-28 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345459', 'tblTempUsageDetail_20' ) start [2025-01-28 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345459', 'tblTempUsageDetail_20' ) end [2025-01-28 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:56:22] Production.INFO: ==11416== Releasing lock... [2025-01-28 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:57:05 [end_date_ymd] => 2025-01-28 00:57:05 [RateCDR] => 1 ) [2025-01-28 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-27 21:57:05' and `end` < '2025-01-28 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-28 00:57:18] Production.INFO: count ==284 [2025-01-28 00:57:18] Production.ERROR: pbx CDR StartTime 2025-01-27 21:57:05 - End Time 2025-01-28 00:57:05 [2025-01-28 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345464', 'tblTempUsageDetail_20' ) start [2025-01-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345464', 'tblTempUsageDetail_20' ) end [2025-01-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345464', 'tblTempVendorCDR_20' ) start [2025-01-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345464', 'tblTempVendorCDR_20' ) end [2025-01-28 00:57:18] Production.INFO: ProcessCDR(1,14345464,1,1,2) [2025-01-28 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345464', 'tblTempUsageDetail_20' ) start [2025-01-28 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345464', 'tblTempUsageDetail_20' ) end [2025-01-28 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:57:21] Production.INFO: ==11487== Releasing lock... [2025-01-28 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:58:04 [end_date_ymd] => 2025-01-28 00:58:04 [RateCDR] => 1 ) [2025-01-28 00:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:58:04' and `end` < '2025-01-28 00:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:58:17] Production.INFO: count ==284 [2025-01-28 00:58:17] Production.ERROR: pbx CDR StartTime 2025-01-27 21:58:04 - End Time 2025-01-28 00:58:04 [2025-01-28 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345469', 'tblTempUsageDetail_20' ) start [2025-01-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345469', 'tblTempUsageDetail_20' ) end [2025-01-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345469', 'tblTempVendorCDR_20' ) start [2025-01-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345469', 'tblTempVendorCDR_20' ) end [2025-01-28 00:58:17] Production.INFO: ProcessCDR(1,14345469,1,1,2) [2025-01-28 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345469', 'tblTempUsageDetail_20' ) start [2025-01-28 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345469', 'tblTempUsageDetail_20' ) end [2025-01-28 00:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:58:20] Production.INFO: ==11563== Releasing lock... [2025-01-28 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:58:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 21:59:06 [end_date_ymd] => 2025-01-28 00:59:06 [RateCDR] => 1 ) [2025-01-28 00:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 21:59:06' and `end` < '2025-01-28 00:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 00:59:19] Production.INFO: count ==283 [2025-01-28 00:59:19] Production.ERROR: pbx CDR StartTime 2025-01-27 21:59:06 - End Time 2025-01-28 00:59:06 [2025-01-28 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345474', 'tblTempUsageDetail_20' ) start [2025-01-28 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345474', 'tblTempUsageDetail_20' ) end [2025-01-28 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345474', 'tblTempVendorCDR_20' ) start [2025-01-28 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345474', 'tblTempVendorCDR_20' ) end [2025-01-28 00:59:19] Production.INFO: ProcessCDR(1,14345474,1,1,2) [2025-01-28 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345474', 'tblTempUsageDetail_20' ) start [2025-01-28 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345474', 'tblTempUsageDetail_20' ) end [2025-01-28 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 00:59:22] Production.INFO: ==11636== Releasing lock... [2025-01-28 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 00:59:22] Production.INFO: 30 MB #Memory Used# [2025-01-28 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:00:06 [end_date_ymd] => 2025-01-28 01:00:06 [RateCDR] => 1 ) [2025-01-28 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-27 22:00:06' and `end` < '2025-01-28 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-28 01:00:18] Production.INFO: count ==301 [2025-01-28 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:00:06 - End Time 2025-01-28 01:00:06 [2025-01-28 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345479', 'tblTempUsageDetail_20' ) start [2025-01-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345479', 'tblTempUsageDetail_20' ) end [2025-01-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345479', 'tblTempVendorCDR_20' ) start [2025-01-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345479', 'tblTempVendorCDR_20' ) end [2025-01-28 01:00:18] Production.INFO: ProcessCDR(1,14345479,1,1,2) [2025-01-28 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345479', 'tblTempUsageDetail_20' ) start [2025-01-28 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345479', 'tblTempUsageDetail_20' ) end [2025-01-28 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:00:21] Production.INFO: ==11751== Releasing lock... [2025-01-28 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:00:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-28 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:01:05 [end_date_ymd] => 2025-01-28 01:01:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:01:05' and `end` < '2025-01-28 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-28 01:01:18] Production.INFO: count ==310 [2025-01-28 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:01:05 - End Time 2025-01-28 01:01:05 [2025-01-28 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345485', 'tblTempUsageDetail_20' ) start [2025-01-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345485', 'tblTempUsageDetail_20' ) end [2025-01-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345485', 'tblTempVendorCDR_20' ) start [2025-01-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345485', 'tblTempVendorCDR_20' ) end [2025-01-28 01:01:18] Production.INFO: ProcessCDR(1,14345485,1,1,2) [2025-01-28 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345485', 'tblTempUsageDetail_20' ) start [2025-01-28 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345485', 'tblTempUsageDetail_20' ) end [2025-01-28 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:01:21] Production.INFO: ==11844== Releasing lock... [2025-01-28 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-28 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:02:06 [end_date_ymd] => 2025-01-28 01:02:06 [RateCDR] => 1 ) [2025-01-28 01: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-27 22:02:06' and `end` < '2025-01-28 01: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-28 01:02:18] Production.INFO: count ==307 [2025-01-28 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:02:06 - End Time 2025-01-28 01:02:06 [2025-01-28 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345490', 'tblTempUsageDetail_20' ) start [2025-01-28 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345490', 'tblTempUsageDetail_20' ) end [2025-01-28 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345490', 'tblTempVendorCDR_20' ) start [2025-01-28 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345490', 'tblTempVendorCDR_20' ) end [2025-01-28 01:02:18] Production.INFO: ProcessCDR(1,14345490,1,1,2) [2025-01-28 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345490', 'tblTempUsageDetail_20' ) start [2025-01-28 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345490', 'tblTempUsageDetail_20' ) end [2025-01-28 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:02:22] Production.INFO: ==11915== Releasing lock... [2025-01-28 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:03:05 [end_date_ymd] => 2025-01-28 01:03:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:03:05' and `end` < '2025-01-28 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-28 01:03:17] Production.INFO: count ==313 [2025-01-28 01:03:17] Production.ERROR: pbx CDR StartTime 2025-01-27 22:03:05 - End Time 2025-01-28 01:03:05 [2025-01-28 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345495', 'tblTempUsageDetail_20' ) start [2025-01-28 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345495', 'tblTempUsageDetail_20' ) end [2025-01-28 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345495', 'tblTempVendorCDR_20' ) start [2025-01-28 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345495', 'tblTempVendorCDR_20' ) end [2025-01-28 01:03:17] Production.INFO: ProcessCDR(1,14345495,1,1,2) [2025-01-28 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345495', 'tblTempUsageDetail_20' ) start [2025-01-28 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345495', 'tblTempUsageDetail_20' ) end [2025-01-28 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:03:22] Production.INFO: ==11989== Releasing lock... [2025-01-28 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:04:05 [end_date_ymd] => 2025-01-28 01:04:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:04:05' and `end` < '2025-01-28 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-28 01:04:18] Production.INFO: count ==318 [2025-01-28 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:04:05 - End Time 2025-01-28 01:04:05 [2025-01-28 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345500', 'tblTempUsageDetail_20' ) start [2025-01-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345500', 'tblTempUsageDetail_20' ) end [2025-01-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345500', 'tblTempVendorCDR_20' ) start [2025-01-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345500', 'tblTempVendorCDR_20' ) end [2025-01-28 01:04:18] Production.INFO: ProcessCDR(1,14345500,1,1,2) [2025-01-28 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345500', 'tblTempUsageDetail_20' ) start [2025-01-28 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345500', 'tblTempUsageDetail_20' ) end [2025-01-28 01:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:04:23] Production.INFO: ==12069== Releasing lock... [2025-01-28 01:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:05:05 [end_date_ymd] => 2025-01-28 01:05:05 [RateCDR] => 1 ) [2025-01-28 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:05:05' and `end` < '2025-01-28 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:05:18] Production.INFO: count ==318 [2025-01-28 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:05:05 - End Time 2025-01-28 01:05:05 [2025-01-28 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345505', 'tblTempUsageDetail_20' ) start [2025-01-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345505', 'tblTempUsageDetail_20' ) end [2025-01-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345505', 'tblTempVendorCDR_20' ) start [2025-01-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345505', 'tblTempVendorCDR_20' ) end [2025-01-28 01:05:18] Production.INFO: ProcessCDR(1,14345505,1,1,2) [2025-01-28 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345505', 'tblTempUsageDetail_20' ) start [2025-01-28 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345505', 'tblTempUsageDetail_20' ) end [2025-01-28 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:05:21] Production.INFO: ==12141== Releasing lock... [2025-01-28 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:06:05 [end_date_ymd] => 2025-01-28 01:06:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:06:05' and `end` < '2025-01-28 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-28 01:06:19] Production.INFO: count ==319 [2025-01-28 01:06:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:06:05 - End Time 2025-01-28 01:06:05 [2025-01-28 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345510', 'tblTempUsageDetail_20' ) start [2025-01-28 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345510', 'tblTempUsageDetail_20' ) end [2025-01-28 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345510', 'tblTempVendorCDR_20' ) start [2025-01-28 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345510', 'tblTempVendorCDR_20' ) end [2025-01-28 01:06:19] Production.INFO: ProcessCDR(1,14345510,1,1,2) [2025-01-28 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345510', 'tblTempUsageDetail_20' ) start [2025-01-28 01:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345510', 'tblTempUsageDetail_20' ) end [2025-01-28 01:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:06:24] Production.INFO: ==12218== Releasing lock... [2025-01-28 01:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:06:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:07:05 [end_date_ymd] => 2025-01-28 01:07:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:07:05' and `end` < '2025-01-28 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-28 01:07:17] Production.INFO: count ==317 [2025-01-28 01:07:17] Production.ERROR: pbx CDR StartTime 2025-01-27 22:07:05 - End Time 2025-01-28 01:07:05 [2025-01-28 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345515', 'tblTempUsageDetail_20' ) start [2025-01-28 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345515', 'tblTempUsageDetail_20' ) end [2025-01-28 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345515', 'tblTempVendorCDR_20' ) start [2025-01-28 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345515', 'tblTempVendorCDR_20' ) end [2025-01-28 01:07:17] Production.INFO: ProcessCDR(1,14345515,1,1,2) [2025-01-28 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345515', 'tblTempUsageDetail_20' ) start [2025-01-28 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345515', 'tblTempUsageDetail_20' ) end [2025-01-28 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:07:21] Production.INFO: ==12290== Releasing lock... [2025-01-28 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:08:06 [end_date_ymd] => 2025-01-28 01:08:06 [RateCDR] => 1 ) [2025-01-28 01:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:08:06' and `end` < '2025-01-28 01:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:08:18] Production.INFO: count ==317 [2025-01-28 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:08:06 - End Time 2025-01-28 01:08:06 [2025-01-28 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345520', 'tblTempUsageDetail_20' ) start [2025-01-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345520', 'tblTempUsageDetail_20' ) end [2025-01-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345520', 'tblTempVendorCDR_20' ) start [2025-01-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345520', 'tblTempVendorCDR_20' ) end [2025-01-28 01:08:18] Production.INFO: ProcessCDR(1,14345520,1,1,2) [2025-01-28 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345520', 'tblTempUsageDetail_20' ) start [2025-01-28 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345520', 'tblTempUsageDetail_20' ) end [2025-01-28 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:08:21] Production.INFO: ==12364== Releasing lock... [2025-01-28 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:09:05 [end_date_ymd] => 2025-01-28 01:09:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:09:05' and `end` < '2025-01-28 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-28 01:09:17] Production.INFO: count ==316 [2025-01-28 01:09:17] Production.ERROR: pbx CDR StartTime 2025-01-27 22:09:05 - End Time 2025-01-28 01:09:05 [2025-01-28 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345525', 'tblTempUsageDetail_20' ) start [2025-01-28 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345525', 'tblTempUsageDetail_20' ) end [2025-01-28 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345525', 'tblTempVendorCDR_20' ) start [2025-01-28 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345525', 'tblTempVendorCDR_20' ) end [2025-01-28 01:09:17] Production.INFO: ProcessCDR(1,14345525,1,1,2) [2025-01-28 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345525', 'tblTempUsageDetail_20' ) start [2025-01-28 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345525', 'tblTempUsageDetail_20' ) end [2025-01-28 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:09:20] Production.INFO: ==12440== Releasing lock... [2025-01-28 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:09:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:10:06 [end_date_ymd] => 2025-01-28 01:10:06 [RateCDR] => 1 ) [2025-01-28 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:10:06' and `end` < '2025-01-28 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:10:19] Production.INFO: count ==327 [2025-01-28 01:10:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:10:06 - End Time 2025-01-28 01:10:06 [2025-01-28 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345531', 'tblTempUsageDetail_20' ) start [2025-01-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345531', 'tblTempUsageDetail_20' ) end [2025-01-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345531', 'tblTempVendorCDR_20' ) start [2025-01-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345531', 'tblTempVendorCDR_20' ) end [2025-01-28 01:10:19] Production.INFO: ProcessCDR(1,14345531,1,1,2) [2025-01-28 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345531', 'tblTempUsageDetail_20' ) start [2025-01-28 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345531', 'tblTempUsageDetail_20' ) end [2025-01-28 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:10:22] Production.INFO: ==12520== Releasing lock... [2025-01-28 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:11:05 [end_date_ymd] => 2025-01-28 01:11:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:11:05' and `end` < '2025-01-28 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-28 01:11:17] Production.INFO: count ==329 [2025-01-28 01:11:17] Production.ERROR: pbx CDR StartTime 2025-01-27 22:11:05 - End Time 2025-01-28 01:11:05 [2025-01-28 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345536', 'tblTempUsageDetail_20' ) start [2025-01-28 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345536', 'tblTempUsageDetail_20' ) end [2025-01-28 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345536', 'tblTempVendorCDR_20' ) start [2025-01-28 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345536', 'tblTempVendorCDR_20' ) end [2025-01-28 01:11:17] Production.INFO: ProcessCDR(1,14345536,1,1,2) [2025-01-28 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345536', 'tblTempUsageDetail_20' ) start [2025-01-28 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345536', 'tblTempUsageDetail_20' ) end [2025-01-28 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:11:20] Production.INFO: ==12597== Releasing lock... [2025-01-28 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:11:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:12:05 [end_date_ymd] => 2025-01-28 01:12:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:12:05' and `end` < '2025-01-28 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-28 01:12:18] Production.INFO: count ==326 [2025-01-28 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:12:05 - End Time 2025-01-28 01:12:05 [2025-01-28 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345541', 'tblTempUsageDetail_20' ) start [2025-01-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345541', 'tblTempUsageDetail_20' ) end [2025-01-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345541', 'tblTempVendorCDR_20' ) start [2025-01-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345541', 'tblTempVendorCDR_20' ) end [2025-01-28 01:12:18] Production.INFO: ProcessCDR(1,14345541,1,1,2) [2025-01-28 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345541', 'tblTempUsageDetail_20' ) start [2025-01-28 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345541', 'tblTempUsageDetail_20' ) end [2025-01-28 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:12:21] Production.INFO: ==12670== Releasing lock... [2025-01-28 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:13:06 [end_date_ymd] => 2025-01-28 01:13:06 [RateCDR] => 1 ) [2025-01-28 01:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:13:06' and `end` < '2025-01-28 01:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:13:19] Production.INFO: count ==323 [2025-01-28 01:13:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:13:06 - End Time 2025-01-28 01:13:06 [2025-01-28 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345546', 'tblTempUsageDetail_20' ) start [2025-01-28 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345546', 'tblTempUsageDetail_20' ) end [2025-01-28 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345546', 'tblTempVendorCDR_20' ) start [2025-01-28 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345546', 'tblTempVendorCDR_20' ) end [2025-01-28 01:13:19] Production.INFO: ProcessCDR(1,14345546,1,1,2) [2025-01-28 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345546', 'tblTempUsageDetail_20' ) start [2025-01-28 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345546', 'tblTempUsageDetail_20' ) end [2025-01-28 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:13:22] Production.INFO: ==12744== Releasing lock... [2025-01-28 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:14:05 [end_date_ymd] => 2025-01-28 01:14:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:14:05' and `end` < '2025-01-28 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-28 01:14:19] Production.INFO: count ==324 [2025-01-28 01:14:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:14:05 - End Time 2025-01-28 01:14:05 [2025-01-28 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345551', 'tblTempUsageDetail_20' ) start [2025-01-28 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345551', 'tblTempUsageDetail_20' ) end [2025-01-28 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345551', 'tblTempVendorCDR_20' ) start [2025-01-28 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345551', 'tblTempVendorCDR_20' ) end [2025-01-28 01:14:19] Production.INFO: ProcessCDR(1,14345551,1,1,2) [2025-01-28 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345551', 'tblTempUsageDetail_20' ) start [2025-01-28 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345551', 'tblTempUsageDetail_20' ) end [2025-01-28 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:14:22] Production.INFO: ==12814== Releasing lock... [2025-01-28 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:15:05 [end_date_ymd] => 2025-01-28 01:15:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:15:05' and `end` < '2025-01-28 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-28 01:15:18] Production.INFO: count ==322 [2025-01-28 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:15:05 - End Time 2025-01-28 01:15:05 [2025-01-28 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345556', 'tblTempUsageDetail_20' ) start [2025-01-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345556', 'tblTempUsageDetail_20' ) end [2025-01-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345556', 'tblTempVendorCDR_20' ) start [2025-01-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345556', 'tblTempVendorCDR_20' ) end [2025-01-28 01:15:18] Production.INFO: ProcessCDR(1,14345556,1,1,2) [2025-01-28 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345556', 'tblTempUsageDetail_20' ) start [2025-01-28 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345556', 'tblTempUsageDetail_20' ) end [2025-01-28 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:15:21] Production.INFO: ==12929== Releasing lock... [2025-01-28 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:16:05 [end_date_ymd] => 2025-01-28 01:16:05 [RateCDR] => 1 ) [2025-01-28 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:16:05' and `end` < '2025-01-28 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:16:17] Production.INFO: count ==322 [2025-01-28 01:16:17] Production.ERROR: pbx CDR StartTime 2025-01-27 22:16:05 - End Time 2025-01-28 01:16:05 [2025-01-28 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345561', 'tblTempUsageDetail_20' ) start [2025-01-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345561', 'tblTempUsageDetail_20' ) end [2025-01-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345561', 'tblTempVendorCDR_20' ) start [2025-01-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345561', 'tblTempVendorCDR_20' ) end [2025-01-28 01:16:17] Production.INFO: ProcessCDR(1,14345561,1,1,2) [2025-01-28 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345561', 'tblTempUsageDetail_20' ) start [2025-01-28 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345561', 'tblTempUsageDetail_20' ) end [2025-01-28 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:16:20] Production.INFO: ==13000== Releasing lock... [2025-01-28 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:17:05 [end_date_ymd] => 2025-01-28 01:17:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:17:05' and `end` < '2025-01-28 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-28 01:17:18] Production.INFO: count ==319 [2025-01-28 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:17:05 - End Time 2025-01-28 01:17:05 [2025-01-28 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345566', 'tblTempUsageDetail_20' ) start [2025-01-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345566', 'tblTempUsageDetail_20' ) end [2025-01-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345566', 'tblTempVendorCDR_20' ) start [2025-01-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345566', 'tblTempVendorCDR_20' ) end [2025-01-28 01:17:18] Production.INFO: ProcessCDR(1,14345566,1,1,2) [2025-01-28 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345566', 'tblTempUsageDetail_20' ) start [2025-01-28 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345566', 'tblTempUsageDetail_20' ) end [2025-01-28 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:17:21] Production.INFO: ==13076== Releasing lock... [2025-01-28 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-28 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:18:05 [end_date_ymd] => 2025-01-28 01:18:05 [RateCDR] => 1 ) [2025-01-28 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:18:05' and `end` < '2025-01-28 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:18:18] Production.INFO: count ==319 [2025-01-28 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:18:05 - End Time 2025-01-28 01:18:05 [2025-01-28 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345571', 'tblTempUsageDetail_20' ) start [2025-01-28 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345571', 'tblTempUsageDetail_20' ) end [2025-01-28 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345571', 'tblTempVendorCDR_20' ) start [2025-01-28 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345571', 'tblTempVendorCDR_20' ) end [2025-01-28 01:18:18] Production.INFO: ProcessCDR(1,14345571,1,1,2) [2025-01-28 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345571', 'tblTempUsageDetail_20' ) start [2025-01-28 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345571', 'tblTempUsageDetail_20' ) end [2025-01-28 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:18:21] Production.INFO: ==13149== Releasing lock... [2025-01-28 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-28 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:19:05 [end_date_ymd] => 2025-01-28 01:19:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:19:05' and `end` < '2025-01-28 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-28 01:19:17] Production.INFO: count ==319 [2025-01-28 01:19:17] Production.ERROR: pbx CDR StartTime 2025-01-27 22:19:05 - End Time 2025-01-28 01:19:05 [2025-01-28 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345576', 'tblTempUsageDetail_20' ) start [2025-01-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345576', 'tblTempUsageDetail_20' ) end [2025-01-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345576', 'tblTempVendorCDR_20' ) start [2025-01-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345576', 'tblTempVendorCDR_20' ) end [2025-01-28 01:19:17] Production.INFO: ProcessCDR(1,14345576,1,1,2) [2025-01-28 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345576', 'tblTempUsageDetail_20' ) start [2025-01-28 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345576', 'tblTempUsageDetail_20' ) end [2025-01-28 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:19:20] Production.INFO: ==13220== Releasing lock... [2025-01-28 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:19:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-28 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:20:05 [end_date_ymd] => 2025-01-28 01:20:05 [RateCDR] => 1 ) [2025-01-28 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:20:05' and `end` < '2025-01-28 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:20:18] Production.INFO: count ==332 [2025-01-28 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:20:05 - End Time 2025-01-28 01:20:05 [2025-01-28 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345581', 'tblTempUsageDetail_20' ) start [2025-01-28 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345581', 'tblTempUsageDetail_20' ) end [2025-01-28 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345581', 'tblTempVendorCDR_20' ) start [2025-01-28 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345581', 'tblTempVendorCDR_20' ) end [2025-01-28 01:20:18] Production.INFO: ProcessCDR(1,14345581,1,1,2) [2025-01-28 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345581', 'tblTempUsageDetail_20' ) start [2025-01-28 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345581', 'tblTempUsageDetail_20' ) end [2025-01-28 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:20:23] Production.INFO: ==13294== Releasing lock... [2025-01-28 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:20:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:21:05 [end_date_ymd] => 2025-01-28 01:21:05 [RateCDR] => 1 ) [2025-01-28 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:21:05' and `end` < '2025-01-28 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:21:18] Production.INFO: count ==337 [2025-01-28 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:21:05 - End Time 2025-01-28 01:21:05 [2025-01-28 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345587', 'tblTempUsageDetail_20' ) start [2025-01-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345587', 'tblTempUsageDetail_20' ) end [2025-01-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345587', 'tblTempVendorCDR_20' ) start [2025-01-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345587', 'tblTempVendorCDR_20' ) end [2025-01-28 01:21:18] Production.INFO: ProcessCDR(1,14345587,1,1,2) [2025-01-28 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345587', 'tblTempUsageDetail_20' ) start [2025-01-28 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345587', 'tblTempUsageDetail_20' ) end [2025-01-28 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:21:21] Production.INFO: ==13367== Releasing lock... [2025-01-28 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:22:04 [end_date_ymd] => 2025-01-28 01:22:04 [RateCDR] => 1 ) [2025-01-28 01:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:22:04' and `end` < '2025-01-28 01:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:22:18] Production.INFO: count ==336 [2025-01-28 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:22:04 - End Time 2025-01-28 01:22:04 [2025-01-28 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345592', 'tblTempUsageDetail_20' ) start [2025-01-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345592', 'tblTempUsageDetail_20' ) end [2025-01-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345592', 'tblTempVendorCDR_20' ) start [2025-01-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345592', 'tblTempVendorCDR_20' ) end [2025-01-28 01:22:18] Production.INFO: ProcessCDR(1,14345592,1,1,2) [2025-01-28 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345592', 'tblTempUsageDetail_20' ) start [2025-01-28 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345592', 'tblTempUsageDetail_20' ) end [2025-01-28 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:22:21] Production.INFO: ==13442== Releasing lock... [2025-01-28 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-28 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:23:05 [end_date_ymd] => 2025-01-28 01:23:05 [RateCDR] => 1 ) [2025-01-28 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:23:05' and `end` < '2025-01-28 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:23:18] Production.INFO: count ==334 [2025-01-28 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:23:05 - End Time 2025-01-28 01:23:05 [2025-01-28 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345597', 'tblTempUsageDetail_20' ) start [2025-01-28 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345597', 'tblTempUsageDetail_20' ) end [2025-01-28 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345597', 'tblTempVendorCDR_20' ) start [2025-01-28 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345597', 'tblTempVendorCDR_20' ) end [2025-01-28 01:23:18] Production.INFO: ProcessCDR(1,14345597,1,1,2) [2025-01-28 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345597', 'tblTempUsageDetail_20' ) start [2025-01-28 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345597', 'tblTempUsageDetail_20' ) end [2025-01-28 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:23:21] Production.INFO: ==13521== Releasing lock... [2025-01-28 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:24:05 [end_date_ymd] => 2025-01-28 01:24:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:24:05' and `end` < '2025-01-28 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-28 01:24:18] Production.INFO: count ==333 [2025-01-28 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:24:05 - End Time 2025-01-28 01:24:05 [2025-01-28 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345602', 'tblTempUsageDetail_20' ) start [2025-01-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345602', 'tblTempUsageDetail_20' ) end [2025-01-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345602', 'tblTempVendorCDR_20' ) start [2025-01-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345602', 'tblTempVendorCDR_20' ) end [2025-01-28 01:24:18] Production.INFO: ProcessCDR(1,14345602,1,1,2) [2025-01-28 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345602', 'tblTempUsageDetail_20' ) start [2025-01-28 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345602', 'tblTempUsageDetail_20' ) end [2025-01-28 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:24:21] Production.INFO: ==13598== Releasing lock... [2025-01-28 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:24:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:25:05 [end_date_ymd] => 2025-01-28 01:25:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:25:05' and `end` < '2025-01-28 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-28 01:25:18] Production.INFO: count ==335 [2025-01-28 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:25:05 - End Time 2025-01-28 01:25:05 [2025-01-28 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345607', 'tblTempUsageDetail_20' ) start [2025-01-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345607', 'tblTempUsageDetail_20' ) end [2025-01-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345607', 'tblTempVendorCDR_20' ) start [2025-01-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345607', 'tblTempVendorCDR_20' ) end [2025-01-28 01:25:18] Production.INFO: ProcessCDR(1,14345607,1,1,2) [2025-01-28 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345607', 'tblTempUsageDetail_20' ) start [2025-01-28 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345607', 'tblTempUsageDetail_20' ) end [2025-01-28 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:25:22] Production.INFO: ==13669== Releasing lock... [2025-01-28 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:25:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:26:06 [end_date_ymd] => 2025-01-28 01:26:06 [RateCDR] => 1 ) [2025-01-28 01: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-27 22:26:06' and `end` < '2025-01-28 01: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-28 01:26:18] Production.INFO: count ==335 [2025-01-28 01:26:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:26:06 - End Time 2025-01-28 01:26:06 [2025-01-28 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345611', 'tblTempUsageDetail_20' ) start [2025-01-28 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345611', 'tblTempUsageDetail_20' ) end [2025-01-28 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345611', 'tblTempVendorCDR_20' ) start [2025-01-28 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345611', 'tblTempVendorCDR_20' ) end [2025-01-28 01:26:18] Production.INFO: ProcessCDR(1,14345611,1,1,2) [2025-01-28 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345611', 'tblTempUsageDetail_20' ) start [2025-01-28 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345611', 'tblTempUsageDetail_20' ) end [2025-01-28 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:26:22] Production.INFO: ==13739== Releasing lock... [2025-01-28 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:26:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:27:05 [end_date_ymd] => 2025-01-28 01:27:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:27:05' and `end` < '2025-01-28 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-28 01:27:17] Production.INFO: count ==335 [2025-01-28 01:27:17] Production.ERROR: pbx CDR StartTime 2025-01-27 22:27:05 - End Time 2025-01-28 01:27:05 [2025-01-28 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345617', 'tblTempUsageDetail_20' ) start [2025-01-28 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345617', 'tblTempUsageDetail_20' ) end [2025-01-28 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345617', 'tblTempVendorCDR_20' ) start [2025-01-28 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345617', 'tblTempVendorCDR_20' ) end [2025-01-28 01:27:17] Production.INFO: ProcessCDR(1,14345617,1,1,2) [2025-01-28 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345617', 'tblTempUsageDetail_20' ) start [2025-01-28 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345617', 'tblTempUsageDetail_20' ) end [2025-01-28 01:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:27:20] Production.INFO: ==13810== Releasing lock... [2025-01-28 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:27:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:28:06 [end_date_ymd] => 2025-01-28 01:28:06 [RateCDR] => 1 ) [2025-01-28 01:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:28:06' and `end` < '2025-01-28 01:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:28:19] Production.INFO: count ==335 [2025-01-28 01:28:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:28:06 - End Time 2025-01-28 01:28:06 [2025-01-28 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345622', 'tblTempUsageDetail_20' ) start [2025-01-28 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345622', 'tblTempUsageDetail_20' ) end [2025-01-28 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345622', 'tblTempVendorCDR_20' ) start [2025-01-28 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345622', 'tblTempVendorCDR_20' ) end [2025-01-28 01:28:19] Production.INFO: ProcessCDR(1,14345622,1,1,2) [2025-01-28 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345622', 'tblTempUsageDetail_20' ) start [2025-01-28 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345622', 'tblTempUsageDetail_20' ) end [2025-01-28 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:28:22] Production.INFO: ==13883== Releasing lock... [2025-01-28 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:28:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:29:05 [end_date_ymd] => 2025-01-28 01:29:05 [RateCDR] => 1 ) [2025-01-28 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:29:05' and `end` < '2025-01-28 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:29:18] Production.INFO: count ==334 [2025-01-28 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:29:05 - End Time 2025-01-28 01:29:05 [2025-01-28 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345627', 'tblTempUsageDetail_20' ) start [2025-01-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345627', 'tblTempUsageDetail_20' ) end [2025-01-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345627', 'tblTempVendorCDR_20' ) start [2025-01-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345627', 'tblTempVendorCDR_20' ) end [2025-01-28 01:29:18] Production.INFO: ProcessCDR(1,14345627,1,1,2) [2025-01-28 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345627', 'tblTempUsageDetail_20' ) start [2025-01-28 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345627', 'tblTempUsageDetail_20' ) end [2025-01-28 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:29:22] Production.INFO: ==13955== Releasing lock... [2025-01-28 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:30:06 [end_date_ymd] => 2025-01-28 01:30:06 [RateCDR] => 1 ) [2025-01-28 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-27 22:30:06' and `end` < '2025-01-28 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-28 01:30:19] Production.INFO: count ==349 [2025-01-28 01:30:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:30:06 - End Time 2025-01-28 01:30:06 [2025-01-28 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345633', 'tblTempUsageDetail_20' ) start [2025-01-28 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345633', 'tblTempUsageDetail_20' ) end [2025-01-28 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345633', 'tblTempVendorCDR_20' ) start [2025-01-28 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345633', 'tblTempVendorCDR_20' ) end [2025-01-28 01:30:19] Production.INFO: ProcessCDR(1,14345633,1,1,2) [2025-01-28 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345633', 'tblTempUsageDetail_20' ) start [2025-01-28 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345633', 'tblTempUsageDetail_20' ) end [2025-01-28 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:30:22] Production.INFO: ==14028== Releasing lock... [2025-01-28 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:31:05 [end_date_ymd] => 2025-01-28 01:31:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:31:05' and `end` < '2025-01-28 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-28 01:31:17] Production.INFO: count ==357 [2025-01-28 01:31:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:31:05 - End Time 2025-01-28 01:31:05 [2025-01-28 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345638', 'tblTempUsageDetail_20' ) start [2025-01-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345638', 'tblTempUsageDetail_20' ) end [2025-01-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345638', 'tblTempVendorCDR_20' ) start [2025-01-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345638', 'tblTempVendorCDR_20' ) end [2025-01-28 01:31:18] Production.INFO: ProcessCDR(1,14345638,1,1,2) [2025-01-28 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345638', 'tblTempUsageDetail_20' ) start [2025-01-28 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345638', 'tblTempUsageDetail_20' ) end [2025-01-28 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:31:21] Production.INFO: ==14139== Releasing lock... [2025-01-28 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:32:05 [end_date_ymd] => 2025-01-28 01:32:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:32:05' and `end` < '2025-01-28 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-28 01:32:18] Production.INFO: count ==357 [2025-01-28 01:32:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:32:05 - End Time 2025-01-28 01:32:05 [2025-01-28 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345643', 'tblTempUsageDetail_20' ) start [2025-01-28 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345643', 'tblTempUsageDetail_20' ) end [2025-01-28 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345643', 'tblTempVendorCDR_20' ) start [2025-01-28 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345643', 'tblTempVendorCDR_20' ) end [2025-01-28 01:32:18] Production.INFO: ProcessCDR(1,14345643,1,1,2) [2025-01-28 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345643', 'tblTempUsageDetail_20' ) start [2025-01-28 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345643', 'tblTempUsageDetail_20' ) end [2025-01-28 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:32:21] Production.INFO: ==14211== Releasing lock... [2025-01-28 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:33:05 [end_date_ymd] => 2025-01-28 01:33:05 [RateCDR] => 1 ) [2025-01-28 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:33:05' and `end` < '2025-01-28 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:33:17] Production.INFO: count ==357 [2025-01-28 01:33:17] Production.ERROR: pbx CDR StartTime 2025-01-27 22:33:05 - End Time 2025-01-28 01:33:05 [2025-01-28 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345648', 'tblTempUsageDetail_20' ) start [2025-01-28 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345648', 'tblTempUsageDetail_20' ) end [2025-01-28 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345648', 'tblTempVendorCDR_20' ) start [2025-01-28 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345648', 'tblTempVendorCDR_20' ) end [2025-01-28 01:33:17] Production.INFO: ProcessCDR(1,14345648,1,1,2) [2025-01-28 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345648', 'tblTempUsageDetail_20' ) start [2025-01-28 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345648', 'tblTempUsageDetail_20' ) end [2025-01-28 01:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:33:20] Production.INFO: ==14281== Releasing lock... [2025-01-28 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:33:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:34:05 [end_date_ymd] => 2025-01-28 01:34:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:34:05' and `end` < '2025-01-28 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-28 01:34:18] Production.INFO: count ==357 [2025-01-28 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:34:05 - End Time 2025-01-28 01:34:05 [2025-01-28 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345649', 'tblTempUsageDetail_20' ) start [2025-01-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345649', 'tblTempUsageDetail_20' ) end [2025-01-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345649', 'tblTempVendorCDR_20' ) start [2025-01-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345649', 'tblTempVendorCDR_20' ) end [2025-01-28 01:34:18] Production.INFO: ProcessCDR(1,14345649,1,1,2) [2025-01-28 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345649', 'tblTempUsageDetail_20' ) start [2025-01-28 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345649', 'tblTempUsageDetail_20' ) end [2025-01-28 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:34:21] Production.INFO: ==14352== Releasing lock... [2025-01-28 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:35:05 [end_date_ymd] => 2025-01-28 01:35:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:35:05' and `end` < '2025-01-28 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-28 01:35:18] Production.INFO: count ==357 [2025-01-28 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:35:05 - End Time 2025-01-28 01:35:05 [2025-01-28 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345658', 'tblTempUsageDetail_20' ) start [2025-01-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345658', 'tblTempUsageDetail_20' ) end [2025-01-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345658', 'tblTempVendorCDR_20' ) start [2025-01-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345658', 'tblTempVendorCDR_20' ) end [2025-01-28 01:35:18] Production.INFO: ProcessCDR(1,14345658,1,1,2) [2025-01-28 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345658', 'tblTempUsageDetail_20' ) start [2025-01-28 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345658', 'tblTempUsageDetail_20' ) end [2025-01-28 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:35:21] Production.INFO: ==14423== Releasing lock... [2025-01-28 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:36:06 [end_date_ymd] => 2025-01-28 01:36:06 [RateCDR] => 1 ) [2025-01-28 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:36:06' and `end` < '2025-01-28 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:36:19] Production.INFO: count ==355 [2025-01-28 01:36:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:36:06 - End Time 2025-01-28 01:36:06 [2025-01-28 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345663', 'tblTempUsageDetail_20' ) start [2025-01-28 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345663', 'tblTempUsageDetail_20' ) end [2025-01-28 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345663', 'tblTempVendorCDR_20' ) start [2025-01-28 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345663', 'tblTempVendorCDR_20' ) end [2025-01-28 01:36:19] Production.INFO: ProcessCDR(1,14345663,1,1,2) [2025-01-28 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345663', 'tblTempUsageDetail_20' ) start [2025-01-28 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345663', 'tblTempUsageDetail_20' ) end [2025-01-28 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:36:22] Production.INFO: ==14493== Releasing lock... [2025-01-28 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:37:05 [end_date_ymd] => 2025-01-28 01:37:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:37:05' and `end` < '2025-01-28 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-28 01:37:17] Production.INFO: count ==355 [2025-01-28 01:37:17] Production.ERROR: pbx CDR StartTime 2025-01-27 22:37:05 - End Time 2025-01-28 01:37:05 [2025-01-28 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345668', 'tblTempUsageDetail_20' ) start [2025-01-28 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345668', 'tblTempUsageDetail_20' ) end [2025-01-28 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345668', 'tblTempVendorCDR_20' ) start [2025-01-28 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345668', 'tblTempVendorCDR_20' ) end [2025-01-28 01:37:17] Production.INFO: ProcessCDR(1,14345668,1,1,2) [2025-01-28 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345668', 'tblTempUsageDetail_20' ) start [2025-01-28 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345668', 'tblTempUsageDetail_20' ) end [2025-01-28 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:37:21] Production.INFO: ==14563== Releasing lock... [2025-01-28 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:38:05 [end_date_ymd] => 2025-01-28 01:38:05 [RateCDR] => 1 ) [2025-01-28 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:38:05' and `end` < '2025-01-28 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:38:18] Production.INFO: count ==355 [2025-01-28 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:38:05 - End Time 2025-01-28 01:38:05 [2025-01-28 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345673', 'tblTempUsageDetail_20' ) start [2025-01-28 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345673', 'tblTempUsageDetail_20' ) end [2025-01-28 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345673', 'tblTempVendorCDR_20' ) start [2025-01-28 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345673', 'tblTempVendorCDR_20' ) end [2025-01-28 01:38:18] Production.INFO: ProcessCDR(1,14345673,1,1,2) [2025-01-28 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345673', 'tblTempUsageDetail_20' ) start [2025-01-28 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345673', 'tblTempUsageDetail_20' ) end [2025-01-28 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:38:22] Production.INFO: ==14639== Releasing lock... [2025-01-28 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:38:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:39:05 [end_date_ymd] => 2025-01-28 01:39:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:39:05' and `end` < '2025-01-28 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-28 01:39:18] Production.INFO: count ==355 [2025-01-28 01:39:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:39:05 - End Time 2025-01-28 01:39:05 [2025-01-28 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345678', 'tblTempUsageDetail_20' ) start [2025-01-28 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345678', 'tblTempUsageDetail_20' ) end [2025-01-28 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345678', 'tblTempVendorCDR_20' ) start [2025-01-28 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345678', 'tblTempVendorCDR_20' ) end [2025-01-28 01:39:19] Production.INFO: ProcessCDR(1,14345678,1,1,2) [2025-01-28 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345678', 'tblTempUsageDetail_20' ) start [2025-01-28 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345678', 'tblTempUsageDetail_20' ) end [2025-01-28 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:39:22] Production.INFO: ==14711== Releasing lock... [2025-01-28 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:39:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:40:06 [end_date_ymd] => 2025-01-28 01:40:06 [RateCDR] => 1 ) [2025-01-28 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:40:06' and `end` < '2025-01-28 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:40:19] Production.INFO: count ==362 [2025-01-28 01:40:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:40:06 - End Time 2025-01-28 01:40:06 [2025-01-28 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345684', 'tblTempUsageDetail_20' ) start [2025-01-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345684', 'tblTempUsageDetail_20' ) end [2025-01-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345684', 'tblTempVendorCDR_20' ) start [2025-01-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345684', 'tblTempVendorCDR_20' ) end [2025-01-28 01:40:19] Production.INFO: ProcessCDR(1,14345684,1,1,2) [2025-01-28 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345684', 'tblTempUsageDetail_20' ) start [2025-01-28 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345684', 'tblTempUsageDetail_20' ) end [2025-01-28 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:40:22] Production.INFO: ==14785== Releasing lock... [2025-01-28 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:41:05 [end_date_ymd] => 2025-01-28 01:41:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:41:05' and `end` < '2025-01-28 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-28 01:41:18] Production.INFO: count ==359 [2025-01-28 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:41:05 - End Time 2025-01-28 01:41:05 [2025-01-28 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345689', 'tblTempUsageDetail_20' ) start [2025-01-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345689', 'tblTempUsageDetail_20' ) end [2025-01-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345689', 'tblTempVendorCDR_20' ) start [2025-01-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345689', 'tblTempVendorCDR_20' ) end [2025-01-28 01:41:18] Production.INFO: ProcessCDR(1,14345689,1,1,2) [2025-01-28 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345689', 'tblTempUsageDetail_20' ) start [2025-01-28 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345689', 'tblTempUsageDetail_20' ) end [2025-01-28 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:41:21] Production.INFO: ==14861== Releasing lock... [2025-01-28 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:42:05 [end_date_ymd] => 2025-01-28 01:42:05 [RateCDR] => 1 ) [2025-01-28 01: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-27 22:42:05' and `end` < '2025-01-28 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-28 01:42:18] Production.INFO: count ==358 [2025-01-28 01:42:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:42:05 - End Time 2025-01-28 01:42:05 [2025-01-28 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345694', 'tblTempUsageDetail_20' ) start [2025-01-28 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345694', 'tblTempUsageDetail_20' ) end [2025-01-28 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345694', 'tblTempVendorCDR_20' ) start [2025-01-28 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345694', 'tblTempVendorCDR_20' ) end [2025-01-28 01:42:18] Production.INFO: ProcessCDR(1,14345694,1,1,2) [2025-01-28 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345694', 'tblTempUsageDetail_20' ) start [2025-01-28 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345694', 'tblTempUsageDetail_20' ) end [2025-01-28 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:42:22] Production.INFO: ==14931== Releasing lock... [2025-01-28 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:43:05 [end_date_ymd] => 2025-01-28 01:43:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:43:05' and `end` < '2025-01-28 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-28 01:43:18] Production.INFO: count ==357 [2025-01-28 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:43:05 - End Time 2025-01-28 01:43:05 [2025-01-28 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345699', 'tblTempUsageDetail_20' ) start [2025-01-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345699', 'tblTempUsageDetail_20' ) end [2025-01-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345699', 'tblTempVendorCDR_20' ) start [2025-01-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345699', 'tblTempVendorCDR_20' ) end [2025-01-28 01:43:18] Production.INFO: ProcessCDR(1,14345699,1,1,2) [2025-01-28 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345699', 'tblTempUsageDetail_20' ) start [2025-01-28 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345699', 'tblTempUsageDetail_20' ) end [2025-01-28 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:43:21] Production.INFO: ==15009== Releasing lock... [2025-01-28 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:44:06 [end_date_ymd] => 2025-01-28 01:44:06 [RateCDR] => 1 ) [2025-01-28 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:44:06' and `end` < '2025-01-28 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:44:18] Production.INFO: count ==357 [2025-01-28 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:44:06 - End Time 2025-01-28 01:44:06 [2025-01-28 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345704', 'tblTempUsageDetail_20' ) start [2025-01-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345704', 'tblTempUsageDetail_20' ) end [2025-01-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345704', 'tblTempVendorCDR_20' ) start [2025-01-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345704', 'tblTempVendorCDR_20' ) end [2025-01-28 01:44:18] Production.INFO: ProcessCDR(1,14345704,1,1,2) [2025-01-28 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345704', 'tblTempUsageDetail_20' ) start [2025-01-28 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345704', 'tblTempUsageDetail_20' ) end [2025-01-28 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:44:22] Production.INFO: ==15080== Releasing lock... [2025-01-28 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:44:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:45:05 [end_date_ymd] => 2025-01-28 01:45:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:45:05' and `end` < '2025-01-28 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-28 01:45:18] Production.INFO: count ==357 [2025-01-28 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:45:05 - End Time 2025-01-28 01:45:05 [2025-01-28 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345709', 'tblTempUsageDetail_20' ) start [2025-01-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345709', 'tblTempUsageDetail_20' ) end [2025-01-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345709', 'tblTempVendorCDR_20' ) start [2025-01-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345709', 'tblTempVendorCDR_20' ) end [2025-01-28 01:45:18] Production.INFO: ProcessCDR(1,14345709,1,1,2) [2025-01-28 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345709', 'tblTempUsageDetail_20' ) start [2025-01-28 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345709', 'tblTempUsageDetail_20' ) end [2025-01-28 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:45:22] Production.INFO: ==15153== Releasing lock... [2025-01-28 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:45:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:46:05 [end_date_ymd] => 2025-01-28 01:46:05 [RateCDR] => 1 ) [2025-01-28 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:46:05' and `end` < '2025-01-28 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:46:18] Production.INFO: count ==357 [2025-01-28 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:46:05 - End Time 2025-01-28 01:46:05 [2025-01-28 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345714', 'tblTempUsageDetail_20' ) start [2025-01-28 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345714', 'tblTempUsageDetail_20' ) end [2025-01-28 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345714', 'tblTempVendorCDR_20' ) start [2025-01-28 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345714', 'tblTempVendorCDR_20' ) end [2025-01-28 01:46:18] Production.INFO: ProcessCDR(1,14345714,1,1,2) [2025-01-28 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345714', 'tblTempUsageDetail_20' ) start [2025-01-28 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345714', 'tblTempUsageDetail_20' ) end [2025-01-28 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:46:22] Production.INFO: ==15264== Releasing lock... [2025-01-28 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:47:05 [end_date_ymd] => 2025-01-28 01:47:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:47:05' and `end` < '2025-01-28 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-28 01:47:17] Production.INFO: count ==357 [2025-01-28 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:47:05 - End Time 2025-01-28 01:47:05 [2025-01-28 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345719', 'tblTempUsageDetail_20' ) start [2025-01-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345719', 'tblTempUsageDetail_20' ) end [2025-01-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345719', 'tblTempVendorCDR_20' ) start [2025-01-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345719', 'tblTempVendorCDR_20' ) end [2025-01-28 01:47:18] Production.INFO: ProcessCDR(1,14345719,1,1,2) [2025-01-28 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345719', 'tblTempUsageDetail_20' ) start [2025-01-28 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345719', 'tblTempUsageDetail_20' ) end [2025-01-28 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:47:21] Production.INFO: ==15335== Releasing lock... [2025-01-28 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:47:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:48:05 [end_date_ymd] => 2025-01-28 01:48:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:48:05' and `end` < '2025-01-28 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-28 01:48:18] Production.INFO: count ==357 [2025-01-28 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:48:05 - End Time 2025-01-28 01:48:05 [2025-01-28 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345724', 'tblTempUsageDetail_20' ) start [2025-01-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345724', 'tblTempUsageDetail_20' ) end [2025-01-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345724', 'tblTempVendorCDR_20' ) start [2025-01-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345724', 'tblTempVendorCDR_20' ) end [2025-01-28 01:48:18] Production.INFO: ProcessCDR(1,14345724,1,1,2) [2025-01-28 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345724', 'tblTempUsageDetail_20' ) start [2025-01-28 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345724', 'tblTempUsageDetail_20' ) end [2025-01-28 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:48:21] Production.INFO: ==15407== Releasing lock... [2025-01-28 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:48:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:49:05 [end_date_ymd] => 2025-01-28 01:49:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:49:05' and `end` < '2025-01-28 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-28 01:49:18] Production.INFO: count ==357 [2025-01-28 01:49:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:49:05 - End Time 2025-01-28 01:49:05 [2025-01-28 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345729', 'tblTempUsageDetail_20' ) start [2025-01-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345729', 'tblTempUsageDetail_20' ) end [2025-01-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345729', 'tblTempVendorCDR_20' ) start [2025-01-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345729', 'tblTempVendorCDR_20' ) end [2025-01-28 01:49:18] Production.INFO: ProcessCDR(1,14345729,1,1,2) [2025-01-28 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345729', 'tblTempUsageDetail_20' ) start [2025-01-28 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345729', 'tblTempUsageDetail_20' ) end [2025-01-28 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:49:21] Production.INFO: ==15478== Releasing lock... [2025-01-28 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:50:07 [end_date_ymd] => 2025-01-28 01:50:07 [RateCDR] => 1 ) [2025-01-28 01:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:50:07' and `end` < '2025-01-28 01:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:50:21] Production.INFO: count ==373 [2025-01-28 01:50:21] Production.ERROR: pbx CDR StartTime 2025-01-27 22:50:07 - End Time 2025-01-28 01:50:07 [2025-01-28 01:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345735', 'tblTempUsageDetail_20' ) start [2025-01-28 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345735', 'tblTempUsageDetail_20' ) end [2025-01-28 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345735', 'tblTempVendorCDR_20' ) start [2025-01-28 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345735', 'tblTempVendorCDR_20' ) end [2025-01-28 01:50:21] Production.INFO: ProcessCDR(1,14345735,1,1,2) [2025-01-28 01:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345735', 'tblTempUsageDetail_20' ) start [2025-01-28 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345735', 'tblTempUsageDetail_20' ) end [2025-01-28 01:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:50:24] Production.INFO: ==15550== Releasing lock... [2025-01-28 01:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:50:24] Production.INFO: 30 MB #Memory Used# [2025-01-28 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:51:06 [end_date_ymd] => 2025-01-28 01:51:06 [RateCDR] => 1 ) [2025-01-28 01: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-27 22:51:06' and `end` < '2025-01-28 01: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-28 01:51:19] Production.INFO: count ==373 [2025-01-28 01:51:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:51:06 - End Time 2025-01-28 01:51:06 [2025-01-28 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345740', 'tblTempUsageDetail_20' ) start [2025-01-28 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345740', 'tblTempUsageDetail_20' ) end [2025-01-28 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345740', 'tblTempVendorCDR_20' ) start [2025-01-28 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345740', 'tblTempVendorCDR_20' ) end [2025-01-28 01:51:19] Production.INFO: ProcessCDR(1,14345740,1,1,2) [2025-01-28 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345740', 'tblTempUsageDetail_20' ) start [2025-01-28 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345740', 'tblTempUsageDetail_20' ) end [2025-01-28 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:51:22] Production.INFO: ==15625== Releasing lock... [2025-01-28 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:51:22] Production.INFO: 30 MB #Memory Used# [2025-01-28 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:52:05 [end_date_ymd] => 2025-01-28 01:52:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:52:05' and `end` < '2025-01-28 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-28 01:52:17] Production.INFO: count ==373 [2025-01-28 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:52:05 - End Time 2025-01-28 01:52:05 [2025-01-28 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345745', 'tblTempUsageDetail_20' ) start [2025-01-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345745', 'tblTempUsageDetail_20' ) end [2025-01-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345745', 'tblTempVendorCDR_20' ) start [2025-01-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345745', 'tblTempVendorCDR_20' ) end [2025-01-28 01:52:18] Production.INFO: ProcessCDR(1,14345745,1,1,2) [2025-01-28 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345745', 'tblTempUsageDetail_20' ) start [2025-01-28 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345745', 'tblTempUsageDetail_20' ) end [2025-01-28 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:52:21] Production.INFO: ==15697== Releasing lock... [2025-01-28 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:52:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:53:06 [end_date_ymd] => 2025-01-28 01:53:06 [RateCDR] => 1 ) [2025-01-28 01: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-27 22:53:06' and `end` < '2025-01-28 01: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-28 01:53:18] Production.INFO: count ==372 [2025-01-28 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:53:06 - End Time 2025-01-28 01:53:06 [2025-01-28 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345750', 'tblTempUsageDetail_20' ) start [2025-01-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345750', 'tblTempUsageDetail_20' ) end [2025-01-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345750', 'tblTempVendorCDR_20' ) start [2025-01-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345750', 'tblTempVendorCDR_20' ) end [2025-01-28 01:53:18] Production.INFO: ProcessCDR(1,14345750,1,1,2) [2025-01-28 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345750', 'tblTempUsageDetail_20' ) start [2025-01-28 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345750', 'tblTempUsageDetail_20' ) end [2025-01-28 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:53:22] Production.INFO: ==15768== Releasing lock... [2025-01-28 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:53:22] Production.INFO: 30 MB #Memory Used# [2025-01-28 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:54:05 [end_date_ymd] => 2025-01-28 01:54:05 [RateCDR] => 1 ) [2025-01-28 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:54:05' and `end` < '2025-01-28 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:54:18] Production.INFO: count ==371 [2025-01-28 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:54:05 - End Time 2025-01-28 01:54:05 [2025-01-28 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345755', 'tblTempUsageDetail_20' ) start [2025-01-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345755', 'tblTempUsageDetail_20' ) end [2025-01-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345755', 'tblTempVendorCDR_20' ) start [2025-01-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345755', 'tblTempVendorCDR_20' ) end [2025-01-28 01:54:18] Production.INFO: ProcessCDR(1,14345755,1,1,2) [2025-01-28 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345755', 'tblTempUsageDetail_20' ) start [2025-01-28 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345755', 'tblTempUsageDetail_20' ) end [2025-01-28 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:54:21] Production.INFO: ==15841== Releasing lock... [2025-01-28 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:54:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:55:05 [end_date_ymd] => 2025-01-28 01:55:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:55:05' and `end` < '2025-01-28 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-28 01:55:18] Production.INFO: count ==368 [2025-01-28 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:55:05 - End Time 2025-01-28 01:55:05 [2025-01-28 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345760', 'tblTempUsageDetail_20' ) start [2025-01-28 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345760', 'tblTempUsageDetail_20' ) end [2025-01-28 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345760', 'tblTempVendorCDR_20' ) start [2025-01-28 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345760', 'tblTempVendorCDR_20' ) end [2025-01-28 01:55:18] Production.INFO: ProcessCDR(1,14345760,1,1,2) [2025-01-28 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345760', 'tblTempUsageDetail_20' ) start [2025-01-28 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345760', 'tblTempUsageDetail_20' ) end [2025-01-28 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:55:21] Production.INFO: ==15914== Releasing lock... [2025-01-28 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:55:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:56:05 [end_date_ymd] => 2025-01-28 01:56:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:56:05' and `end` < '2025-01-28 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-28 01:56:19] Production.INFO: count ==368 [2025-01-28 01:56:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:56:05 - End Time 2025-01-28 01:56:05 [2025-01-28 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345765', 'tblTempUsageDetail_20' ) start [2025-01-28 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345765', 'tblTempUsageDetail_20' ) end [2025-01-28 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345765', 'tblTempVendorCDR_20' ) start [2025-01-28 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345765', 'tblTempVendorCDR_20' ) end [2025-01-28 01:56:19] Production.INFO: ProcessCDR(1,14345765,1,1,2) [2025-01-28 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345765', 'tblTempUsageDetail_20' ) start [2025-01-28 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345765', 'tblTempUsageDetail_20' ) end [2025-01-28 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:56:22] Production.INFO: ==15984== Releasing lock... [2025-01-28 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:56:22] Production.INFO: 30 MB #Memory Used# [2025-01-28 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:57:05 [end_date_ymd] => 2025-01-28 01:57:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:57:05' and `end` < '2025-01-28 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-28 01:57:19] Production.INFO: count ==367 [2025-01-28 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-27 22:57:05 - End Time 2025-01-28 01:57:05 [2025-01-28 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345770', 'tblTempUsageDetail_20' ) start [2025-01-28 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345770', 'tblTempUsageDetail_20' ) end [2025-01-28 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345770', 'tblTempVendorCDR_20' ) start [2025-01-28 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345770', 'tblTempVendorCDR_20' ) end [2025-01-28 01:57:19] Production.INFO: ProcessCDR(1,14345770,1,1,2) [2025-01-28 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345770', 'tblTempUsageDetail_20' ) start [2025-01-28 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345770', 'tblTempUsageDetail_20' ) end [2025-01-28 01:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:57:23] Production.INFO: ==16055== Releasing lock... [2025-01-28 01:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:57:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:58:05 [end_date_ymd] => 2025-01-28 01:58:05 [RateCDR] => 1 ) [2025-01-28 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-27 22:58:05' and `end` < '2025-01-28 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-28 01:58:17] Production.INFO: count ==367 [2025-01-28 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:58:05 - End Time 2025-01-28 01:58:05 [2025-01-28 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345775', 'tblTempUsageDetail_20' ) start [2025-01-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345775', 'tblTempUsageDetail_20' ) end [2025-01-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345775', 'tblTempVendorCDR_20' ) start [2025-01-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345775', 'tblTempVendorCDR_20' ) end [2025-01-28 01:58:18] Production.INFO: ProcessCDR(1,14345775,1,1,2) [2025-01-28 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345775', 'tblTempUsageDetail_20' ) start [2025-01-28 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345775', 'tblTempUsageDetail_20' ) end [2025-01-28 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:58:21] Production.INFO: ==16129== Releasing lock... [2025-01-28 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 22:59:06 [end_date_ymd] => 2025-01-28 01:59:06 [RateCDR] => 1 ) [2025-01-28 01:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 22:59:06' and `end` < '2025-01-28 01:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 01:59:18] Production.INFO: count ==370 [2025-01-28 01:59:18] Production.ERROR: pbx CDR StartTime 2025-01-27 22:59:06 - End Time 2025-01-28 01:59:06 [2025-01-28 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345780', 'tblTempUsageDetail_20' ) start [2025-01-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345780', 'tblTempUsageDetail_20' ) end [2025-01-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345780', 'tblTempVendorCDR_20' ) start [2025-01-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345780', 'tblTempVendorCDR_20' ) end [2025-01-28 01:59:18] Production.INFO: ProcessCDR(1,14345780,1,1,2) [2025-01-28 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345780', 'tblTempUsageDetail_20' ) start [2025-01-28 01:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345780', 'tblTempUsageDetail_20' ) end [2025-01-28 01:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 01:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 01:59:24] Production.INFO: ==16200== Releasing lock... [2025-01-28 01:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 01:59:24] Production.INFO: 30 MB #Memory Used# [2025-01-28 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:00:07 [end_date_ymd] => 2025-01-28 02:00:07 [RateCDR] => 1 ) [2025-01-28 02: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-27 23:00:07' and `end` < '2025-01-28 02: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-28 02:00:20] Production.INFO: count ==381 [2025-01-28 02:00:20] Production.ERROR: pbx CDR StartTime 2025-01-27 23:00:07 - End Time 2025-01-28 02:00:07 [2025-01-28 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345786', 'tblTempUsageDetail_20' ) start [2025-01-28 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345786', 'tblTempUsageDetail_20' ) end [2025-01-28 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345786', 'tblTempVendorCDR_20' ) start [2025-01-28 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345786', 'tblTempVendorCDR_20' ) end [2025-01-28 02:00:20] Production.INFO: ProcessCDR(1,14345786,1,1,2) [2025-01-28 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345786', 'tblTempUsageDetail_20' ) start [2025-01-28 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345786', 'tblTempUsageDetail_20' ) end [2025-01-28 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:00:23] Production.INFO: ==16274== Releasing lock... [2025-01-28 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:00:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:01:05 [end_date_ymd] => 2025-01-28 02:01:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:01:05' and `end` < '2025-01-28 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-28 02:01:18] Production.INFO: count ==383 [2025-01-28 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:01:05 - End Time 2025-01-28 02:01:05 [2025-01-28 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345791', 'tblTempUsageDetail_20' ) start [2025-01-28 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345791', 'tblTempUsageDetail_20' ) end [2025-01-28 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345791', 'tblTempVendorCDR_20' ) start [2025-01-28 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345791', 'tblTempVendorCDR_20' ) end [2025-01-28 02:01:18] Production.INFO: ProcessCDR(1,14345791,1,1,2) [2025-01-28 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345791', 'tblTempUsageDetail_20' ) start [2025-01-28 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345791', 'tblTempUsageDetail_20' ) end [2025-01-28 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:01:21] Production.INFO: ==16446== Releasing lock... [2025-01-28 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:02:06 [end_date_ymd] => 2025-01-28 02:02:06 [RateCDR] => 1 ) [2025-01-28 02:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:02:06' and `end` < '2025-01-28 02:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:02:20] Production.INFO: count ==383 [2025-01-28 02:02:20] Production.ERROR: pbx CDR StartTime 2025-01-27 23:02:06 - End Time 2025-01-28 02:02:06 [2025-01-28 02:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345796', 'tblTempUsageDetail_20' ) start [2025-01-28 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345796', 'tblTempUsageDetail_20' ) end [2025-01-28 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345796', 'tblTempVendorCDR_20' ) start [2025-01-28 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345796', 'tblTempVendorCDR_20' ) end [2025-01-28 02:02:20] Production.INFO: ProcessCDR(1,14345796,1,1,2) [2025-01-28 02:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345796', 'tblTempUsageDetail_20' ) start [2025-01-28 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345796', 'tblTempUsageDetail_20' ) end [2025-01-28 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:02:23] Production.INFO: ==16561== Releasing lock... [2025-01-28 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:02:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:03:05 [end_date_ymd] => 2025-01-28 02:03:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:03:05' and `end` < '2025-01-28 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-28 02:03:17] Production.INFO: count ==383 [2025-01-28 02:03:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:03:05 - End Time 2025-01-28 02:03:05 [2025-01-28 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345801', 'tblTempUsageDetail_20' ) start [2025-01-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345801', 'tblTempUsageDetail_20' ) end [2025-01-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345801', 'tblTempVendorCDR_20' ) start [2025-01-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345801', 'tblTempVendorCDR_20' ) end [2025-01-28 02:03:17] Production.INFO: ProcessCDR(1,14345801,1,1,2) [2025-01-28 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345801', 'tblTempUsageDetail_20' ) start [2025-01-28 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345801', 'tblTempUsageDetail_20' ) end [2025-01-28 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:03:21] Production.INFO: ==16629== Releasing lock... [2025-01-28 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:04:06 [end_date_ymd] => 2025-01-28 02:04:06 [RateCDR] => 1 ) [2025-01-28 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:04:06' and `end` < '2025-01-28 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:04:18] Production.INFO: count ==383 [2025-01-28 02:04:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:04:06 - End Time 2025-01-28 02:04:06 [2025-01-28 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345806', 'tblTempUsageDetail_20' ) start [2025-01-28 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345806', 'tblTempUsageDetail_20' ) end [2025-01-28 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345806', 'tblTempVendorCDR_20' ) start [2025-01-28 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345806', 'tblTempVendorCDR_20' ) end [2025-01-28 02:04:19] Production.INFO: ProcessCDR(1,14345806,1,1,2) [2025-01-28 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345806', 'tblTempUsageDetail_20' ) start [2025-01-28 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345806', 'tblTempUsageDetail_20' ) end [2025-01-28 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:04:22] Production.INFO: ==16704== Releasing lock... [2025-01-28 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:04:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:05:05 [end_date_ymd] => 2025-01-28 02:05:05 [RateCDR] => 1 ) [2025-01-28 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:05:05' and `end` < '2025-01-28 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:05:18] Production.INFO: count ==383 [2025-01-28 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:05:05 - End Time 2025-01-28 02:05:05 [2025-01-28 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345811', 'tblTempUsageDetail_20' ) start [2025-01-28 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345811', 'tblTempUsageDetail_20' ) end [2025-01-28 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345811', 'tblTempVendorCDR_20' ) start [2025-01-28 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345811', 'tblTempVendorCDR_20' ) end [2025-01-28 02:05:18] Production.INFO: ProcessCDR(1,14345811,1,1,2) [2025-01-28 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345811', 'tblTempUsageDetail_20' ) start [2025-01-28 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345811', 'tblTempUsageDetail_20' ) end [2025-01-28 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:05:21] Production.INFO: ==16773== Releasing lock... [2025-01-28 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:06:06 [end_date_ymd] => 2025-01-28 02:06:06 [RateCDR] => 1 ) [2025-01-28 02:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:06:06' and `end` < '2025-01-28 02:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:06:18] Production.INFO: count ==382 [2025-01-28 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:06:06 - End Time 2025-01-28 02:06:06 [2025-01-28 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345816', 'tblTempUsageDetail_20' ) start [2025-01-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345816', 'tblTempUsageDetail_20' ) end [2025-01-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345816', 'tblTempVendorCDR_20' ) start [2025-01-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345816', 'tblTempVendorCDR_20' ) end [2025-01-28 02:06:18] Production.INFO: ProcessCDR(1,14345816,1,1,2) [2025-01-28 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345816', 'tblTempUsageDetail_20' ) start [2025-01-28 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345816', 'tblTempUsageDetail_20' ) end [2025-01-28 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:06:21] Production.INFO: ==16845== Releasing lock... [2025-01-28 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:07:05 [end_date_ymd] => 2025-01-28 02:07:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:07:05' and `end` < '2025-01-28 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-28 02:07:18] Production.INFO: count ==382 [2025-01-28 02:07:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:07:05 - End Time 2025-01-28 02:07:05 [2025-01-28 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345821', 'tblTempUsageDetail_20' ) start [2025-01-28 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345821', 'tblTempUsageDetail_20' ) end [2025-01-28 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345821', 'tblTempVendorCDR_20' ) start [2025-01-28 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345821', 'tblTempVendorCDR_20' ) end [2025-01-28 02:07:18] Production.INFO: ProcessCDR(1,14345821,1,1,2) [2025-01-28 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345821', 'tblTempUsageDetail_20' ) start [2025-01-28 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345821', 'tblTempUsageDetail_20' ) end [2025-01-28 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:07:21] Production.INFO: ==16917== Releasing lock... [2025-01-28 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:08:05 [end_date_ymd] => 2025-01-28 02:08:05 [RateCDR] => 1 ) [2025-01-28 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:08:05' and `end` < '2025-01-28 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:08:19] Production.INFO: count ==382 [2025-01-28 02:08:19] Production.ERROR: pbx CDR StartTime 2025-01-27 23:08:05 - End Time 2025-01-28 02:08:05 [2025-01-28 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345826', 'tblTempUsageDetail_20' ) start [2025-01-28 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345826', 'tblTempUsageDetail_20' ) end [2025-01-28 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345826', 'tblTempVendorCDR_20' ) start [2025-01-28 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345826', 'tblTempVendorCDR_20' ) end [2025-01-28 02:08:19] Production.INFO: ProcessCDR(1,14345826,1,1,2) [2025-01-28 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345826', 'tblTempUsageDetail_20' ) start [2025-01-28 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345826', 'tblTempUsageDetail_20' ) end [2025-01-28 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:08:23] Production.INFO: ==16993== Releasing lock... [2025-01-28 02:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:08:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:09:05 [end_date_ymd] => 2025-01-28 02:09:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:09:05' and `end` < '2025-01-28 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-28 02:09:18] Production.INFO: count ==382 [2025-01-28 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:09:05 - End Time 2025-01-28 02:09:05 [2025-01-28 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345831', 'tblTempUsageDetail_20' ) start [2025-01-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345831', 'tblTempUsageDetail_20' ) end [2025-01-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345831', 'tblTempVendorCDR_20' ) start [2025-01-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345831', 'tblTempVendorCDR_20' ) end [2025-01-28 02:09:18] Production.INFO: ProcessCDR(1,14345831,1,1,2) [2025-01-28 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345831', 'tblTempUsageDetail_20' ) start [2025-01-28 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345831', 'tblTempUsageDetail_20' ) end [2025-01-28 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:09:21] Production.INFO: ==17062== Releasing lock... [2025-01-28 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:10:07 [end_date_ymd] => 2025-01-28 02:10:07 [RateCDR] => 1 ) [2025-01-28 02:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:10:07' and `end` < '2025-01-28 02:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:10:19] Production.INFO: count ==386 [2025-01-28 02:10:19] Production.ERROR: pbx CDR StartTime 2025-01-27 23:10:07 - End Time 2025-01-28 02:10:07 [2025-01-28 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345837', 'tblTempUsageDetail_20' ) start [2025-01-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345837', 'tblTempUsageDetail_20' ) end [2025-01-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345837', 'tblTempVendorCDR_20' ) start [2025-01-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345837', 'tblTempVendorCDR_20' ) end [2025-01-28 02:10:19] Production.INFO: ProcessCDR(1,14345837,1,1,2) [2025-01-28 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345837', 'tblTempUsageDetail_20' ) start [2025-01-28 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345837', 'tblTempUsageDetail_20' ) end [2025-01-28 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:10:23] Production.INFO: ==17140== Releasing lock... [2025-01-28 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:10:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:11:05 [end_date_ymd] => 2025-01-28 02:11:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:11:05' and `end` < '2025-01-28 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-28 02:11:17] Production.INFO: count ==386 [2025-01-28 02:11:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:11:05 - End Time 2025-01-28 02:11:05 [2025-01-28 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345842', 'tblTempUsageDetail_20' ) start [2025-01-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345842', 'tblTempUsageDetail_20' ) end [2025-01-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345842', 'tblTempVendorCDR_20' ) start [2025-01-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345842', 'tblTempVendorCDR_20' ) end [2025-01-28 02:11:17] Production.INFO: ProcessCDR(1,14345842,1,1,2) [2025-01-28 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345842', 'tblTempUsageDetail_20' ) start [2025-01-28 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345842', 'tblTempUsageDetail_20' ) end [2025-01-28 02:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:11:20] Production.INFO: ==17211== Releasing lock... [2025-01-28 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:11:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:12:05 [end_date_ymd] => 2025-01-28 02:12:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:12:05' and `end` < '2025-01-28 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-28 02:12:18] Production.INFO: count ==385 [2025-01-28 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:12:05 - End Time 2025-01-28 02:12:05 [2025-01-28 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345847', 'tblTempUsageDetail_20' ) start [2025-01-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345847', 'tblTempUsageDetail_20' ) end [2025-01-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345847', 'tblTempVendorCDR_20' ) start [2025-01-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345847', 'tblTempVendorCDR_20' ) end [2025-01-28 02:12:18] Production.INFO: ProcessCDR(1,14345847,1,1,2) [2025-01-28 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345847', 'tblTempUsageDetail_20' ) start [2025-01-28 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345847', 'tblTempUsageDetail_20' ) end [2025-01-28 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:12:21] Production.INFO: ==17282== Releasing lock... [2025-01-28 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:13:05 [end_date_ymd] => 2025-01-28 02:13:05 [RateCDR] => 1 ) [2025-01-28 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:13:05' and `end` < '2025-01-28 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:13:18] Production.INFO: count ==383 [2025-01-28 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:13:05 - End Time 2025-01-28 02:13:05 [2025-01-28 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345852', 'tblTempUsageDetail_20' ) start [2025-01-28 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345852', 'tblTempUsageDetail_20' ) end [2025-01-28 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345852', 'tblTempVendorCDR_20' ) start [2025-01-28 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345852', 'tblTempVendorCDR_20' ) end [2025-01-28 02:13:18] Production.INFO: ProcessCDR(1,14345852,1,1,2) [2025-01-28 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345852', 'tblTempUsageDetail_20' ) start [2025-01-28 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345852', 'tblTempUsageDetail_20' ) end [2025-01-28 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:13:21] Production.INFO: ==17351== Releasing lock... [2025-01-28 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:14:05 [end_date_ymd] => 2025-01-28 02:14:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:14:05' and `end` < '2025-01-28 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-28 02:14:18] Production.INFO: count ==383 [2025-01-28 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:14:05 - End Time 2025-01-28 02:14:05 [2025-01-28 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345857', 'tblTempUsageDetail_20' ) start [2025-01-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345857', 'tblTempUsageDetail_20' ) end [2025-01-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345857', 'tblTempVendorCDR_20' ) start [2025-01-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345857', 'tblTempVendorCDR_20' ) end [2025-01-28 02:14:18] Production.INFO: ProcessCDR(1,14345857,1,1,2) [2025-01-28 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345857', 'tblTempUsageDetail_20' ) start [2025-01-28 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345857', 'tblTempUsageDetail_20' ) end [2025-01-28 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:14:21] Production.INFO: ==17424== Releasing lock... [2025-01-28 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:15:05 [end_date_ymd] => 2025-01-28 02:15:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:15:05' and `end` < '2025-01-28 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-28 02:15:17] Production.INFO: count ==383 [2025-01-28 02:15:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:15:05 - End Time 2025-01-28 02:15:05 [2025-01-28 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345862', 'tblTempUsageDetail_20' ) start [2025-01-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345862', 'tblTempUsageDetail_20' ) end [2025-01-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345862', 'tblTempVendorCDR_20' ) start [2025-01-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345862', 'tblTempVendorCDR_20' ) end [2025-01-28 02:15:17] Production.INFO: ProcessCDR(1,14345862,1,1,2) [2025-01-28 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345862', 'tblTempUsageDetail_20' ) start [2025-01-28 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345862', 'tblTempUsageDetail_20' ) end [2025-01-28 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:15:21] Production.INFO: ==17496== Releasing lock... [2025-01-28 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:16:05 [end_date_ymd] => 2025-01-28 02:16:05 [RateCDR] => 1 ) [2025-01-28 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:16:05' and `end` < '2025-01-28 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:16:19] Production.INFO: count ==383 [2025-01-28 02:16:19] Production.ERROR: pbx CDR StartTime 2025-01-27 23:16:05 - End Time 2025-01-28 02:16:05 [2025-01-28 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345867', 'tblTempUsageDetail_20' ) start [2025-01-28 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345867', 'tblTempUsageDetail_20' ) end [2025-01-28 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345867', 'tblTempVendorCDR_20' ) start [2025-01-28 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345867', 'tblTempVendorCDR_20' ) end [2025-01-28 02:16:19] Production.INFO: ProcessCDR(1,14345867,1,1,2) [2025-01-28 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345867', 'tblTempUsageDetail_20' ) start [2025-01-28 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345867', 'tblTempUsageDetail_20' ) end [2025-01-28 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:16:22] Production.INFO: ==17565== Releasing lock... [2025-01-28 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:16:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:17:06 [end_date_ymd] => 2025-01-28 02:17:06 [RateCDR] => 1 ) [2025-01-28 02: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-27 23:17:06' and `end` < '2025-01-28 02: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-28 02:17:18] Production.INFO: count ==383 [2025-01-28 02:17:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:17:06 - End Time 2025-01-28 02:17:06 [2025-01-28 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345872', 'tblTempUsageDetail_20' ) start [2025-01-28 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345872', 'tblTempUsageDetail_20' ) end [2025-01-28 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345872', 'tblTempVendorCDR_20' ) start [2025-01-28 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345872', 'tblTempVendorCDR_20' ) end [2025-01-28 02:17:18] Production.INFO: ProcessCDR(1,14345872,1,1,2) [2025-01-28 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345872', 'tblTempUsageDetail_20' ) start [2025-01-28 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345872', 'tblTempUsageDetail_20' ) end [2025-01-28 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:17:22] Production.INFO: ==17675== Releasing lock... [2025-01-28 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:18:05 [end_date_ymd] => 2025-01-28 02:18:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:18:05' and `end` < '2025-01-28 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-28 02:18:18] Production.INFO: count ==383 [2025-01-28 02:18:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:18:05 - End Time 2025-01-28 02:18:05 [2025-01-28 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345877', 'tblTempUsageDetail_20' ) start [2025-01-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345877', 'tblTempUsageDetail_20' ) end [2025-01-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345877', 'tblTempVendorCDR_20' ) start [2025-01-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345877', 'tblTempVendorCDR_20' ) end [2025-01-28 02:18:18] Production.INFO: ProcessCDR(1,14345877,1,1,2) [2025-01-28 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345877', 'tblTempUsageDetail_20' ) start [2025-01-28 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345877', 'tblTempUsageDetail_20' ) end [2025-01-28 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:18:21] Production.INFO: ==17743== Releasing lock... [2025-01-28 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:19:05 [end_date_ymd] => 2025-01-28 02:19:05 [RateCDR] => 1 ) [2025-01-28 02: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-27 23:19:05' and `end` < '2025-01-28 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-28 02:19:18] Production.INFO: count ==383 [2025-01-28 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:19:05 - End Time 2025-01-28 02:19:05 [2025-01-28 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345882', 'tblTempUsageDetail_20' ) start [2025-01-28 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345882', 'tblTempUsageDetail_20' ) end [2025-01-28 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345882', 'tblTempVendorCDR_20' ) start [2025-01-28 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345882', 'tblTempVendorCDR_20' ) end [2025-01-28 02:19:18] Production.INFO: ProcessCDR(1,14345882,1,1,2) [2025-01-28 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345882', 'tblTempUsageDetail_20' ) start [2025-01-28 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345882', 'tblTempUsageDetail_20' ) end [2025-01-28 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:19:21] Production.INFO: ==17815== Releasing lock... [2025-01-28 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:20:06 [end_date_ymd] => 2025-01-28 02:20:06 [RateCDR] => 1 ) [2025-01-28 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-27 23:20:06' and `end` < '2025-01-28 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-28 02:20:18] Production.INFO: count ==398 [2025-01-28 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:20:06 - End Time 2025-01-28 02:20:06 [2025-01-28 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345888', 'tblTempUsageDetail_20' ) start [2025-01-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345888', 'tblTempUsageDetail_20' ) end [2025-01-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345888', 'tblTempVendorCDR_20' ) start [2025-01-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345888', 'tblTempVendorCDR_20' ) end [2025-01-28 02:20:18] Production.INFO: ProcessCDR(1,14345888,1,1,2) [2025-01-28 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345888', 'tblTempUsageDetail_20' ) start [2025-01-28 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345888', 'tblTempUsageDetail_20' ) end [2025-01-28 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:20:23] Production.INFO: ==17888== Releasing lock... [2025-01-28 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:20:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:21:05 [end_date_ymd] => 2025-01-28 02:21:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:21:05' and `end` < '2025-01-28 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-28 02:21:18] Production.INFO: count ==401 [2025-01-28 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:21:05 - End Time 2025-01-28 02:21:05 [2025-01-28 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345890', 'tblTempUsageDetail_20' ) start [2025-01-28 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345890', 'tblTempUsageDetail_20' ) end [2025-01-28 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345890', 'tblTempVendorCDR_20' ) start [2025-01-28 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345890', 'tblTempVendorCDR_20' ) end [2025-01-28 02:21:18] Production.INFO: ProcessCDR(1,14345890,1,1,2) [2025-01-28 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345890', 'tblTempUsageDetail_20' ) start [2025-01-28 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345890', 'tblTempUsageDetail_20' ) end [2025-01-28 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:21:21] Production.INFO: ==17972== Releasing lock... [2025-01-28 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:22:05 [end_date_ymd] => 2025-01-28 02:22:05 [RateCDR] => 1 ) [2025-01-28 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:22:05' and `end` < '2025-01-28 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:22:18] Production.INFO: count ==400 [2025-01-28 02:22:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:22:05 - End Time 2025-01-28 02:22:05 [2025-01-28 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345898', 'tblTempUsageDetail_20' ) start [2025-01-28 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345898', 'tblTempUsageDetail_20' ) end [2025-01-28 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345898', 'tblTempVendorCDR_20' ) start [2025-01-28 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345898', 'tblTempVendorCDR_20' ) end [2025-01-28 02:22:18] Production.INFO: ProcessCDR(1,14345898,1,1,2) [2025-01-28 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345898', 'tblTempUsageDetail_20' ) start [2025-01-28 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345898', 'tblTempUsageDetail_20' ) end [2025-01-28 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:22:21] Production.INFO: ==18049== Releasing lock... [2025-01-28 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:23:05 [end_date_ymd] => 2025-01-28 02:23:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:23:05' and `end` < '2025-01-28 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-28 02:23:18] Production.INFO: count ==397 [2025-01-28 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:23:05 - End Time 2025-01-28 02:23:05 [2025-01-28 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345903', 'tblTempUsageDetail_20' ) start [2025-01-28 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345903', 'tblTempUsageDetail_20' ) end [2025-01-28 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345903', 'tblTempVendorCDR_20' ) start [2025-01-28 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345903', 'tblTempVendorCDR_20' ) end [2025-01-28 02:23:18] Production.INFO: ProcessCDR(1,14345903,1,1,2) [2025-01-28 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345903', 'tblTempUsageDetail_20' ) start [2025-01-28 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345903', 'tblTempUsageDetail_20' ) end [2025-01-28 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:23:21] Production.INFO: ==18123== Releasing lock... [2025-01-28 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:24:05 [end_date_ymd] => 2025-01-28 02:24:05 [RateCDR] => 1 ) [2025-01-28 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:24:05' and `end` < '2025-01-28 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:24:17] Production.INFO: count ==396 [2025-01-28 02:24:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:24:05 - End Time 2025-01-28 02:24:05 [2025-01-28 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345908', 'tblTempUsageDetail_20' ) start [2025-01-28 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345908', 'tblTempUsageDetail_20' ) end [2025-01-28 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345908', 'tblTempVendorCDR_20' ) start [2025-01-28 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345908', 'tblTempVendorCDR_20' ) end [2025-01-28 02:24:17] Production.INFO: ProcessCDR(1,14345908,1,1,2) [2025-01-28 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345908', 'tblTempUsageDetail_20' ) start [2025-01-28 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345908', 'tblTempUsageDetail_20' ) end [2025-01-28 02:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:24:20] Production.INFO: ==18191== Releasing lock... [2025-01-28 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:24:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:25:05 [end_date_ymd] => 2025-01-28 02:25:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:25:05' and `end` < '2025-01-28 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-28 02:25:18] Production.INFO: count ==400 [2025-01-28 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:25:05 - End Time 2025-01-28 02:25:05 [2025-01-28 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345913', 'tblTempUsageDetail_20' ) start [2025-01-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345913', 'tblTempUsageDetail_20' ) end [2025-01-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345913', 'tblTempVendorCDR_20' ) start [2025-01-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345913', 'tblTempVendorCDR_20' ) end [2025-01-28 02:25:18] Production.INFO: ProcessCDR(1,14345913,1,1,2) [2025-01-28 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345913', 'tblTempUsageDetail_20' ) start [2025-01-28 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345913', 'tblTempUsageDetail_20' ) end [2025-01-28 02:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:25:23] Production.INFO: ==18266== Releasing lock... [2025-01-28 02:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:25:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:26:06 [end_date_ymd] => 2025-01-28 02:26:06 [RateCDR] => 1 ) [2025-01-28 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-27 23:26:06' and `end` < '2025-01-28 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-28 02:26:18] Production.INFO: count ==400 [2025-01-28 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:26:06 - End Time 2025-01-28 02:26:06 [2025-01-28 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345918', 'tblTempUsageDetail_20' ) start [2025-01-28 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345918', 'tblTempUsageDetail_20' ) end [2025-01-28 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345918', 'tblTempVendorCDR_20' ) start [2025-01-28 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345918', 'tblTempVendorCDR_20' ) end [2025-01-28 02:26:19] Production.INFO: ProcessCDR(1,14345918,1,1,2) [2025-01-28 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345918', 'tblTempUsageDetail_20' ) start [2025-01-28 02:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345918', 'tblTempUsageDetail_20' ) end [2025-01-28 02:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:26:28] Production.INFO: ==18340== Releasing lock... [2025-01-28 02:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:26:28] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:27:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:27:07 [end_date_ymd] => 2025-01-28 02:27:07 [RateCDR] => 1 ) [2025-01-28 02:27: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-27 23:27:07' and `end` < '2025-01-28 02:27: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-28 02:27:19] Production.INFO: count ==399 [2025-01-28 02:27:20] Production.ERROR: pbx CDR StartTime 2025-01-27 23:27:07 - End Time 2025-01-28 02:27:07 [2025-01-28 02:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345923', 'tblTempUsageDetail_20' ) start [2025-01-28 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345923', 'tblTempUsageDetail_20' ) end [2025-01-28 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345923', 'tblTempVendorCDR_20' ) start [2025-01-28 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345923', 'tblTempVendorCDR_20' ) end [2025-01-28 02:27:20] Production.INFO: ProcessCDR(1,14345923,1,1,2) [2025-01-28 02:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345923', 'tblTempUsageDetail_20' ) start [2025-01-28 02:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345923', 'tblTempUsageDetail_20' ) end [2025-01-28 02:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:27:26] Production.INFO: ==18418== Releasing lock... [2025-01-28 02:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:27:26] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:28:05 [end_date_ymd] => 2025-01-28 02:28:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:28:05' and `end` < '2025-01-28 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-28 02:28:18] Production.INFO: count ==399 [2025-01-28 02:28:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:28:05 - End Time 2025-01-28 02:28:05 [2025-01-28 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345928', 'tblTempUsageDetail_20' ) start [2025-01-28 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345928', 'tblTempUsageDetail_20' ) end [2025-01-28 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345928', 'tblTempVendorCDR_20' ) start [2025-01-28 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345928', 'tblTempVendorCDR_20' ) end [2025-01-28 02:28:18] Production.INFO: ProcessCDR(1,14345928,1,1,2) [2025-01-28 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345928', 'tblTempUsageDetail_20' ) start [2025-01-28 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345928', 'tblTempUsageDetail_20' ) end [2025-01-28 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:28:21] Production.INFO: ==18491== Releasing lock... [2025-01-28 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:29:05 [end_date_ymd] => 2025-01-28 02:29:05 [RateCDR] => 1 ) [2025-01-28 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:29:05' and `end` < '2025-01-28 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:29:18] Production.INFO: count ==401 [2025-01-28 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:29:05 - End Time 2025-01-28 02:29:05 [2025-01-28 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345933', 'tblTempUsageDetail_20' ) start [2025-01-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345933', 'tblTempUsageDetail_20' ) end [2025-01-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345933', 'tblTempVendorCDR_20' ) start [2025-01-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345933', 'tblTempVendorCDR_20' ) end [2025-01-28 02:29:18] Production.INFO: ProcessCDR(1,14345933,1,1,2) [2025-01-28 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345933', 'tblTempUsageDetail_20' ) start [2025-01-28 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345933', 'tblTempUsageDetail_20' ) end [2025-01-28 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:29:22] Production.INFO: ==18565== Releasing lock... [2025-01-28 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:30:06 [end_date_ymd] => 2025-01-28 02:30:06 [RateCDR] => 1 ) [2025-01-28 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:30:06' and `end` < '2025-01-28 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:30:18] Production.INFO: count ==409 [2025-01-28 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:30:06 - End Time 2025-01-28 02:30:06 [2025-01-28 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345939', 'tblTempUsageDetail_20' ) start [2025-01-28 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345939', 'tblTempUsageDetail_20' ) end [2025-01-28 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345939', 'tblTempVendorCDR_20' ) start [2025-01-28 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345939', 'tblTempVendorCDR_20' ) end [2025-01-28 02:30:18] Production.INFO: ProcessCDR(1,14345939,1,1,2) [2025-01-28 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345939', 'tblTempUsageDetail_20' ) start [2025-01-28 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345939', 'tblTempUsageDetail_20' ) end [2025-01-28 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:30:22] Production.INFO: ==18638== Releasing lock... [2025-01-28 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:31:06 [end_date_ymd] => 2025-01-28 02:31:06 [RateCDR] => 1 ) [2025-01-28 02:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:31:06' and `end` < '2025-01-28 02:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:31:18] Production.INFO: count ==417 [2025-01-28 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:31:06 - End Time 2025-01-28 02:31:06 [2025-01-28 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345944', 'tblTempUsageDetail_20' ) start [2025-01-28 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345944', 'tblTempUsageDetail_20' ) end [2025-01-28 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345944', 'tblTempVendorCDR_20' ) start [2025-01-28 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345944', 'tblTempVendorCDR_20' ) end [2025-01-28 02:31:18] Production.INFO: ProcessCDR(1,14345944,1,1,2) [2025-01-28 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345944', 'tblTempUsageDetail_20' ) start [2025-01-28 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345944', 'tblTempUsageDetail_20' ) end [2025-01-28 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:31:22] Production.INFO: ==18722== Releasing lock... [2025-01-28 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:31:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:32:05 [end_date_ymd] => 2025-01-28 02:32:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:32:05' and `end` < '2025-01-28 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-28 02:32:18] Production.INFO: count ==417 [2025-01-28 02:32:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:32:05 - End Time 2025-01-28 02:32:05 [2025-01-28 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345949', 'tblTempUsageDetail_20' ) start [2025-01-28 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345949', 'tblTempUsageDetail_20' ) end [2025-01-28 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345949', 'tblTempVendorCDR_20' ) start [2025-01-28 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345949', 'tblTempVendorCDR_20' ) end [2025-01-28 02:32:18] Production.INFO: ProcessCDR(1,14345949,1,1,2) [2025-01-28 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345949', 'tblTempUsageDetail_20' ) start [2025-01-28 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345949', 'tblTempUsageDetail_20' ) end [2025-01-28 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:32:21] Production.INFO: ==18794== Releasing lock... [2025-01-28 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:33:05 [end_date_ymd] => 2025-01-28 02:33:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:33:05' and `end` < '2025-01-28 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-28 02:33:18] Production.INFO: count ==417 [2025-01-28 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:33:05 - End Time 2025-01-28 02:33:05 [2025-01-28 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345954', 'tblTempUsageDetail_20' ) start [2025-01-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345954', 'tblTempUsageDetail_20' ) end [2025-01-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345954', 'tblTempVendorCDR_20' ) start [2025-01-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345954', 'tblTempVendorCDR_20' ) end [2025-01-28 02:33:18] Production.INFO: ProcessCDR(1,14345954,1,1,2) [2025-01-28 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345954', 'tblTempUsageDetail_20' ) start [2025-01-28 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345954', 'tblTempUsageDetail_20' ) end [2025-01-28 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:33:21] Production.INFO: ==18907== Releasing lock... [2025-01-28 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:34:05 [end_date_ymd] => 2025-01-28 02:34:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:34:05' and `end` < '2025-01-28 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-28 02:34:17] Production.INFO: count ==416 [2025-01-28 02:34:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:34:05 - End Time 2025-01-28 02:34:05 [2025-01-28 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345959', 'tblTempUsageDetail_20' ) start [2025-01-28 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345959', 'tblTempUsageDetail_20' ) end [2025-01-28 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345959', 'tblTempVendorCDR_20' ) start [2025-01-28 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345959', 'tblTempVendorCDR_20' ) end [2025-01-28 02:34:17] Production.INFO: ProcessCDR(1,14345959,1,1,2) [2025-01-28 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345959', 'tblTempUsageDetail_20' ) start [2025-01-28 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345959', 'tblTempUsageDetail_20' ) end [2025-01-28 02:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:34:20] Production.INFO: ==18978== Releasing lock... [2025-01-28 02:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:34:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:35:05 [end_date_ymd] => 2025-01-28 02:35:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:35:05' and `end` < '2025-01-28 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-28 02:35:18] Production.INFO: count ==416 [2025-01-28 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:35:05 - End Time 2025-01-28 02:35:05 [2025-01-28 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345964', 'tblTempUsageDetail_20' ) start [2025-01-28 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345964', 'tblTempUsageDetail_20' ) end [2025-01-28 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345964', 'tblTempVendorCDR_20' ) start [2025-01-28 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345964', 'tblTempVendorCDR_20' ) end [2025-01-28 02:35:18] Production.INFO: ProcessCDR(1,14345964,1,1,2) [2025-01-28 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345964', 'tblTempUsageDetail_20' ) start [2025-01-28 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345964', 'tblTempUsageDetail_20' ) end [2025-01-28 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:35:21] Production.INFO: ==19052== Releasing lock... [2025-01-28 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:36:05 [end_date_ymd] => 2025-01-28 02:36:05 [RateCDR] => 1 ) [2025-01-28 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:36:05' and `end` < '2025-01-28 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:36:17] Production.INFO: count ==416 [2025-01-28 02:36:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:36:05 - End Time 2025-01-28 02:36:05 [2025-01-28 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345969', 'tblTempUsageDetail_20' ) start [2025-01-28 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345969', 'tblTempUsageDetail_20' ) end [2025-01-28 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345969', 'tblTempVendorCDR_20' ) start [2025-01-28 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345969', 'tblTempVendorCDR_20' ) end [2025-01-28 02:36:17] Production.INFO: ProcessCDR(1,14345969,1,1,2) [2025-01-28 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345969', 'tblTempUsageDetail_20' ) start [2025-01-28 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345969', 'tblTempUsageDetail_20' ) end [2025-01-28 02:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:36:20] Production.INFO: ==19132== Releasing lock... [2025-01-28 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:36:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:37:05 [end_date_ymd] => 2025-01-28 02:37:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:37:05' and `end` < '2025-01-28 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-28 02:37:19] Production.INFO: count ==417 [2025-01-28 02:37:19] Production.ERROR: pbx CDR StartTime 2025-01-27 23:37:05 - End Time 2025-01-28 02:37:05 [2025-01-28 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345974', 'tblTempUsageDetail_20' ) start [2025-01-28 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345974', 'tblTempUsageDetail_20' ) end [2025-01-28 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345974', 'tblTempVendorCDR_20' ) start [2025-01-28 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345974', 'tblTempVendorCDR_20' ) end [2025-01-28 02:37:19] Production.INFO: ProcessCDR(1,14345974,1,1,2) [2025-01-28 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345974', 'tblTempUsageDetail_20' ) start [2025-01-28 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345974', 'tblTempUsageDetail_20' ) end [2025-01-28 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:37:22] Production.INFO: ==19205== Releasing lock... [2025-01-28 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:37:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:38:06 [end_date_ymd] => 2025-01-28 02:38:06 [RateCDR] => 1 ) [2025-01-28 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:38:06' and `end` < '2025-01-28 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:38:18] Production.INFO: count ==416 [2025-01-28 02:38:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:38:06 - End Time 2025-01-28 02:38:06 [2025-01-28 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345979', 'tblTempUsageDetail_20' ) start [2025-01-28 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345979', 'tblTempUsageDetail_20' ) end [2025-01-28 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345979', 'tblTempVendorCDR_20' ) start [2025-01-28 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345979', 'tblTempVendorCDR_20' ) end [2025-01-28 02:38:18] Production.INFO: ProcessCDR(1,14345979,1,1,2) [2025-01-28 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345979', 'tblTempUsageDetail_20' ) start [2025-01-28 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345979', 'tblTempUsageDetail_20' ) end [2025-01-28 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:38:21] Production.INFO: ==19281== Releasing lock... [2025-01-28 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:39:05 [end_date_ymd] => 2025-01-28 02:39:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:39:05' and `end` < '2025-01-28 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-28 02:39:17] Production.INFO: count ==414 [2025-01-28 02:39:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:39:05 - End Time 2025-01-28 02:39:05 [2025-01-28 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345984', 'tblTempUsageDetail_20' ) start [2025-01-28 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345984', 'tblTempUsageDetail_20' ) end [2025-01-28 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345984', 'tblTempVendorCDR_20' ) start [2025-01-28 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345984', 'tblTempVendorCDR_20' ) end [2025-01-28 02:39:17] Production.INFO: ProcessCDR(1,14345984,1,1,2) [2025-01-28 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345984', 'tblTempUsageDetail_20' ) start [2025-01-28 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345984', 'tblTempUsageDetail_20' ) end [2025-01-28 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:39:21] Production.INFO: ==19351== Releasing lock... [2025-01-28 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:40:06 [end_date_ymd] => 2025-01-28 02:40:06 [RateCDR] => 1 ) [2025-01-28 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-27 23:40:06' and `end` < '2025-01-28 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-28 02:40:24] Production.INFO: count ==422 [2025-01-28 02:40:24] Production.ERROR: pbx CDR StartTime 2025-01-27 23:40:06 - End Time 2025-01-28 02:40:06 [2025-01-28 02:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345990', 'tblTempUsageDetail_20' ) start [2025-01-28 02:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345990', 'tblTempUsageDetail_20' ) end [2025-01-28 02:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345990', 'tblTempVendorCDR_20' ) start [2025-01-28 02:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345990', 'tblTempVendorCDR_20' ) end [2025-01-28 02:40:24] Production.INFO: ProcessCDR(1,14345990,1,1,2) [2025-01-28 02:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345990', 'tblTempUsageDetail_20' ) start [2025-01-28 02:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345990', 'tblTempUsageDetail_20' ) end [2025-01-28 02:40:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:40:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:40:29] Production.INFO: ==19424== Releasing lock... [2025-01-28 02:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:40:29] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:41:05 [end_date_ymd] => 2025-01-28 02:41:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:41:05' and `end` < '2025-01-28 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-28 02:41:18] Production.INFO: count ==423 [2025-01-28 02:41:19] Production.ERROR: pbx CDR StartTime 2025-01-27 23:41:05 - End Time 2025-01-28 02:41:05 [2025-01-28 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345995', 'tblTempUsageDetail_20' ) start [2025-01-28 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14345995', 'tblTempUsageDetail_20' ) end [2025-01-28 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345995', 'tblTempVendorCDR_20' ) start [2025-01-28 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14345995', 'tblTempVendorCDR_20' ) end [2025-01-28 02:41:19] Production.INFO: ProcessCDR(1,14345995,1,1,2) [2025-01-28 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14345995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14345995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14345995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14345995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345995', 'tblTempUsageDetail_20' ) start [2025-01-28 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14345995', 'tblTempUsageDetail_20' ) end [2025-01-28 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:41:22] Production.INFO: ==19504== Releasing lock... [2025-01-28 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:41:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:42:06 [end_date_ymd] => 2025-01-28 02:42:06 [RateCDR] => 1 ) [2025-01-28 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:42:06' and `end` < '2025-01-28 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:42:18] Production.INFO: count ==420 [2025-01-28 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:42:06 - End Time 2025-01-28 02:42:06 [2025-01-28 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346000', 'tblTempUsageDetail_20' ) start [2025-01-28 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346000', 'tblTempUsageDetail_20' ) end [2025-01-28 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346000', 'tblTempVendorCDR_20' ) start [2025-01-28 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346000', 'tblTempVendorCDR_20' ) end [2025-01-28 02:42:18] Production.INFO: ProcessCDR(1,14346000,1,1,2) [2025-01-28 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346000', 'tblTempUsageDetail_20' ) start [2025-01-28 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346000', 'tblTempUsageDetail_20' ) end [2025-01-28 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:42:21] Production.INFO: ==19576== Releasing lock... [2025-01-28 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:43:05 [end_date_ymd] => 2025-01-28 02:43:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:43:05' and `end` < '2025-01-28 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-28 02:43:17] Production.INFO: count ==419 [2025-01-28 02:43:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:43:05 - End Time 2025-01-28 02:43:05 [2025-01-28 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346005', 'tblTempUsageDetail_20' ) start [2025-01-28 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346005', 'tblTempUsageDetail_20' ) end [2025-01-28 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346005', 'tblTempVendorCDR_20' ) start [2025-01-28 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346005', 'tblTempVendorCDR_20' ) end [2025-01-28 02:43:17] Production.INFO: ProcessCDR(1,14346005,1,1,2) [2025-01-28 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346005', 'tblTempUsageDetail_20' ) start [2025-01-28 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346005', 'tblTempUsageDetail_20' ) end [2025-01-28 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:43:21] Production.INFO: ==19645== Releasing lock... [2025-01-28 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:44:05 [end_date_ymd] => 2025-01-28 02:44:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:44:05' and `end` < '2025-01-28 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-28 02:44:18] Production.INFO: count ==418 [2025-01-28 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:44:05 - End Time 2025-01-28 02:44:05 [2025-01-28 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346010', 'tblTempUsageDetail_20' ) start [2025-01-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346010', 'tblTempUsageDetail_20' ) end [2025-01-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346010', 'tblTempVendorCDR_20' ) start [2025-01-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346010', 'tblTempVendorCDR_20' ) end [2025-01-28 02:44:18] Production.INFO: ProcessCDR(1,14346010,1,1,2) [2025-01-28 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346010', 'tblTempUsageDetail_20' ) start [2025-01-28 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346010', 'tblTempUsageDetail_20' ) end [2025-01-28 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:44:21] Production.INFO: ==19720== Releasing lock... [2025-01-28 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:45:05 [end_date_ymd] => 2025-01-28 02:45:05 [RateCDR] => 1 ) [2025-01-28 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:45:05' and `end` < '2025-01-28 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:45:18] Production.INFO: count ==417 [2025-01-28 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:45:05 - End Time 2025-01-28 02:45:05 [2025-01-28 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346015', 'tblTempUsageDetail_20' ) start [2025-01-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346015', 'tblTempUsageDetail_20' ) end [2025-01-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346015', 'tblTempVendorCDR_20' ) start [2025-01-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346015', 'tblTempVendorCDR_20' ) end [2025-01-28 02:45:18] Production.INFO: ProcessCDR(1,14346015,1,1,2) [2025-01-28 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346015', 'tblTempUsageDetail_20' ) start [2025-01-28 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346015', 'tblTempUsageDetail_20' ) end [2025-01-28 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:45:21] Production.INFO: ==19791== Releasing lock... [2025-01-28 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:46:05 [end_date_ymd] => 2025-01-28 02:46:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:46:05' and `end` < '2025-01-28 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-28 02:46:18] Production.INFO: count ==417 [2025-01-28 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:46:05 - End Time 2025-01-28 02:46:05 [2025-01-28 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346020', 'tblTempUsageDetail_20' ) start [2025-01-28 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346020', 'tblTempUsageDetail_20' ) end [2025-01-28 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346020', 'tblTempVendorCDR_20' ) start [2025-01-28 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346020', 'tblTempVendorCDR_20' ) end [2025-01-28 02:46:18] Production.INFO: ProcessCDR(1,14346020,1,1,2) [2025-01-28 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346020', 'tblTempUsageDetail_20' ) start [2025-01-28 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346020', 'tblTempUsageDetail_20' ) end [2025-01-28 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:46:21] Production.INFO: ==19866== Releasing lock... [2025-01-28 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:47:04 [end_date_ymd] => 2025-01-28 02:47:04 [RateCDR] => 1 ) [2025-01-28 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-27 23:47:04' and `end` < '2025-01-28 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-28 02:47:17] Production.INFO: count ==417 [2025-01-28 02:47:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:47:04 - End Time 2025-01-28 02:47:04 [2025-01-28 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346025', 'tblTempUsageDetail_20' ) start [2025-01-28 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346025', 'tblTempUsageDetail_20' ) end [2025-01-28 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346025', 'tblTempVendorCDR_20' ) start [2025-01-28 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346025', 'tblTempVendorCDR_20' ) end [2025-01-28 02:47:17] Production.INFO: ProcessCDR(1,14346025,1,1,2) [2025-01-28 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346025', 'tblTempUsageDetail_20' ) start [2025-01-28 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346025', 'tblTempUsageDetail_20' ) end [2025-01-28 02:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:47:20] Production.INFO: ==19938== Releasing lock... [2025-01-28 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:47:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:48:05 [end_date_ymd] => 2025-01-28 02:48:05 [RateCDR] => 1 ) [2025-01-28 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:48:05' and `end` < '2025-01-28 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:48:17] Production.INFO: count ==417 [2025-01-28 02:48:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:48:05 - End Time 2025-01-28 02:48:05 [2025-01-28 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346030', 'tblTempUsageDetail_20' ) start [2025-01-28 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346030', 'tblTempUsageDetail_20' ) end [2025-01-28 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346030', 'tblTempVendorCDR_20' ) start [2025-01-28 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346030', 'tblTempVendorCDR_20' ) end [2025-01-28 02:48:17] Production.INFO: ProcessCDR(1,14346030,1,1,2) [2025-01-28 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346030', 'tblTempUsageDetail_20' ) start [2025-01-28 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346030', 'tblTempUsageDetail_20' ) end [2025-01-28 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:48:21] Production.INFO: ==20053== Releasing lock... [2025-01-28 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:49:05 [end_date_ymd] => 2025-01-28 02:49:05 [RateCDR] => 1 ) [2025-01-28 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:49:05' and `end` < '2025-01-28 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:49:18] Production.INFO: count ==416 [2025-01-28 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:49:05 - End Time 2025-01-28 02:49:05 [2025-01-28 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346035', 'tblTempUsageDetail_20' ) start [2025-01-28 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346035', 'tblTempUsageDetail_20' ) end [2025-01-28 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346035', 'tblTempVendorCDR_20' ) start [2025-01-28 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346035', 'tblTempVendorCDR_20' ) end [2025-01-28 02:49:18] Production.INFO: ProcessCDR(1,14346035,1,1,2) [2025-01-28 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346035', 'tblTempUsageDetail_20' ) start [2025-01-28 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346035', 'tblTempUsageDetail_20' ) end [2025-01-28 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:49:21] Production.INFO: ==20125== Releasing lock... [2025-01-28 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:50:06 [end_date_ymd] => 2025-01-28 02:50:06 [RateCDR] => 1 ) [2025-01-28 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:50:06' and `end` < '2025-01-28 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:50:18] Production.INFO: count ==419 [2025-01-28 02:50:19] Production.ERROR: pbx CDR StartTime 2025-01-27 23:50:06 - End Time 2025-01-28 02:50:06 [2025-01-28 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346041', 'tblTempUsageDetail_20' ) start [2025-01-28 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346041', 'tblTempUsageDetail_20' ) end [2025-01-28 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346041', 'tblTempVendorCDR_20' ) start [2025-01-28 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346041', 'tblTempVendorCDR_20' ) end [2025-01-28 02:50:19] Production.INFO: ProcessCDR(1,14346041,1,1,2) [2025-01-28 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346041', 'tblTempUsageDetail_20' ) start [2025-01-28 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346041', 'tblTempUsageDetail_20' ) end [2025-01-28 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:50:22] Production.INFO: ==20198== Releasing lock... [2025-01-28 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:51:05 [end_date_ymd] => 2025-01-28 02:51:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:51:05' and `end` < '2025-01-28 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-28 02:51:18] Production.INFO: count ==419 [2025-01-28 02:51:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:51:05 - End Time 2025-01-28 02:51:05 [2025-01-28 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346046', 'tblTempUsageDetail_20' ) start [2025-01-28 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346046', 'tblTempUsageDetail_20' ) end [2025-01-28 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346046', 'tblTempVendorCDR_20' ) start [2025-01-28 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346046', 'tblTempVendorCDR_20' ) end [2025-01-28 02:51:18] Production.INFO: ProcessCDR(1,14346046,1,1,2) [2025-01-28 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346046', 'tblTempUsageDetail_20' ) start [2025-01-28 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346046', 'tblTempUsageDetail_20' ) end [2025-01-28 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:51:21] Production.INFO: ==20276== Releasing lock... [2025-01-28 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:52:05 [end_date_ymd] => 2025-01-28 02:52:05 [RateCDR] => 1 ) [2025-01-28 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:52:05' and `end` < '2025-01-28 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:52:18] Production.INFO: count ==416 [2025-01-28 02:52:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:52:05 - End Time 2025-01-28 02:52:05 [2025-01-28 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346051', 'tblTempUsageDetail_20' ) start [2025-01-28 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346051', 'tblTempUsageDetail_20' ) end [2025-01-28 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346051', 'tblTempVendorCDR_20' ) start [2025-01-28 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346051', 'tblTempVendorCDR_20' ) end [2025-01-28 02:52:18] Production.INFO: ProcessCDR(1,14346051,1,1,2) [2025-01-28 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346051', 'tblTempUsageDetail_20' ) start [2025-01-28 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346051', 'tblTempUsageDetail_20' ) end [2025-01-28 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:52:21] Production.INFO: ==20351== Releasing lock... [2025-01-28 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:52:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:53:05 [end_date_ymd] => 2025-01-28 02:53:05 [RateCDR] => 1 ) [2025-01-28 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:53:05' and `end` < '2025-01-28 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:53:18] Production.INFO: count ==414 [2025-01-28 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:53:05 - End Time 2025-01-28 02:53:05 [2025-01-28 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346056', 'tblTempUsageDetail_20' ) start [2025-01-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346056', 'tblTempUsageDetail_20' ) end [2025-01-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346056', 'tblTempVendorCDR_20' ) start [2025-01-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346056', 'tblTempVendorCDR_20' ) end [2025-01-28 02:53:18] Production.INFO: ProcessCDR(1,14346056,1,1,2) [2025-01-28 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346056', 'tblTempUsageDetail_20' ) start [2025-01-28 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346056', 'tblTempUsageDetail_20' ) end [2025-01-28 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:53:21] Production.INFO: ==20421== Releasing lock... [2025-01-28 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:53:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:54:05 [end_date_ymd] => 2025-01-28 02:54:05 [RateCDR] => 1 ) [2025-01-28 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:54:05' and `end` < '2025-01-28 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:54:17] Production.INFO: count ==411 [2025-01-28 02:54:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:54:05 - End Time 2025-01-28 02:54:05 [2025-01-28 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346061', 'tblTempUsageDetail_20' ) start [2025-01-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346061', 'tblTempUsageDetail_20' ) end [2025-01-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346061', 'tblTempVendorCDR_20' ) start [2025-01-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346061', 'tblTempVendorCDR_20' ) end [2025-01-28 02:54:17] Production.INFO: ProcessCDR(1,14346061,1,1,2) [2025-01-28 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346061', 'tblTempUsageDetail_20' ) start [2025-01-28 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346061', 'tblTempUsageDetail_20' ) end [2025-01-28 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:54:20] Production.INFO: ==20493== Releasing lock... [2025-01-28 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:54:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:55:06 [end_date_ymd] => 2025-01-28 02:55:06 [RateCDR] => 1 ) [2025-01-28 02:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:55:06' and `end` < '2025-01-28 02:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:55:18] Production.INFO: count ==410 [2025-01-28 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:55:06 - End Time 2025-01-28 02:55:06 [2025-01-28 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346066', 'tblTempUsageDetail_20' ) start [2025-01-28 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346066', 'tblTempUsageDetail_20' ) end [2025-01-28 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346066', 'tblTempVendorCDR_20' ) start [2025-01-28 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346066', 'tblTempVendorCDR_20' ) end [2025-01-28 02:55:18] Production.INFO: ProcessCDR(1,14346066,1,1,2) [2025-01-28 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346066', 'tblTempUsageDetail_20' ) start [2025-01-28 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346066', 'tblTempUsageDetail_20' ) end [2025-01-28 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:55:21] Production.INFO: ==20563== Releasing lock... [2025-01-28 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:56:05 [end_date_ymd] => 2025-01-28 02:56:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:56:05' and `end` < '2025-01-28 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-28 02:56:17] Production.INFO: count ==409 [2025-01-28 02:56:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:56:05 - End Time 2025-01-28 02:56:05 [2025-01-28 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346071', 'tblTempUsageDetail_20' ) start [2025-01-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346071', 'tblTempUsageDetail_20' ) end [2025-01-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346071', 'tblTempVendorCDR_20' ) start [2025-01-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346071', 'tblTempVendorCDR_20' ) end [2025-01-28 02:56:17] Production.INFO: ProcessCDR(1,14346071,1,1,2) [2025-01-28 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346071', 'tblTempUsageDetail_20' ) start [2025-01-28 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346071', 'tblTempUsageDetail_20' ) end [2025-01-28 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:56:21] Production.INFO: ==20634== Releasing lock... [2025-01-28 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:57:05 [end_date_ymd] => 2025-01-28 02:57:05 [RateCDR] => 1 ) [2025-01-28 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-27 23:57:05' and `end` < '2025-01-28 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 02:57:17] Production.INFO: count ==406 [2025-01-28 02:57:17] Production.ERROR: pbx CDR StartTime 2025-01-27 23:57:05 - End Time 2025-01-28 02:57:05 [2025-01-28 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346076', 'tblTempUsageDetail_20' ) start [2025-01-28 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346076', 'tblTempUsageDetail_20' ) end [2025-01-28 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346076', 'tblTempVendorCDR_20' ) start [2025-01-28 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346076', 'tblTempVendorCDR_20' ) end [2025-01-28 02:57:17] Production.INFO: ProcessCDR(1,14346076,1,1,2) [2025-01-28 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346076', 'tblTempUsageDetail_20' ) start [2025-01-28 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346076', 'tblTempUsageDetail_20' ) end [2025-01-28 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:57:21] Production.INFO: ==20708== Releasing lock... [2025-01-28 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:58:05 [end_date_ymd] => 2025-01-28 02:58:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:58:05' and `end` < '2025-01-28 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-28 02:58:19] Production.INFO: count ==402 [2025-01-28 02:58:19] Production.ERROR: pbx CDR StartTime 2025-01-27 23:58:05 - End Time 2025-01-28 02:58:05 [2025-01-28 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346081', 'tblTempUsageDetail_20' ) start [2025-01-28 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346081', 'tblTempUsageDetail_20' ) end [2025-01-28 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346081', 'tblTempVendorCDR_20' ) start [2025-01-28 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346081', 'tblTempVendorCDR_20' ) end [2025-01-28 02:58:19] Production.INFO: ProcessCDR(1,14346081,1,1,2) [2025-01-28 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346081', 'tblTempUsageDetail_20' ) start [2025-01-28 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346081', 'tblTempUsageDetail_20' ) end [2025-01-28 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:58:22] Production.INFO: ==20784== Releasing lock... [2025-01-28 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-27 23:59:05 [end_date_ymd] => 2025-01-28 02:59:05 [RateCDR] => 1 ) [2025-01-28 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-27 23:59:05' and `end` < '2025-01-28 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-28 02:59:18] Production.INFO: count ==401 [2025-01-28 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-27 23:59:05 - End Time 2025-01-28 02:59:05 [2025-01-28 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346086', 'tblTempUsageDetail_20' ) start [2025-01-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346086', 'tblTempUsageDetail_20' ) end [2025-01-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346086', 'tblTempVendorCDR_20' ) start [2025-01-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346086', 'tblTempVendorCDR_20' ) end [2025-01-28 02:59:18] Production.INFO: ProcessCDR(1,14346086,1,1,2) [2025-01-28 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346086', 'tblTempUsageDetail_20' ) start [2025-01-28 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346086', 'tblTempUsageDetail_20' ) end [2025-01-28 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 02:59:21] Production.INFO: ==20852== Releasing lock... [2025-01-28 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 02:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:00:07 [end_date_ymd] => 2025-01-28 03:00:07 [RateCDR] => 1 ) [2025-01-28 03: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-28 00:00:07' and `end` < '2025-01-28 03: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-28 03:00:19] Production.INFO: count ==406 [2025-01-28 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:00:07 - End Time 2025-01-28 03:00:07 [2025-01-28 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346092', 'tblTempUsageDetail_20' ) start [2025-01-28 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346092', 'tblTempUsageDetail_20' ) end [2025-01-28 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346092', 'tblTempVendorCDR_20' ) start [2025-01-28 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346092', 'tblTempVendorCDR_20' ) end [2025-01-28 03:00:19] Production.INFO: ProcessCDR(1,14346092,1,1,2) [2025-01-28 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346092', 'tblTempUsageDetail_20' ) start [2025-01-28 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346092', 'tblTempUsageDetail_20' ) end [2025-01-28 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:00:22] Production.INFO: ==20935== Releasing lock... [2025-01-28 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:01:05 [end_date_ymd] => 2025-01-28 03:01:05 [RateCDR] => 1 ) [2025-01-28 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:01:05' and `end` < '2025-01-28 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:01:18] Production.INFO: count ==406 [2025-01-28 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:01:05 - End Time 2025-01-28 03:01:05 [2025-01-28 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346097', 'tblTempUsageDetail_20' ) start [2025-01-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346097', 'tblTempUsageDetail_20' ) end [2025-01-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346097', 'tblTempVendorCDR_20' ) start [2025-01-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346097', 'tblTempVendorCDR_20' ) end [2025-01-28 03:01:18] Production.INFO: ProcessCDR(1,14346097,1,1,2) [2025-01-28 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346097', 'tblTempUsageDetail_20' ) start [2025-01-28 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346097', 'tblTempUsageDetail_20' ) end [2025-01-28 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:01:21] Production.INFO: ==21020== Releasing lock... [2025-01-28 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:02:05 [end_date_ymd] => 2025-01-28 03:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:02:05' and `end` < '2025-01-28 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-28 03:02:18] Production.INFO: count ==406 [2025-01-28 03:02:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:02:05 - End Time 2025-01-28 03:02:05 [2025-01-28 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346102', 'tblTempUsageDetail_20' ) start [2025-01-28 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346102', 'tblTempUsageDetail_20' ) end [2025-01-28 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346102', 'tblTempVendorCDR_20' ) start [2025-01-28 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346102', 'tblTempVendorCDR_20' ) end [2025-01-28 03:02:18] Production.INFO: ProcessCDR(1,14346102,1,1,2) [2025-01-28 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346102', 'tblTempUsageDetail_20' ) start [2025-01-28 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346102', 'tblTempUsageDetail_20' ) end [2025-01-28 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:02:21] Production.INFO: ==21171== Releasing lock... [2025-01-28 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:03:05 [end_date_ymd] => 2025-01-28 03:03:05 [RateCDR] => 1 ) [2025-01-28 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:03:05' and `end` < '2025-01-28 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:03:18] Production.INFO: count ==406 [2025-01-28 03:03:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:03:05 - End Time 2025-01-28 03:03:05 [2025-01-28 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346107', 'tblTempUsageDetail_20' ) start [2025-01-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346107', 'tblTempUsageDetail_20' ) end [2025-01-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346107', 'tblTempVendorCDR_20' ) start [2025-01-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346107', 'tblTempVendorCDR_20' ) end [2025-01-28 03:03:18] Production.INFO: ProcessCDR(1,14346107,1,1,2) [2025-01-28 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346107', 'tblTempUsageDetail_20' ) start [2025-01-28 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346107', 'tblTempUsageDetail_20' ) end [2025-01-28 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:03:21] Production.INFO: ==21281== Releasing lock... [2025-01-28 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:04:06 [end_date_ymd] => 2025-01-28 03:04:06 [RateCDR] => 1 ) [2025-01-28 03: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-28 00:04:06' and `end` < '2025-01-28 03: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-28 03:04:18] Production.INFO: count ==406 [2025-01-28 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:04:06 - End Time 2025-01-28 03:04:06 [2025-01-28 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346112', 'tblTempUsageDetail_20' ) start [2025-01-28 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346112', 'tblTempUsageDetail_20' ) end [2025-01-28 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346112', 'tblTempVendorCDR_20' ) start [2025-01-28 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346112', 'tblTempVendorCDR_20' ) end [2025-01-28 03:04:18] Production.INFO: ProcessCDR(1,14346112,1,1,2) [2025-01-28 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346112', 'tblTempUsageDetail_20' ) start [2025-01-28 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346112', 'tblTempUsageDetail_20' ) end [2025-01-28 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:04:22] Production.INFO: ==21352== Releasing lock... [2025-01-28 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:04:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:05:05 [end_date_ymd] => 2025-01-28 03:05:05 [RateCDR] => 1 ) [2025-01-28 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:05:05' and `end` < '2025-01-28 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:05:17] Production.INFO: count ==406 [2025-01-28 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-28 00:05:05 - End Time 2025-01-28 03:05:05 [2025-01-28 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346117', 'tblTempUsageDetail_20' ) start [2025-01-28 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346117', 'tblTempUsageDetail_20' ) end [2025-01-28 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346117', 'tblTempVendorCDR_20' ) start [2025-01-28 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346117', 'tblTempVendorCDR_20' ) end [2025-01-28 03:05:17] Production.INFO: ProcessCDR(1,14346117,1,1,2) [2025-01-28 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346117', 'tblTempUsageDetail_20' ) start [2025-01-28 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346117', 'tblTempUsageDetail_20' ) end [2025-01-28 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:05:21] Production.INFO: ==21423== Releasing lock... [2025-01-28 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:06:06 [end_date_ymd] => 2025-01-28 03:06:06 [RateCDR] => 1 ) [2025-01-28 03: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-28 00:06:06' and `end` < '2025-01-28 03: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-28 03:06:18] Production.INFO: count ==405 [2025-01-28 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:06:06 - End Time 2025-01-28 03:06:06 [2025-01-28 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346122', 'tblTempUsageDetail_20' ) start [2025-01-28 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346122', 'tblTempUsageDetail_20' ) end [2025-01-28 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346122', 'tblTempVendorCDR_20' ) start [2025-01-28 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346122', 'tblTempVendorCDR_20' ) end [2025-01-28 03:06:18] Production.INFO: ProcessCDR(1,14346122,1,1,2) [2025-01-28 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346122', 'tblTempUsageDetail_20' ) start [2025-01-28 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346122', 'tblTempUsageDetail_20' ) end [2025-01-28 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:06:22] Production.INFO: ==21573== Releasing lock... [2025-01-28 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:07:05 [end_date_ymd] => 2025-01-28 03:07:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:07:05' and `end` < '2025-01-28 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-28 03:07:18] Production.INFO: count ==404 [2025-01-28 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:07:05 - End Time 2025-01-28 03:07:05 [2025-01-28 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346127', 'tblTempUsageDetail_20' ) start [2025-01-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346127', 'tblTempUsageDetail_20' ) end [2025-01-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346127', 'tblTempVendorCDR_20' ) start [2025-01-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346127', 'tblTempVendorCDR_20' ) end [2025-01-28 03:07:18] Production.INFO: ProcessCDR(1,14346127,1,1,2) [2025-01-28 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346127', 'tblTempUsageDetail_20' ) start [2025-01-28 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346127', 'tblTempUsageDetail_20' ) end [2025-01-28 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:07:21] Production.INFO: ==21642== Releasing lock... [2025-01-28 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:08:06 [end_date_ymd] => 2025-01-28 03:08:06 [RateCDR] => 1 ) [2025-01-28 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:08:06' and `end` < '2025-01-28 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:08:18] Production.INFO: count ==404 [2025-01-28 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:08:06 - End Time 2025-01-28 03:08:06 [2025-01-28 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346132', 'tblTempUsageDetail_20' ) start [2025-01-28 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346132', 'tblTempUsageDetail_20' ) end [2025-01-28 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346132', 'tblTempVendorCDR_20' ) start [2025-01-28 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346132', 'tblTempVendorCDR_20' ) end [2025-01-28 03:08:19] Production.INFO: ProcessCDR(1,14346132,1,1,2) [2025-01-28 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346132', 'tblTempUsageDetail_20' ) start [2025-01-28 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346132', 'tblTempUsageDetail_20' ) end [2025-01-28 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:08:22] Production.INFO: ==21712== Releasing lock... [2025-01-28 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:09:05 [end_date_ymd] => 2025-01-28 03:09:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:09:05' and `end` < '2025-01-28 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-28 03:09:17] Production.INFO: count ==403 [2025-01-28 03:09:17] Production.ERROR: pbx CDR StartTime 2025-01-28 00:09:05 - End Time 2025-01-28 03:09:05 [2025-01-28 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346137', 'tblTempUsageDetail_20' ) start [2025-01-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346137', 'tblTempUsageDetail_20' ) end [2025-01-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346137', 'tblTempVendorCDR_20' ) start [2025-01-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346137', 'tblTempVendorCDR_20' ) end [2025-01-28 03:09:17] Production.INFO: ProcessCDR(1,14346137,1,1,2) [2025-01-28 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346137', 'tblTempUsageDetail_20' ) start [2025-01-28 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346137', 'tblTempUsageDetail_20' ) end [2025-01-28 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:09:20] Production.INFO: ==21860== Releasing lock... [2025-01-28 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:09:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:10:06 [end_date_ymd] => 2025-01-28 03:10:06 [RateCDR] => 1 ) [2025-01-28 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:10:06' and `end` < '2025-01-28 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:10:18] Production.INFO: count ==391 [2025-01-28 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:10:06 - End Time 2025-01-28 03:10:06 [2025-01-28 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346142', 'tblTempUsageDetail_20' ) start [2025-01-28 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346142', 'tblTempUsageDetail_20' ) end [2025-01-28 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346142', 'tblTempVendorCDR_20' ) start [2025-01-28 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346142', 'tblTempVendorCDR_20' ) end [2025-01-28 03:10:18] Production.INFO: ProcessCDR(1,14346142,1,1,2) [2025-01-28 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346142', 'tblTempUsageDetail_20' ) start [2025-01-28 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346142', 'tblTempUsageDetail_20' ) end [2025-01-28 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:10:22] Production.INFO: ==21939== Releasing lock... [2025-01-28 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:11:05 [end_date_ymd] => 2025-01-28 03:11:05 [RateCDR] => 1 ) [2025-01-28 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:11:05' and `end` < '2025-01-28 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:11:18] Production.INFO: count ==379 [2025-01-28 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:11:05 - End Time 2025-01-28 03:11:05 [2025-01-28 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346148', 'tblTempUsageDetail_20' ) start [2025-01-28 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346148', 'tblTempUsageDetail_20' ) end [2025-01-28 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346148', 'tblTempVendorCDR_20' ) start [2025-01-28 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346148', 'tblTempVendorCDR_20' ) end [2025-01-28 03:11:18] Production.INFO: ProcessCDR(1,14346148,1,1,2) [2025-01-28 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346148', 'tblTempUsageDetail_20' ) start [2025-01-28 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346148', 'tblTempUsageDetail_20' ) end [2025-01-28 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:11:21] Production.INFO: ==22013== Releasing lock... [2025-01-28 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:11:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:12:05 [end_date_ymd] => 2025-01-28 03:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:12:05' and `end` < '2025-01-28 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-28 03:12:18] Production.INFO: count ==378 [2025-01-28 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:12:05 - End Time 2025-01-28 03:12:05 [2025-01-28 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346153', 'tblTempUsageDetail_20' ) start [2025-01-28 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346153', 'tblTempUsageDetail_20' ) end [2025-01-28 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346153', 'tblTempVendorCDR_20' ) start [2025-01-28 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346153', 'tblTempVendorCDR_20' ) end [2025-01-28 03:12:18] Production.INFO: ProcessCDR(1,14346153,1,1,2) [2025-01-28 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346153', 'tblTempUsageDetail_20' ) start [2025-01-28 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346153', 'tblTempUsageDetail_20' ) end [2025-01-28 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:12:21] Production.INFO: ==22082== Releasing lock... [2025-01-28 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:12:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:13:05 [end_date_ymd] => 2025-01-28 03:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:13:05' and `end` < '2025-01-28 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-28 03:13:17] Production.INFO: count ==375 [2025-01-28 03:13:17] Production.ERROR: pbx CDR StartTime 2025-01-28 00:13:05 - End Time 2025-01-28 03:13:05 [2025-01-28 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346158', 'tblTempUsageDetail_20' ) start [2025-01-28 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346158', 'tblTempUsageDetail_20' ) end [2025-01-28 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346158', 'tblTempVendorCDR_20' ) start [2025-01-28 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346158', 'tblTempVendorCDR_20' ) end [2025-01-28 03:13:17] Production.INFO: ProcessCDR(1,14346158,1,1,2) [2025-01-28 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346158', 'tblTempUsageDetail_20' ) start [2025-01-28 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346158', 'tblTempUsageDetail_20' ) end [2025-01-28 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:13:21] Production.INFO: ==22231== Releasing lock... [2025-01-28 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:13:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:14:05 [end_date_ymd] => 2025-01-28 03:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:14:05' and `end` < '2025-01-28 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-28 03:14:18] Production.INFO: count ==375 [2025-01-28 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:14:05 - End Time 2025-01-28 03:14:05 [2025-01-28 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346163', 'tblTempUsageDetail_20' ) start [2025-01-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346163', 'tblTempUsageDetail_20' ) end [2025-01-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346163', 'tblTempVendorCDR_20' ) start [2025-01-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346163', 'tblTempVendorCDR_20' ) end [2025-01-28 03:14:18] Production.INFO: ProcessCDR(1,14346163,1,1,2) [2025-01-28 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346163', 'tblTempUsageDetail_20' ) start [2025-01-28 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346163', 'tblTempUsageDetail_20' ) end [2025-01-28 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:14:21] Production.INFO: ==22299== Releasing lock... [2025-01-28 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:14:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:15:05 [end_date_ymd] => 2025-01-28 03:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:15:05' and `end` < '2025-01-28 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-28 03:15:18] Production.INFO: count ==376 [2025-01-28 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:15:05 - End Time 2025-01-28 03:15:05 [2025-01-28 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346168', 'tblTempUsageDetail_20' ) start [2025-01-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346168', 'tblTempUsageDetail_20' ) end [2025-01-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346168', 'tblTempVendorCDR_20' ) start [2025-01-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346168', 'tblTempVendorCDR_20' ) end [2025-01-28 03:15:18] Production.INFO: ProcessCDR(1,14346168,1,1,2) [2025-01-28 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346168', 'tblTempUsageDetail_20' ) start [2025-01-28 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346168', 'tblTempUsageDetail_20' ) end [2025-01-28 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:15:21] Production.INFO: ==22372== Releasing lock... [2025-01-28 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:15:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:16:05 [end_date_ymd] => 2025-01-28 03:16:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:16:05' and `end` < '2025-01-28 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-28 03:16:18] Production.INFO: count ==372 [2025-01-28 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:16:05 - End Time 2025-01-28 03:16:05 [2025-01-28 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346173', 'tblTempUsageDetail_20' ) start [2025-01-28 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346173', 'tblTempUsageDetail_20' ) end [2025-01-28 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346173', 'tblTempVendorCDR_20' ) start [2025-01-28 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346173', 'tblTempVendorCDR_20' ) end [2025-01-28 03:16:18] Production.INFO: ProcessCDR(1,14346173,1,1,2) [2025-01-28 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346173', 'tblTempUsageDetail_20' ) start [2025-01-28 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346173', 'tblTempUsageDetail_20' ) end [2025-01-28 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:16:21] Production.INFO: ==22441== Releasing lock... [2025-01-28 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:17:06 [end_date_ymd] => 2025-01-28 03:17:06 [RateCDR] => 1 ) [2025-01-28 03: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-28 00:17:06' and `end` < '2025-01-28 03: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-28 03:17:18] Production.INFO: count ==372 [2025-01-28 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:17:06 - End Time 2025-01-28 03:17:06 [2025-01-28 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346178', 'tblTempUsageDetail_20' ) start [2025-01-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346178', 'tblTempUsageDetail_20' ) end [2025-01-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346178', 'tblTempVendorCDR_20' ) start [2025-01-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346178', 'tblTempVendorCDR_20' ) end [2025-01-28 03:17:18] Production.INFO: ProcessCDR(1,14346178,1,1,2) [2025-01-28 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346178', 'tblTempUsageDetail_20' ) start [2025-01-28 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346178', 'tblTempUsageDetail_20' ) end [2025-01-28 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:17:21] Production.INFO: ==22587== Releasing lock... [2025-01-28 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:18:05 [end_date_ymd] => 2025-01-28 03:18:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:18:05' and `end` < '2025-01-28 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-28 03:18:18] Production.INFO: count ==372 [2025-01-28 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:18:05 - End Time 2025-01-28 03:18:05 [2025-01-28 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346183', 'tblTempUsageDetail_20' ) start [2025-01-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346183', 'tblTempUsageDetail_20' ) end [2025-01-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346183', 'tblTempVendorCDR_20' ) start [2025-01-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346183', 'tblTempVendorCDR_20' ) end [2025-01-28 03:18:18] Production.INFO: ProcessCDR(1,14346183,1,1,2) [2025-01-28 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346183', 'tblTempUsageDetail_20' ) start [2025-01-28 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346183', 'tblTempUsageDetail_20' ) end [2025-01-28 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:18:21] Production.INFO: ==22656== Releasing lock... [2025-01-28 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:19:05 [end_date_ymd] => 2025-01-28 03:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:19:05' and `end` < '2025-01-28 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:19:17] Production.INFO: count ==372 [2025-01-28 03:19:17] Production.ERROR: pbx CDR StartTime 2025-01-28 00:19:05 - End Time 2025-01-28 03:19:05 [2025-01-28 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346188', 'tblTempUsageDetail_20' ) start [2025-01-28 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346188', 'tblTempUsageDetail_20' ) end [2025-01-28 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346188', 'tblTempVendorCDR_20' ) start [2025-01-28 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346188', 'tblTempVendorCDR_20' ) end [2025-01-28 03:19:17] Production.INFO: ProcessCDR(1,14346188,1,1,2) [2025-01-28 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346188', 'tblTempUsageDetail_20' ) start [2025-01-28 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346188', 'tblTempUsageDetail_20' ) end [2025-01-28 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:19:20] Production.INFO: ==22731== Releasing lock... [2025-01-28 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:19:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:20:06 [end_date_ymd] => 2025-01-28 03:20:06 [RateCDR] => 1 ) [2025-01-28 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-28 00:20:06' and `end` < '2025-01-28 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-28 03:20:19] Production.INFO: count ==362 [2025-01-28 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:20:06 - End Time 2025-01-28 03:20:06 [2025-01-28 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346194', 'tblTempUsageDetail_20' ) start [2025-01-28 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346194', 'tblTempUsageDetail_20' ) end [2025-01-28 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346194', 'tblTempVendorCDR_20' ) start [2025-01-28 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346194', 'tblTempVendorCDR_20' ) end [2025-01-28 03:20:19] Production.INFO: ProcessCDR(1,14346194,1,1,2) [2025-01-28 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346194', 'tblTempUsageDetail_20' ) start [2025-01-28 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346194', 'tblTempUsageDetail_20' ) end [2025-01-28 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:20:22] Production.INFO: ==22806== Releasing lock... [2025-01-28 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-28 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:21:05 [end_date_ymd] => 2025-01-28 03:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:21:05' and `end` < '2025-01-28 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-28 03:21:20] Production.INFO: count ==330 [2025-01-28 03:21:20] Production.ERROR: pbx CDR StartTime 2025-01-28 00:21:05 - End Time 2025-01-28 03:21:05 [2025-01-28 03:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346199', 'tblTempUsageDetail_20' ) start [2025-01-28 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346199', 'tblTempUsageDetail_20' ) end [2025-01-28 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346199', 'tblTempVendorCDR_20' ) start [2025-01-28 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346199', 'tblTempVendorCDR_20' ) end [2025-01-28 03:21:20] Production.INFO: ProcessCDR(1,14346199,1,1,2) [2025-01-28 03:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346199', 'tblTempUsageDetail_20' ) start [2025-01-28 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346199', 'tblTempUsageDetail_20' ) end [2025-01-28 03:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:21:23] Production.INFO: ==22920== Releasing lock... [2025-01-28 03:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:21:23] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:22:05 [end_date_ymd] => 2025-01-28 03:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:22:05' and `end` < '2025-01-28 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-28 03:22:18] Production.INFO: count ==330 [2025-01-28 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:22:05 - End Time 2025-01-28 03:22:05 [2025-01-28 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346204', 'tblTempUsageDetail_20' ) start [2025-01-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346204', 'tblTempUsageDetail_20' ) end [2025-01-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346204', 'tblTempVendorCDR_20' ) start [2025-01-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346204', 'tblTempVendorCDR_20' ) end [2025-01-28 03:22:18] Production.INFO: ProcessCDR(1,14346204,1,1,2) [2025-01-28 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346204', 'tblTempUsageDetail_20' ) start [2025-01-28 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346204', 'tblTempUsageDetail_20' ) end [2025-01-28 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:22:21] Production.INFO: ==22990== Releasing lock... [2025-01-28 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:22:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:23:05 [end_date_ymd] => 2025-01-28 03:23:05 [RateCDR] => 1 ) [2025-01-28 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:23:05' and `end` < '2025-01-28 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:23:18] Production.INFO: count ==329 [2025-01-28 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:23:05 - End Time 2025-01-28 03:23:05 [2025-01-28 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346209', 'tblTempUsageDetail_20' ) start [2025-01-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346209', 'tblTempUsageDetail_20' ) end [2025-01-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346209', 'tblTempVendorCDR_20' ) start [2025-01-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346209', 'tblTempVendorCDR_20' ) end [2025-01-28 03:23:18] Production.INFO: ProcessCDR(1,14346209,1,1,2) [2025-01-28 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346209', 'tblTempUsageDetail_20' ) start [2025-01-28 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346209', 'tblTempUsageDetail_20' ) end [2025-01-28 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:23:21] Production.INFO: ==23060== Releasing lock... [2025-01-28 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:23:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:24:05 [end_date_ymd] => 2025-01-28 03:24:05 [RateCDR] => 1 ) [2025-01-28 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:24:05' and `end` < '2025-01-28 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:24:18] Production.INFO: count ==328 [2025-01-28 03:24:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:24:05 - End Time 2025-01-28 03:24:05 [2025-01-28 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346214', 'tblTempUsageDetail_20' ) start [2025-01-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346214', 'tblTempUsageDetail_20' ) end [2025-01-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346214', 'tblTempVendorCDR_20' ) start [2025-01-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346214', 'tblTempVendorCDR_20' ) end [2025-01-28 03:24:18] Production.INFO: ProcessCDR(1,14346214,1,1,2) [2025-01-28 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346214', 'tblTempUsageDetail_20' ) start [2025-01-28 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346214', 'tblTempUsageDetail_20' ) end [2025-01-28 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:24:21] Production.INFO: ==23128== Releasing lock... [2025-01-28 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:24:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:25:05 [end_date_ymd] => 2025-01-28 03:25:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:25:05' and `end` < '2025-01-28 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-28 03:25:18] Production.INFO: count ==328 [2025-01-28 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:25:05 - End Time 2025-01-28 03:25:05 [2025-01-28 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346219', 'tblTempUsageDetail_20' ) start [2025-01-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346219', 'tblTempUsageDetail_20' ) end [2025-01-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346219', 'tblTempVendorCDR_20' ) start [2025-01-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346219', 'tblTempVendorCDR_20' ) end [2025-01-28 03:25:18] Production.INFO: ProcessCDR(1,14346219,1,1,2) [2025-01-28 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346219', 'tblTempUsageDetail_20' ) start [2025-01-28 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346219', 'tblTempUsageDetail_20' ) end [2025-01-28 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:25:21] Production.INFO: ==23200== Releasing lock... [2025-01-28 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:25:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:26:05 [end_date_ymd] => 2025-01-28 03:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:26:05' and `end` < '2025-01-28 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-28 03:26:17] Production.INFO: count ==328 [2025-01-28 03:26:17] Production.ERROR: pbx CDR StartTime 2025-01-28 00:26:05 - End Time 2025-01-28 03:26:05 [2025-01-28 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346224', 'tblTempUsageDetail_20' ) start [2025-01-28 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346224', 'tblTempUsageDetail_20' ) end [2025-01-28 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346224', 'tblTempVendorCDR_20' ) start [2025-01-28 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346224', 'tblTempVendorCDR_20' ) end [2025-01-28 03:26:17] Production.INFO: ProcessCDR(1,14346224,1,1,2) [2025-01-28 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346224', 'tblTempUsageDetail_20' ) start [2025-01-28 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346224', 'tblTempUsageDetail_20' ) end [2025-01-28 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:26:21] Production.INFO: ==23272== Releasing lock... [2025-01-28 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:26:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:27:05 [end_date_ymd] => 2025-01-28 03:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:27:05' and `end` < '2025-01-28 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-28 03:27:17] Production.INFO: count ==328 [2025-01-28 03:27:17] Production.ERROR: pbx CDR StartTime 2025-01-28 00:27:05 - End Time 2025-01-28 03:27:05 [2025-01-28 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346229', 'tblTempUsageDetail_20' ) start [2025-01-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346229', 'tblTempUsageDetail_20' ) end [2025-01-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346229', 'tblTempVendorCDR_20' ) start [2025-01-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346229', 'tblTempVendorCDR_20' ) end [2025-01-28 03:27:17] Production.INFO: ProcessCDR(1,14346229,1,1,2) [2025-01-28 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346229', 'tblTempUsageDetail_20' ) start [2025-01-28 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346229', 'tblTempUsageDetail_20' ) end [2025-01-28 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:27:21] Production.INFO: ==23340== Releasing lock... [2025-01-28 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:27:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:28:05 [end_date_ymd] => 2025-01-28 03:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:28:05' and `end` < '2025-01-28 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-28 03:28:17] Production.INFO: count ==328 [2025-01-28 03:28:17] Production.ERROR: pbx CDR StartTime 2025-01-28 00:28:05 - End Time 2025-01-28 03:28:05 [2025-01-28 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346234', 'tblTempUsageDetail_20' ) start [2025-01-28 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346234', 'tblTempUsageDetail_20' ) end [2025-01-28 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346234', 'tblTempVendorCDR_20' ) start [2025-01-28 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346234', 'tblTempVendorCDR_20' ) end [2025-01-28 03:28:17] Production.INFO: ProcessCDR(1,14346234,1,1,2) [2025-01-28 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346234', 'tblTempUsageDetail_20' ) start [2025-01-28 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346234', 'tblTempUsageDetail_20' ) end [2025-01-28 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:28:21] Production.INFO: ==23411== Releasing lock... [2025-01-28 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:28:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:29:05 [end_date_ymd] => 2025-01-28 03:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:29:05' and `end` < '2025-01-28 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-28 03:29:18] Production.INFO: count ==328 [2025-01-28 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:29:05 - End Time 2025-01-28 03:29:05 [2025-01-28 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346239', 'tblTempUsageDetail_20' ) start [2025-01-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346239', 'tblTempUsageDetail_20' ) end [2025-01-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346239', 'tblTempVendorCDR_20' ) start [2025-01-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346239', 'tblTempVendorCDR_20' ) end [2025-01-28 03:29:18] Production.INFO: ProcessCDR(1,14346239,1,1,2) [2025-01-28 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346239', 'tblTempUsageDetail_20' ) start [2025-01-28 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346239', 'tblTempUsageDetail_20' ) end [2025-01-28 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:29:21] Production.INFO: ==23480== Releasing lock... [2025-01-28 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:29:21] Production.INFO: 30 MB #Memory Used# [2025-01-28 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:30:06 [end_date_ymd] => 2025-01-28 03:30:06 [RateCDR] => 1 ) [2025-01-28 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-28 00:30:06' and `end` < '2025-01-28 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-28 03:30:18] Production.INFO: count ==316 [2025-01-28 03:30:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:30:06 - End Time 2025-01-28 03:30:06 [2025-01-28 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346245', 'tblTempUsageDetail_20' ) start [2025-01-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346245', 'tblTempUsageDetail_20' ) end [2025-01-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346245', 'tblTempVendorCDR_20' ) start [2025-01-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346245', 'tblTempVendorCDR_20' ) end [2025-01-28 03:30:18] Production.INFO: ProcessCDR(1,14346245,1,1,2) [2025-01-28 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346245', 'tblTempUsageDetail_20' ) start [2025-01-28 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346245', 'tblTempUsageDetail_20' ) end [2025-01-28 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:30:22] Production.INFO: ==23551== Releasing lock... [2025-01-28 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:31:05 [end_date_ymd] => 2025-01-28 03:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:31:05' and `end` < '2025-01-28 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-28 03:31:18] Production.INFO: count ==314 [2025-01-28 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:31:05 - End Time 2025-01-28 03:31:05 [2025-01-28 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346250', 'tblTempUsageDetail_20' ) start [2025-01-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346250', 'tblTempUsageDetail_20' ) end [2025-01-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346250', 'tblTempVendorCDR_20' ) start [2025-01-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346250', 'tblTempVendorCDR_20' ) end [2025-01-28 03:31:18] Production.INFO: ProcessCDR(1,14346250,1,1,2) [2025-01-28 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346250', 'tblTempUsageDetail_20' ) start [2025-01-28 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346250', 'tblTempUsageDetail_20' ) end [2025-01-28 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:31:22] Production.INFO: ==23623== Releasing lock... [2025-01-28 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:31:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:32:06 [end_date_ymd] => 2025-01-28 03:32:06 [RateCDR] => 1 ) [2025-01-28 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:32:06' and `end` < '2025-01-28 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:32:19] Production.INFO: count ==314 [2025-01-28 03:32:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:32:06 - End Time 2025-01-28 03:32:06 [2025-01-28 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346255', 'tblTempUsageDetail_20' ) start [2025-01-28 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346255', 'tblTempUsageDetail_20' ) end [2025-01-28 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346255', 'tblTempVendorCDR_20' ) start [2025-01-28 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346255', 'tblTempVendorCDR_20' ) end [2025-01-28 03:32:19] Production.INFO: ProcessCDR(1,14346255,1,1,2) [2025-01-28 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346255', 'tblTempUsageDetail_20' ) start [2025-01-28 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346255', 'tblTempUsageDetail_20' ) end [2025-01-28 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:32:22] Production.INFO: ==23694== Releasing lock... [2025-01-28 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:32:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:33:06 [end_date_ymd] => 2025-01-28 03:33:06 [RateCDR] => 1 ) [2025-01-28 03: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-28 00:33:06' and `end` < '2025-01-28 03: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-28 03:33:18] Production.INFO: count ==314 [2025-01-28 03:33:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:33:06 - End Time 2025-01-28 03:33:06 [2025-01-28 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346260', 'tblTempUsageDetail_20' ) start [2025-01-28 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346260', 'tblTempUsageDetail_20' ) end [2025-01-28 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346260', 'tblTempVendorCDR_20' ) start [2025-01-28 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346260', 'tblTempVendorCDR_20' ) end [2025-01-28 03:33:19] Production.INFO: ProcessCDR(1,14346260,1,1,2) [2025-01-28 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346260', 'tblTempUsageDetail_20' ) start [2025-01-28 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346260', 'tblTempUsageDetail_20' ) end [2025-01-28 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:33:22] Production.INFO: ==23764== Releasing lock... [2025-01-28 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:33:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:34:06 [end_date_ymd] => 2025-01-28 03:34:06 [RateCDR] => 1 ) [2025-01-28 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:34:06' and `end` < '2025-01-28 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:34:19] Production.INFO: count ==314 [2025-01-28 03:34:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:34:06 - End Time 2025-01-28 03:34:06 [2025-01-28 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346265', 'tblTempUsageDetail_20' ) start [2025-01-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346265', 'tblTempUsageDetail_20' ) end [2025-01-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346265', 'tblTempVendorCDR_20' ) start [2025-01-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346265', 'tblTempVendorCDR_20' ) end [2025-01-28 03:34:19] Production.INFO: ProcessCDR(1,14346265,1,1,2) [2025-01-28 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346265', 'tblTempUsageDetail_20' ) start [2025-01-28 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346265', 'tblTempUsageDetail_20' ) end [2025-01-28 03:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:34:23] Production.INFO: ==23834== Releasing lock... [2025-01-28 03:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:34:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:35:05 [end_date_ymd] => 2025-01-28 03:35:05 [RateCDR] => 1 ) [2025-01-28 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:35:05' and `end` < '2025-01-28 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:35:18] Production.INFO: count ==313 [2025-01-28 03:35:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:35:05 - End Time 2025-01-28 03:35:05 [2025-01-28 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346270', 'tblTempUsageDetail_20' ) start [2025-01-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346270', 'tblTempUsageDetail_20' ) end [2025-01-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346270', 'tblTempVendorCDR_20' ) start [2025-01-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346270', 'tblTempVendorCDR_20' ) end [2025-01-28 03:35:18] Production.INFO: ProcessCDR(1,14346270,1,1,2) [2025-01-28 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346270', 'tblTempUsageDetail_20' ) start [2025-01-28 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346270', 'tblTempUsageDetail_20' ) end [2025-01-28 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:35:22] Production.INFO: ==23909== Releasing lock... [2025-01-28 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:35:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:36:06 [end_date_ymd] => 2025-01-28 03:36:06 [RateCDR] => 1 ) [2025-01-28 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:36:06' and `end` < '2025-01-28 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:36:19] Production.INFO: count ==313 [2025-01-28 03:36:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:36:06 - End Time 2025-01-28 03:36:06 [2025-01-28 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346275', 'tblTempUsageDetail_20' ) start [2025-01-28 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346275', 'tblTempUsageDetail_20' ) end [2025-01-28 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346275', 'tblTempVendorCDR_20' ) start [2025-01-28 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346275', 'tblTempVendorCDR_20' ) end [2025-01-28 03:36:19] Production.INFO: ProcessCDR(1,14346275,1,1,2) [2025-01-28 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346275', 'tblTempUsageDetail_20' ) start [2025-01-28 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346275', 'tblTempUsageDetail_20' ) end [2025-01-28 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:36:22] Production.INFO: ==24020== Releasing lock... [2025-01-28 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:36:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:37:05 [end_date_ymd] => 2025-01-28 03:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:37:05' and `end` < '2025-01-28 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-28 03:37:19] Production.INFO: count ==313 [2025-01-28 03:37:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:37:05 - End Time 2025-01-28 03:37:05 [2025-01-28 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346280', 'tblTempUsageDetail_20' ) start [2025-01-28 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346280', 'tblTempUsageDetail_20' ) end [2025-01-28 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346280', 'tblTempVendorCDR_20' ) start [2025-01-28 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346280', 'tblTempVendorCDR_20' ) end [2025-01-28 03:37:19] Production.INFO: ProcessCDR(1,14346280,1,1,2) [2025-01-28 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346280', 'tblTempUsageDetail_20' ) start [2025-01-28 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346280', 'tblTempUsageDetail_20' ) end [2025-01-28 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:37:23] Production.INFO: ==24090== Releasing lock... [2025-01-28 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:37:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:38:05 [end_date_ymd] => 2025-01-28 03:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:38:05' and `end` < '2025-01-28 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-28 03:38:17] Production.INFO: count ==315 [2025-01-28 03:38:17] Production.ERROR: pbx CDR StartTime 2025-01-28 00:38:05 - End Time 2025-01-28 03:38:05 [2025-01-28 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346285', 'tblTempUsageDetail_20' ) start [2025-01-28 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346285', 'tblTempUsageDetail_20' ) end [2025-01-28 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346285', 'tblTempVendorCDR_20' ) start [2025-01-28 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346285', 'tblTempVendorCDR_20' ) end [2025-01-28 03:38:17] Production.INFO: ProcessCDR(1,14346285,1,1,2) [2025-01-28 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346285', 'tblTempUsageDetail_20' ) start [2025-01-28 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346285', 'tblTempUsageDetail_20' ) end [2025-01-28 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:38:22] Production.INFO: ==24161== Releasing lock... [2025-01-28 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:38:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:39:05 [end_date_ymd] => 2025-01-28 03:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:39:05' and `end` < '2025-01-28 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-28 03:39:17] Production.INFO: count ==315 [2025-01-28 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:39:05 - End Time 2025-01-28 03:39:05 [2025-01-28 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346290', 'tblTempUsageDetail_20' ) start [2025-01-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346290', 'tblTempUsageDetail_20' ) end [2025-01-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346290', 'tblTempVendorCDR_20' ) start [2025-01-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346290', 'tblTempVendorCDR_20' ) end [2025-01-28 03:39:18] Production.INFO: ProcessCDR(1,14346290,1,1,2) [2025-01-28 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346290', 'tblTempUsageDetail_20' ) start [2025-01-28 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346290', 'tblTempUsageDetail_20' ) end [2025-01-28 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:39:21] Production.INFO: ==24237== Releasing lock... [2025-01-28 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:40:06 [end_date_ymd] => 2025-01-28 03:40:06 [RateCDR] => 1 ) [2025-01-28 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-28 00:40:06' and `end` < '2025-01-28 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-28 03:40:19] Production.INFO: count ==304 [2025-01-28 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:40:06 - End Time 2025-01-28 03:40:06 [2025-01-28 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346296', 'tblTempUsageDetail_20' ) start [2025-01-28 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346296', 'tblTempUsageDetail_20' ) end [2025-01-28 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346296', 'tblTempVendorCDR_20' ) start [2025-01-28 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346296', 'tblTempVendorCDR_20' ) end [2025-01-28 03:40:19] Production.INFO: ProcessCDR(1,14346296,1,1,2) [2025-01-28 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346296', 'tblTempUsageDetail_20' ) start [2025-01-28 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346296', 'tblTempUsageDetail_20' ) end [2025-01-28 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:40:23] Production.INFO: ==24310== Releasing lock... [2025-01-28 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:40:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:41:05 [end_date_ymd] => 2025-01-28 03:41:05 [RateCDR] => 1 ) [2025-01-28 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:41:05' and `end` < '2025-01-28 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:41:19] Production.INFO: count ==290 [2025-01-28 03:41:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:41:05 - End Time 2025-01-28 03:41:05 [2025-01-28 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346301', 'tblTempUsageDetail_20' ) start [2025-01-28 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346301', 'tblTempUsageDetail_20' ) end [2025-01-28 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346301', 'tblTempVendorCDR_20' ) start [2025-01-28 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346301', 'tblTempVendorCDR_20' ) end [2025-01-28 03:41:19] Production.INFO: ProcessCDR(1,14346301,1,1,2) [2025-01-28 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346301', 'tblTempUsageDetail_20' ) start [2025-01-28 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346301', 'tblTempUsageDetail_20' ) end [2025-01-28 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:41:22] Production.INFO: ==24384== Releasing lock... [2025-01-28 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:42:06 [end_date_ymd] => 2025-01-28 03:42:06 [RateCDR] => 1 ) [2025-01-28 03: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-28 00:42:06' and `end` < '2025-01-28 03: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-28 03:42:19] Production.INFO: count ==286 [2025-01-28 03:42:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:42:06 - End Time 2025-01-28 03:42:06 [2025-01-28 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346306', 'tblTempUsageDetail_20' ) start [2025-01-28 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346306', 'tblTempUsageDetail_20' ) end [2025-01-28 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346306', 'tblTempVendorCDR_20' ) start [2025-01-28 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346306', 'tblTempVendorCDR_20' ) end [2025-01-28 03:42:19] Production.INFO: ProcessCDR(1,14346306,1,1,2) [2025-01-28 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346306', 'tblTempUsageDetail_20' ) start [2025-01-28 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346306', 'tblTempUsageDetail_20' ) end [2025-01-28 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:42:22] Production.INFO: ==24460== Releasing lock... [2025-01-28 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:42:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:43:05 [end_date_ymd] => 2025-01-28 03:43:05 [RateCDR] => 1 ) [2025-01-28 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:43:05' and `end` < '2025-01-28 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:43:18] Production.INFO: count ==284 [2025-01-28 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:43:05 - End Time 2025-01-28 03:43:05 [2025-01-28 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346311', 'tblTempUsageDetail_20' ) start [2025-01-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346311', 'tblTempUsageDetail_20' ) end [2025-01-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346311', 'tblTempVendorCDR_20' ) start [2025-01-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346311', 'tblTempVendorCDR_20' ) end [2025-01-28 03:43:18] Production.INFO: ProcessCDR(1,14346311,1,1,2) [2025-01-28 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346311', 'tblTempUsageDetail_20' ) start [2025-01-28 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346311', 'tblTempUsageDetail_20' ) end [2025-01-28 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:43:21] Production.INFO: ==24532== Releasing lock... [2025-01-28 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:44:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:44:07 [end_date_ymd] => 2025-01-28 03:44:07 [RateCDR] => 1 ) [2025-01-28 03:44: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-28 00:44:07' and `end` < '2025-01-28 03:44: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-28 03:44:20] Production.INFO: count ==283 [2025-01-28 03:44:20] Production.ERROR: pbx CDR StartTime 2025-01-28 00:44:07 - End Time 2025-01-28 03:44:07 [2025-01-28 03:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346316', 'tblTempUsageDetail_20' ) start [2025-01-28 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346316', 'tblTempUsageDetail_20' ) end [2025-01-28 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346316', 'tblTempVendorCDR_20' ) start [2025-01-28 03:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346316', 'tblTempVendorCDR_20' ) end [2025-01-28 03:44:20] Production.INFO: ProcessCDR(1,14346316,1,1,2) [2025-01-28 03:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346316', 'tblTempUsageDetail_20' ) start [2025-01-28 03:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346316', 'tblTempUsageDetail_20' ) end [2025-01-28 03:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:44:31] Production.INFO: ==24607== Releasing lock... [2025-01-28 03:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:44:31] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:45:06 [end_date_ymd] => 2025-01-28 03:45:06 [RateCDR] => 1 ) [2025-01-28 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:45:06' and `end` < '2025-01-28 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:45:18] Production.INFO: count ==279 [2025-01-28 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:45:06 - End Time 2025-01-28 03:45:06 [2025-01-28 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346321', 'tblTempUsageDetail_20' ) start [2025-01-28 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346321', 'tblTempUsageDetail_20' ) end [2025-01-28 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346321', 'tblTempVendorCDR_20' ) start [2025-01-28 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346321', 'tblTempVendorCDR_20' ) end [2025-01-28 03:45:18] Production.INFO: ProcessCDR(1,14346321,1,1,2) [2025-01-28 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346321', 'tblTempUsageDetail_20' ) start [2025-01-28 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346321', 'tblTempUsageDetail_20' ) end [2025-01-28 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:45:22] Production.INFO: ==24679== Releasing lock... [2025-01-28 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:45:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:46:05 [end_date_ymd] => 2025-01-28 03:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:46:05' and `end` < '2025-01-28 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-28 03:46:18] Production.INFO: count ==279 [2025-01-28 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:46:05 - End Time 2025-01-28 03:46:05 [2025-01-28 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346326', 'tblTempUsageDetail_20' ) start [2025-01-28 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346326', 'tblTempUsageDetail_20' ) end [2025-01-28 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346326', 'tblTempVendorCDR_20' ) start [2025-01-28 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346326', 'tblTempVendorCDR_20' ) end [2025-01-28 03:46:18] Production.INFO: ProcessCDR(1,14346326,1,1,2) [2025-01-28 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346326', 'tblTempUsageDetail_20' ) start [2025-01-28 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346326', 'tblTempUsageDetail_20' ) end [2025-01-28 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:46:21] Production.INFO: ==24751== Releasing lock... [2025-01-28 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:47:05 [end_date_ymd] => 2025-01-28 03:47:05 [RateCDR] => 1 ) [2025-01-28 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:47:05' and `end` < '2025-01-28 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:47:19] Production.INFO: count ==278 [2025-01-28 03:47:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:47:05 - End Time 2025-01-28 03:47:05 [2025-01-28 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346331', 'tblTempUsageDetail_20' ) start [2025-01-28 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346331', 'tblTempUsageDetail_20' ) end [2025-01-28 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346331', 'tblTempVendorCDR_20' ) start [2025-01-28 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346331', 'tblTempVendorCDR_20' ) end [2025-01-28 03:47:19] Production.INFO: ProcessCDR(1,14346331,1,1,2) [2025-01-28 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346331', 'tblTempUsageDetail_20' ) start [2025-01-28 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346331', 'tblTempUsageDetail_20' ) end [2025-01-28 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:47:22] Production.INFO: ==24835== Releasing lock... [2025-01-28 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:48:04 [end_date_ymd] => 2025-01-28 03:48:04 [RateCDR] => 1 ) [2025-01-28 03: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-28 00:48:04' and `end` < '2025-01-28 03: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-28 03:48:17] Production.INFO: count ==278 [2025-01-28 03:48:17] Production.ERROR: pbx CDR StartTime 2025-01-28 00:48:04 - End Time 2025-01-28 03:48:04 [2025-01-28 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346336', 'tblTempUsageDetail_20' ) start [2025-01-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346336', 'tblTempUsageDetail_20' ) end [2025-01-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346336', 'tblTempVendorCDR_20' ) start [2025-01-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346336', 'tblTempVendorCDR_20' ) end [2025-01-28 03:48:17] Production.INFO: ProcessCDR(1,14346336,1,1,2) [2025-01-28 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346336', 'tblTempUsageDetail_20' ) start [2025-01-28 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346336', 'tblTempUsageDetail_20' ) end [2025-01-28 03:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:48:20] Production.INFO: ==24910== Releasing lock... [2025-01-28 03:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:48:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:49:06 [end_date_ymd] => 2025-01-28 03:49:06 [RateCDR] => 1 ) [2025-01-28 03: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-28 00:49:06' and `end` < '2025-01-28 03: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-28 03:49:19] Production.INFO: count ==278 [2025-01-28 03:49:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:49:06 - End Time 2025-01-28 03:49:06 [2025-01-28 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346341', 'tblTempUsageDetail_20' ) start [2025-01-28 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346341', 'tblTempUsageDetail_20' ) end [2025-01-28 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346341', 'tblTempVendorCDR_20' ) start [2025-01-28 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346341', 'tblTempVendorCDR_20' ) end [2025-01-28 03:49:19] Production.INFO: ProcessCDR(1,14346341,1,1,2) [2025-01-28 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346341', 'tblTempUsageDetail_20' ) start [2025-01-28 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346341', 'tblTempUsageDetail_20' ) end [2025-01-28 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:49:22] Production.INFO: ==24985== Releasing lock... [2025-01-28 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:50:06 [end_date_ymd] => 2025-01-28 03:50:06 [RateCDR] => 1 ) [2025-01-28 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:50:06' and `end` < '2025-01-28 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:50:18] Production.INFO: count ==272 [2025-01-28 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:50:06 - End Time 2025-01-28 03:50:06 [2025-01-28 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346346', 'tblTempUsageDetail_20' ) start [2025-01-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346346', 'tblTempUsageDetail_20' ) end [2025-01-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346346', 'tblTempVendorCDR_20' ) start [2025-01-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346346', 'tblTempVendorCDR_20' ) end [2025-01-28 03:50:18] Production.INFO: ProcessCDR(1,14346346,1,1,2) [2025-01-28 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346346', 'tblTempUsageDetail_20' ) start [2025-01-28 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346346', 'tblTempUsageDetail_20' ) end [2025-01-28 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:50:21] Production.INFO: ==25108== Releasing lock... [2025-01-28 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:51:05 [end_date_ymd] => 2025-01-28 03:51:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:51:05' and `end` < '2025-01-28 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-28 03:51:18] Production.INFO: count ==262 [2025-01-28 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:51:05 - End Time 2025-01-28 03:51:05 [2025-01-28 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346352', 'tblTempUsageDetail_20' ) start [2025-01-28 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346352', 'tblTempUsageDetail_20' ) end [2025-01-28 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346352', 'tblTempVendorCDR_20' ) start [2025-01-28 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346352', 'tblTempVendorCDR_20' ) end [2025-01-28 03:51:18] Production.INFO: ProcessCDR(1,14346352,1,1,2) [2025-01-28 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346352', 'tblTempUsageDetail_20' ) start [2025-01-28 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346352', 'tblTempUsageDetail_20' ) end [2025-01-28 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:51:22] Production.INFO: ==25246== Releasing lock... [2025-01-28 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:52:06 [end_date_ymd] => 2025-01-28 03:52:06 [RateCDR] => 1 ) [2025-01-28 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:52:06' and `end` < '2025-01-28 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:52:18] Production.INFO: count ==262 [2025-01-28 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:52:06 - End Time 2025-01-28 03:52:06 [2025-01-28 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346357', 'tblTempUsageDetail_20' ) start [2025-01-28 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346357', 'tblTempUsageDetail_20' ) end [2025-01-28 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346357', 'tblTempVendorCDR_20' ) start [2025-01-28 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346357', 'tblTempVendorCDR_20' ) end [2025-01-28 03:52:18] Production.INFO: ProcessCDR(1,14346357,1,1,2) [2025-01-28 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346357', 'tblTempUsageDetail_20' ) start [2025-01-28 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346357', 'tblTempUsageDetail_20' ) end [2025-01-28 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:52:22] Production.INFO: ==25321== Releasing lock... [2025-01-28 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:53:05 [end_date_ymd] => 2025-01-28 03:53:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:53:05' and `end` < '2025-01-28 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-28 03:53:18] Production.INFO: count ==262 [2025-01-28 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:53:05 - End Time 2025-01-28 03:53:05 [2025-01-28 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346362', 'tblTempUsageDetail_20' ) start [2025-01-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346362', 'tblTempUsageDetail_20' ) end [2025-01-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346362', 'tblTempVendorCDR_20' ) start [2025-01-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346362', 'tblTempVendorCDR_20' ) end [2025-01-28 03:53:18] Production.INFO: ProcessCDR(1,14346362,1,1,2) [2025-01-28 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346362', 'tblTempUsageDetail_20' ) start [2025-01-28 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346362', 'tblTempUsageDetail_20' ) end [2025-01-28 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:53:21] Production.INFO: ==25397== Releasing lock... [2025-01-28 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:54:05 [end_date_ymd] => 2025-01-28 03:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:54:05' and `end` < '2025-01-28 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-28 03:54:17] Production.INFO: count ==260 [2025-01-28 03:54:17] Production.ERROR: pbx CDR StartTime 2025-01-28 00:54:05 - End Time 2025-01-28 03:54:05 [2025-01-28 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346367', 'tblTempUsageDetail_20' ) start [2025-01-28 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346367', 'tblTempUsageDetail_20' ) end [2025-01-28 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346367', 'tblTempVendorCDR_20' ) start [2025-01-28 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346367', 'tblTempVendorCDR_20' ) end [2025-01-28 03:54:17] Production.INFO: ProcessCDR(1,14346367,1,1,2) [2025-01-28 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346367', 'tblTempUsageDetail_20' ) start [2025-01-28 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346367', 'tblTempUsageDetail_20' ) end [2025-01-28 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:54:21] Production.INFO: ==25474== Releasing lock... [2025-01-28 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-28 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:55:06 [end_date_ymd] => 2025-01-28 03:55:06 [RateCDR] => 1 ) [2025-01-28 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-28 00:55:06' and `end` < '2025-01-28 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-28 03:55:19] Production.INFO: count ==259 [2025-01-28 03:55:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:55:06 - End Time 2025-01-28 03:55:06 [2025-01-28 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346372', 'tblTempUsageDetail_20' ) start [2025-01-28 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346372', 'tblTempUsageDetail_20' ) end [2025-01-28 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346372', 'tblTempVendorCDR_20' ) start [2025-01-28 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346372', 'tblTempVendorCDR_20' ) end [2025-01-28 03:55:19] Production.INFO: ProcessCDR(1,14346372,1,1,2) [2025-01-28 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346372', 'tblTempUsageDetail_20' ) start [2025-01-28 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346372', 'tblTempUsageDetail_20' ) end [2025-01-28 03:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:55:23] Production.INFO: ==25557== Releasing lock... [2025-01-28 03:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:55:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-28 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:56:05 [end_date_ymd] => 2025-01-28 03:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:56:05' and `end` < '2025-01-28 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-28 03:56:18] Production.INFO: count ==257 [2025-01-28 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:56:05 - End Time 2025-01-28 03:56:05 [2025-01-28 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346377', 'tblTempUsageDetail_20' ) start [2025-01-28 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346377', 'tblTempUsageDetail_20' ) end [2025-01-28 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346377', 'tblTempVendorCDR_20' ) start [2025-01-28 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346377', 'tblTempVendorCDR_20' ) end [2025-01-28 03:56:18] Production.INFO: ProcessCDR(1,14346377,1,1,2) [2025-01-28 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346377', 'tblTempUsageDetail_20' ) start [2025-01-28 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346377', 'tblTempUsageDetail_20' ) end [2025-01-28 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:56:21] Production.INFO: ==25639== Releasing lock... [2025-01-28 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-28 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:57:06 [end_date_ymd] => 2025-01-28 03:57:06 [RateCDR] => 1 ) [2025-01-28 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:57:06' and `end` < '2025-01-28 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:57:18] Production.INFO: count ==256 [2025-01-28 03:57:19] Production.ERROR: pbx CDR StartTime 2025-01-28 00:57:06 - End Time 2025-01-28 03:57:06 [2025-01-28 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346382', 'tblTempUsageDetail_20' ) start [2025-01-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346382', 'tblTempUsageDetail_20' ) end [2025-01-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346382', 'tblTempVendorCDR_20' ) start [2025-01-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346382', 'tblTempVendorCDR_20' ) end [2025-01-28 03:57:19] Production.INFO: ProcessCDR(1,14346382,1,1,2) [2025-01-28 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346382', 'tblTempUsageDetail_20' ) start [2025-01-28 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346382', 'tblTempUsageDetail_20' ) end [2025-01-28 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:57:22] Production.INFO: ==25728== Releasing lock... [2025-01-28 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-28 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:58:05 [end_date_ymd] => 2025-01-28 03:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 00:58:05' and `end` < '2025-01-28 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-28 03:58:18] Production.INFO: count ==256 [2025-01-28 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:58:05 - End Time 2025-01-28 03:58:05 [2025-01-28 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346387', 'tblTempUsageDetail_20' ) start [2025-01-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346387', 'tblTempUsageDetail_20' ) end [2025-01-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346387', 'tblTempVendorCDR_20' ) start [2025-01-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346387', 'tblTempVendorCDR_20' ) end [2025-01-28 03:58:18] Production.INFO: ProcessCDR(1,14346387,1,1,2) [2025-01-28 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346387', 'tblTempUsageDetail_20' ) start [2025-01-28 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346387', 'tblTempUsageDetail_20' ) end [2025-01-28 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:58:21] Production.INFO: ==25829== Releasing lock... [2025-01-28 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-28 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 00:59:06 [end_date_ymd] => 2025-01-28 03:59:06 [RateCDR] => 1 ) [2025-01-28 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 00:59:06' and `end` < '2025-01-28 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 03:59:18] Production.INFO: count ==252 [2025-01-28 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-28 00:59:06 - End Time 2025-01-28 03:59:06 [2025-01-28 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346392', 'tblTempUsageDetail_20' ) start [2025-01-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346392', 'tblTempUsageDetail_20' ) end [2025-01-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346392', 'tblTempVendorCDR_20' ) start [2025-01-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346392', 'tblTempVendorCDR_20' ) end [2025-01-28 03:59:18] Production.INFO: ProcessCDR(1,14346392,1,1,2) [2025-01-28 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346392', 'tblTempUsageDetail_20' ) start [2025-01-28 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346392', 'tblTempUsageDetail_20' ) end [2025-01-28 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 03:59:21] Production.INFO: ==25938== Releasing lock... [2025-01-28 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 03:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-28 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:00:07 [end_date_ymd] => 2025-01-28 04:00:07 [RateCDR] => 1 ) [2025-01-28 04: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-28 01:00:07' and `end` < '2025-01-28 04: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-28 04:00:20] Production.INFO: count ==236 [2025-01-28 04:00:20] Production.ERROR: pbx CDR StartTime 2025-01-28 01:00:07 - End Time 2025-01-28 04:00:07 [2025-01-28 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346399', 'tblTempUsageDetail_20' ) start [2025-01-28 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346399', 'tblTempUsageDetail_20' ) end [2025-01-28 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346399', 'tblTempVendorCDR_20' ) start [2025-01-28 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346399', 'tblTempVendorCDR_20' ) end [2025-01-28 04:00:20] Production.INFO: ProcessCDR(1,14346399,1,1,2) [2025-01-28 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346399', 'tblTempUsageDetail_20' ) start [2025-01-28 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346399', 'tblTempUsageDetail_20' ) end [2025-01-28 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:00:24] Production.INFO: ==26063== Releasing lock... [2025-01-28 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:00:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-28 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:01:05 [end_date_ymd] => 2025-01-28 04:01:05 [RateCDR] => 1 ) [2025-01-28 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:01:05' and `end` < '2025-01-28 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:01:18] Production.INFO: count ==229 [2025-01-28 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:01:05 - End Time 2025-01-28 04:01:05 [2025-01-28 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346404', 'tblTempUsageDetail_20' ) start [2025-01-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346404', 'tblTempUsageDetail_20' ) end [2025-01-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346404', 'tblTempVendorCDR_20' ) start [2025-01-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346404', 'tblTempVendorCDR_20' ) end [2025-01-28 04:01:18] Production.INFO: ProcessCDR(1,14346404,1,1,2) [2025-01-28 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346404', 'tblTempUsageDetail_20' ) start [2025-01-28 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346404', 'tblTempUsageDetail_20' ) end [2025-01-28 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:01:21] Production.INFO: ==26194== Releasing lock... [2025-01-28 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:01:21] Production.INFO: 29 MB #Memory Used# [2025-01-28 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:02:05 [end_date_ymd] => 2025-01-28 04:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:02:05' and `end` < '2025-01-28 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-28 04:02:18] Production.INFO: count ==229 [2025-01-28 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:02:05 - End Time 2025-01-28 04:02:05 [2025-01-28 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346409', 'tblTempUsageDetail_20' ) start [2025-01-28 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346409', 'tblTempUsageDetail_20' ) end [2025-01-28 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346409', 'tblTempVendorCDR_20' ) start [2025-01-28 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346409', 'tblTempVendorCDR_20' ) end [2025-01-28 04:02:18] Production.INFO: ProcessCDR(1,14346409,1,1,2) [2025-01-28 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346409', 'tblTempUsageDetail_20' ) start [2025-01-28 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346409', 'tblTempUsageDetail_20' ) end [2025-01-28 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:02:21] Production.INFO: ==26311== Releasing lock... [2025-01-28 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:02:21] Production.INFO: 29 MB #Memory Used# [2025-01-28 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:03:05 [end_date_ymd] => 2025-01-28 04:03:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:03:05' and `end` < '2025-01-28 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-28 04:03:18] Production.INFO: count ==220 [2025-01-28 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:03:05 - End Time 2025-01-28 04:03:05 [2025-01-28 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346414', 'tblTempUsageDetail_20' ) start [2025-01-28 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346414', 'tblTempUsageDetail_20' ) end [2025-01-28 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346414', 'tblTempVendorCDR_20' ) start [2025-01-28 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346414', 'tblTempVendorCDR_20' ) end [2025-01-28 04:03:18] Production.INFO: ProcessCDR(1,14346414,1,1,2) [2025-01-28 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346414', 'tblTempUsageDetail_20' ) start [2025-01-28 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346414', 'tblTempUsageDetail_20' ) end [2025-01-28 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:03:21] Production.INFO: ==26432== Releasing lock... [2025-01-28 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-28 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:04:06 [end_date_ymd] => 2025-01-28 04:04:06 [RateCDR] => 1 ) [2025-01-28 04: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-28 01:04:06' and `end` < '2025-01-28 04: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-28 04:04:19] Production.INFO: count ==215 [2025-01-28 04:04:19] Production.ERROR: pbx CDR StartTime 2025-01-28 01:04:06 - End Time 2025-01-28 04:04:06 [2025-01-28 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346419', 'tblTempUsageDetail_20' ) start [2025-01-28 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346419', 'tblTempUsageDetail_20' ) end [2025-01-28 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346419', 'tblTempVendorCDR_20' ) start [2025-01-28 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346419', 'tblTempVendorCDR_20' ) end [2025-01-28 04:04:19] Production.INFO: ProcessCDR(1,14346419,1,1,2) [2025-01-28 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346419', 'tblTempUsageDetail_20' ) start [2025-01-28 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346419', 'tblTempUsageDetail_20' ) end [2025-01-28 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:04:22] Production.INFO: ==26557== Releasing lock... [2025-01-28 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:04:22] Production.INFO: 29 MB #Memory Used# [2025-01-28 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:05:05 [end_date_ymd] => 2025-01-28 04:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:05:05' and `end` < '2025-01-28 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-28 04:05:17] Production.INFO: count ==214 [2025-01-28 04:05:17] Production.ERROR: pbx CDR StartTime 2025-01-28 01:05:05 - End Time 2025-01-28 04:05:05 [2025-01-28 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346424', 'tblTempUsageDetail_20' ) start [2025-01-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346424', 'tblTempUsageDetail_20' ) end [2025-01-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346424', 'tblTempVendorCDR_20' ) start [2025-01-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346424', 'tblTempVendorCDR_20' ) end [2025-01-28 04:05:17] Production.INFO: ProcessCDR(1,14346424,1,1,2) [2025-01-28 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346424', 'tblTempUsageDetail_20' ) start [2025-01-28 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346424', 'tblTempUsageDetail_20' ) end [2025-01-28 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:05:21] Production.INFO: ==26677== Releasing lock... [2025-01-28 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-28 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:06:05 [end_date_ymd] => 2025-01-28 04:06:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:06:05' and `end` < '2025-01-28 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-28 04:06:18] Production.INFO: count ==213 [2025-01-28 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:06:05 - End Time 2025-01-28 04:06:05 [2025-01-28 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346429', 'tblTempUsageDetail_20' ) start [2025-01-28 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346429', 'tblTempUsageDetail_20' ) end [2025-01-28 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346429', 'tblTempVendorCDR_20' ) start [2025-01-28 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346429', 'tblTempVendorCDR_20' ) end [2025-01-28 04:06:18] Production.INFO: ProcessCDR(1,14346429,1,1,2) [2025-01-28 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346429', 'tblTempUsageDetail_20' ) start [2025-01-28 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346429', 'tblTempUsageDetail_20' ) end [2025-01-28 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:06:21] Production.INFO: ==26800== Releasing lock... [2025-01-28 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:06:21] Production.INFO: 29 MB #Memory Used# [2025-01-28 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:07:05 [end_date_ymd] => 2025-01-28 04:07:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:07:05' and `end` < '2025-01-28 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-28 04:07:18] Production.INFO: count ==213 [2025-01-28 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:07:05 - End Time 2025-01-28 04:07:05 [2025-01-28 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346434', 'tblTempUsageDetail_20' ) start [2025-01-28 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346434', 'tblTempUsageDetail_20' ) end [2025-01-28 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346434', 'tblTempVendorCDR_20' ) start [2025-01-28 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346434', 'tblTempVendorCDR_20' ) end [2025-01-28 04:07:18] Production.INFO: ProcessCDR(1,14346434,1,1,2) [2025-01-28 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346434', 'tblTempUsageDetail_20' ) start [2025-01-28 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346434', 'tblTempUsageDetail_20' ) end [2025-01-28 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:07:22] Production.INFO: ==26954== Releasing lock... [2025-01-28 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:07:22] Production.INFO: 29 MB #Memory Used# [2025-01-28 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:08:05 [end_date_ymd] => 2025-01-28 04:08:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:08:05' and `end` < '2025-01-28 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-28 04:08:18] Production.INFO: count ==212 [2025-01-28 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:08:05 - End Time 2025-01-28 04:08:05 [2025-01-28 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346439', 'tblTempUsageDetail_20' ) start [2025-01-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346439', 'tblTempUsageDetail_20' ) end [2025-01-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346439', 'tblTempVendorCDR_20' ) start [2025-01-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346439', 'tblTempVendorCDR_20' ) end [2025-01-28 04:08:18] Production.INFO: ProcessCDR(1,14346439,1,1,2) [2025-01-28 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346439', 'tblTempUsageDetail_20' ) start [2025-01-28 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346439', 'tblTempUsageDetail_20' ) end [2025-01-28 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:08:21] Production.INFO: ==27075== Releasing lock... [2025-01-28 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:08:21] Production.INFO: 29 MB #Memory Used# [2025-01-28 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:09:05 [end_date_ymd] => 2025-01-28 04:09:05 [RateCDR] => 1 ) [2025-01-28 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:09:05' and `end` < '2025-01-28 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:09:17] Production.INFO: count ==212 [2025-01-28 04:09:17] Production.ERROR: pbx CDR StartTime 2025-01-28 01:09:05 - End Time 2025-01-28 04:09:05 [2025-01-28 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346444', 'tblTempUsageDetail_20' ) start [2025-01-28 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346444', 'tblTempUsageDetail_20' ) end [2025-01-28 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346444', 'tblTempVendorCDR_20' ) start [2025-01-28 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346444', 'tblTempVendorCDR_20' ) end [2025-01-28 04:09:17] Production.INFO: ProcessCDR(1,14346444,1,1,2) [2025-01-28 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346444', 'tblTempUsageDetail_20' ) start [2025-01-28 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346444', 'tblTempUsageDetail_20' ) end [2025-01-28 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:09:20] Production.INFO: ==27194== Releasing lock... [2025-01-28 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:09:20] Production.INFO: 29 MB #Memory Used# [2025-01-28 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:10:06 [end_date_ymd] => 2025-01-28 04:10:06 [RateCDR] => 1 ) [2025-01-28 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-28 01:10:06' and `end` < '2025-01-28 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-28 04:10:19] Production.INFO: count ==205 [2025-01-28 04:10:19] Production.ERROR: pbx CDR StartTime 2025-01-28 01:10:06 - End Time 2025-01-28 04:10:06 [2025-01-28 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346450', 'tblTempUsageDetail_20' ) start [2025-01-28 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346450', 'tblTempUsageDetail_20' ) end [2025-01-28 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346450', 'tblTempVendorCDR_20' ) start [2025-01-28 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346450', 'tblTempVendorCDR_20' ) end [2025-01-28 04:10:19] Production.INFO: ProcessCDR(1,14346450,1,1,2) [2025-01-28 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346450', 'tblTempUsageDetail_20' ) start [2025-01-28 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346450', 'tblTempUsageDetail_20' ) end [2025-01-28 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:10:22] Production.INFO: ==27316== Releasing lock... [2025-01-28 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:10:22] Production.INFO: 29 MB #Memory Used# [2025-01-28 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:11:05 [end_date_ymd] => 2025-01-28 04:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:11:05' and `end` < '2025-01-28 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-28 04:11:18] Production.INFO: count ==203 [2025-01-28 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:11:05 - End Time 2025-01-28 04:11:05 [2025-01-28 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346455', 'tblTempUsageDetail_20' ) start [2025-01-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346455', 'tblTempUsageDetail_20' ) end [2025-01-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346455', 'tblTempVendorCDR_20' ) start [2025-01-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346455', 'tblTempVendorCDR_20' ) end [2025-01-28 04:11:18] Production.INFO: ProcessCDR(1,14346455,1,1,2) [2025-01-28 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346455', 'tblTempUsageDetail_20' ) start [2025-01-28 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346455', 'tblTempUsageDetail_20' ) end [2025-01-28 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:11:21] Production.INFO: ==27457== Releasing lock... [2025-01-28 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:12:05 [end_date_ymd] => 2025-01-28 04:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:12:05' and `end` < '2025-01-28 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-28 04:12:18] Production.INFO: count ==203 [2025-01-28 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:12:05 - End Time 2025-01-28 04:12:05 [2025-01-28 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346460', 'tblTempUsageDetail_20' ) start [2025-01-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346460', 'tblTempUsageDetail_20' ) end [2025-01-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346460', 'tblTempVendorCDR_20' ) start [2025-01-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346460', 'tblTempVendorCDR_20' ) end [2025-01-28 04:12:18] Production.INFO: ProcessCDR(1,14346460,1,1,2) [2025-01-28 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346460', 'tblTempUsageDetail_20' ) start [2025-01-28 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346460', 'tblTempUsageDetail_20' ) end [2025-01-28 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:12:21] Production.INFO: ==27580== Releasing lock... [2025-01-28 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:13:05 [end_date_ymd] => 2025-01-28 04:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:13:05' and `end` < '2025-01-28 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-28 04:13:19] Production.INFO: count ==201 [2025-01-28 04:13:19] Production.ERROR: pbx CDR StartTime 2025-01-28 01:13:05 - End Time 2025-01-28 04:13:05 [2025-01-28 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346465', 'tblTempUsageDetail_20' ) start [2025-01-28 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346465', 'tblTempUsageDetail_20' ) end [2025-01-28 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346465', 'tblTempVendorCDR_20' ) start [2025-01-28 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346465', 'tblTempVendorCDR_20' ) end [2025-01-28 04:13:19] Production.INFO: ProcessCDR(1,14346465,1,1,2) [2025-01-28 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346465', 'tblTempUsageDetail_20' ) start [2025-01-28 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346465', 'tblTempUsageDetail_20' ) end [2025-01-28 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:13:22] Production.INFO: ==27701== Releasing lock... [2025-01-28 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:14:05 [end_date_ymd] => 2025-01-28 04:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:14:05' and `end` < '2025-01-28 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-28 04:14:18] Production.INFO: count ==201 [2025-01-28 04:14:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:14:05 - End Time 2025-01-28 04:14:05 [2025-01-28 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346470', 'tblTempUsageDetail_20' ) start [2025-01-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346470', 'tblTempUsageDetail_20' ) end [2025-01-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346470', 'tblTempVendorCDR_20' ) start [2025-01-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346470', 'tblTempVendorCDR_20' ) end [2025-01-28 04:14:18] Production.INFO: ProcessCDR(1,14346470,1,1,2) [2025-01-28 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346470', 'tblTempUsageDetail_20' ) start [2025-01-28 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346470', 'tblTempUsageDetail_20' ) end [2025-01-28 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:14:21] Production.INFO: ==27820== Releasing lock... [2025-01-28 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:15:06 [end_date_ymd] => 2025-01-28 04:15:06 [RateCDR] => 1 ) [2025-01-28 04: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-28 01:15:06' and `end` < '2025-01-28 04: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-28 04:15:18] Production.INFO: count ==201 [2025-01-28 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:15:06 - End Time 2025-01-28 04:15:06 [2025-01-28 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346475', 'tblTempUsageDetail_20' ) start [2025-01-28 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346475', 'tblTempUsageDetail_20' ) end [2025-01-28 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346475', 'tblTempVendorCDR_20' ) start [2025-01-28 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346475', 'tblTempVendorCDR_20' ) end [2025-01-28 04:15:18] Production.INFO: ProcessCDR(1,14346475,1,1,2) [2025-01-28 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346475', 'tblTempUsageDetail_20' ) start [2025-01-28 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346475', 'tblTempUsageDetail_20' ) end [2025-01-28 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:15:22] Production.INFO: ==27942== Releasing lock... [2025-01-28 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:15:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:16:05 [end_date_ymd] => 2025-01-28 04:16:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:16:05' and `end` < '2025-01-28 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-28 04:16:17] Production.INFO: count ==201 [2025-01-28 04:16:17] Production.ERROR: pbx CDR StartTime 2025-01-28 01:16:05 - End Time 2025-01-28 04:16:05 [2025-01-28 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346480', 'tblTempUsageDetail_20' ) start [2025-01-28 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346480', 'tblTempUsageDetail_20' ) end [2025-01-28 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346480', 'tblTempVendorCDR_20' ) start [2025-01-28 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346480', 'tblTempVendorCDR_20' ) end [2025-01-28 04:16:17] Production.INFO: ProcessCDR(1,14346480,1,1,2) [2025-01-28 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346480', 'tblTempUsageDetail_20' ) start [2025-01-28 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346480', 'tblTempUsageDetail_20' ) end [2025-01-28 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:16:21] Production.INFO: ==28068== Releasing lock... [2025-01-28 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:17:06 [end_date_ymd] => 2025-01-28 04:17:06 [RateCDR] => 1 ) [2025-01-28 04: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-28 01:17:06' and `end` < '2025-01-28 04: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-28 04:17:18] Production.INFO: count ==201 [2025-01-28 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:17:06 - End Time 2025-01-28 04:17:06 [2025-01-28 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346485', 'tblTempUsageDetail_20' ) start [2025-01-28 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346485', 'tblTempUsageDetail_20' ) end [2025-01-28 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346485', 'tblTempVendorCDR_20' ) start [2025-01-28 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346485', 'tblTempVendorCDR_20' ) end [2025-01-28 04:17:18] Production.INFO: ProcessCDR(1,14346485,1,1,2) [2025-01-28 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346485', 'tblTempUsageDetail_20' ) start [2025-01-28 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346485', 'tblTempUsageDetail_20' ) end [2025-01-28 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:17:21] Production.INFO: ==28185== Releasing lock... [2025-01-28 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:18:05 [end_date_ymd] => 2025-01-28 04:18:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:18:05' and `end` < '2025-01-28 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-28 04:18:17] Production.INFO: count ==201 [2025-01-28 04:18:17] Production.ERROR: pbx CDR StartTime 2025-01-28 01:18:05 - End Time 2025-01-28 04:18:05 [2025-01-28 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346490', 'tblTempUsageDetail_20' ) start [2025-01-28 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346490', 'tblTempUsageDetail_20' ) end [2025-01-28 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346490', 'tblTempVendorCDR_20' ) start [2025-01-28 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346490', 'tblTempVendorCDR_20' ) end [2025-01-28 04:18:17] Production.INFO: ProcessCDR(1,14346490,1,1,2) [2025-01-28 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346490', 'tblTempUsageDetail_20' ) start [2025-01-28 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346490', 'tblTempUsageDetail_20' ) end [2025-01-28 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:18:21] Production.INFO: ==28294== Releasing lock... [2025-01-28 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:19:05 [end_date_ymd] => 2025-01-28 04:19:05 [RateCDR] => 1 ) [2025-01-28 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:19:05' and `end` < '2025-01-28 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:19:17] Production.INFO: count ==197 [2025-01-28 04:19:17] Production.ERROR: pbx CDR StartTime 2025-01-28 01:19:05 - End Time 2025-01-28 04:19:05 [2025-01-28 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346495', 'tblTempUsageDetail_20' ) start [2025-01-28 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346495', 'tblTempUsageDetail_20' ) end [2025-01-28 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346495', 'tblTempVendorCDR_20' ) start [2025-01-28 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346495', 'tblTempVendorCDR_20' ) end [2025-01-28 04:19:17] Production.INFO: ProcessCDR(1,14346495,1,1,2) [2025-01-28 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346495', 'tblTempUsageDetail_20' ) start [2025-01-28 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346495', 'tblTempUsageDetail_20' ) end [2025-01-28 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:19:21] Production.INFO: ==28382== Releasing lock... [2025-01-28 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:20:06 [end_date_ymd] => 2025-01-28 04:20:06 [RateCDR] => 1 ) [2025-01-28 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:20:06' and `end` < '2025-01-28 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:20:18] Production.INFO: count ==185 [2025-01-28 04:20:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:20:06 - End Time 2025-01-28 04:20:06 [2025-01-28 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346501', 'tblTempUsageDetail_20' ) start [2025-01-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346501', 'tblTempUsageDetail_20' ) end [2025-01-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346501', 'tblTempVendorCDR_20' ) start [2025-01-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346501', 'tblTempVendorCDR_20' ) end [2025-01-28 04:20:18] Production.INFO: ProcessCDR(1,14346501,1,1,2) [2025-01-28 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346501', 'tblTempUsageDetail_20' ) start [2025-01-28 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346501', 'tblTempUsageDetail_20' ) end [2025-01-28 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:20:22] Production.INFO: ==28461== Releasing lock... [2025-01-28 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:21:05 [end_date_ymd] => 2025-01-28 04:21:05 [RateCDR] => 1 ) [2025-01-28 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:21:05' and `end` < '2025-01-28 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:21:18] Production.INFO: count ==183 [2025-01-28 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:21:05 - End Time 2025-01-28 04:21:05 [2025-01-28 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346506', 'tblTempUsageDetail_20' ) start [2025-01-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346506', 'tblTempUsageDetail_20' ) end [2025-01-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346506', 'tblTempVendorCDR_20' ) start [2025-01-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346506', 'tblTempVendorCDR_20' ) end [2025-01-28 04:21:18] Production.INFO: ProcessCDR(1,14346506,1,1,2) [2025-01-28 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346506', 'tblTempUsageDetail_20' ) start [2025-01-28 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346506', 'tblTempUsageDetail_20' ) end [2025-01-28 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:21:21] Production.INFO: ==28537== Releasing lock... [2025-01-28 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:22:05 [end_date_ymd] => 2025-01-28 04:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:22:05' and `end` < '2025-01-28 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-28 04:22:17] Production.INFO: count ==183 [2025-01-28 04:22:17] Production.ERROR: pbx CDR StartTime 2025-01-28 01:22:05 - End Time 2025-01-28 04:22:05 [2025-01-28 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346511', 'tblTempUsageDetail_20' ) start [2025-01-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346511', 'tblTempUsageDetail_20' ) end [2025-01-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346511', 'tblTempVendorCDR_20' ) start [2025-01-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346511', 'tblTempVendorCDR_20' ) end [2025-01-28 04:22:17] Production.INFO: ProcessCDR(1,14346511,1,1,2) [2025-01-28 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346511', 'tblTempUsageDetail_20' ) start [2025-01-28 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346511', 'tblTempUsageDetail_20' ) end [2025-01-28 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:22:21] Production.INFO: ==28655== Releasing lock... [2025-01-28 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:23:05 [end_date_ymd] => 2025-01-28 04:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:23:05' and `end` < '2025-01-28 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-28 04:23:18] Production.INFO: count ==183 [2025-01-28 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:23:05 - End Time 2025-01-28 04:23:05 [2025-01-28 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346516', 'tblTempUsageDetail_20' ) start [2025-01-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346516', 'tblTempUsageDetail_20' ) end [2025-01-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346516', 'tblTempVendorCDR_20' ) start [2025-01-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346516', 'tblTempVendorCDR_20' ) end [2025-01-28 04:23:18] Production.INFO: ProcessCDR(1,14346516,1,1,2) [2025-01-28 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346516', 'tblTempUsageDetail_20' ) start [2025-01-28 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346516', 'tblTempUsageDetail_20' ) end [2025-01-28 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:23:21] Production.INFO: ==28734== Releasing lock... [2025-01-28 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:24:06 [end_date_ymd] => 2025-01-28 04:24:06 [RateCDR] => 1 ) [2025-01-28 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:24:06' and `end` < '2025-01-28 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:24:18] Production.INFO: count ==183 [2025-01-28 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:24:06 - End Time 2025-01-28 04:24:06 [2025-01-28 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346521', 'tblTempUsageDetail_20' ) start [2025-01-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346521', 'tblTempUsageDetail_20' ) end [2025-01-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346521', 'tblTempVendorCDR_20' ) start [2025-01-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346521', 'tblTempVendorCDR_20' ) end [2025-01-28 04:24:18] Production.INFO: ProcessCDR(1,14346521,1,1,2) [2025-01-28 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346521', 'tblTempUsageDetail_20' ) start [2025-01-28 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346521', 'tblTempUsageDetail_20' ) end [2025-01-28 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:24:21] Production.INFO: ==28816== Releasing lock... [2025-01-28 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:25:05 [end_date_ymd] => 2025-01-28 04:25:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:25:05' and `end` < '2025-01-28 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-28 04:25:18] Production.INFO: count ==181 [2025-01-28 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:25:05 - End Time 2025-01-28 04:25:05 [2025-01-28 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346526', 'tblTempUsageDetail_20' ) start [2025-01-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346526', 'tblTempUsageDetail_20' ) end [2025-01-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346526', 'tblTempVendorCDR_20' ) start [2025-01-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346526', 'tblTempVendorCDR_20' ) end [2025-01-28 04:25:18] Production.INFO: ProcessCDR(1,14346526,1,1,2) [2025-01-28 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346526', 'tblTempUsageDetail_20' ) start [2025-01-28 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346526', 'tblTempUsageDetail_20' ) end [2025-01-28 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:25:21] Production.INFO: ==28886== Releasing lock... [2025-01-28 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:26:05 [end_date_ymd] => 2025-01-28 04:26:05 [RateCDR] => 1 ) [2025-01-28 04: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-28 01:26:05' and `end` < '2025-01-28 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:26:18] Production.INFO: count ==180 [2025-01-28 04:26:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:26:05 - End Time 2025-01-28 04:26:05 [2025-01-28 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346531', 'tblTempUsageDetail_20' ) start [2025-01-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346531', 'tblTempUsageDetail_20' ) end [2025-01-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346531', 'tblTempVendorCDR_20' ) start [2025-01-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346531', 'tblTempVendorCDR_20' ) end [2025-01-28 04:26:18] Production.INFO: ProcessCDR(1,14346531,1,1,2) [2025-01-28 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346531', 'tblTempUsageDetail_20' ) start [2025-01-28 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346531', 'tblTempUsageDetail_20' ) end [2025-01-28 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:26:21] Production.INFO: ==28972== Releasing lock... [2025-01-28 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:27:05 [end_date_ymd] => 2025-01-28 04:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:27:05' and `end` < '2025-01-28 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-28 04:27:17] Production.INFO: count ==180 [2025-01-28 04:27:17] Production.ERROR: pbx CDR StartTime 2025-01-28 01:27:05 - End Time 2025-01-28 04:27:05 [2025-01-28 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346536', 'tblTempUsageDetail_20' ) start [2025-01-28 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346536', 'tblTempUsageDetail_20' ) end [2025-01-28 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346536', 'tblTempVendorCDR_20' ) start [2025-01-28 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346536', 'tblTempVendorCDR_20' ) end [2025-01-28 04:27:17] Production.INFO: ProcessCDR(1,14346536,1,1,2) [2025-01-28 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346536', 'tblTempUsageDetail_20' ) start [2025-01-28 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346536', 'tblTempUsageDetail_20' ) end [2025-01-28 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:27:20] Production.INFO: ==29051== Releasing lock... [2025-01-28 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:27:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:28:05 [end_date_ymd] => 2025-01-28 04:28:05 [RateCDR] => 1 ) [2025-01-28 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:28:05' and `end` < '2025-01-28 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:28:18] Production.INFO: count ==180 [2025-01-28 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:28:05 - End Time 2025-01-28 04:28:05 [2025-01-28 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346541', 'tblTempUsageDetail_20' ) start [2025-01-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346541', 'tblTempUsageDetail_20' ) end [2025-01-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346541', 'tblTempVendorCDR_20' ) start [2025-01-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346541', 'tblTempVendorCDR_20' ) end [2025-01-28 04:28:18] Production.INFO: ProcessCDR(1,14346541,1,1,2) [2025-01-28 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346541', 'tblTempUsageDetail_20' ) start [2025-01-28 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346541', 'tblTempUsageDetail_20' ) end [2025-01-28 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:28:21] Production.INFO: ==29124== Releasing lock... [2025-01-28 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:29:05 [end_date_ymd] => 2025-01-28 04:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:29:05' and `end` < '2025-01-28 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-28 04:29:17] Production.INFO: count ==180 [2025-01-28 04:29:17] Production.ERROR: pbx CDR StartTime 2025-01-28 01:29:05 - End Time 2025-01-28 04:29:05 [2025-01-28 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346546', 'tblTempUsageDetail_20' ) start [2025-01-28 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346546', 'tblTempUsageDetail_20' ) end [2025-01-28 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346546', 'tblTempVendorCDR_20' ) start [2025-01-28 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346546', 'tblTempVendorCDR_20' ) end [2025-01-28 04:29:17] Production.INFO: ProcessCDR(1,14346546,1,1,2) [2025-01-28 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346546', 'tblTempUsageDetail_20' ) start [2025-01-28 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346546', 'tblTempUsageDetail_20' ) end [2025-01-28 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:29:20] Production.INFO: ==29202== Releasing lock... [2025-01-28 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:30:05 [end_date_ymd] => 2025-01-28 04:30:05 [RateCDR] => 1 ) [2025-01-28 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:30:05' and `end` < '2025-01-28 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:30:18] Production.INFO: count ==178 [2025-01-28 04:30:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:30:05 - End Time 2025-01-28 04:30:05 [2025-01-28 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346552', 'tblTempUsageDetail_20' ) start [2025-01-28 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346552', 'tblTempUsageDetail_20' ) end [2025-01-28 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346552', 'tblTempVendorCDR_20' ) start [2025-01-28 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346552', 'tblTempVendorCDR_20' ) end [2025-01-28 04:30:18] Production.INFO: ProcessCDR(1,14346552,1,1,2) [2025-01-28 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346552', 'tblTempUsageDetail_20' ) start [2025-01-28 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346552', 'tblTempUsageDetail_20' ) end [2025-01-28 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:30:21] Production.INFO: ==29279== Releasing lock... [2025-01-28 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:31:05 [end_date_ymd] => 2025-01-28 04:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:31:05' and `end` < '2025-01-28 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-28 04:31:18] Production.INFO: count ==171 [2025-01-28 04:31:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:31:05 - End Time 2025-01-28 04:31:05 [2025-01-28 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346558', 'tblTempUsageDetail_20' ) start [2025-01-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346558', 'tblTempUsageDetail_20' ) end [2025-01-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346558', 'tblTempVendorCDR_20' ) start [2025-01-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346558', 'tblTempVendorCDR_20' ) end [2025-01-28 04:31:18] Production.INFO: ProcessCDR(1,14346558,1,1,2) [2025-01-28 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346558', 'tblTempUsageDetail_20' ) start [2025-01-28 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346558', 'tblTempUsageDetail_20' ) end [2025-01-28 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:31:21] Production.INFO: ==29362== Releasing lock... [2025-01-28 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:32:05 [end_date_ymd] => 2025-01-28 04:32:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:32:05' and `end` < '2025-01-28 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-28 04:32:17] Production.INFO: count ==171 [2025-01-28 04:32:17] Production.ERROR: pbx CDR StartTime 2025-01-28 01:32:05 - End Time 2025-01-28 04:32:05 [2025-01-28 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346563', 'tblTempUsageDetail_20' ) start [2025-01-28 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346563', 'tblTempUsageDetail_20' ) end [2025-01-28 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346563', 'tblTempVendorCDR_20' ) start [2025-01-28 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346563', 'tblTempVendorCDR_20' ) end [2025-01-28 04:32:17] Production.INFO: ProcessCDR(1,14346563,1,1,2) [2025-01-28 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346563', 'tblTempUsageDetail_20' ) start [2025-01-28 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346563', 'tblTempUsageDetail_20' ) end [2025-01-28 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:32:20] Production.INFO: ==29499== Releasing lock... [2025-01-28 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:32:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:33:05 [end_date_ymd] => 2025-01-28 04:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:33:05' and `end` < '2025-01-28 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-28 04:33:18] Production.INFO: count ==171 [2025-01-28 04:33:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:33:05 - End Time 2025-01-28 04:33:05 [2025-01-28 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346568', 'tblTempUsageDetail_20' ) start [2025-01-28 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346568', 'tblTempUsageDetail_20' ) end [2025-01-28 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346568', 'tblTempVendorCDR_20' ) start [2025-01-28 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346568', 'tblTempVendorCDR_20' ) end [2025-01-28 04:33:18] Production.INFO: ProcessCDR(1,14346568,1,1,2) [2025-01-28 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346568', 'tblTempUsageDetail_20' ) start [2025-01-28 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346568', 'tblTempUsageDetail_20' ) end [2025-01-28 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:33:21] Production.INFO: ==29581== Releasing lock... [2025-01-28 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:34:05 [end_date_ymd] => 2025-01-28 04:34:05 [RateCDR] => 1 ) [2025-01-28 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:34:05' and `end` < '2025-01-28 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:34:19] Production.INFO: count ==171 [2025-01-28 04:34:19] Production.ERROR: pbx CDR StartTime 2025-01-28 01:34:05 - End Time 2025-01-28 04:34:05 [2025-01-28 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346573', 'tblTempUsageDetail_20' ) start [2025-01-28 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346573', 'tblTempUsageDetail_20' ) end [2025-01-28 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346573', 'tblTempVendorCDR_20' ) start [2025-01-28 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346573', 'tblTempVendorCDR_20' ) end [2025-01-28 04:34:19] Production.INFO: ProcessCDR(1,14346573,1,1,2) [2025-01-28 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346573', 'tblTempUsageDetail_20' ) start [2025-01-28 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346573', 'tblTempUsageDetail_20' ) end [2025-01-28 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:34:22] Production.INFO: ==29656== Releasing lock... [2025-01-28 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:35:06 [end_date_ymd] => 2025-01-28 04:35:06 [RateCDR] => 1 ) [2025-01-28 04:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:35:06' and `end` < '2025-01-28 04:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:35:18] Production.INFO: count ==171 [2025-01-28 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:35:06 - End Time 2025-01-28 04:35:06 [2025-01-28 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346578', 'tblTempUsageDetail_20' ) start [2025-01-28 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346578', 'tblTempUsageDetail_20' ) end [2025-01-28 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346578', 'tblTempVendorCDR_20' ) start [2025-01-28 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346578', 'tblTempVendorCDR_20' ) end [2025-01-28 04:35:18] Production.INFO: ProcessCDR(1,14346578,1,1,2) [2025-01-28 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346578', 'tblTempUsageDetail_20' ) start [2025-01-28 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346578', 'tblTempUsageDetail_20' ) end [2025-01-28 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:35:21] Production.INFO: ==29733== Releasing lock... [2025-01-28 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:36:05 [end_date_ymd] => 2025-01-28 04:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:36:05' and `end` < '2025-01-28 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-28 04:36:19] Production.INFO: count ==171 [2025-01-28 04:36:19] Production.ERROR: pbx CDR StartTime 2025-01-28 01:36:05 - End Time 2025-01-28 04:36:05 [2025-01-28 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346583', 'tblTempUsageDetail_20' ) start [2025-01-28 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346583', 'tblTempUsageDetail_20' ) end [2025-01-28 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346583', 'tblTempVendorCDR_20' ) start [2025-01-28 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346583', 'tblTempVendorCDR_20' ) end [2025-01-28 04:36:19] Production.INFO: ProcessCDR(1,14346583,1,1,2) [2025-01-28 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346583', 'tblTempUsageDetail_20' ) start [2025-01-28 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346583', 'tblTempUsageDetail_20' ) end [2025-01-28 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:36:22] Production.INFO: ==29811== Releasing lock... [2025-01-28 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:37:05 [end_date_ymd] => 2025-01-28 04:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:37:05' and `end` < '2025-01-28 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-28 04:37:18] Production.INFO: count ==171 [2025-01-28 04:37:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:37:05 - End Time 2025-01-28 04:37:05 [2025-01-28 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346588', 'tblTempUsageDetail_20' ) start [2025-01-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346588', 'tblTempUsageDetail_20' ) end [2025-01-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346588', 'tblTempVendorCDR_20' ) start [2025-01-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346588', 'tblTempVendorCDR_20' ) end [2025-01-28 04:37:18] Production.INFO: ProcessCDR(1,14346588,1,1,2) [2025-01-28 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346588', 'tblTempUsageDetail_20' ) start [2025-01-28 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346588', 'tblTempUsageDetail_20' ) end [2025-01-28 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:37:21] Production.INFO: ==29891== Releasing lock... [2025-01-28 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:38:05 [end_date_ymd] => 2025-01-28 04:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:38:05' and `end` < '2025-01-28 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-28 04:38:18] Production.INFO: count ==171 [2025-01-28 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:38:05 - End Time 2025-01-28 04:38:05 [2025-01-28 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346593', 'tblTempUsageDetail_20' ) start [2025-01-28 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346593', 'tblTempUsageDetail_20' ) end [2025-01-28 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346593', 'tblTempVendorCDR_20' ) start [2025-01-28 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346593', 'tblTempVendorCDR_20' ) end [2025-01-28 04:38:18] Production.INFO: ProcessCDR(1,14346593,1,1,2) [2025-01-28 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346593', 'tblTempUsageDetail_20' ) start [2025-01-28 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346593', 'tblTempUsageDetail_20' ) end [2025-01-28 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:38:21] Production.INFO: ==30009== Releasing lock... [2025-01-28 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:39:05 [end_date_ymd] => 2025-01-28 04:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:39:05' and `end` < '2025-01-28 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-28 04:39:18] Production.INFO: count ==171 [2025-01-28 04:39:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:39:05 - End Time 2025-01-28 04:39:05 [2025-01-28 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346598', 'tblTempUsageDetail_20' ) start [2025-01-28 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346598', 'tblTempUsageDetail_20' ) end [2025-01-28 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346598', 'tblTempVendorCDR_20' ) start [2025-01-28 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346598', 'tblTempVendorCDR_20' ) end [2025-01-28 04:39:18] Production.INFO: ProcessCDR(1,14346598,1,1,2) [2025-01-28 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346598', 'tblTempUsageDetail_20' ) start [2025-01-28 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346598', 'tblTempUsageDetail_20' ) end [2025-01-28 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:39:21] Production.INFO: ==30098== Releasing lock... [2025-01-28 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:40:06 [end_date_ymd] => 2025-01-28 04:40:06 [RateCDR] => 1 ) [2025-01-28 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:40:06' and `end` < '2025-01-28 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:40:18] Production.INFO: count ==167 [2025-01-28 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:40:06 - End Time 2025-01-28 04:40:06 [2025-01-28 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346604', 'tblTempUsageDetail_20' ) start [2025-01-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346604', 'tblTempUsageDetail_20' ) end [2025-01-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346604', 'tblTempVendorCDR_20' ) start [2025-01-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346604', 'tblTempVendorCDR_20' ) end [2025-01-28 04:40:18] Production.INFO: ProcessCDR(1,14346604,1,1,2) [2025-01-28 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346604', 'tblTempUsageDetail_20' ) start [2025-01-28 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346604', 'tblTempUsageDetail_20' ) end [2025-01-28 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:40:21] Production.INFO: ==30195== Releasing lock... [2025-01-28 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:41:05 [end_date_ymd] => 2025-01-28 04:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:41:05' and `end` < '2025-01-28 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-28 04:41:18] Production.INFO: count ==165 [2025-01-28 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:41:05 - End Time 2025-01-28 04:41:05 [2025-01-28 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346609', 'tblTempUsageDetail_20' ) start [2025-01-28 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346609', 'tblTempUsageDetail_20' ) end [2025-01-28 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346609', 'tblTempVendorCDR_20' ) start [2025-01-28 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346609', 'tblTempVendorCDR_20' ) end [2025-01-28 04:41:18] Production.INFO: ProcessCDR(1,14346609,1,1,2) [2025-01-28 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346609', 'tblTempUsageDetail_20' ) start [2025-01-28 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346609', 'tblTempUsageDetail_20' ) end [2025-01-28 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:41:21] Production.INFO: ==30292== Releasing lock... [2025-01-28 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:42:05 [end_date_ymd] => 2025-01-28 04:42:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:42:05' and `end` < '2025-01-28 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-28 04:42:18] Production.INFO: count ==165 [2025-01-28 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:42:05 - End Time 2025-01-28 04:42:05 [2025-01-28 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346614', 'tblTempUsageDetail_20' ) start [2025-01-28 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346614', 'tblTempUsageDetail_20' ) end [2025-01-28 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346614', 'tblTempVendorCDR_20' ) start [2025-01-28 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346614', 'tblTempVendorCDR_20' ) end [2025-01-28 04:42:18] Production.INFO: ProcessCDR(1,14346614,1,1,2) [2025-01-28 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346614', 'tblTempUsageDetail_20' ) start [2025-01-28 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346614', 'tblTempUsageDetail_20' ) end [2025-01-28 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:42:21] Production.INFO: ==30386== Releasing lock... [2025-01-28 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:43:05 [end_date_ymd] => 2025-01-28 04:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:43:05' and `end` < '2025-01-28 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-28 04:43:18] Production.INFO: count ==165 [2025-01-28 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:43:05 - End Time 2025-01-28 04:43:05 [2025-01-28 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346619', 'tblTempUsageDetail_20' ) start [2025-01-28 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346619', 'tblTempUsageDetail_20' ) end [2025-01-28 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346619', 'tblTempVendorCDR_20' ) start [2025-01-28 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346619', 'tblTempVendorCDR_20' ) end [2025-01-28 04:43:18] Production.INFO: ProcessCDR(1,14346619,1,1,2) [2025-01-28 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346619', 'tblTempUsageDetail_20' ) start [2025-01-28 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346619', 'tblTempUsageDetail_20' ) end [2025-01-28 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:43:21] Production.INFO: ==30481== Releasing lock... [2025-01-28 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:44:05 [end_date_ymd] => 2025-01-28 04:44:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:44:05' and `end` < '2025-01-28 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-28 04:44:18] Production.INFO: count ==165 [2025-01-28 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:44:05 - End Time 2025-01-28 04:44:05 [2025-01-28 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346624', 'tblTempUsageDetail_20' ) start [2025-01-28 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346624', 'tblTempUsageDetail_20' ) end [2025-01-28 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346624', 'tblTempVendorCDR_20' ) start [2025-01-28 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346624', 'tblTempVendorCDR_20' ) end [2025-01-28 04:44:18] Production.INFO: ProcessCDR(1,14346624,1,1,2) [2025-01-28 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346624', 'tblTempUsageDetail_20' ) start [2025-01-28 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346624', 'tblTempUsageDetail_20' ) end [2025-01-28 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:44:21] Production.INFO: ==30573== Releasing lock... [2025-01-28 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:45:05 [end_date_ymd] => 2025-01-28 04:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:45:05' and `end` < '2025-01-28 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-28 04:45:17] Production.INFO: count ==165 [2025-01-28 04:45:17] Production.ERROR: pbx CDR StartTime 2025-01-28 01:45:05 - End Time 2025-01-28 04:45:05 [2025-01-28 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346629', 'tblTempUsageDetail_20' ) start [2025-01-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346629', 'tblTempUsageDetail_20' ) end [2025-01-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346629', 'tblTempVendorCDR_20' ) start [2025-01-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346629', 'tblTempVendorCDR_20' ) end [2025-01-28 04:45:17] Production.INFO: ProcessCDR(1,14346629,1,1,2) [2025-01-28 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346629', 'tblTempUsageDetail_20' ) start [2025-01-28 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346629', 'tblTempUsageDetail_20' ) end [2025-01-28 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:45:20] Production.INFO: ==30665== Releasing lock... [2025-01-28 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:46:05 [end_date_ymd] => 2025-01-28 04:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:46:05' and `end` < '2025-01-28 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-28 04:46:31] Production.INFO: count ==165 [2025-01-28 04:46:31] Production.ERROR: pbx CDR StartTime 2025-01-28 01:46:05 - End Time 2025-01-28 04:46:05 [2025-01-28 04:46:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346634', 'tblTempUsageDetail_20' ) start [2025-01-28 04:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346634', 'tblTempUsageDetail_20' ) end [2025-01-28 04:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346634', 'tblTempVendorCDR_20' ) start [2025-01-28 04:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346634', 'tblTempVendorCDR_20' ) end [2025-01-28 04:46:31] Production.INFO: ProcessCDR(1,14346634,1,1,2) [2025-01-28 04:46:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346634', 'tblTempUsageDetail_20' ) start [2025-01-28 04:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346634', 'tblTempUsageDetail_20' ) end [2025-01-28 04:46:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:46:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:46:34] Production.INFO: ==30759== Releasing lock... [2025-01-28 04:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:46:34] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:47:05 [end_date_ymd] => 2025-01-28 04:47:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:47:05' and `end` < '2025-01-28 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-28 04:47:20] Production.INFO: count ==165 [2025-01-28 04:47:20] Production.ERROR: pbx CDR StartTime 2025-01-28 01:47:05 - End Time 2025-01-28 04:47:05 [2025-01-28 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346639', 'tblTempUsageDetail_20' ) start [2025-01-28 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346639', 'tblTempUsageDetail_20' ) end [2025-01-28 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346639', 'tblTempVendorCDR_20' ) start [2025-01-28 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346639', 'tblTempVendorCDR_20' ) end [2025-01-28 04:47:20] Production.INFO: ProcessCDR(1,14346639,1,1,2) [2025-01-28 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346639', 'tblTempUsageDetail_20' ) start [2025-01-28 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346639', 'tblTempUsageDetail_20' ) end [2025-01-28 04:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:47:23] Production.INFO: ==30852== Releasing lock... [2025-01-28 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:47:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:48:05 [end_date_ymd] => 2025-01-28 04:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:48:05' and `end` < '2025-01-28 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-28 04:48:20] Production.INFO: count ==165 [2025-01-28 04:48:20] Production.ERROR: pbx CDR StartTime 2025-01-28 01:48:05 - End Time 2025-01-28 04:48:05 [2025-01-28 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346644', 'tblTempUsageDetail_20' ) start [2025-01-28 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346644', 'tblTempUsageDetail_20' ) end [2025-01-28 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346644', 'tblTempVendorCDR_20' ) start [2025-01-28 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346644', 'tblTempVendorCDR_20' ) end [2025-01-28 04:48:20] Production.INFO: ProcessCDR(1,14346644,1,1,2) [2025-01-28 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346644', 'tblTempUsageDetail_20' ) start [2025-01-28 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346644', 'tblTempUsageDetail_20' ) end [2025-01-28 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:48:23] Production.INFO: ==30955== Releasing lock... [2025-01-28 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:48:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:49:05 [end_date_ymd] => 2025-01-28 04:49:05 [RateCDR] => 1 ) [2025-01-28 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:49:05' and `end` < '2025-01-28 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:49:19] Production.INFO: count ==165 [2025-01-28 04:49:19] Production.ERROR: pbx CDR StartTime 2025-01-28 01:49:05 - End Time 2025-01-28 04:49:05 [2025-01-28 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346649', 'tblTempUsageDetail_20' ) start [2025-01-28 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346649', 'tblTempUsageDetail_20' ) end [2025-01-28 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346649', 'tblTempVendorCDR_20' ) start [2025-01-28 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346649', 'tblTempVendorCDR_20' ) end [2025-01-28 04:49:19] Production.INFO: ProcessCDR(1,14346649,1,1,2) [2025-01-28 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346649', 'tblTempUsageDetail_20' ) start [2025-01-28 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346649', 'tblTempUsageDetail_20' ) end [2025-01-28 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:49:22] Production.INFO: ==31077== Releasing lock... [2025-01-28 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:49:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:50:06 [end_date_ymd] => 2025-01-28 04:50:06 [RateCDR] => 1 ) [2025-01-28 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:50:06' and `end` < '2025-01-28 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:50:19] Production.INFO: count ==153 [2025-01-28 04:50:19] Production.ERROR: pbx CDR StartTime 2025-01-28 01:50:06 - End Time 2025-01-28 04:50:06 [2025-01-28 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346655', 'tblTempUsageDetail_20' ) start [2025-01-28 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346655', 'tblTempUsageDetail_20' ) end [2025-01-28 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346655', 'tblTempVendorCDR_20' ) start [2025-01-28 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346655', 'tblTempVendorCDR_20' ) end [2025-01-28 04:50:19] Production.INFO: ProcessCDR(1,14346655,1,1,2) [2025-01-28 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346655', 'tblTempUsageDetail_20' ) start [2025-01-28 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346655', 'tblTempUsageDetail_20' ) end [2025-01-28 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:50:22] Production.INFO: ==31175== Releasing lock... [2025-01-28 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:51:04 [end_date_ymd] => 2025-01-28 04:51:04 [RateCDR] => 1 ) [2025-01-28 04: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-28 01:51:04' and `end` < '2025-01-28 04: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-28 04:51:18] Production.INFO: count ==153 [2025-01-28 04:51:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:51:04 - End Time 2025-01-28 04:51:04 [2025-01-28 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346660', 'tblTempUsageDetail_20' ) start [2025-01-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346660', 'tblTempUsageDetail_20' ) end [2025-01-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346660', 'tblTempVendorCDR_20' ) start [2025-01-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346660', 'tblTempVendorCDR_20' ) end [2025-01-28 04:51:18] Production.INFO: ProcessCDR(1,14346660,1,1,2) [2025-01-28 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346660', 'tblTempUsageDetail_20' ) start [2025-01-28 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346660', 'tblTempUsageDetail_20' ) end [2025-01-28 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:51:21] Production.INFO: ==31267== Releasing lock... [2025-01-28 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:52:05 [end_date_ymd] => 2025-01-28 04:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:52:05' and `end` < '2025-01-28 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-28 04:52:18] Production.INFO: count ==153 [2025-01-28 04:52:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:52:05 - End Time 2025-01-28 04:52:05 [2025-01-28 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346665', 'tblTempUsageDetail_20' ) start [2025-01-28 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346665', 'tblTempUsageDetail_20' ) end [2025-01-28 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346665', 'tblTempVendorCDR_20' ) start [2025-01-28 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346665', 'tblTempVendorCDR_20' ) end [2025-01-28 04:52:18] Production.INFO: ProcessCDR(1,14346665,1,1,2) [2025-01-28 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346665', 'tblTempUsageDetail_20' ) start [2025-01-28 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346665', 'tblTempUsageDetail_20' ) end [2025-01-28 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:52:21] Production.INFO: ==31356== Releasing lock... [2025-01-28 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:53:05 [end_date_ymd] => 2025-01-28 04:53:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:53:05' and `end` < '2025-01-28 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-28 04:53:20] Production.INFO: count ==153 [2025-01-28 04:53:20] Production.ERROR: pbx CDR StartTime 2025-01-28 01:53:05 - End Time 2025-01-28 04:53:05 [2025-01-28 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346670', 'tblTempUsageDetail_20' ) start [2025-01-28 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346670', 'tblTempUsageDetail_20' ) end [2025-01-28 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346670', 'tblTempVendorCDR_20' ) start [2025-01-28 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346670', 'tblTempVendorCDR_20' ) end [2025-01-28 04:53:20] Production.INFO: ProcessCDR(1,14346670,1,1,2) [2025-01-28 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346670', 'tblTempUsageDetail_20' ) start [2025-01-28 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346670', 'tblTempUsageDetail_20' ) end [2025-01-28 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:53:23] Production.INFO: ==31485== Releasing lock... [2025-01-28 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:53:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:54:05 [end_date_ymd] => 2025-01-28 04:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:54:05' and `end` < '2025-01-28 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-28 04:54:18] Production.INFO: count ==153 [2025-01-28 04:54:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:54:05 - End Time 2025-01-28 04:54:05 [2025-01-28 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346675', 'tblTempUsageDetail_20' ) start [2025-01-28 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346675', 'tblTempUsageDetail_20' ) end [2025-01-28 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346675', 'tblTempVendorCDR_20' ) start [2025-01-28 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346675', 'tblTempVendorCDR_20' ) end [2025-01-28 04:54:18] Production.INFO: ProcessCDR(1,14346675,1,1,2) [2025-01-28 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346675', 'tblTempUsageDetail_20' ) start [2025-01-28 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346675', 'tblTempUsageDetail_20' ) end [2025-01-28 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:54:21] Production.INFO: ==31574== Releasing lock... [2025-01-28 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:55:05 [end_date_ymd] => 2025-01-28 04:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:55:05' and `end` < '2025-01-28 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-28 04:55:19] Production.INFO: count ==153 [2025-01-28 04:55:19] Production.ERROR: pbx CDR StartTime 2025-01-28 01:55:05 - End Time 2025-01-28 04:55:05 [2025-01-28 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346680', 'tblTempUsageDetail_20' ) start [2025-01-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346680', 'tblTempUsageDetail_20' ) end [2025-01-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346680', 'tblTempVendorCDR_20' ) start [2025-01-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346680', 'tblTempVendorCDR_20' ) end [2025-01-28 04:55:19] Production.INFO: ProcessCDR(1,14346680,1,1,2) [2025-01-28 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346680', 'tblTempUsageDetail_20' ) start [2025-01-28 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346680', 'tblTempUsageDetail_20' ) end [2025-01-28 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:55:22] Production.INFO: ==31667== Releasing lock... [2025-01-28 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:56:05 [end_date_ymd] => 2025-01-28 04:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:56:05' and `end` < '2025-01-28 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-28 04:56:19] Production.INFO: count ==153 [2025-01-28 04:56:19] Production.ERROR: pbx CDR StartTime 2025-01-28 01:56:05 - End Time 2025-01-28 04:56:05 [2025-01-28 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346685', 'tblTempUsageDetail_20' ) start [2025-01-28 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346685', 'tblTempUsageDetail_20' ) end [2025-01-28 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346685', 'tblTempVendorCDR_20' ) start [2025-01-28 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346685', 'tblTempVendorCDR_20' ) end [2025-01-28 04:56:19] Production.INFO: ProcessCDR(1,14346685,1,1,2) [2025-01-28 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346685', 'tblTempUsageDetail_20' ) start [2025-01-28 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346685', 'tblTempUsageDetail_20' ) end [2025-01-28 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:56:22] Production.INFO: ==31761== Releasing lock... [2025-01-28 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:57:05 [end_date_ymd] => 2025-01-28 04:57:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:57:05' and `end` < '2025-01-28 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-28 04:57:19] Production.INFO: count ==153 [2025-01-28 04:57:19] Production.ERROR: pbx CDR StartTime 2025-01-28 01:57:05 - End Time 2025-01-28 04:57:05 [2025-01-28 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346690', 'tblTempUsageDetail_20' ) start [2025-01-28 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346690', 'tblTempUsageDetail_20' ) end [2025-01-28 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346690', 'tblTempVendorCDR_20' ) start [2025-01-28 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346690', 'tblTempVendorCDR_20' ) end [2025-01-28 04:57:19] Production.INFO: ProcessCDR(1,14346690,1,1,2) [2025-01-28 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346690', 'tblTempUsageDetail_20' ) start [2025-01-28 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346690', 'tblTempUsageDetail_20' ) end [2025-01-28 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:57:22] Production.INFO: ==31850== Releasing lock... [2025-01-28 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:57:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:58:06 [end_date_ymd] => 2025-01-28 04:58:06 [RateCDR] => 1 ) [2025-01-28 04:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 01:58:06' and `end` < '2025-01-28 04:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 04:58:19] Production.INFO: count ==152 [2025-01-28 04:58:19] Production.ERROR: pbx CDR StartTime 2025-01-28 01:58:06 - End Time 2025-01-28 04:58:06 [2025-01-28 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346695', 'tblTempUsageDetail_20' ) start [2025-01-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346695', 'tblTempUsageDetail_20' ) end [2025-01-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346695', 'tblTempVendorCDR_20' ) start [2025-01-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346695', 'tblTempVendorCDR_20' ) end [2025-01-28 04:58:19] Production.INFO: ProcessCDR(1,14346695,1,1,2) [2025-01-28 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346695', 'tblTempUsageDetail_20' ) start [2025-01-28 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346695', 'tblTempUsageDetail_20' ) end [2025-01-28 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:58:22] Production.INFO: ==31940== Releasing lock... [2025-01-28 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 01:59:05 [end_date_ymd] => 2025-01-28 04:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 01:59:05' and `end` < '2025-01-28 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-28 04:59:18] Production.INFO: count ==149 [2025-01-28 04:59:18] Production.ERROR: pbx CDR StartTime 2025-01-28 01:59:05 - End Time 2025-01-28 04:59:05 [2025-01-28 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346700', 'tblTempUsageDetail_20' ) start [2025-01-28 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346700', 'tblTempUsageDetail_20' ) end [2025-01-28 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346700', 'tblTempVendorCDR_20' ) start [2025-01-28 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346700', 'tblTempVendorCDR_20' ) end [2025-01-28 04:59:18] Production.INFO: ProcessCDR(1,14346700,1,1,2) [2025-01-28 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346700', 'tblTempUsageDetail_20' ) start [2025-01-28 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346700', 'tblTempUsageDetail_20' ) end [2025-01-28 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 04:59:21] Production.INFO: ==32030== Releasing lock... [2025-01-28 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 04:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 05:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:00:07 [end_date_ymd] => 2025-01-28 05:00:07 [RateCDR] => 1 ) [2025-01-28 05: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-28 02:00:07' and `end` < '2025-01-28 05: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-28 05:00:22] Production.INFO: count ==142 [2025-01-28 05:00:22] Production.ERROR: pbx CDR StartTime 2025-01-28 02:00:07 - End Time 2025-01-28 05:00:07 [2025-01-28 05:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346706', 'tblTempUsageDetail_20' ) start [2025-01-28 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346706', 'tblTempUsageDetail_20' ) end [2025-01-28 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346706', 'tblTempVendorCDR_20' ) start [2025-01-28 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346706', 'tblTempVendorCDR_20' ) end [2025-01-28 05:00:22] Production.INFO: ProcessCDR(1,14346706,1,1,2) [2025-01-28 05:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346706', 'tblTempUsageDetail_20' ) start [2025-01-28 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346706', 'tblTempUsageDetail_20' ) end [2025-01-28 05:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:00:25] Production.INFO: ==32125== Releasing lock... [2025-01-28 05:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:00:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:01:05 [end_date_ymd] => 2025-01-28 05:01:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:01:05' and `end` < '2025-01-28 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-28 05:01:19] Production.INFO: count ==140 [2025-01-28 05:01:19] Production.ERROR: pbx CDR StartTime 2025-01-28 02:01:05 - End Time 2025-01-28 05:01:05 [2025-01-28 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346711', 'tblTempUsageDetail_20' ) start [2025-01-28 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346711', 'tblTempUsageDetail_20' ) end [2025-01-28 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346711', 'tblTempVendorCDR_20' ) start [2025-01-28 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346711', 'tblTempVendorCDR_20' ) end [2025-01-28 05:01:19] Production.INFO: ProcessCDR(1,14346711,1,1,2) [2025-01-28 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346711', 'tblTempUsageDetail_20' ) start [2025-01-28 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346711', 'tblTempUsageDetail_20' ) end [2025-01-28 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:01:22] Production.INFO: ==32232== Releasing lock... [2025-01-28 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:02:05 [end_date_ymd] => 2025-01-28 05:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:02:05' and `end` < '2025-01-28 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-28 05:02:20] Production.INFO: count ==140 [2025-01-28 05:02:20] Production.ERROR: pbx CDR StartTime 2025-01-28 02:02:05 - End Time 2025-01-28 05:02:05 [2025-01-28 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346716', 'tblTempUsageDetail_20' ) start [2025-01-28 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346716', 'tblTempUsageDetail_20' ) end [2025-01-28 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346716', 'tblTempVendorCDR_20' ) start [2025-01-28 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346716', 'tblTempVendorCDR_20' ) end [2025-01-28 05:02:20] Production.INFO: ProcessCDR(1,14346716,1,1,2) [2025-01-28 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346716', 'tblTempUsageDetail_20' ) start [2025-01-28 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346716', 'tblTempUsageDetail_20' ) end [2025-01-28 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:02:23] Production.INFO: ==32324== Releasing lock... [2025-01-28 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:03:04 [end_date_ymd] => 2025-01-28 05:03:04 [RateCDR] => 1 ) [2025-01-28 05:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 02:03:04' and `end` < '2025-01-28 05:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 05:03:19] Production.INFO: count ==140 [2025-01-28 05:03:19] Production.ERROR: pbx CDR StartTime 2025-01-28 02:03:04 - End Time 2025-01-28 05:03:04 [2025-01-28 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346721', 'tblTempUsageDetail_20' ) start [2025-01-28 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346721', 'tblTempUsageDetail_20' ) end [2025-01-28 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346721', 'tblTempVendorCDR_20' ) start [2025-01-28 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346721', 'tblTempVendorCDR_20' ) end [2025-01-28 05:03:19] Production.INFO: ProcessCDR(1,14346721,1,1,2) [2025-01-28 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346721', 'tblTempUsageDetail_20' ) start [2025-01-28 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346721', 'tblTempUsageDetail_20' ) end [2025-01-28 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:03:22] Production.INFO: ==32416== Releasing lock... [2025-01-28 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:04:05 [end_date_ymd] => 2025-01-28 05:04:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:04:05' and `end` < '2025-01-28 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-28 05:04:22] Production.INFO: count ==140 [2025-01-28 05:04:22] Production.ERROR: pbx CDR StartTime 2025-01-28 02:04:05 - End Time 2025-01-28 05:04:05 [2025-01-28 05:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346726', 'tblTempUsageDetail_20' ) start [2025-01-28 05:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346726', 'tblTempUsageDetail_20' ) end [2025-01-28 05:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346726', 'tblTempVendorCDR_20' ) start [2025-01-28 05:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346726', 'tblTempVendorCDR_20' ) end [2025-01-28 05:04:22] Production.INFO: ProcessCDR(1,14346726,1,1,2) [2025-01-28 05:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346726', 'tblTempUsageDetail_20' ) start [2025-01-28 05:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346726', 'tblTempUsageDetail_20' ) end [2025-01-28 05:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:04:25] Production.INFO: ==32506== Releasing lock... [2025-01-28 05:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:04:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:05:05 [end_date_ymd] => 2025-01-28 05:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:05:05' and `end` < '2025-01-28 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-28 05:05:18] Production.INFO: count ==140 [2025-01-28 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:05:05 - End Time 2025-01-28 05:05:05 [2025-01-28 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346731', 'tblTempUsageDetail_20' ) start [2025-01-28 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346731', 'tblTempUsageDetail_20' ) end [2025-01-28 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346731', 'tblTempVendorCDR_20' ) start [2025-01-28 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346731', 'tblTempVendorCDR_20' ) end [2025-01-28 05:05:19] Production.INFO: ProcessCDR(1,14346731,1,1,2) [2025-01-28 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346731', 'tblTempUsageDetail_20' ) start [2025-01-28 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346731', 'tblTempUsageDetail_20' ) end [2025-01-28 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:05:22] Production.INFO: ==32594== Releasing lock... [2025-01-28 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:05:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:06:05 [end_date_ymd] => 2025-01-28 05:06:05 [RateCDR] => 1 ) [2025-01-28 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 02:06:05' and `end` < '2025-01-28 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 05:06:18] Production.INFO: count ==140 [2025-01-28 05:06:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:06:05 - End Time 2025-01-28 05:06:05 [2025-01-28 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346736', 'tblTempUsageDetail_20' ) start [2025-01-28 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346736', 'tblTempUsageDetail_20' ) end [2025-01-28 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346736', 'tblTempVendorCDR_20' ) start [2025-01-28 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346736', 'tblTempVendorCDR_20' ) end [2025-01-28 05:06:18] Production.INFO: ProcessCDR(1,14346736,1,1,2) [2025-01-28 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346736', 'tblTempUsageDetail_20' ) start [2025-01-28 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346736', 'tblTempUsageDetail_20' ) end [2025-01-28 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:06:21] Production.INFO: ==32684== Releasing lock... [2025-01-28 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:07:05 [end_date_ymd] => 2025-01-28 05:07:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:07:05' and `end` < '2025-01-28 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-28 05:07:23] Production.INFO: count ==140 [2025-01-28 05:07:23] Production.ERROR: pbx CDR StartTime 2025-01-28 02:07:05 - End Time 2025-01-28 05:07:05 [2025-01-28 05:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346741', 'tblTempUsageDetail_20' ) start [2025-01-28 05:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346741', 'tblTempUsageDetail_20' ) end [2025-01-28 05:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346741', 'tblTempVendorCDR_20' ) start [2025-01-28 05:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346741', 'tblTempVendorCDR_20' ) end [2025-01-28 05:07:23] Production.INFO: ProcessCDR(1,14346741,1,1,2) [2025-01-28 05:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346741', 'tblTempUsageDetail_20' ) start [2025-01-28 05:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346741', 'tblTempUsageDetail_20' ) end [2025-01-28 05:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:07:26] Production.INFO: ==315== Releasing lock... [2025-01-28 05:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:07:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:08:05 [end_date_ymd] => 2025-01-28 05:08:05 [RateCDR] => 1 ) [2025-01-28 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 02:08:05' and `end` < '2025-01-28 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 05:08:18] Production.INFO: count ==140 [2025-01-28 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:08:05 - End Time 2025-01-28 05:08:05 [2025-01-28 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346746', 'tblTempUsageDetail_20' ) start [2025-01-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346746', 'tblTempUsageDetail_20' ) end [2025-01-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346746', 'tblTempVendorCDR_20' ) start [2025-01-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346746', 'tblTempVendorCDR_20' ) end [2025-01-28 05:08:18] Production.INFO: ProcessCDR(1,14346746,1,1,2) [2025-01-28 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346746', 'tblTempUsageDetail_20' ) start [2025-01-28 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346746', 'tblTempUsageDetail_20' ) end [2025-01-28 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:08:21] Production.INFO: ==419== Releasing lock... [2025-01-28 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:09:06 [end_date_ymd] => 2025-01-28 05:09:06 [RateCDR] => 1 ) [2025-01-28 05: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-28 02:09:06' and `end` < '2025-01-28 05: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-28 05:09:18] Production.INFO: count ==140 [2025-01-28 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:09:06 - End Time 2025-01-28 05:09:06 [2025-01-28 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346751', 'tblTempUsageDetail_20' ) start [2025-01-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346751', 'tblTempUsageDetail_20' ) end [2025-01-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346751', 'tblTempVendorCDR_20' ) start [2025-01-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346751', 'tblTempVendorCDR_20' ) end [2025-01-28 05:09:18] Production.INFO: ProcessCDR(1,14346751,1,1,2) [2025-01-28 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346751', 'tblTempUsageDetail_20' ) start [2025-01-28 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346751', 'tblTempUsageDetail_20' ) end [2025-01-28 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:09:21] Production.INFO: ==550== Releasing lock... [2025-01-28 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:10:06 [end_date_ymd] => 2025-01-28 05:10:06 [RateCDR] => 1 ) [2025-01-28 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 02:10:06' and `end` < '2025-01-28 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 05:10:18] Production.INFO: count ==140 [2025-01-28 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:10:06 - End Time 2025-01-28 05:10:06 [2025-01-28 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346757', 'tblTempUsageDetail_20' ) start [2025-01-28 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346757', 'tblTempUsageDetail_20' ) end [2025-01-28 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346757', 'tblTempVendorCDR_20' ) start [2025-01-28 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346757', 'tblTempVendorCDR_20' ) end [2025-01-28 05:10:18] Production.INFO: ProcessCDR(1,14346757,1,1,2) [2025-01-28 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346757', 'tblTempUsageDetail_20' ) start [2025-01-28 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346757', 'tblTempUsageDetail_20' ) end [2025-01-28 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:10:22] Production.INFO: ==652== Releasing lock... [2025-01-28 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:11:05 [end_date_ymd] => 2025-01-28 05:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:11:05' and `end` < '2025-01-28 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-28 05:11:18] Production.INFO: count ==140 [2025-01-28 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:11:05 - End Time 2025-01-28 05:11:05 [2025-01-28 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346762', 'tblTempUsageDetail_20' ) start [2025-01-28 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346762', 'tblTempUsageDetail_20' ) end [2025-01-28 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346762', 'tblTempVendorCDR_20' ) start [2025-01-28 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346762', 'tblTempVendorCDR_20' ) end [2025-01-28 05:11:18] Production.INFO: ProcessCDR(1,14346762,1,1,2) [2025-01-28 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346762', 'tblTempUsageDetail_20' ) start [2025-01-28 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346762', 'tblTempUsageDetail_20' ) end [2025-01-28 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:11:21] Production.INFO: ==771== Releasing lock... [2025-01-28 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:12:05 [end_date_ymd] => 2025-01-28 05:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:12:05' and `end` < '2025-01-28 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-28 05:12:18] Production.INFO: count ==140 [2025-01-28 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:12:05 - End Time 2025-01-28 05:12:05 [2025-01-28 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346767', 'tblTempUsageDetail_20' ) start [2025-01-28 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346767', 'tblTempUsageDetail_20' ) end [2025-01-28 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346767', 'tblTempVendorCDR_20' ) start [2025-01-28 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346767', 'tblTempVendorCDR_20' ) end [2025-01-28 05:12:18] Production.INFO: ProcessCDR(1,14346767,1,1,2) [2025-01-28 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346767', 'tblTempUsageDetail_20' ) start [2025-01-28 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346767', 'tblTempUsageDetail_20' ) end [2025-01-28 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:12:21] Production.INFO: ==860== Releasing lock... [2025-01-28 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:13:05 [end_date_ymd] => 2025-01-28 05:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:13:05' and `end` < '2025-01-28 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-28 05:13:17] Production.INFO: count ==140 [2025-01-28 05:13:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:13:05 - End Time 2025-01-28 05:13:05 [2025-01-28 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346772', 'tblTempUsageDetail_20' ) start [2025-01-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346772', 'tblTempUsageDetail_20' ) end [2025-01-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346772', 'tblTempVendorCDR_20' ) start [2025-01-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346772', 'tblTempVendorCDR_20' ) end [2025-01-28 05:13:17] Production.INFO: ProcessCDR(1,14346772,1,1,2) [2025-01-28 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346772', 'tblTempUsageDetail_20' ) start [2025-01-28 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346772', 'tblTempUsageDetail_20' ) end [2025-01-28 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:13:20] Production.INFO: ==951== Releasing lock... [2025-01-28 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:14:05 [end_date_ymd] => 2025-01-28 05:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:14:05' and `end` < '2025-01-28 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-28 05:14:18] Production.INFO: count ==140 [2025-01-28 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:14:05 - End Time 2025-01-28 05:14:05 [2025-01-28 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346777', 'tblTempUsageDetail_20' ) start [2025-01-28 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346777', 'tblTempUsageDetail_20' ) end [2025-01-28 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346777', 'tblTempVendorCDR_20' ) start [2025-01-28 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346777', 'tblTempVendorCDR_20' ) end [2025-01-28 05:14:18] Production.INFO: ProcessCDR(1,14346777,1,1,2) [2025-01-28 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346777', 'tblTempUsageDetail_20' ) start [2025-01-28 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346777', 'tblTempUsageDetail_20' ) end [2025-01-28 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:14:21] Production.INFO: ==1028== Releasing lock... [2025-01-28 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:15:05 [end_date_ymd] => 2025-01-28 05:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:15:05' and `end` < '2025-01-28 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-28 05:15:18] Production.INFO: count ==140 [2025-01-28 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:15:05 - End Time 2025-01-28 05:15:05 [2025-01-28 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346782', 'tblTempUsageDetail_20' ) start [2025-01-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346782', 'tblTempUsageDetail_20' ) end [2025-01-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346782', 'tblTempVendorCDR_20' ) start [2025-01-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346782', 'tblTempVendorCDR_20' ) end [2025-01-28 05:15:18] Production.INFO: ProcessCDR(1,14346782,1,1,2) [2025-01-28 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346782', 'tblTempUsageDetail_20' ) start [2025-01-28 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346782', 'tblTempUsageDetail_20' ) end [2025-01-28 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:15:21] Production.INFO: ==1103== Releasing lock... [2025-01-28 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:16:05 [end_date_ymd] => 2025-01-28 05:16:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:16:05' and `end` < '2025-01-28 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-28 05:16:18] Production.INFO: count ==140 [2025-01-28 05:16:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:16:05 - End Time 2025-01-28 05:16:05 [2025-01-28 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346787', 'tblTempUsageDetail_20' ) start [2025-01-28 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346787', 'tblTempUsageDetail_20' ) end [2025-01-28 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346787', 'tblTempVendorCDR_20' ) start [2025-01-28 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346787', 'tblTempVendorCDR_20' ) end [2025-01-28 05:16:18] Production.INFO: ProcessCDR(1,14346787,1,1,2) [2025-01-28 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346787', 'tblTempUsageDetail_20' ) start [2025-01-28 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346787', 'tblTempUsageDetail_20' ) end [2025-01-28 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:16:21] Production.INFO: ==1190== Releasing lock... [2025-01-28 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:17:05 [end_date_ymd] => 2025-01-28 05:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:17:05' and `end` < '2025-01-28 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-28 05:17:17] Production.INFO: count ==140 [2025-01-28 05:17:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:17:05 - End Time 2025-01-28 05:17:05 [2025-01-28 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346792', 'tblTempUsageDetail_20' ) start [2025-01-28 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346792', 'tblTempUsageDetail_20' ) end [2025-01-28 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346792', 'tblTempVendorCDR_20' ) start [2025-01-28 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346792', 'tblTempVendorCDR_20' ) end [2025-01-28 05:17:17] Production.INFO: ProcessCDR(1,14346792,1,1,2) [2025-01-28 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346792', 'tblTempUsageDetail_20' ) start [2025-01-28 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346792', 'tblTempUsageDetail_20' ) end [2025-01-28 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:17:21] Production.INFO: ==1277== Releasing lock... [2025-01-28 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:18:05 [end_date_ymd] => 2025-01-28 05:18:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:18:05' and `end` < '2025-01-28 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-28 05:18:18] Production.INFO: count ==140 [2025-01-28 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:18:05 - End Time 2025-01-28 05:18:05 [2025-01-28 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346797', 'tblTempUsageDetail_20' ) start [2025-01-28 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346797', 'tblTempUsageDetail_20' ) end [2025-01-28 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346797', 'tblTempVendorCDR_20' ) start [2025-01-28 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346797', 'tblTempVendorCDR_20' ) end [2025-01-28 05:18:18] Production.INFO: ProcessCDR(1,14346797,1,1,2) [2025-01-28 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346797', 'tblTempUsageDetail_20' ) start [2025-01-28 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346797', 'tblTempUsageDetail_20' ) end [2025-01-28 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:18:21] Production.INFO: ==1346== Releasing lock... [2025-01-28 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:19:05 [end_date_ymd] => 2025-01-28 05:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:19:05' and `end` < '2025-01-28 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-28 05:19:18] Production.INFO: count ==138 [2025-01-28 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:19:05 - End Time 2025-01-28 05:19:05 [2025-01-28 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346802', 'tblTempUsageDetail_20' ) start [2025-01-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346802', 'tblTempUsageDetail_20' ) end [2025-01-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346802', 'tblTempVendorCDR_20' ) start [2025-01-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346802', 'tblTempVendorCDR_20' ) end [2025-01-28 05:19:18] Production.INFO: ProcessCDR(1,14346802,1,1,2) [2025-01-28 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346802', 'tblTempUsageDetail_20' ) start [2025-01-28 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346802', 'tblTempUsageDetail_20' ) end [2025-01-28 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:19:22] Production.INFO: ==1416== Releasing lock... [2025-01-28 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:20:06 [end_date_ymd] => 2025-01-28 05:20:06 [RateCDR] => 1 ) [2025-01-28 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-28 02:20:06' and `end` < '2025-01-28 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-28 05:20:19] Production.INFO: count ==124 [2025-01-28 05:20:19] Production.ERROR: pbx CDR StartTime 2025-01-28 02:20:06 - End Time 2025-01-28 05:20:06 [2025-01-28 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346808', 'tblTempUsageDetail_20' ) start [2025-01-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346808', 'tblTempUsageDetail_20' ) end [2025-01-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346808', 'tblTempVendorCDR_20' ) start [2025-01-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346808', 'tblTempVendorCDR_20' ) end [2025-01-28 05:20:19] Production.INFO: ProcessCDR(1,14346808,1,1,2) [2025-01-28 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346808', 'tblTempUsageDetail_20' ) start [2025-01-28 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346808', 'tblTempUsageDetail_20' ) end [2025-01-28 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:20:22] Production.INFO: ==1490== Releasing lock... [2025-01-28 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:21:04 [end_date_ymd] => 2025-01-28 05:21:04 [RateCDR] => 1 ) [2025-01-28 05: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-28 02:21:04' and `end` < '2025-01-28 05: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-28 05:21:17] Production.INFO: count ==120 [2025-01-28 05:21:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:21:04 - End Time 2025-01-28 05:21:04 [2025-01-28 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346813', 'tblTempUsageDetail_20' ) start [2025-01-28 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346813', 'tblTempUsageDetail_20' ) end [2025-01-28 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346813', 'tblTempVendorCDR_20' ) start [2025-01-28 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346813', 'tblTempVendorCDR_20' ) end [2025-01-28 05:21:17] Production.INFO: ProcessCDR(1,14346813,1,1,2) [2025-01-28 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346813', 'tblTempUsageDetail_20' ) start [2025-01-28 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346813', 'tblTempUsageDetail_20' ) end [2025-01-28 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:21:20] Production.INFO: ==1600== Releasing lock... [2025-01-28 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:22:05 [end_date_ymd] => 2025-01-28 05:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:22:05' and `end` < '2025-01-28 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-28 05:22:18] Production.INFO: count ==121 [2025-01-28 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:22:05 - End Time 2025-01-28 05:22:05 [2025-01-28 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346818', 'tblTempUsageDetail_20' ) start [2025-01-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346818', 'tblTempUsageDetail_20' ) end [2025-01-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346818', 'tblTempVendorCDR_20' ) start [2025-01-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346818', 'tblTempVendorCDR_20' ) end [2025-01-28 05:22:18] Production.INFO: ProcessCDR(1,14346818,1,1,2) [2025-01-28 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346818', 'tblTempUsageDetail_20' ) start [2025-01-28 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346818', 'tblTempUsageDetail_20' ) end [2025-01-28 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:22:21] Production.INFO: ==1672== Releasing lock... [2025-01-28 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:23:05 [end_date_ymd] => 2025-01-28 05:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:23:05' and `end` < '2025-01-28 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-28 05:23:17] Production.INFO: count ==121 [2025-01-28 05:23:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:23:05 - End Time 2025-01-28 05:23:05 [2025-01-28 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346823', 'tblTempUsageDetail_20' ) start [2025-01-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346823', 'tblTempUsageDetail_20' ) end [2025-01-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346823', 'tblTempVendorCDR_20' ) start [2025-01-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346823', 'tblTempVendorCDR_20' ) end [2025-01-28 05:23:17] Production.INFO: ProcessCDR(1,14346823,1,1,2) [2025-01-28 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346823', 'tblTempUsageDetail_20' ) start [2025-01-28 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346823', 'tblTempUsageDetail_20' ) end [2025-01-28 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:23:20] Production.INFO: ==1746== Releasing lock... [2025-01-28 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:23:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:24:05 [end_date_ymd] => 2025-01-28 05:24:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:24:05' and `end` < '2025-01-28 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-28 05:24:18] Production.INFO: count ==121 [2025-01-28 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:24:05 - End Time 2025-01-28 05:24:05 [2025-01-28 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346828', 'tblTempUsageDetail_20' ) start [2025-01-28 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346828', 'tblTempUsageDetail_20' ) end [2025-01-28 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346828', 'tblTempVendorCDR_20' ) start [2025-01-28 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346828', 'tblTempVendorCDR_20' ) end [2025-01-28 05:24:18] Production.INFO: ProcessCDR(1,14346828,1,1,2) [2025-01-28 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346828', 'tblTempUsageDetail_20' ) start [2025-01-28 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346828', 'tblTempUsageDetail_20' ) end [2025-01-28 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:24:21] Production.INFO: ==1862== Releasing lock... [2025-01-28 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:25:05 [end_date_ymd] => 2025-01-28 05:25:05 [RateCDR] => 1 ) [2025-01-28 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 02:25:05' and `end` < '2025-01-28 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-28 05:25:18] Production.INFO: count ==116 [2025-01-28 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:25:05 - End Time 2025-01-28 05:25:05 [2025-01-28 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346833', 'tblTempUsageDetail_20' ) start [2025-01-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346833', 'tblTempUsageDetail_20' ) end [2025-01-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346833', 'tblTempVendorCDR_20' ) start [2025-01-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346833', 'tblTempVendorCDR_20' ) end [2025-01-28 05:25:18] Production.INFO: ProcessCDR(1,14346833,1,1,2) [2025-01-28 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346833', 'tblTempUsageDetail_20' ) start [2025-01-28 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346833', 'tblTempUsageDetail_20' ) end [2025-01-28 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:25:21] Production.INFO: ==1933== Releasing lock... [2025-01-28 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:26:05 [end_date_ymd] => 2025-01-28 05:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:26:05' and `end` < '2025-01-28 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-28 05:26:18] Production.INFO: count ==116 [2025-01-28 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:26:05 - End Time 2025-01-28 05:26:05 [2025-01-28 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346838', 'tblTempUsageDetail_20' ) start [2025-01-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346838', 'tblTempUsageDetail_20' ) end [2025-01-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346838', 'tblTempVendorCDR_20' ) start [2025-01-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346838', 'tblTempVendorCDR_20' ) end [2025-01-28 05:26:18] Production.INFO: ProcessCDR(1,14346838,1,1,2) [2025-01-28 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346838', 'tblTempUsageDetail_20' ) start [2025-01-28 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346838', 'tblTempUsageDetail_20' ) end [2025-01-28 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:26:21] Production.INFO: ==2009== Releasing lock... [2025-01-28 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:27:05 [end_date_ymd] => 2025-01-28 05:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:27:05' and `end` < '2025-01-28 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-28 05:27:18] Production.INFO: count ==116 [2025-01-28 05:27:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:27:05 - End Time 2025-01-28 05:27:05 [2025-01-28 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346843', 'tblTempUsageDetail_20' ) start [2025-01-28 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346843', 'tblTempUsageDetail_20' ) end [2025-01-28 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346843', 'tblTempVendorCDR_20' ) start [2025-01-28 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346843', 'tblTempVendorCDR_20' ) end [2025-01-28 05:27:18] Production.INFO: ProcessCDR(1,14346843,1,1,2) [2025-01-28 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346843', 'tblTempUsageDetail_20' ) start [2025-01-28 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346843', 'tblTempUsageDetail_20' ) end [2025-01-28 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:27:21] Production.INFO: ==2100== Releasing lock... [2025-01-28 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:28:05 [end_date_ymd] => 2025-01-28 05:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:28:05' and `end` < '2025-01-28 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-28 05:28:18] Production.INFO: count ==116 [2025-01-28 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:28:05 - End Time 2025-01-28 05:28:05 [2025-01-28 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346848', 'tblTempUsageDetail_20' ) start [2025-01-28 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346848', 'tblTempUsageDetail_20' ) end [2025-01-28 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346848', 'tblTempVendorCDR_20' ) start [2025-01-28 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346848', 'tblTempVendorCDR_20' ) end [2025-01-28 05:28:18] Production.INFO: ProcessCDR(1,14346848,1,1,2) [2025-01-28 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346848', 'tblTempUsageDetail_20' ) start [2025-01-28 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346848', 'tblTempUsageDetail_20' ) end [2025-01-28 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:28:21] Production.INFO: ==2192== Releasing lock... [2025-01-28 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:29:06 [end_date_ymd] => 2025-01-28 05:29:06 [RateCDR] => 1 ) [2025-01-28 05:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 02:29:06' and `end` < '2025-01-28 05:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 05:29:18] Production.INFO: count ==115 [2025-01-28 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:29:06 - End Time 2025-01-28 05:29:06 [2025-01-28 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346853', 'tblTempUsageDetail_20' ) start [2025-01-28 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346853', 'tblTempUsageDetail_20' ) end [2025-01-28 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346853', 'tblTempVendorCDR_20' ) start [2025-01-28 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346853', 'tblTempVendorCDR_20' ) end [2025-01-28 05:29:18] Production.INFO: ProcessCDR(1,14346853,1,1,2) [2025-01-28 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346853', 'tblTempUsageDetail_20' ) start [2025-01-28 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346853', 'tblTempUsageDetail_20' ) end [2025-01-28 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:29:21] Production.INFO: ==2282== Releasing lock... [2025-01-28 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:30:06 [end_date_ymd] => 2025-01-28 05:30:06 [RateCDR] => 1 ) [2025-01-28 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-28 02:30:06' and `end` < '2025-01-28 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-28 05:30:18] Production.INFO: count ==110 [2025-01-28 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:30:06 - End Time 2025-01-28 05:30:06 [2025-01-28 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346859', 'tblTempUsageDetail_20' ) start [2025-01-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346859', 'tblTempUsageDetail_20' ) end [2025-01-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346859', 'tblTempVendorCDR_20' ) start [2025-01-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346859', 'tblTempVendorCDR_20' ) end [2025-01-28 05:30:18] Production.INFO: ProcessCDR(1,14346859,1,1,2) [2025-01-28 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346859', 'tblTempUsageDetail_20' ) start [2025-01-28 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346859', 'tblTempUsageDetail_20' ) end [2025-01-28 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:30:22] Production.INFO: ==2379== Releasing lock... [2025-01-28 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:31:05 [end_date_ymd] => 2025-01-28 05:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:31:05' and `end` < '2025-01-28 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-28 05:31:18] Production.INFO: count ==102 [2025-01-28 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:31:05 - End Time 2025-01-28 05:31:05 [2025-01-28 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346864', 'tblTempUsageDetail_20' ) start [2025-01-28 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346864', 'tblTempUsageDetail_20' ) end [2025-01-28 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346864', 'tblTempVendorCDR_20' ) start [2025-01-28 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346864', 'tblTempVendorCDR_20' ) end [2025-01-28 05:31:18] Production.INFO: ProcessCDR(1,14346864,1,1,2) [2025-01-28 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346864', 'tblTempUsageDetail_20' ) start [2025-01-28 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346864', 'tblTempUsageDetail_20' ) end [2025-01-28 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:31:21] Production.INFO: ==2475== Releasing lock... [2025-01-28 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:32:05 [end_date_ymd] => 2025-01-28 05:32:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:32:05' and `end` < '2025-01-28 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-28 05:32:18] Production.INFO: count ==102 [2025-01-28 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:32:05 - End Time 2025-01-28 05:32:05 [2025-01-28 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346869', 'tblTempUsageDetail_20' ) start [2025-01-28 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346869', 'tblTempUsageDetail_20' ) end [2025-01-28 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346869', 'tblTempVendorCDR_20' ) start [2025-01-28 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346869', 'tblTempVendorCDR_20' ) end [2025-01-28 05:32:18] Production.INFO: ProcessCDR(1,14346869,1,1,2) [2025-01-28 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346869', 'tblTempUsageDetail_20' ) start [2025-01-28 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346869', 'tblTempUsageDetail_20' ) end [2025-01-28 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:32:21] Production.INFO: ==2570== Releasing lock... [2025-01-28 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:33:05 [end_date_ymd] => 2025-01-28 05:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:33:05' and `end` < '2025-01-28 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-28 05:33:18] Production.INFO: count ==102 [2025-01-28 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:33:05 - End Time 2025-01-28 05:33:05 [2025-01-28 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346874', 'tblTempUsageDetail_20' ) start [2025-01-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346874', 'tblTempUsageDetail_20' ) end [2025-01-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346874', 'tblTempVendorCDR_20' ) start [2025-01-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346874', 'tblTempVendorCDR_20' ) end [2025-01-28 05:33:18] Production.INFO: ProcessCDR(1,14346874,1,1,2) [2025-01-28 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346874', 'tblTempUsageDetail_20' ) start [2025-01-28 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346874', 'tblTempUsageDetail_20' ) end [2025-01-28 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:33:21] Production.INFO: ==2683== Releasing lock... [2025-01-28 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:34:05 [end_date_ymd] => 2025-01-28 05:34:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:34:05' and `end` < '2025-01-28 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-28 05:34:17] Production.INFO: count ==102 [2025-01-28 05:34:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:34:05 - End Time 2025-01-28 05:34:05 [2025-01-28 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346879', 'tblTempUsageDetail_20' ) start [2025-01-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346879', 'tblTempUsageDetail_20' ) end [2025-01-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346879', 'tblTempVendorCDR_20' ) start [2025-01-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346879', 'tblTempVendorCDR_20' ) end [2025-01-28 05:34:17] Production.INFO: ProcessCDR(1,14346879,1,1,2) [2025-01-28 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346879', 'tblTempUsageDetail_20' ) start [2025-01-28 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346879', 'tblTempUsageDetail_20' ) end [2025-01-28 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:34:21] Production.INFO: ==2791== Releasing lock... [2025-01-28 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:35:05 [end_date_ymd] => 2025-01-28 05:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:35:05' and `end` < '2025-01-28 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-28 05:35:17] Production.INFO: count ==102 [2025-01-28 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:35:05 - End Time 2025-01-28 05:35:05 [2025-01-28 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346884', 'tblTempUsageDetail_20' ) start [2025-01-28 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346884', 'tblTempUsageDetail_20' ) end [2025-01-28 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346884', 'tblTempVendorCDR_20' ) start [2025-01-28 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346884', 'tblTempVendorCDR_20' ) end [2025-01-28 05:35:17] Production.INFO: ProcessCDR(1,14346884,1,1,2) [2025-01-28 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346884', 'tblTempUsageDetail_20' ) start [2025-01-28 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346884', 'tblTempUsageDetail_20' ) end [2025-01-28 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:35:21] Production.INFO: ==2909== Releasing lock... [2025-01-28 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:36:06 [end_date_ymd] => 2025-01-28 05:36:06 [RateCDR] => 1 ) [2025-01-28 05: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-28 02:36:06' and `end` < '2025-01-28 05: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-28 05:36:18] Production.INFO: count ==102 [2025-01-28 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:36:06 - End Time 2025-01-28 05:36:06 [2025-01-28 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346889', 'tblTempUsageDetail_20' ) start [2025-01-28 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346889', 'tblTempUsageDetail_20' ) end [2025-01-28 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346889', 'tblTempVendorCDR_20' ) start [2025-01-28 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346889', 'tblTempVendorCDR_20' ) end [2025-01-28 05:36:18] Production.INFO: ProcessCDR(1,14346889,1,1,2) [2025-01-28 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346889', 'tblTempUsageDetail_20' ) start [2025-01-28 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346889', 'tblTempUsageDetail_20' ) end [2025-01-28 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:36:21] Production.INFO: ==3021== Releasing lock... [2025-01-28 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:37:05 [end_date_ymd] => 2025-01-28 05:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:37:05' and `end` < '2025-01-28 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-28 05:37:18] Production.INFO: count ==101 [2025-01-28 05:37:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:37:05 - End Time 2025-01-28 05:37:05 [2025-01-28 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346894', 'tblTempUsageDetail_20' ) start [2025-01-28 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346894', 'tblTempUsageDetail_20' ) end [2025-01-28 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346894', 'tblTempVendorCDR_20' ) start [2025-01-28 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346894', 'tblTempVendorCDR_20' ) end [2025-01-28 05:37:18] Production.INFO: ProcessCDR(1,14346894,1,1,2) [2025-01-28 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346894', 'tblTempUsageDetail_20' ) start [2025-01-28 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346894', 'tblTempUsageDetail_20' ) end [2025-01-28 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:37:21] Production.INFO: ==3133== Releasing lock... [2025-01-28 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:38:06 [end_date_ymd] => 2025-01-28 05:38:06 [RateCDR] => 1 ) [2025-01-28 05: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-28 02:38:06' and `end` < '2025-01-28 05: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-28 05:38:19] Production.INFO: count ==101 [2025-01-28 05:38:19] Production.ERROR: pbx CDR StartTime 2025-01-28 02:38:06 - End Time 2025-01-28 05:38:06 [2025-01-28 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346899', 'tblTempUsageDetail_20' ) start [2025-01-28 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346899', 'tblTempUsageDetail_20' ) end [2025-01-28 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346899', 'tblTempVendorCDR_20' ) start [2025-01-28 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346899', 'tblTempVendorCDR_20' ) end [2025-01-28 05:38:19] Production.INFO: ProcessCDR(1,14346899,1,1,2) [2025-01-28 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346899', 'tblTempUsageDetail_20' ) start [2025-01-28 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346899', 'tblTempUsageDetail_20' ) end [2025-01-28 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:38:22] Production.INFO: ==3249== Releasing lock... [2025-01-28 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:38:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:39:04 [end_date_ymd] => 2025-01-28 05:39:04 [RateCDR] => 1 ) [2025-01-28 05: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-28 02:39:04' and `end` < '2025-01-28 05: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-28 05:39:17] Production.INFO: count ==101 [2025-01-28 05:39:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:39:04 - End Time 2025-01-28 05:39:04 [2025-01-28 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346904', 'tblTempUsageDetail_20' ) start [2025-01-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346904', 'tblTempUsageDetail_20' ) end [2025-01-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346904', 'tblTempVendorCDR_20' ) start [2025-01-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346904', 'tblTempVendorCDR_20' ) end [2025-01-28 05:39:17] Production.INFO: ProcessCDR(1,14346904,1,1,2) [2025-01-28 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346904', 'tblTempUsageDetail_20' ) start [2025-01-28 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346904', 'tblTempUsageDetail_20' ) end [2025-01-28 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:39:20] Production.INFO: ==3397== Releasing lock... [2025-01-28 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:39:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:40:06 [end_date_ymd] => 2025-01-28 05:40:06 [RateCDR] => 1 ) [2025-01-28 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 02:40:06' and `end` < '2025-01-28 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 05:40:19] Production.INFO: count ==95 [2025-01-28 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-28 02:40:06 - End Time 2025-01-28 05:40:06 [2025-01-28 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346910', 'tblTempUsageDetail_20' ) start [2025-01-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346910', 'tblTempUsageDetail_20' ) end [2025-01-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346910', 'tblTempVendorCDR_20' ) start [2025-01-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346910', 'tblTempVendorCDR_20' ) end [2025-01-28 05:40:19] Production.INFO: ProcessCDR(1,14346910,1,1,2) [2025-01-28 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346910', 'tblTempUsageDetail_20' ) start [2025-01-28 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346910', 'tblTempUsageDetail_20' ) end [2025-01-28 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:40:22] Production.INFO: ==3511== Releasing lock... [2025-01-28 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:41:05 [end_date_ymd] => 2025-01-28 05:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:41:05' and `end` < '2025-01-28 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-28 05:41:17] Production.INFO: count ==95 [2025-01-28 05:41:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:41:05 - End Time 2025-01-28 05:41:05 [2025-01-28 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346915', 'tblTempUsageDetail_20' ) start [2025-01-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346915', 'tblTempUsageDetail_20' ) end [2025-01-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346915', 'tblTempVendorCDR_20' ) start [2025-01-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346915', 'tblTempVendorCDR_20' ) end [2025-01-28 05:41:17] Production.INFO: ProcessCDR(1,14346915,1,1,2) [2025-01-28 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346915', 'tblTempUsageDetail_20' ) start [2025-01-28 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346915', 'tblTempUsageDetail_20' ) end [2025-01-28 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:41:21] Production.INFO: ==3613== Releasing lock... [2025-01-28 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:42:06 [end_date_ymd] => 2025-01-28 05:42:06 [RateCDR] => 1 ) [2025-01-28 05: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-28 02:42:06' and `end` < '2025-01-28 05: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-28 05:42:18] Production.INFO: count ==95 [2025-01-28 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:42:06 - End Time 2025-01-28 05:42:06 [2025-01-28 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346920', 'tblTempUsageDetail_20' ) start [2025-01-28 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346920', 'tblTempUsageDetail_20' ) end [2025-01-28 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346920', 'tblTempVendorCDR_20' ) start [2025-01-28 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346920', 'tblTempVendorCDR_20' ) end [2025-01-28 05:42:18] Production.INFO: ProcessCDR(1,14346920,1,1,2) [2025-01-28 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346920', 'tblTempUsageDetail_20' ) start [2025-01-28 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346920', 'tblTempUsageDetail_20' ) end [2025-01-28 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:42:21] Production.INFO: ==3707== Releasing lock... [2025-01-28 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:42:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:43:04 [end_date_ymd] => 2025-01-28 05:43:04 [RateCDR] => 1 ) [2025-01-28 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-28 02:43:04' and `end` < '2025-01-28 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-28 05:43:17] Production.INFO: count ==95 [2025-01-28 05:43:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:43:04 - End Time 2025-01-28 05:43:04 [2025-01-28 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346925', 'tblTempUsageDetail_20' ) start [2025-01-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346925', 'tblTempUsageDetail_20' ) end [2025-01-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346925', 'tblTempVendorCDR_20' ) start [2025-01-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346925', 'tblTempVendorCDR_20' ) end [2025-01-28 05:43:17] Production.INFO: ProcessCDR(1,14346925,1,1,2) [2025-01-28 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346925', 'tblTempUsageDetail_20' ) start [2025-01-28 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346925', 'tblTempUsageDetail_20' ) end [2025-01-28 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:43:20] Production.INFO: ==3799== Releasing lock... [2025-01-28 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:43:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:44:05 [end_date_ymd] => 2025-01-28 05:44:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:44:05' and `end` < '2025-01-28 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-28 05:44:18] Production.INFO: count ==95 [2025-01-28 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:44:05 - End Time 2025-01-28 05:44:05 [2025-01-28 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346930', 'tblTempUsageDetail_20' ) start [2025-01-28 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346930', 'tblTempUsageDetail_20' ) end [2025-01-28 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346930', 'tblTempVendorCDR_20' ) start [2025-01-28 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346930', 'tblTempVendorCDR_20' ) end [2025-01-28 05:44:18] Production.INFO: ProcessCDR(1,14346930,1,1,2) [2025-01-28 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346930', 'tblTempUsageDetail_20' ) start [2025-01-28 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346930', 'tblTempUsageDetail_20' ) end [2025-01-28 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:44:21] Production.INFO: ==3897== Releasing lock... [2025-01-28 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:45:05 [end_date_ymd] => 2025-01-28 05:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:45:05' and `end` < '2025-01-28 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-28 05:45:17] Production.INFO: count ==95 [2025-01-28 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:45:05 - End Time 2025-01-28 05:45:05 [2025-01-28 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346935', 'tblTempUsageDetail_20' ) start [2025-01-28 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346935', 'tblTempUsageDetail_20' ) end [2025-01-28 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346935', 'tblTempVendorCDR_20' ) start [2025-01-28 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346935', 'tblTempVendorCDR_20' ) end [2025-01-28 05:45:17] Production.INFO: ProcessCDR(1,14346935,1,1,2) [2025-01-28 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346935', 'tblTempUsageDetail_20' ) start [2025-01-28 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346935', 'tblTempUsageDetail_20' ) end [2025-01-28 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:45:21] Production.INFO: ==4000== Releasing lock... [2025-01-28 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:46:05 [end_date_ymd] => 2025-01-28 05:46:05 [RateCDR] => 1 ) [2025-01-28 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 02:46:05' and `end` < '2025-01-28 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 05:46:18] Production.INFO: count ==95 [2025-01-28 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:46:05 - End Time 2025-01-28 05:46:05 [2025-01-28 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346940', 'tblTempUsageDetail_20' ) start [2025-01-28 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346940', 'tblTempUsageDetail_20' ) end [2025-01-28 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346940', 'tblTempVendorCDR_20' ) start [2025-01-28 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346940', 'tblTempVendorCDR_20' ) end [2025-01-28 05:46:18] Production.INFO: ProcessCDR(1,14346940,1,1,2) [2025-01-28 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346940', 'tblTempUsageDetail_20' ) start [2025-01-28 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346940', 'tblTempUsageDetail_20' ) end [2025-01-28 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:46:21] Production.INFO: ==4106== Releasing lock... [2025-01-28 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:47:05 [end_date_ymd] => 2025-01-28 05:47:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:47:05' and `end` < '2025-01-28 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-28 05:47:17] Production.INFO: count ==95 [2025-01-28 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:47:05 - End Time 2025-01-28 05:47:05 [2025-01-28 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346945', 'tblTempUsageDetail_20' ) start [2025-01-28 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346945', 'tblTempUsageDetail_20' ) end [2025-01-28 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346945', 'tblTempVendorCDR_20' ) start [2025-01-28 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346945', 'tblTempVendorCDR_20' ) end [2025-01-28 05:47:17] Production.INFO: ProcessCDR(1,14346945,1,1,2) [2025-01-28 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346945', 'tblTempUsageDetail_20' ) start [2025-01-28 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346945', 'tblTempUsageDetail_20' ) end [2025-01-28 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:47:21] Production.INFO: ==4197== Releasing lock... [2025-01-28 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:48:05 [end_date_ymd] => 2025-01-28 05:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:48:05' and `end` < '2025-01-28 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-28 05:48:18] Production.INFO: count ==95 [2025-01-28 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:48:05 - End Time 2025-01-28 05:48:05 [2025-01-28 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346950', 'tblTempUsageDetail_20' ) start [2025-01-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346950', 'tblTempUsageDetail_20' ) end [2025-01-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346950', 'tblTempVendorCDR_20' ) start [2025-01-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346950', 'tblTempVendorCDR_20' ) end [2025-01-28 05:48:18] Production.INFO: ProcessCDR(1,14346950,1,1,2) [2025-01-28 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346950', 'tblTempUsageDetail_20' ) start [2025-01-28 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346950', 'tblTempUsageDetail_20' ) end [2025-01-28 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:48:21] Production.INFO: ==4293== Releasing lock... [2025-01-28 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:49:06 [end_date_ymd] => 2025-01-28 05:49:06 [RateCDR] => 1 ) [2025-01-28 05: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-28 02:49:06' and `end` < '2025-01-28 05: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-28 05:49:19] Production.INFO: count ==95 [2025-01-28 05:49:19] Production.ERROR: pbx CDR StartTime 2025-01-28 02:49:06 - End Time 2025-01-28 05:49:06 [2025-01-28 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346955', 'tblTempUsageDetail_20' ) start [2025-01-28 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346955', 'tblTempUsageDetail_20' ) end [2025-01-28 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346955', 'tblTempVendorCDR_20' ) start [2025-01-28 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346955', 'tblTempVendorCDR_20' ) end [2025-01-28 05:49:19] Production.INFO: ProcessCDR(1,14346955,1,1,2) [2025-01-28 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346955', 'tblTempUsageDetail_20' ) start [2025-01-28 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346955', 'tblTempUsageDetail_20' ) end [2025-01-28 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:49:22] Production.INFO: ==4387== Releasing lock... [2025-01-28 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:49:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:50:06 [end_date_ymd] => 2025-01-28 05:50:06 [RateCDR] => 1 ) [2025-01-28 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 02:50:06' and `end` < '2025-01-28 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 05:50:18] Production.INFO: count ==95 [2025-01-28 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:50:06 - End Time 2025-01-28 05:50:06 [2025-01-28 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346961', 'tblTempUsageDetail_20' ) start [2025-01-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346961', 'tblTempUsageDetail_20' ) end [2025-01-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346961', 'tblTempVendorCDR_20' ) start [2025-01-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346961', 'tblTempVendorCDR_20' ) end [2025-01-28 05:50:18] Production.INFO: ProcessCDR(1,14346961,1,1,2) [2025-01-28 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346961', 'tblTempUsageDetail_20' ) start [2025-01-28 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346961', 'tblTempUsageDetail_20' ) end [2025-01-28 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:50:21] Production.INFO: ==4486== Releasing lock... [2025-01-28 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:51:06 [end_date_ymd] => 2025-01-28 05:51:06 [RateCDR] => 1 ) [2025-01-28 05: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-28 02:51:06' and `end` < '2025-01-28 05: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-28 05:51:18] Production.INFO: count ==95 [2025-01-28 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:51:06 - End Time 2025-01-28 05:51:06 [2025-01-28 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346966', 'tblTempUsageDetail_20' ) start [2025-01-28 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346966', 'tblTempUsageDetail_20' ) end [2025-01-28 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346966', 'tblTempVendorCDR_20' ) start [2025-01-28 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346966', 'tblTempVendorCDR_20' ) end [2025-01-28 05:51:18] Production.INFO: ProcessCDR(1,14346966,1,1,2) [2025-01-28 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346966', 'tblTempUsageDetail_20' ) start [2025-01-28 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346966', 'tblTempUsageDetail_20' ) end [2025-01-28 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:51:21] Production.INFO: ==4606== Releasing lock... [2025-01-28 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:52:05 [end_date_ymd] => 2025-01-28 05:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:52:05' and `end` < '2025-01-28 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-28 05:52:17] Production.INFO: count ==95 [2025-01-28 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:52:05 - End Time 2025-01-28 05:52:05 [2025-01-28 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346971', 'tblTempUsageDetail_20' ) start [2025-01-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346971', 'tblTempUsageDetail_20' ) end [2025-01-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346971', 'tblTempVendorCDR_20' ) start [2025-01-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346971', 'tblTempVendorCDR_20' ) end [2025-01-28 05:52:17] Production.INFO: ProcessCDR(1,14346971,1,1,2) [2025-01-28 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346971', 'tblTempUsageDetail_20' ) start [2025-01-28 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346971', 'tblTempUsageDetail_20' ) end [2025-01-28 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:52:20] Production.INFO: ==4699== Releasing lock... [2025-01-28 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:52:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:53:05 [end_date_ymd] => 2025-01-28 05:53:05 [RateCDR] => 1 ) [2025-01-28 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 02:53:05' and `end` < '2025-01-28 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 05:53:18] Production.INFO: count ==95 [2025-01-28 05:53:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:53:05 - End Time 2025-01-28 05:53:05 [2025-01-28 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346976', 'tblTempUsageDetail_20' ) start [2025-01-28 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346976', 'tblTempUsageDetail_20' ) end [2025-01-28 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346976', 'tblTempVendorCDR_20' ) start [2025-01-28 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346976', 'tblTempVendorCDR_20' ) end [2025-01-28 05:53:18] Production.INFO: ProcessCDR(1,14346976,1,1,2) [2025-01-28 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346976', 'tblTempUsageDetail_20' ) start [2025-01-28 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346976', 'tblTempUsageDetail_20' ) end [2025-01-28 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:53:21] Production.INFO: ==4793== Releasing lock... [2025-01-28 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:54:05 [end_date_ymd] => 2025-01-28 05:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:54:05' and `end` < '2025-01-28 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-28 05:54:18] Production.INFO: count ==95 [2025-01-28 05:54:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:54:05 - End Time 2025-01-28 05:54:05 [2025-01-28 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346981', 'tblTempUsageDetail_20' ) start [2025-01-28 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346981', 'tblTempUsageDetail_20' ) end [2025-01-28 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346981', 'tblTempVendorCDR_20' ) start [2025-01-28 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346981', 'tblTempVendorCDR_20' ) end [2025-01-28 05:54:18] Production.INFO: ProcessCDR(1,14346981,1,1,2) [2025-01-28 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346981', 'tblTempUsageDetail_20' ) start [2025-01-28 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346981', 'tblTempUsageDetail_20' ) end [2025-01-28 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:54:21] Production.INFO: ==4890== Releasing lock... [2025-01-28 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:55:05 [end_date_ymd] => 2025-01-28 05:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:55:05' and `end` < '2025-01-28 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-28 05:55:18] Production.INFO: count ==95 [2025-01-28 05:55:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:55:05 - End Time 2025-01-28 05:55:05 [2025-01-28 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346986', 'tblTempUsageDetail_20' ) start [2025-01-28 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346986', 'tblTempUsageDetail_20' ) end [2025-01-28 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346986', 'tblTempVendorCDR_20' ) start [2025-01-28 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346986', 'tblTempVendorCDR_20' ) end [2025-01-28 05:55:18] Production.INFO: ProcessCDR(1,14346986,1,1,2) [2025-01-28 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346986', 'tblTempUsageDetail_20' ) start [2025-01-28 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346986', 'tblTempUsageDetail_20' ) end [2025-01-28 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:55:21] Production.INFO: ==5015== Releasing lock... [2025-01-28 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:55:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:56:05 [end_date_ymd] => 2025-01-28 05:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:56:05' and `end` < '2025-01-28 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-28 05:56:17] Production.INFO: count ==95 [2025-01-28 05:56:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:56:05 - End Time 2025-01-28 05:56:05 [2025-01-28 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346991', 'tblTempUsageDetail_20' ) start [2025-01-28 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346991', 'tblTempUsageDetail_20' ) end [2025-01-28 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346991', 'tblTempVendorCDR_20' ) start [2025-01-28 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346991', 'tblTempVendorCDR_20' ) end [2025-01-28 05:56:17] Production.INFO: ProcessCDR(1,14346991,1,1,2) [2025-01-28 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346991', 'tblTempUsageDetail_20' ) start [2025-01-28 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346991', 'tblTempUsageDetail_20' ) end [2025-01-28 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:56:20] Production.INFO: ==5087== Releasing lock... [2025-01-28 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:56:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:57:05 [end_date_ymd] => 2025-01-28 05:57:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:57:05' and `end` < '2025-01-28 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-28 05:57:17] Production.INFO: count ==95 [2025-01-28 05:57:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:57:05 - End Time 2025-01-28 05:57:05 [2025-01-28 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346996', 'tblTempUsageDetail_20' ) start [2025-01-28 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14346996', 'tblTempUsageDetail_20' ) end [2025-01-28 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346996', 'tblTempVendorCDR_20' ) start [2025-01-28 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14346996', 'tblTempVendorCDR_20' ) end [2025-01-28 05:57:17] Production.INFO: ProcessCDR(1,14346996,1,1,2) [2025-01-28 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14346996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14346996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14346996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14346996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346996', 'tblTempUsageDetail_20' ) start [2025-01-28 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14346996', 'tblTempUsageDetail_20' ) end [2025-01-28 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:57:20] Production.INFO: ==5163== Releasing lock... [2025-01-28 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:57:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:58:05 [end_date_ymd] => 2025-01-28 05:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:58:05' and `end` < '2025-01-28 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-28 05:58:18] Production.INFO: count ==95 [2025-01-28 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-28 02:58:05 - End Time 2025-01-28 05:58:05 [2025-01-28 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347001', 'tblTempUsageDetail_20' ) start [2025-01-28 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347001', 'tblTempUsageDetail_20' ) end [2025-01-28 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347001', 'tblTempVendorCDR_20' ) start [2025-01-28 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347001', 'tblTempVendorCDR_20' ) end [2025-01-28 05:58:18] Production.INFO: ProcessCDR(1,14347001,1,1,2) [2025-01-28 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347001', 'tblTempUsageDetail_20' ) start [2025-01-28 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347001', 'tblTempUsageDetail_20' ) end [2025-01-28 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:58:21] Production.INFO: ==5235== Releasing lock... [2025-01-28 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 02:59:05 [end_date_ymd] => 2025-01-28 05:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 02:59:05' and `end` < '2025-01-28 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-28 05:59:17] Production.INFO: count ==95 [2025-01-28 05:59:17] Production.ERROR: pbx CDR StartTime 2025-01-28 02:59:05 - End Time 2025-01-28 05:59:05 [2025-01-28 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347006', 'tblTempUsageDetail_20' ) start [2025-01-28 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347006', 'tblTempUsageDetail_20' ) end [2025-01-28 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347006', 'tblTempVendorCDR_20' ) start [2025-01-28 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347006', 'tblTempVendorCDR_20' ) end [2025-01-28 05:59:17] Production.INFO: ProcessCDR(1,14347006,1,1,2) [2025-01-28 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347006', 'tblTempUsageDetail_20' ) start [2025-01-28 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347006', 'tblTempUsageDetail_20' ) end [2025-01-28 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 05:59:21] Production.INFO: ==5310== Releasing lock... [2025-01-28 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 05:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:00:05 [end_date_ymd] => 2025-01-28 06:00:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:00:05' and `end` < '2025-01-28 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-28 06:00:17] Production.INFO: count ==93 [2025-01-28 06:00:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:00:05 - End Time 2025-01-28 06:00:05 [2025-01-28 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347012', 'tblTempUsageDetail_20' ) start [2025-01-28 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347012', 'tblTempUsageDetail_20' ) end [2025-01-28 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347012', 'tblTempVendorCDR_20' ) start [2025-01-28 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347012', 'tblTempVendorCDR_20' ) end [2025-01-28 06:00:17] Production.INFO: ProcessCDR(1,14347012,1,1,2) [2025-01-28 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347012', 'tblTempUsageDetail_20' ) start [2025-01-28 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347012', 'tblTempUsageDetail_20' ) end [2025-01-28 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:00:21] Production.INFO: ==5387== Releasing lock... [2025-01-28 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:01:04 [end_date_ymd] => 2025-01-28 06:01:04 [RateCDR] => 1 ) [2025-01-28 06:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:01:04' and `end` < '2025-01-28 06:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:01:17] Production.INFO: count ==93 [2025-01-28 06:01:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:01:04 - End Time 2025-01-28 06:01:04 [2025-01-28 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347017', 'tblTempUsageDetail_20' ) start [2025-01-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347017', 'tblTempUsageDetail_20' ) end [2025-01-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347017', 'tblTempVendorCDR_20' ) start [2025-01-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347017', 'tblTempVendorCDR_20' ) end [2025-01-28 06:01:17] Production.INFO: ProcessCDR(1,14347017,1,1,2) [2025-01-28 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347017', 'tblTempUsageDetail_20' ) start [2025-01-28 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347017', 'tblTempUsageDetail_20' ) end [2025-01-28 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:01:20] Production.INFO: ==5472== Releasing lock... [2025-01-28 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:01:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:02:05 [end_date_ymd] => 2025-01-28 06:02:05 [RateCDR] => 1 ) [2025-01-28 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:02:05' and `end` < '2025-01-28 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:02:18] Production.INFO: count ==93 [2025-01-28 06:02:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:02:05 - End Time 2025-01-28 06:02:05 [2025-01-28 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347022', 'tblTempUsageDetail_20' ) start [2025-01-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347022', 'tblTempUsageDetail_20' ) end [2025-01-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347022', 'tblTempVendorCDR_20' ) start [2025-01-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347022', 'tblTempVendorCDR_20' ) end [2025-01-28 06:02:18] Production.INFO: ProcessCDR(1,14347022,1,1,2) [2025-01-28 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347022', 'tblTempUsageDetail_20' ) start [2025-01-28 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347022', 'tblTempUsageDetail_20' ) end [2025-01-28 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:02:21] Production.INFO: ==5544== Releasing lock... [2025-01-28 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:02:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:03:05 [end_date_ymd] => 2025-01-28 06:03:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:03:05' and `end` < '2025-01-28 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-28 06:03:18] Production.INFO: count ==95 [2025-01-28 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:03:05 - End Time 2025-01-28 06:03:05 [2025-01-28 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347027', 'tblTempUsageDetail_20' ) start [2025-01-28 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347027', 'tblTempUsageDetail_20' ) end [2025-01-28 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347027', 'tblTempVendorCDR_20' ) start [2025-01-28 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347027', 'tblTempVendorCDR_20' ) end [2025-01-28 06:03:18] Production.INFO: ProcessCDR(1,14347027,1,1,2) [2025-01-28 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347027', 'tblTempUsageDetail_20' ) start [2025-01-28 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347027', 'tblTempUsageDetail_20' ) end [2025-01-28 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:03:22] Production.INFO: ==5616== Releasing lock... [2025-01-28 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:03:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:04:06 [end_date_ymd] => 2025-01-28 06:04:06 [RateCDR] => 1 ) [2025-01-28 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:04:06' and `end` < '2025-01-28 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:04:18] Production.INFO: count ==95 [2025-01-28 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:04:06 - End Time 2025-01-28 06:04:06 [2025-01-28 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347032', 'tblTempUsageDetail_20' ) start [2025-01-28 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347032', 'tblTempUsageDetail_20' ) end [2025-01-28 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347032', 'tblTempVendorCDR_20' ) start [2025-01-28 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347032', 'tblTempVendorCDR_20' ) end [2025-01-28 06:04:18] Production.INFO: ProcessCDR(1,14347032,1,1,2) [2025-01-28 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347032', 'tblTempUsageDetail_20' ) start [2025-01-28 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347032', 'tblTempUsageDetail_20' ) end [2025-01-28 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:04:21] Production.INFO: ==5689== Releasing lock... [2025-01-28 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:05:05 [end_date_ymd] => 2025-01-28 06:05:05 [RateCDR] => 1 ) [2025-01-28 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:05:05' and `end` < '2025-01-28 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:05:18] Production.INFO: count ==95 [2025-01-28 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:05:05 - End Time 2025-01-28 06:05:05 [2025-01-28 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347037', 'tblTempUsageDetail_20' ) start [2025-01-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347037', 'tblTempUsageDetail_20' ) end [2025-01-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347037', 'tblTempVendorCDR_20' ) start [2025-01-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347037', 'tblTempVendorCDR_20' ) end [2025-01-28 06:05:18] Production.INFO: ProcessCDR(1,14347037,1,1,2) [2025-01-28 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347037', 'tblTempUsageDetail_20' ) start [2025-01-28 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347037', 'tblTempUsageDetail_20' ) end [2025-01-28 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:05:21] Production.INFO: ==5759== Releasing lock... [2025-01-28 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:06:05 [end_date_ymd] => 2025-01-28 06:06:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:06:05' and `end` < '2025-01-28 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-28 06:06:18] Production.INFO: count ==95 [2025-01-28 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:06:05 - End Time 2025-01-28 06:06:05 [2025-01-28 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347042', 'tblTempUsageDetail_20' ) start [2025-01-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347042', 'tblTempUsageDetail_20' ) end [2025-01-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347042', 'tblTempVendorCDR_20' ) start [2025-01-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347042', 'tblTempVendorCDR_20' ) end [2025-01-28 06:06:18] Production.INFO: ProcessCDR(1,14347042,1,1,2) [2025-01-28 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347042', 'tblTempUsageDetail_20' ) start [2025-01-28 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347042', 'tblTempUsageDetail_20' ) end [2025-01-28 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:06:21] Production.INFO: ==5828== Releasing lock... [2025-01-28 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:07:04 [end_date_ymd] => 2025-01-28 06:07:04 [RateCDR] => 1 ) [2025-01-28 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:07:04' and `end` < '2025-01-28 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:07:17] Production.INFO: count ==95 [2025-01-28 06:07:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:07:04 - End Time 2025-01-28 06:07:04 [2025-01-28 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347047', 'tblTempUsageDetail_20' ) start [2025-01-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347047', 'tblTempUsageDetail_20' ) end [2025-01-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347047', 'tblTempVendorCDR_20' ) start [2025-01-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347047', 'tblTempVendorCDR_20' ) end [2025-01-28 06:07:17] Production.INFO: ProcessCDR(1,14347047,1,1,2) [2025-01-28 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347047', 'tblTempUsageDetail_20' ) start [2025-01-28 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347047', 'tblTempUsageDetail_20' ) end [2025-01-28 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:07:20] Production.INFO: ==5899== Releasing lock... [2025-01-28 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:07:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:08:05 [end_date_ymd] => 2025-01-28 06:08:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:08:05' and `end` < '2025-01-28 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-28 06:08:17] Production.INFO: count ==95 [2025-01-28 06:08:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:08:05 - End Time 2025-01-28 06:08:05 [2025-01-28 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347052', 'tblTempUsageDetail_20' ) start [2025-01-28 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347052', 'tblTempUsageDetail_20' ) end [2025-01-28 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347052', 'tblTempVendorCDR_20' ) start [2025-01-28 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347052', 'tblTempVendorCDR_20' ) end [2025-01-28 06:08:17] Production.INFO: ProcessCDR(1,14347052,1,1,2) [2025-01-28 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347052', 'tblTempUsageDetail_20' ) start [2025-01-28 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347052', 'tblTempUsageDetail_20' ) end [2025-01-28 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:08:21] Production.INFO: ==5975== Releasing lock... [2025-01-28 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:08:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:09:05 [end_date_ymd] => 2025-01-28 06:09:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:09:05' and `end` < '2025-01-28 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-28 06:09:17] Production.INFO: count ==95 [2025-01-28 06:09:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:09:05 - End Time 2025-01-28 06:09:05 [2025-01-28 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347057', 'tblTempUsageDetail_20' ) start [2025-01-28 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347057', 'tblTempUsageDetail_20' ) end [2025-01-28 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347057', 'tblTempVendorCDR_20' ) start [2025-01-28 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347057', 'tblTempVendorCDR_20' ) end [2025-01-28 06:09:17] Production.INFO: ProcessCDR(1,14347057,1,1,2) [2025-01-28 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347057', 'tblTempUsageDetail_20' ) start [2025-01-28 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347057', 'tblTempUsageDetail_20' ) end [2025-01-28 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:09:21] Production.INFO: ==6047== Releasing lock... [2025-01-28 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:10:06 [end_date_ymd] => 2025-01-28 06:10:06 [RateCDR] => 1 ) [2025-01-28 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-28 03:10:06' and `end` < '2025-01-28 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-28 06:10:19] Production.INFO: count ==97 [2025-01-28 06:10:19] Production.ERROR: pbx CDR StartTime 2025-01-28 03:10:06 - End Time 2025-01-28 06:10:06 [2025-01-28 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347063', 'tblTempUsageDetail_20' ) start [2025-01-28 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347063', 'tblTempUsageDetail_20' ) end [2025-01-28 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347063', 'tblTempVendorCDR_20' ) start [2025-01-28 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347063', 'tblTempVendorCDR_20' ) end [2025-01-28 06:10:19] Production.INFO: ProcessCDR(1,14347063,1,1,2) [2025-01-28 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347063', 'tblTempUsageDetail_20' ) start [2025-01-28 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347063', 'tblTempUsageDetail_20' ) end [2025-01-28 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:10:22] Production.INFO: ==6161== Releasing lock... [2025-01-28 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:11:05 [end_date_ymd] => 2025-01-28 06:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:11:05' and `end` < '2025-01-28 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-28 06:11:18] Production.INFO: count ==97 [2025-01-28 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:11:05 - End Time 2025-01-28 06:11:05 [2025-01-28 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347068', 'tblTempUsageDetail_20' ) start [2025-01-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347068', 'tblTempUsageDetail_20' ) end [2025-01-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347068', 'tblTempVendorCDR_20' ) start [2025-01-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347068', 'tblTempVendorCDR_20' ) end [2025-01-28 06:11:18] Production.INFO: ProcessCDR(1,14347068,1,1,2) [2025-01-28 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347068', 'tblTempUsageDetail_20' ) start [2025-01-28 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347068', 'tblTempUsageDetail_20' ) end [2025-01-28 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:11:21] Production.INFO: ==6234== Releasing lock... [2025-01-28 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:12:05 [end_date_ymd] => 2025-01-28 06:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:12:05' and `end` < '2025-01-28 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-28 06:12:18] Production.INFO: count ==97 [2025-01-28 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:12:05 - End Time 2025-01-28 06:12:05 [2025-01-28 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347073', 'tblTempUsageDetail_20' ) start [2025-01-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347073', 'tblTempUsageDetail_20' ) end [2025-01-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347073', 'tblTempVendorCDR_20' ) start [2025-01-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347073', 'tblTempVendorCDR_20' ) end [2025-01-28 06:12:18] Production.INFO: ProcessCDR(1,14347073,1,1,2) [2025-01-28 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347073', 'tblTempUsageDetail_20' ) start [2025-01-28 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347073', 'tblTempUsageDetail_20' ) end [2025-01-28 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:12:21] Production.INFO: ==6305== Releasing lock... [2025-01-28 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:13:05 [end_date_ymd] => 2025-01-28 06:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:13:05' and `end` < '2025-01-28 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-28 06:13:18] Production.INFO: count ==97 [2025-01-28 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:13:05 - End Time 2025-01-28 06:13:05 [2025-01-28 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347078', 'tblTempUsageDetail_20' ) start [2025-01-28 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347078', 'tblTempUsageDetail_20' ) end [2025-01-28 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347078', 'tblTempVendorCDR_20' ) start [2025-01-28 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347078', 'tblTempVendorCDR_20' ) end [2025-01-28 06:13:18] Production.INFO: ProcessCDR(1,14347078,1,1,2) [2025-01-28 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347078', 'tblTempUsageDetail_20' ) start [2025-01-28 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347078', 'tblTempUsageDetail_20' ) end [2025-01-28 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:13:21] Production.INFO: ==6377== Releasing lock... [2025-01-28 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:14:05 [end_date_ymd] => 2025-01-28 06:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:14:05' and `end` < '2025-01-28 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-28 06:14:18] Production.INFO: count ==97 [2025-01-28 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:14:05 - End Time 2025-01-28 06:14:05 [2025-01-28 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347083', 'tblTempUsageDetail_20' ) start [2025-01-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347083', 'tblTempUsageDetail_20' ) end [2025-01-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347083', 'tblTempVendorCDR_20' ) start [2025-01-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347083', 'tblTempVendorCDR_20' ) end [2025-01-28 06:14:18] Production.INFO: ProcessCDR(1,14347083,1,1,2) [2025-01-28 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347083', 'tblTempUsageDetail_20' ) start [2025-01-28 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347083', 'tblTempUsageDetail_20' ) end [2025-01-28 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:14:21] Production.INFO: ==6452== Releasing lock... [2025-01-28 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:14:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:15:05 [end_date_ymd] => 2025-01-28 06:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:15:05' and `end` < '2025-01-28 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-28 06:15:18] Production.INFO: count ==96 [2025-01-28 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:15:05 - End Time 2025-01-28 06:15:05 [2025-01-28 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347088', 'tblTempUsageDetail_20' ) start [2025-01-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347088', 'tblTempUsageDetail_20' ) end [2025-01-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347088', 'tblTempVendorCDR_20' ) start [2025-01-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347088', 'tblTempVendorCDR_20' ) end [2025-01-28 06:15:18] Production.INFO: ProcessCDR(1,14347088,1,1,2) [2025-01-28 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347088', 'tblTempUsageDetail_20' ) start [2025-01-28 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347088', 'tblTempUsageDetail_20' ) end [2025-01-28 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:15:21] Production.INFO: ==6527== Releasing lock... [2025-01-28 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:16:05 [end_date_ymd] => 2025-01-28 06:16:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:16:05' and `end` < '2025-01-28 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-28 06:16:18] Production.INFO: count ==96 [2025-01-28 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:16:05 - End Time 2025-01-28 06:16:05 [2025-01-28 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347093', 'tblTempUsageDetail_20' ) start [2025-01-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347093', 'tblTempUsageDetail_20' ) end [2025-01-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347093', 'tblTempVendorCDR_20' ) start [2025-01-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347093', 'tblTempVendorCDR_20' ) end [2025-01-28 06:16:18] Production.INFO: ProcessCDR(1,14347093,1,1,2) [2025-01-28 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347093', 'tblTempUsageDetail_20' ) start [2025-01-28 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347093', 'tblTempUsageDetail_20' ) end [2025-01-28 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:16:21] Production.INFO: ==6597== Releasing lock... [2025-01-28 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:17:05 [end_date_ymd] => 2025-01-28 06:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:17:05' and `end` < '2025-01-28 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-28 06:17:18] Production.INFO: count ==96 [2025-01-28 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:17:05 - End Time 2025-01-28 06:17:05 [2025-01-28 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347098', 'tblTempUsageDetail_20' ) start [2025-01-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347098', 'tblTempUsageDetail_20' ) end [2025-01-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347098', 'tblTempVendorCDR_20' ) start [2025-01-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347098', 'tblTempVendorCDR_20' ) end [2025-01-28 06:17:18] Production.INFO: ProcessCDR(1,14347098,1,1,2) [2025-01-28 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347098', 'tblTempUsageDetail_20' ) start [2025-01-28 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347098', 'tblTempUsageDetail_20' ) end [2025-01-28 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:17:21] Production.INFO: ==6670== Releasing lock... [2025-01-28 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:18:05 [end_date_ymd] => 2025-01-28 06:18:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:18:05' and `end` < '2025-01-28 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-28 06:18:18] Production.INFO: count ==96 [2025-01-28 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:18:05 - End Time 2025-01-28 06:18:05 [2025-01-28 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347103', 'tblTempUsageDetail_20' ) start [2025-01-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347103', 'tblTempUsageDetail_20' ) end [2025-01-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347103', 'tblTempVendorCDR_20' ) start [2025-01-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347103', 'tblTempVendorCDR_20' ) end [2025-01-28 06:18:18] Production.INFO: ProcessCDR(1,14347103,1,1,2) [2025-01-28 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347103', 'tblTempUsageDetail_20' ) start [2025-01-28 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347103', 'tblTempUsageDetail_20' ) end [2025-01-28 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:18:21] Production.INFO: ==6742== Releasing lock... [2025-01-28 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:19:05 [end_date_ymd] => 2025-01-28 06:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:19:05' and `end` < '2025-01-28 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-28 06:19:18] Production.INFO: count ==96 [2025-01-28 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:19:05 - End Time 2025-01-28 06:19:05 [2025-01-28 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347108', 'tblTempUsageDetail_20' ) start [2025-01-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347108', 'tblTempUsageDetail_20' ) end [2025-01-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347108', 'tblTempVendorCDR_20' ) start [2025-01-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347108', 'tblTempVendorCDR_20' ) end [2025-01-28 06:19:18] Production.INFO: ProcessCDR(1,14347108,1,1,2) [2025-01-28 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347108', 'tblTempUsageDetail_20' ) start [2025-01-28 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347108', 'tblTempUsageDetail_20' ) end [2025-01-28 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:19:21] Production.INFO: ==6816== Releasing lock... [2025-01-28 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:20:05 [end_date_ymd] => 2025-01-28 06:20:05 [RateCDR] => 1 ) [2025-01-28 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:20:05' and `end` < '2025-01-28 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:20:18] Production.INFO: count ==96 [2025-01-28 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:20:05 - End Time 2025-01-28 06:20:05 [2025-01-28 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347113', 'tblTempUsageDetail_20' ) start [2025-01-28 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347113', 'tblTempUsageDetail_20' ) end [2025-01-28 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347113', 'tblTempVendorCDR_20' ) start [2025-01-28 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347113', 'tblTempVendorCDR_20' ) end [2025-01-28 06:20:18] Production.INFO: ProcessCDR(1,14347113,1,1,2) [2025-01-28 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347113', 'tblTempUsageDetail_20' ) start [2025-01-28 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347113', 'tblTempUsageDetail_20' ) end [2025-01-28 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:20:21] Production.INFO: ==6892== Releasing lock... [2025-01-28 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:21:05 [end_date_ymd] => 2025-01-28 06:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:21:05' and `end` < '2025-01-28 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-28 06:21:17] Production.INFO: count ==96 [2025-01-28 06:21:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:21:05 - End Time 2025-01-28 06:21:05 [2025-01-28 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347119', 'tblTempUsageDetail_20' ) start [2025-01-28 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347119', 'tblTempUsageDetail_20' ) end [2025-01-28 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347119', 'tblTempVendorCDR_20' ) start [2025-01-28 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347119', 'tblTempVendorCDR_20' ) end [2025-01-28 06:21:17] Production.INFO: ProcessCDR(1,14347119,1,1,2) [2025-01-28 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347119', 'tblTempUsageDetail_20' ) start [2025-01-28 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347119', 'tblTempUsageDetail_20' ) end [2025-01-28 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:21:20] Production.INFO: ==6968== Releasing lock... [2025-01-28 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:21:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:22:05 [end_date_ymd] => 2025-01-28 06:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:22:05' and `end` < '2025-01-28 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-28 06:22:17] Production.INFO: count ==96 [2025-01-28 06:22:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:22:05 - End Time 2025-01-28 06:22:05 [2025-01-28 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347124', 'tblTempUsageDetail_20' ) start [2025-01-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347124', 'tblTempUsageDetail_20' ) end [2025-01-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347124', 'tblTempVendorCDR_20' ) start [2025-01-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347124', 'tblTempVendorCDR_20' ) end [2025-01-28 06:22:17] Production.INFO: ProcessCDR(1,14347124,1,1,2) [2025-01-28 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347124', 'tblTempUsageDetail_20' ) start [2025-01-28 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347124', 'tblTempUsageDetail_20' ) end [2025-01-28 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:22:21] Production.INFO: ==7037== Releasing lock... [2025-01-28 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:23:05 [end_date_ymd] => 2025-01-28 06:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:23:05' and `end` < '2025-01-28 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-28 06:23:18] Production.INFO: count ==96 [2025-01-28 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:23:05 - End Time 2025-01-28 06:23:05 [2025-01-28 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347129', 'tblTempUsageDetail_20' ) start [2025-01-28 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347129', 'tblTempUsageDetail_20' ) end [2025-01-28 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347129', 'tblTempVendorCDR_20' ) start [2025-01-28 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347129', 'tblTempVendorCDR_20' ) end [2025-01-28 06:23:18] Production.INFO: ProcessCDR(1,14347129,1,1,2) [2025-01-28 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347129', 'tblTempUsageDetail_20' ) start [2025-01-28 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347129', 'tblTempUsageDetail_20' ) end [2025-01-28 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:23:21] Production.INFO: ==7112== Releasing lock... [2025-01-28 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:24:06 [end_date_ymd] => 2025-01-28 06:24:06 [RateCDR] => 1 ) [2025-01-28 06:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:24:06' and `end` < '2025-01-28 06:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:24:18] Production.INFO: count ==96 [2025-01-28 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:24:06 - End Time 2025-01-28 06:24:06 [2025-01-28 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347134', 'tblTempUsageDetail_20' ) start [2025-01-28 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347134', 'tblTempUsageDetail_20' ) end [2025-01-28 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347134', 'tblTempVendorCDR_20' ) start [2025-01-28 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347134', 'tblTempVendorCDR_20' ) end [2025-01-28 06:24:18] Production.INFO: ProcessCDR(1,14347134,1,1,2) [2025-01-28 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347134', 'tblTempUsageDetail_20' ) start [2025-01-28 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347134', 'tblTempUsageDetail_20' ) end [2025-01-28 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:24:21] Production.INFO: ==7184== Releasing lock... [2025-01-28 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:25:05 [end_date_ymd] => 2025-01-28 06:25:05 [RateCDR] => 1 ) [2025-01-28 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:25:05' and `end` < '2025-01-28 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:25:18] Production.INFO: count ==96 [2025-01-28 06:25:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:25:05 - End Time 2025-01-28 06:25:05 [2025-01-28 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347139', 'tblTempUsageDetail_20' ) start [2025-01-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347139', 'tblTempUsageDetail_20' ) end [2025-01-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347139', 'tblTempVendorCDR_20' ) start [2025-01-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347139', 'tblTempVendorCDR_20' ) end [2025-01-28 06:25:18] Production.INFO: ProcessCDR(1,14347139,1,1,2) [2025-01-28 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347139', 'tblTempUsageDetail_20' ) start [2025-01-28 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347139', 'tblTempUsageDetail_20' ) end [2025-01-28 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:25:21] Production.INFO: ==7257== Releasing lock... [2025-01-28 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:26:06 [end_date_ymd] => 2025-01-28 06:26:06 [RateCDR] => 1 ) [2025-01-28 06: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-28 03:26:06' and `end` < '2025-01-28 06: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-28 06:26:18] Production.INFO: count ==96 [2025-01-28 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:26:06 - End Time 2025-01-28 06:26:06 [2025-01-28 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347144', 'tblTempUsageDetail_20' ) start [2025-01-28 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347144', 'tblTempUsageDetail_20' ) end [2025-01-28 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347144', 'tblTempVendorCDR_20' ) start [2025-01-28 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347144', 'tblTempVendorCDR_20' ) end [2025-01-28 06:26:18] Production.INFO: ProcessCDR(1,14347144,1,1,2) [2025-01-28 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347144', 'tblTempUsageDetail_20' ) start [2025-01-28 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347144', 'tblTempUsageDetail_20' ) end [2025-01-28 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:26:21] Production.INFO: ==7367== Releasing lock... [2025-01-28 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:27:05 [end_date_ymd] => 2025-01-28 06:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:27:05' and `end` < '2025-01-28 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-28 06:27:18] Production.INFO: count ==96 [2025-01-28 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:27:05 - End Time 2025-01-28 06:27:05 [2025-01-28 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347149', 'tblTempUsageDetail_20' ) start [2025-01-28 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347149', 'tblTempUsageDetail_20' ) end [2025-01-28 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347149', 'tblTempVendorCDR_20' ) start [2025-01-28 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347149', 'tblTempVendorCDR_20' ) end [2025-01-28 06:27:18] Production.INFO: ProcessCDR(1,14347149,1,1,2) [2025-01-28 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347149', 'tblTempUsageDetail_20' ) start [2025-01-28 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347149', 'tblTempUsageDetail_20' ) end [2025-01-28 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:27:21] Production.INFO: ==7441== Releasing lock... [2025-01-28 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:27:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:28:06 [end_date_ymd] => 2025-01-28 06:28:06 [RateCDR] => 1 ) [2025-01-28 06: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-28 03:28:06' and `end` < '2025-01-28 06: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-28 06:28:18] Production.INFO: count ==96 [2025-01-28 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:28:06 - End Time 2025-01-28 06:28:06 [2025-01-28 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347154', 'tblTempUsageDetail_20' ) start [2025-01-28 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347154', 'tblTempUsageDetail_20' ) end [2025-01-28 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347154', 'tblTempVendorCDR_20' ) start [2025-01-28 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347154', 'tblTempVendorCDR_20' ) end [2025-01-28 06:28:18] Production.INFO: ProcessCDR(1,14347154,1,1,2) [2025-01-28 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347154', 'tblTempUsageDetail_20' ) start [2025-01-28 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347154', 'tblTempUsageDetail_20' ) end [2025-01-28 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:28:21] Production.INFO: ==7516== Releasing lock... [2025-01-28 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:29:05 [end_date_ymd] => 2025-01-28 06:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:29:05' and `end` < '2025-01-28 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-28 06:29:18] Production.INFO: count ==96 [2025-01-28 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:29:05 - End Time 2025-01-28 06:29:05 [2025-01-28 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347159', 'tblTempUsageDetail_20' ) start [2025-01-28 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347159', 'tblTempUsageDetail_20' ) end [2025-01-28 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347159', 'tblTempVendorCDR_20' ) start [2025-01-28 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347159', 'tblTempVendorCDR_20' ) end [2025-01-28 06:29:18] Production.INFO: ProcessCDR(1,14347159,1,1,2) [2025-01-28 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347159', 'tblTempUsageDetail_20' ) start [2025-01-28 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347159', 'tblTempUsageDetail_20' ) end [2025-01-28 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:29:21] Production.INFO: ==7589== Releasing lock... [2025-01-28 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:30:06 [end_date_ymd] => 2025-01-28 06:30:06 [RateCDR] => 1 ) [2025-01-28 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:30:06' and `end` < '2025-01-28 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:30:19] Production.INFO: count ==98 [2025-01-28 06:30:19] Production.ERROR: pbx CDR StartTime 2025-01-28 03:30:06 - End Time 2025-01-28 06:30:06 [2025-01-28 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347165', 'tblTempUsageDetail_20' ) start [2025-01-28 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347165', 'tblTempUsageDetail_20' ) end [2025-01-28 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347165', 'tblTempVendorCDR_20' ) start [2025-01-28 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347165', 'tblTempVendorCDR_20' ) end [2025-01-28 06:30:19] Production.INFO: ProcessCDR(1,14347165,1,1,2) [2025-01-28 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347165', 'tblTempUsageDetail_20' ) start [2025-01-28 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347165', 'tblTempUsageDetail_20' ) end [2025-01-28 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:30:22] Production.INFO: ==7664== Releasing lock... [2025-01-28 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:30:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:31:04 [end_date_ymd] => 2025-01-28 06:31:04 [RateCDR] => 1 ) [2025-01-28 06:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:31:04' and `end` < '2025-01-28 06:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:31:17] Production.INFO: count ==99 [2025-01-28 06:31:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:31:04 - End Time 2025-01-28 06:31:04 [2025-01-28 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347170', 'tblTempUsageDetail_20' ) start [2025-01-28 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347170', 'tblTempUsageDetail_20' ) end [2025-01-28 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347170', 'tblTempVendorCDR_20' ) start [2025-01-28 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347170', 'tblTempVendorCDR_20' ) end [2025-01-28 06:31:17] Production.INFO: ProcessCDR(1,14347170,1,1,2) [2025-01-28 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347170', 'tblTempUsageDetail_20' ) start [2025-01-28 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347170', 'tblTempUsageDetail_20' ) end [2025-01-28 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:31:20] Production.INFO: ==7739== Releasing lock... [2025-01-28 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:31:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:32:05 [end_date_ymd] => 2025-01-28 06:32:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:32:05' and `end` < '2025-01-28 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-28 06:32:17] Production.INFO: count ==99 [2025-01-28 06:32:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:32:05 - End Time 2025-01-28 06:32:05 [2025-01-28 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347175', 'tblTempUsageDetail_20' ) start [2025-01-28 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347175', 'tblTempUsageDetail_20' ) end [2025-01-28 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347175', 'tblTempVendorCDR_20' ) start [2025-01-28 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347175', 'tblTempVendorCDR_20' ) end [2025-01-28 06:32:17] Production.INFO: ProcessCDR(1,14347175,1,1,2) [2025-01-28 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347175', 'tblTempUsageDetail_20' ) start [2025-01-28 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347175', 'tblTempUsageDetail_20' ) end [2025-01-28 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:32:21] Production.INFO: ==7811== Releasing lock... [2025-01-28 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:33:05 [end_date_ymd] => 2025-01-28 06:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:33:05' and `end` < '2025-01-28 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-28 06:33:18] Production.INFO: count ==99 [2025-01-28 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:33:05 - End Time 2025-01-28 06:33:05 [2025-01-28 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347180', 'tblTempUsageDetail_20' ) start [2025-01-28 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347180', 'tblTempUsageDetail_20' ) end [2025-01-28 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347180', 'tblTempVendorCDR_20' ) start [2025-01-28 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347180', 'tblTempVendorCDR_20' ) end [2025-01-28 06:33:18] Production.INFO: ProcessCDR(1,14347180,1,1,2) [2025-01-28 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347180', 'tblTempUsageDetail_20' ) start [2025-01-28 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347180', 'tblTempUsageDetail_20' ) end [2025-01-28 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:33:21] Production.INFO: ==7889== Releasing lock... [2025-01-28 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:34:05 [end_date_ymd] => 2025-01-28 06:34:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:34:05' and `end` < '2025-01-28 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-28 06:34:18] Production.INFO: count ==99 [2025-01-28 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:34:05 - End Time 2025-01-28 06:34:05 [2025-01-28 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347185', 'tblTempUsageDetail_20' ) start [2025-01-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347185', 'tblTempUsageDetail_20' ) end [2025-01-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347185', 'tblTempVendorCDR_20' ) start [2025-01-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347185', 'tblTempVendorCDR_20' ) end [2025-01-28 06:34:18] Production.INFO: ProcessCDR(1,14347185,1,1,2) [2025-01-28 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347185', 'tblTempUsageDetail_20' ) start [2025-01-28 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347185', 'tblTempUsageDetail_20' ) end [2025-01-28 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:34:21] Production.INFO: ==7960== Releasing lock... [2025-01-28 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:35:05 [end_date_ymd] => 2025-01-28 06:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:35:05' and `end` < '2025-01-28 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-28 06:35:18] Production.INFO: count ==99 [2025-01-28 06:35:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:35:05 - End Time 2025-01-28 06:35:05 [2025-01-28 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347190', 'tblTempUsageDetail_20' ) start [2025-01-28 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347190', 'tblTempUsageDetail_20' ) end [2025-01-28 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347190', 'tblTempVendorCDR_20' ) start [2025-01-28 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347190', 'tblTempVendorCDR_20' ) end [2025-01-28 06:35:18] Production.INFO: ProcessCDR(1,14347190,1,1,2) [2025-01-28 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347190', 'tblTempUsageDetail_20' ) start [2025-01-28 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347190', 'tblTempUsageDetail_20' ) end [2025-01-28 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:35:21] Production.INFO: ==8031== Releasing lock... [2025-01-28 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:36:05 [end_date_ymd] => 2025-01-28 06:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:36:05' and `end` < '2025-01-28 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-28 06:36:17] Production.INFO: count ==99 [2025-01-28 06:36:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:36:05 - End Time 2025-01-28 06:36:05 [2025-01-28 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347195', 'tblTempUsageDetail_20' ) start [2025-01-28 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347195', 'tblTempUsageDetail_20' ) end [2025-01-28 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347195', 'tblTempVendorCDR_20' ) start [2025-01-28 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347195', 'tblTempVendorCDR_20' ) end [2025-01-28 06:36:17] Production.INFO: ProcessCDR(1,14347195,1,1,2) [2025-01-28 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347195', 'tblTempUsageDetail_20' ) start [2025-01-28 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347195', 'tblTempUsageDetail_20' ) end [2025-01-28 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:36:20] Production.INFO: ==8101== Releasing lock... [2025-01-28 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:36:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:37:05 [end_date_ymd] => 2025-01-28 06:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:37:05' and `end` < '2025-01-28 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-28 06:37:18] Production.INFO: count ==98 [2025-01-28 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:37:05 - End Time 2025-01-28 06:37:05 [2025-01-28 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347200', 'tblTempUsageDetail_20' ) start [2025-01-28 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347200', 'tblTempUsageDetail_20' ) end [2025-01-28 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347200', 'tblTempVendorCDR_20' ) start [2025-01-28 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347200', 'tblTempVendorCDR_20' ) end [2025-01-28 06:37:18] Production.INFO: ProcessCDR(1,14347200,1,1,2) [2025-01-28 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347200', 'tblTempUsageDetail_20' ) start [2025-01-28 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347200', 'tblTempUsageDetail_20' ) end [2025-01-28 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:37:21] Production.INFO: ==8174== Releasing lock... [2025-01-28 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:38:05 [end_date_ymd] => 2025-01-28 06:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:38:05' and `end` < '2025-01-28 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-28 06:38:17] Production.INFO: count ==97 [2025-01-28 06:38:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:38:05 - End Time 2025-01-28 06:38:05 [2025-01-28 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347205', 'tblTempUsageDetail_20' ) start [2025-01-28 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347205', 'tblTempUsageDetail_20' ) end [2025-01-28 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347205', 'tblTempVendorCDR_20' ) start [2025-01-28 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347205', 'tblTempVendorCDR_20' ) end [2025-01-28 06:38:17] Production.INFO: ProcessCDR(1,14347205,1,1,2) [2025-01-28 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347205', 'tblTempUsageDetail_20' ) start [2025-01-28 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347205', 'tblTempUsageDetail_20' ) end [2025-01-28 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:38:20] Production.INFO: ==8245== Releasing lock... [2025-01-28 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:38:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:39:05 [end_date_ymd] => 2025-01-28 06:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:39:05' and `end` < '2025-01-28 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-28 06:39:18] Production.INFO: count ==97 [2025-01-28 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:39:05 - End Time 2025-01-28 06:39:05 [2025-01-28 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347210', 'tblTempUsageDetail_20' ) start [2025-01-28 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347210', 'tblTempUsageDetail_20' ) end [2025-01-28 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347210', 'tblTempVendorCDR_20' ) start [2025-01-28 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347210', 'tblTempVendorCDR_20' ) end [2025-01-28 06:39:18] Production.INFO: ProcessCDR(1,14347210,1,1,2) [2025-01-28 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347210', 'tblTempUsageDetail_20' ) start [2025-01-28 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347210', 'tblTempUsageDetail_20' ) end [2025-01-28 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:39:21] Production.INFO: ==8321== Releasing lock... [2025-01-28 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:40:05 [end_date_ymd] => 2025-01-28 06:40:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:40:05' and `end` < '2025-01-28 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-28 06:40:17] Production.INFO: count ==95 [2025-01-28 06:40:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:40:05 - End Time 2025-01-28 06:40:05 [2025-01-28 06:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347216', 'tblTempUsageDetail_20' ) start [2025-01-28 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347216', 'tblTempUsageDetail_20' ) end [2025-01-28 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347216', 'tblTempVendorCDR_20' ) start [2025-01-28 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347216', 'tblTempVendorCDR_20' ) end [2025-01-28 06:40:17] Production.INFO: ProcessCDR(1,14347216,1,1,2) [2025-01-28 06:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347216', 'tblTempUsageDetail_20' ) start [2025-01-28 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347216', 'tblTempUsageDetail_20' ) end [2025-01-28 06:40:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:40:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:40:21] Production.INFO: ==8393== Releasing lock... [2025-01-28 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:41:05 [end_date_ymd] => 2025-01-28 06:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:41:05' and `end` < '2025-01-28 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-28 06:41:17] Production.INFO: count ==95 [2025-01-28 06:41:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:41:05 - End Time 2025-01-28 06:41:05 [2025-01-28 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347221', 'tblTempUsageDetail_20' ) start [2025-01-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347221', 'tblTempUsageDetail_20' ) end [2025-01-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347221', 'tblTempVendorCDR_20' ) start [2025-01-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347221', 'tblTempVendorCDR_20' ) end [2025-01-28 06:41:17] Production.INFO: ProcessCDR(1,14347221,1,1,2) [2025-01-28 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347221', 'tblTempUsageDetail_20' ) start [2025-01-28 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347221', 'tblTempUsageDetail_20' ) end [2025-01-28 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:41:21] Production.INFO: ==8506== Releasing lock... [2025-01-28 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:42:06 [end_date_ymd] => 2025-01-28 06:42:06 [RateCDR] => 1 ) [2025-01-28 06:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:42:06' and `end` < '2025-01-28 06:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:42:18] Production.INFO: count ==95 [2025-01-28 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:42:06 - End Time 2025-01-28 06:42:06 [2025-01-28 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347226', 'tblTempUsageDetail_20' ) start [2025-01-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347226', 'tblTempUsageDetail_20' ) end [2025-01-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347226', 'tblTempVendorCDR_20' ) start [2025-01-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347226', 'tblTempVendorCDR_20' ) end [2025-01-28 06:42:18] Production.INFO: ProcessCDR(1,14347226,1,1,2) [2025-01-28 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347226', 'tblTempUsageDetail_20' ) start [2025-01-28 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347226', 'tblTempUsageDetail_20' ) end [2025-01-28 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:42:22] Production.INFO: ==8583== Releasing lock... [2025-01-28 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:42:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:43:05 [end_date_ymd] => 2025-01-28 06:43:05 [RateCDR] => 1 ) [2025-01-28 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:43:05' and `end` < '2025-01-28 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:43:17] Production.INFO: count ==95 [2025-01-28 06:43:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:43:05 - End Time 2025-01-28 06:43:05 [2025-01-28 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347231', 'tblTempUsageDetail_20' ) start [2025-01-28 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347231', 'tblTempUsageDetail_20' ) end [2025-01-28 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347231', 'tblTempVendorCDR_20' ) start [2025-01-28 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347231', 'tblTempVendorCDR_20' ) end [2025-01-28 06:43:17] Production.INFO: ProcessCDR(1,14347231,1,1,2) [2025-01-28 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347231', 'tblTempUsageDetail_20' ) start [2025-01-28 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347231', 'tblTempUsageDetail_20' ) end [2025-01-28 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:43:20] Production.INFO: ==8655== Releasing lock... [2025-01-28 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:43:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:44:06 [end_date_ymd] => 2025-01-28 06:44:06 [RateCDR] => 1 ) [2025-01-28 06:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:44:06' and `end` < '2025-01-28 06:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:44:18] Production.INFO: count ==95 [2025-01-28 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:44:06 - End Time 2025-01-28 06:44:06 [2025-01-28 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347236', 'tblTempUsageDetail_20' ) start [2025-01-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347236', 'tblTempUsageDetail_20' ) end [2025-01-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347236', 'tblTempVendorCDR_20' ) start [2025-01-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347236', 'tblTempVendorCDR_20' ) end [2025-01-28 06:44:18] Production.INFO: ProcessCDR(1,14347236,1,1,2) [2025-01-28 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347236', 'tblTempUsageDetail_20' ) start [2025-01-28 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347236', 'tblTempUsageDetail_20' ) end [2025-01-28 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:44:21] Production.INFO: ==8729== Releasing lock... [2025-01-28 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:45:05 [end_date_ymd] => 2025-01-28 06:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:45:05' and `end` < '2025-01-28 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-28 06:45:17] Production.INFO: count ==95 [2025-01-28 06:45:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:45:05 - End Time 2025-01-28 06:45:05 [2025-01-28 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347241', 'tblTempUsageDetail_20' ) start [2025-01-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347241', 'tblTempUsageDetail_20' ) end [2025-01-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347241', 'tblTempVendorCDR_20' ) start [2025-01-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347241', 'tblTempVendorCDR_20' ) end [2025-01-28 06:45:17] Production.INFO: ProcessCDR(1,14347241,1,1,2) [2025-01-28 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347241', 'tblTempUsageDetail_20' ) start [2025-01-28 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347241', 'tblTempUsageDetail_20' ) end [2025-01-28 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:45:20] Production.INFO: ==8802== Releasing lock... [2025-01-28 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:45:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:46:05 [end_date_ymd] => 2025-01-28 06:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:46:05' and `end` < '2025-01-28 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-28 06:46:18] Production.INFO: count ==95 [2025-01-28 06:46:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:46:05 - End Time 2025-01-28 06:46:05 [2025-01-28 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347246', 'tblTempUsageDetail_20' ) start [2025-01-28 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347246', 'tblTempUsageDetail_20' ) end [2025-01-28 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347246', 'tblTempVendorCDR_20' ) start [2025-01-28 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347246', 'tblTempVendorCDR_20' ) end [2025-01-28 06:46:18] Production.INFO: ProcessCDR(1,14347246,1,1,2) [2025-01-28 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347246', 'tblTempUsageDetail_20' ) start [2025-01-28 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347246', 'tblTempUsageDetail_20' ) end [2025-01-28 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:46:21] Production.INFO: ==8872== Releasing lock... [2025-01-28 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:47:05 [end_date_ymd] => 2025-01-28 06:47:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:47:05' and `end` < '2025-01-28 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-28 06:47:17] Production.INFO: count ==95 [2025-01-28 06:47:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:47:05 - End Time 2025-01-28 06:47:05 [2025-01-28 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347251', 'tblTempUsageDetail_20' ) start [2025-01-28 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347251', 'tblTempUsageDetail_20' ) end [2025-01-28 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347251', 'tblTempVendorCDR_20' ) start [2025-01-28 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347251', 'tblTempVendorCDR_20' ) end [2025-01-28 06:47:17] Production.INFO: ProcessCDR(1,14347251,1,1,2) [2025-01-28 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347251', 'tblTempUsageDetail_20' ) start [2025-01-28 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347251', 'tblTempUsageDetail_20' ) end [2025-01-28 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:47:21] Production.INFO: ==8942== Releasing lock... [2025-01-28 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:48:05 [end_date_ymd] => 2025-01-28 06:48:05 [RateCDR] => 1 ) [2025-01-28 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:48:05' and `end` < '2025-01-28 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:48:18] Production.INFO: count ==95 [2025-01-28 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:48:05 - End Time 2025-01-28 06:48:05 [2025-01-28 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347256', 'tblTempUsageDetail_20' ) start [2025-01-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347256', 'tblTempUsageDetail_20' ) end [2025-01-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347256', 'tblTempVendorCDR_20' ) start [2025-01-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347256', 'tblTempVendorCDR_20' ) end [2025-01-28 06:48:18] Production.INFO: ProcessCDR(1,14347256,1,1,2) [2025-01-28 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347256', 'tblTempUsageDetail_20' ) start [2025-01-28 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347256', 'tblTempUsageDetail_20' ) end [2025-01-28 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:48:21] Production.INFO: ==9015== Releasing lock... [2025-01-28 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:49:05 [end_date_ymd] => 2025-01-28 06:49:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:49:05' and `end` < '2025-01-28 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-28 06:49:17] Production.INFO: count ==95 [2025-01-28 06:49:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:49:05 - End Time 2025-01-28 06:49:05 [2025-01-28 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347261', 'tblTempUsageDetail_20' ) start [2025-01-28 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347261', 'tblTempUsageDetail_20' ) end [2025-01-28 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347261', 'tblTempVendorCDR_20' ) start [2025-01-28 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347261', 'tblTempVendorCDR_20' ) end [2025-01-28 06:49:17] Production.INFO: ProcessCDR(1,14347261,1,1,2) [2025-01-28 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347261', 'tblTempUsageDetail_20' ) start [2025-01-28 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347261', 'tblTempUsageDetail_20' ) end [2025-01-28 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:49:20] Production.INFO: ==9089== Releasing lock... [2025-01-28 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:49:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:50:06 [end_date_ymd] => 2025-01-28 06:50:06 [RateCDR] => 1 ) [2025-01-28 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-28 03:50:06' and `end` < '2025-01-28 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-28 06:50:19] Production.INFO: count ==95 [2025-01-28 06:50:19] Production.ERROR: pbx CDR StartTime 2025-01-28 03:50:06 - End Time 2025-01-28 06:50:06 [2025-01-28 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347267', 'tblTempUsageDetail_20' ) start [2025-01-28 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347267', 'tblTempUsageDetail_20' ) end [2025-01-28 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347267', 'tblTempVendorCDR_20' ) start [2025-01-28 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347267', 'tblTempVendorCDR_20' ) end [2025-01-28 06:50:19] Production.INFO: ProcessCDR(1,14347267,1,1,2) [2025-01-28 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347267', 'tblTempUsageDetail_20' ) start [2025-01-28 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347267', 'tblTempUsageDetail_20' ) end [2025-01-28 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:50:22] Production.INFO: ==9163== Releasing lock... [2025-01-28 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:50:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:51:04 [end_date_ymd] => 2025-01-28 06:51:04 [RateCDR] => 1 ) [2025-01-28 06: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-28 03:51:04' and `end` < '2025-01-28 06: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-28 06:51:17] Production.INFO: count ==95 [2025-01-28 06:51:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:51:04 - End Time 2025-01-28 06:51:04 [2025-01-28 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347272', 'tblTempUsageDetail_20' ) start [2025-01-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347272', 'tblTempUsageDetail_20' ) end [2025-01-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347272', 'tblTempVendorCDR_20' ) start [2025-01-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347272', 'tblTempVendorCDR_20' ) end [2025-01-28 06:51:17] Production.INFO: ProcessCDR(1,14347272,1,1,2) [2025-01-28 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347272', 'tblTempUsageDetail_20' ) start [2025-01-28 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347272', 'tblTempUsageDetail_20' ) end [2025-01-28 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:51:20] Production.INFO: ==9240== Releasing lock... [2025-01-28 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:51:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:52:05 [end_date_ymd] => 2025-01-28 06:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:52:05' and `end` < '2025-01-28 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-28 06:52:18] Production.INFO: count ==95 [2025-01-28 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:52:05 - End Time 2025-01-28 06:52:05 [2025-01-28 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347277', 'tblTempUsageDetail_20' ) start [2025-01-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347277', 'tblTempUsageDetail_20' ) end [2025-01-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347277', 'tblTempVendorCDR_20' ) start [2025-01-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347277', 'tblTempVendorCDR_20' ) end [2025-01-28 06:52:18] Production.INFO: ProcessCDR(1,14347277,1,1,2) [2025-01-28 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347277', 'tblTempUsageDetail_20' ) start [2025-01-28 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347277', 'tblTempUsageDetail_20' ) end [2025-01-28 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:52:21] Production.INFO: ==9315== Releasing lock... [2025-01-28 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:53:05 [end_date_ymd] => 2025-01-28 06:53:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:53:05' and `end` < '2025-01-28 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-28 06:53:18] Production.INFO: count ==95 [2025-01-28 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:53:05 - End Time 2025-01-28 06:53:05 [2025-01-28 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347282', 'tblTempUsageDetail_20' ) start [2025-01-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347282', 'tblTempUsageDetail_20' ) end [2025-01-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347282', 'tblTempVendorCDR_20' ) start [2025-01-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347282', 'tblTempVendorCDR_20' ) end [2025-01-28 06:53:18] Production.INFO: ProcessCDR(1,14347282,1,1,2) [2025-01-28 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347282', 'tblTempUsageDetail_20' ) start [2025-01-28 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347282', 'tblTempUsageDetail_20' ) end [2025-01-28 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:53:21] Production.INFO: ==9388== Releasing lock... [2025-01-28 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:54:05 [end_date_ymd] => 2025-01-28 06:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:54:05' and `end` < '2025-01-28 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-28 06:54:18] Production.INFO: count ==95 [2025-01-28 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:54:05 - End Time 2025-01-28 06:54:05 [2025-01-28 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347287', 'tblTempUsageDetail_20' ) start [2025-01-28 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347287', 'tblTempUsageDetail_20' ) end [2025-01-28 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347287', 'tblTempVendorCDR_20' ) start [2025-01-28 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347287', 'tblTempVendorCDR_20' ) end [2025-01-28 06:54:18] Production.INFO: ProcessCDR(1,14347287,1,1,2) [2025-01-28 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347287', 'tblTempUsageDetail_20' ) start [2025-01-28 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347287', 'tblTempUsageDetail_20' ) end [2025-01-28 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:54:21] Production.INFO: ==9458== Releasing lock... [2025-01-28 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:55:05 [end_date_ymd] => 2025-01-28 06:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:55:05' and `end` < '2025-01-28 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-28 06:55:18] Production.INFO: count ==95 [2025-01-28 06:55:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:55:05 - End Time 2025-01-28 06:55:05 [2025-01-28 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347292', 'tblTempUsageDetail_20' ) start [2025-01-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347292', 'tblTempUsageDetail_20' ) end [2025-01-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347292', 'tblTempVendorCDR_20' ) start [2025-01-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347292', 'tblTempVendorCDR_20' ) end [2025-01-28 06:55:18] Production.INFO: ProcessCDR(1,14347292,1,1,2) [2025-01-28 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347292', 'tblTempUsageDetail_20' ) start [2025-01-28 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347292', 'tblTempUsageDetail_20' ) end [2025-01-28 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:55:21] Production.INFO: ==9531== Releasing lock... [2025-01-28 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:55:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:56:05 [end_date_ymd] => 2025-01-28 06:56:05 [RateCDR] => 1 ) [2025-01-28 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 03:56:05' and `end` < '2025-01-28 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:56:18] Production.INFO: count ==95 [2025-01-28 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:56:05 - End Time 2025-01-28 06:56:05 [2025-01-28 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347297', 'tblTempUsageDetail_20' ) start [2025-01-28 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347297', 'tblTempUsageDetail_20' ) end [2025-01-28 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347297', 'tblTempVendorCDR_20' ) start [2025-01-28 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347297', 'tblTempVendorCDR_20' ) end [2025-01-28 06:56:18] Production.INFO: ProcessCDR(1,14347297,1,1,2) [2025-01-28 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347297', 'tblTempUsageDetail_20' ) start [2025-01-28 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347297', 'tblTempUsageDetail_20' ) end [2025-01-28 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:56:21] Production.INFO: ==9604== Releasing lock... [2025-01-28 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:57:05 [end_date_ymd] => 2025-01-28 06:57:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:57:05' and `end` < '2025-01-28 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 06:57:18] Production.INFO: count ==95 [2025-01-28 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-28 03:57:05 - End Time 2025-01-28 06:57:05 [2025-01-28 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347302', 'tblTempUsageDetail_20' ) start [2025-01-28 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347302', 'tblTempUsageDetail_20' ) end [2025-01-28 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347302', 'tblTempVendorCDR_20' ) start [2025-01-28 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347302', 'tblTempVendorCDR_20' ) end [2025-01-28 06:57:18] Production.INFO: ProcessCDR(1,14347302,1,1,2) [2025-01-28 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347302', 'tblTempUsageDetail_20' ) start [2025-01-28 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347302', 'tblTempUsageDetail_20' ) end [2025-01-28 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:57:21] Production.INFO: ==9717== Releasing lock... [2025-01-28 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:58:05 [end_date_ymd] => 2025-01-28 06:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:58:05' and `end` < '2025-01-28 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-28 06:58:17] Production.INFO: count ==95 [2025-01-28 06:58:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:58:05 - End Time 2025-01-28 06:58:05 [2025-01-28 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347307', 'tblTempUsageDetail_20' ) start [2025-01-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347307', 'tblTempUsageDetail_20' ) end [2025-01-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347307', 'tblTempVendorCDR_20' ) start [2025-01-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347307', 'tblTempVendorCDR_20' ) end [2025-01-28 06:58:17] Production.INFO: ProcessCDR(1,14347307,1,1,2) [2025-01-28 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347307', 'tblTempUsageDetail_20' ) start [2025-01-28 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347307', 'tblTempUsageDetail_20' ) end [2025-01-28 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:58:20] Production.INFO: ==9786== Releasing lock... [2025-01-28 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:58:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 03:59:05 [end_date_ymd] => 2025-01-28 06:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 03:59:05' and `end` < '2025-01-28 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-28 06:59:17] Production.INFO: count ==95 [2025-01-28 06:59:17] Production.ERROR: pbx CDR StartTime 2025-01-28 03:59:05 - End Time 2025-01-28 06:59:05 [2025-01-28 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347312', 'tblTempUsageDetail_20' ) start [2025-01-28 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347312', 'tblTempUsageDetail_20' ) end [2025-01-28 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347312', 'tblTempVendorCDR_20' ) start [2025-01-28 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347312', 'tblTempVendorCDR_20' ) end [2025-01-28 06:59:17] Production.INFO: ProcessCDR(1,14347312,1,1,2) [2025-01-28 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347312', 'tblTempUsageDetail_20' ) start [2025-01-28 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347312', 'tblTempUsageDetail_20' ) end [2025-01-28 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 06:59:21] Production.INFO: ==9855== Releasing lock... [2025-01-28 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:00:05 [end_date_ymd] => 2025-01-28 07:00:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:00:05' and `end` < '2025-01-28 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-28 07:00:18] Production.INFO: count ==93 [2025-01-28 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:00:05 - End Time 2025-01-28 07:00:05 [2025-01-28 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347318', 'tblTempUsageDetail_20' ) start [2025-01-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347318', 'tblTempUsageDetail_20' ) end [2025-01-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347318', 'tblTempVendorCDR_20' ) start [2025-01-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347318', 'tblTempVendorCDR_20' ) end [2025-01-28 07:00:18] Production.INFO: ProcessCDR(1,14347318,1,1,2) [2025-01-28 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347318', 'tblTempUsageDetail_20' ) start [2025-01-28 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347318', 'tblTempUsageDetail_20' ) end [2025-01-28 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:00:21] Production.INFO: ==9928== Releasing lock... [2025-01-28 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:01:05 [end_date_ymd] => 2025-01-28 07:01:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:01:05' and `end` < '2025-01-28 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-28 07:02:40] Production.INFO: count ==93 [2025-01-28 07:02:40] Production.ERROR: pbx CDR StartTime 2025-01-28 04:01:05 - End Time 2025-01-28 07:01:05 [2025-01-28 07:02:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347323', 'tblTempUsageDetail_20' ) start [2025-01-28 07:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347323', 'tblTempUsageDetail_20' ) end [2025-01-28 07:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347323', 'tblTempVendorCDR_20' ) start [2025-01-28 07:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347323', 'tblTempVendorCDR_20' ) end [2025-01-28 07:02:40] Production.INFO: ProcessCDR(1,14347323,1,1,2) [2025-01-28 07:02:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:02:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:02:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:02:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:02:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347323', 'tblTempUsageDetail_20' ) start [2025-01-28 07:02:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347323', 'tblTempUsageDetail_20' ) end [2025-01-28 07:02:44] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:02:44] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:02:44] Production.INFO: ==10052== Releasing lock... [2025-01-28 07:02:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:02:44] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:03:05 [end_date_ymd] => 2025-01-28 07:03:05 [RateCDR] => 1 ) [2025-01-28 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 04:03:05' and `end` < '2025-01-28 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 07:03:22] Production.INFO: count ==93 [2025-01-28 07:03:22] Production.ERROR: pbx CDR StartTime 2025-01-28 04:03:05 - End Time 2025-01-28 07:03:05 [2025-01-28 07:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347332', 'tblTempUsageDetail_20' ) start [2025-01-28 07:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347332', 'tblTempUsageDetail_20' ) end [2025-01-28 07:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347332', 'tblTempVendorCDR_20' ) start [2025-01-28 07:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347332', 'tblTempVendorCDR_20' ) end [2025-01-28 07:03:22] Production.INFO: ProcessCDR(1,14347332,1,1,2) [2025-01-28 07:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347332', 'tblTempUsageDetail_20' ) start [2025-01-28 07:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347332', 'tblTempUsageDetail_20' ) end [2025-01-28 07:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:03:25] Production.INFO: ==10231== Releasing lock... [2025-01-28 07:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:03:25] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:04:06 [end_date_ymd] => 2025-01-28 07:04:06 [RateCDR] => 1 ) [2025-01-28 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 04:04:06' and `end` < '2025-01-28 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 07:04:21] Production.INFO: count ==93 [2025-01-28 07:04:21] Production.ERROR: pbx CDR StartTime 2025-01-28 04:04:06 - End Time 2025-01-28 07:04:06 [2025-01-28 07:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347337', 'tblTempUsageDetail_20' ) start [2025-01-28 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347337', 'tblTempUsageDetail_20' ) end [2025-01-28 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347337', 'tblTempVendorCDR_20' ) start [2025-01-28 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347337', 'tblTempVendorCDR_20' ) end [2025-01-28 07:04:21] Production.INFO: ProcessCDR(1,14347337,1,1,2) [2025-01-28 07:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347337', 'tblTempUsageDetail_20' ) start [2025-01-28 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347337', 'tblTempUsageDetail_20' ) end [2025-01-28 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:04:24] Production.INFO: ==10306== Releasing lock... [2025-01-28 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:04:24] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:05:05 [end_date_ymd] => 2025-01-28 07:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:05:05' and `end` < '2025-01-28 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-28 07:05:21] Production.INFO: count ==93 [2025-01-28 07:05:21] Production.ERROR: pbx CDR StartTime 2025-01-28 04:05:05 - End Time 2025-01-28 07:05:05 [2025-01-28 07:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347342', 'tblTempUsageDetail_20' ) start [2025-01-28 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347342', 'tblTempUsageDetail_20' ) end [2025-01-28 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347342', 'tblTempVendorCDR_20' ) start [2025-01-28 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347342', 'tblTempVendorCDR_20' ) end [2025-01-28 07:05:21] Production.INFO: ProcessCDR(1,14347342,1,1,2) [2025-01-28 07:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347342', 'tblTempUsageDetail_20' ) start [2025-01-28 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347342', 'tblTempUsageDetail_20' ) end [2025-01-28 07:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:05:24] Production.INFO: ==10454== Releasing lock... [2025-01-28 07:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:05:24] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:06:05 [end_date_ymd] => 2025-01-28 07:06:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:06:05' and `end` < '2025-01-28 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-28 07:06:20] Production.INFO: count ==93 [2025-01-28 07:06:20] Production.ERROR: pbx CDR StartTime 2025-01-28 04:06:05 - End Time 2025-01-28 07:06:05 [2025-01-28 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347347', 'tblTempUsageDetail_20' ) start [2025-01-28 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347347', 'tblTempUsageDetail_20' ) end [2025-01-28 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347347', 'tblTempVendorCDR_20' ) start [2025-01-28 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347347', 'tblTempVendorCDR_20' ) end [2025-01-28 07:06:20] Production.INFO: ProcessCDR(1,14347347,1,1,2) [2025-01-28 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347347', 'tblTempUsageDetail_20' ) start [2025-01-28 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347347', 'tblTempUsageDetail_20' ) end [2025-01-28 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:06:23] Production.INFO: ==10525== Releasing lock... [2025-01-28 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:06:23] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:07:05 [end_date_ymd] => 2025-01-28 07:07:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:07:05' and `end` < '2025-01-28 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-28 07:07:20] Production.INFO: count ==93 [2025-01-28 07:07:20] Production.ERROR: pbx CDR StartTime 2025-01-28 04:07:05 - End Time 2025-01-28 07:07:05 [2025-01-28 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347352', 'tblTempUsageDetail_20' ) start [2025-01-28 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347352', 'tblTempUsageDetail_20' ) end [2025-01-28 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347352', 'tblTempVendorCDR_20' ) start [2025-01-28 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347352', 'tblTempVendorCDR_20' ) end [2025-01-28 07:07:20] Production.INFO: ProcessCDR(1,14347352,1,1,2) [2025-01-28 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347352', 'tblTempUsageDetail_20' ) start [2025-01-28 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347352', 'tblTempUsageDetail_20' ) end [2025-01-28 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:07:23] Production.INFO: ==10595== Releasing lock... [2025-01-28 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:07:23] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:08:05 [end_date_ymd] => 2025-01-28 07:08:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:08:05' and `end` < '2025-01-28 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-28 07:08:21] Production.INFO: count ==93 [2025-01-28 07:08:21] Production.ERROR: pbx CDR StartTime 2025-01-28 04:08:05 - End Time 2025-01-28 07:08:05 [2025-01-28 07:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347357', 'tblTempUsageDetail_20' ) start [2025-01-28 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347357', 'tblTempUsageDetail_20' ) end [2025-01-28 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347357', 'tblTempVendorCDR_20' ) start [2025-01-28 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347357', 'tblTempVendorCDR_20' ) end [2025-01-28 07:08:21] Production.INFO: ProcessCDR(1,14347357,1,1,2) [2025-01-28 07:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347357', 'tblTempUsageDetail_20' ) start [2025-01-28 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347357', 'tblTempUsageDetail_20' ) end [2025-01-28 07:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:08:24] Production.INFO: ==10745== Releasing lock... [2025-01-28 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:08:24] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:09:05 [end_date_ymd] => 2025-01-28 07:09:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:09:05' and `end` < '2025-01-28 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-28 07:09:20] Production.INFO: count ==93 [2025-01-28 07:09:20] Production.ERROR: pbx CDR StartTime 2025-01-28 04:09:05 - End Time 2025-01-28 07:09:05 [2025-01-28 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347362', 'tblTempUsageDetail_20' ) start [2025-01-28 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347362', 'tblTempUsageDetail_20' ) end [2025-01-28 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347362', 'tblTempVendorCDR_20' ) start [2025-01-28 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347362', 'tblTempVendorCDR_20' ) end [2025-01-28 07:09:20] Production.INFO: ProcessCDR(1,14347362,1,1,2) [2025-01-28 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347362', 'tblTempUsageDetail_20' ) start [2025-01-28 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347362', 'tblTempUsageDetail_20' ) end [2025-01-28 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:09:23] Production.INFO: ==10815== Releasing lock... [2025-01-28 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:09:23] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:10:05 [end_date_ymd] => 2025-01-28 07:10:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:10:05' and `end` < '2025-01-28 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-28 07:10:21] Production.INFO: count ==93 [2025-01-28 07:10:21] Production.ERROR: pbx CDR StartTime 2025-01-28 04:10:05 - End Time 2025-01-28 07:10:05 [2025-01-28 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347368', 'tblTempUsageDetail_20' ) start [2025-01-28 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347368', 'tblTempUsageDetail_20' ) end [2025-01-28 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347368', 'tblTempVendorCDR_20' ) start [2025-01-28 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347368', 'tblTempVendorCDR_20' ) end [2025-01-28 07:10:21] Production.INFO: ProcessCDR(1,14347368,1,1,2) [2025-01-28 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347368', 'tblTempUsageDetail_20' ) start [2025-01-28 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347368', 'tblTempUsageDetail_20' ) end [2025-01-28 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:10:24] Production.INFO: ==10893== Releasing lock... [2025-01-28 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:10:24] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:11:04 [end_date_ymd] => 2025-01-28 07:11:04 [RateCDR] => 1 ) [2025-01-28 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 04:11:04' and `end` < '2025-01-28 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 07:11:19] Production.INFO: count ==93 [2025-01-28 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-28 04:11:04 - End Time 2025-01-28 07:11:04 [2025-01-28 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347373', 'tblTempUsageDetail_20' ) start [2025-01-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347373', 'tblTempUsageDetail_20' ) end [2025-01-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347373', 'tblTempVendorCDR_20' ) start [2025-01-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347373', 'tblTempVendorCDR_20' ) end [2025-01-28 07:11:19] Production.INFO: ProcessCDR(1,14347373,1,1,2) [2025-01-28 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347373', 'tblTempUsageDetail_20' ) start [2025-01-28 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347373', 'tblTempUsageDetail_20' ) end [2025-01-28 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:11:22] Production.INFO: ==10972== Releasing lock... [2025-01-28 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:11:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:12:05 [end_date_ymd] => 2025-01-28 07:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:12:05' and `end` < '2025-01-28 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-28 07:12:21] Production.INFO: count ==93 [2025-01-28 07:12:21] Production.ERROR: pbx CDR StartTime 2025-01-28 04:12:05 - End Time 2025-01-28 07:12:05 [2025-01-28 07:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347378', 'tblTempUsageDetail_20' ) start [2025-01-28 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347378', 'tblTempUsageDetail_20' ) end [2025-01-28 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347378', 'tblTempVendorCDR_20' ) start [2025-01-28 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347378', 'tblTempVendorCDR_20' ) end [2025-01-28 07:12:21] Production.INFO: ProcessCDR(1,14347378,1,1,2) [2025-01-28 07:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347378', 'tblTempUsageDetail_20' ) start [2025-01-28 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347378', 'tblTempUsageDetail_20' ) end [2025-01-28 07:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:12:24] Production.INFO: ==11164== Releasing lock... [2025-01-28 07:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:12:24] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:13:05 [end_date_ymd] => 2025-01-28 07:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:13:05' and `end` < '2025-01-28 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-28 07:13:20] Production.INFO: count ==93 [2025-01-28 07:13:20] Production.ERROR: pbx CDR StartTime 2025-01-28 04:13:05 - End Time 2025-01-28 07:13:05 [2025-01-28 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347383', 'tblTempUsageDetail_20' ) start [2025-01-28 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347383', 'tblTempUsageDetail_20' ) end [2025-01-28 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347383', 'tblTempVendorCDR_20' ) start [2025-01-28 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347383', 'tblTempVendorCDR_20' ) end [2025-01-28 07:13:20] Production.INFO: ProcessCDR(1,14347383,1,1,2) [2025-01-28 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347383', 'tblTempUsageDetail_20' ) start [2025-01-28 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347383', 'tblTempUsageDetail_20' ) end [2025-01-28 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:13:23] Production.INFO: ==11235== Releasing lock... [2025-01-28 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:13:23] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:14:05 [end_date_ymd] => 2025-01-28 07:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:14:05' and `end` < '2025-01-28 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-28 07:14:21] Production.INFO: count ==93 [2025-01-28 07:14:21] Production.ERROR: pbx CDR StartTime 2025-01-28 04:14:05 - End Time 2025-01-28 07:14:05 [2025-01-28 07:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347388', 'tblTempUsageDetail_20' ) start [2025-01-28 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347388', 'tblTempUsageDetail_20' ) end [2025-01-28 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347388', 'tblTempVendorCDR_20' ) start [2025-01-28 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347388', 'tblTempVendorCDR_20' ) end [2025-01-28 07:14:21] Production.INFO: ProcessCDR(1,14347388,1,1,2) [2025-01-28 07:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347388', 'tblTempUsageDetail_20' ) start [2025-01-28 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347388', 'tblTempUsageDetail_20' ) end [2025-01-28 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:14:24] Production.INFO: ==11305== Releasing lock... [2025-01-28 07:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:14:24] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:15:05 [end_date_ymd] => 2025-01-28 07:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:15:05' and `end` < '2025-01-28 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-28 07:15:21] Production.INFO: count ==93 [2025-01-28 07:15:21] Production.ERROR: pbx CDR StartTime 2025-01-28 04:15:05 - End Time 2025-01-28 07:15:05 [2025-01-28 07:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347393', 'tblTempUsageDetail_20' ) start [2025-01-28 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347393', 'tblTempUsageDetail_20' ) end [2025-01-28 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347393', 'tblTempVendorCDR_20' ) start [2025-01-28 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347393', 'tblTempVendorCDR_20' ) end [2025-01-28 07:15:21] Production.INFO: ProcessCDR(1,14347393,1,1,2) [2025-01-28 07:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347393', 'tblTempUsageDetail_20' ) start [2025-01-28 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347393', 'tblTempUsageDetail_20' ) end [2025-01-28 07:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:15:24] Production.INFO: ==11456== Releasing lock... [2025-01-28 07:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:15:24] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:16:05 [end_date_ymd] => 2025-01-28 07:16:05 [RateCDR] => 1 ) [2025-01-28 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 04:16:05' and `end` < '2025-01-28 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 07:16:20] Production.INFO: count ==93 [2025-01-28 07:16:20] Production.ERROR: pbx CDR StartTime 2025-01-28 04:16:05 - End Time 2025-01-28 07:16:05 [2025-01-28 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347398', 'tblTempUsageDetail_20' ) start [2025-01-28 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347398', 'tblTempUsageDetail_20' ) end [2025-01-28 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347398', 'tblTempVendorCDR_20' ) start [2025-01-28 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347398', 'tblTempVendorCDR_20' ) end [2025-01-28 07:16:20] Production.INFO: ProcessCDR(1,14347398,1,1,2) [2025-01-28 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347398', 'tblTempUsageDetail_20' ) start [2025-01-28 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347398', 'tblTempUsageDetail_20' ) end [2025-01-28 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:16:23] Production.INFO: ==11533== Releasing lock... [2025-01-28 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:16:23] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:17:05 [end_date_ymd] => 2025-01-28 07:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:17:05' and `end` < '2025-01-28 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-28 07:17:20] Production.INFO: count ==93 [2025-01-28 07:17:20] Production.ERROR: pbx CDR StartTime 2025-01-28 04:17:05 - End Time 2025-01-28 07:17:05 [2025-01-28 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347403', 'tblTempUsageDetail_20' ) start [2025-01-28 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347403', 'tblTempUsageDetail_20' ) end [2025-01-28 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347403', 'tblTempVendorCDR_20' ) start [2025-01-28 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347403', 'tblTempVendorCDR_20' ) end [2025-01-28 07:17:20] Production.INFO: ProcessCDR(1,14347403,1,1,2) [2025-01-28 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347403', 'tblTempUsageDetail_20' ) start [2025-01-28 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347403', 'tblTempUsageDetail_20' ) end [2025-01-28 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:17:23] Production.INFO: ==11602== Releasing lock... [2025-01-28 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:17:23] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:18:04 [end_date_ymd] => 2025-01-28 07:18:04 [RateCDR] => 1 ) [2025-01-28 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-28 04:18:04' and `end` < '2025-01-28 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-28 07:18:19] Production.INFO: count ==93 [2025-01-28 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-28 04:18:04 - End Time 2025-01-28 07:18:04 [2025-01-28 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347408', 'tblTempUsageDetail_20' ) start [2025-01-28 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347408', 'tblTempUsageDetail_20' ) end [2025-01-28 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347408', 'tblTempVendorCDR_20' ) start [2025-01-28 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347408', 'tblTempVendorCDR_20' ) end [2025-01-28 07:18:19] Production.INFO: ProcessCDR(1,14347408,1,1,2) [2025-01-28 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347408', 'tblTempUsageDetail_20' ) start [2025-01-28 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347408', 'tblTempUsageDetail_20' ) end [2025-01-28 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:18:22] Production.INFO: ==11673== Releasing lock... [2025-01-28 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:19:05 [end_date_ymd] => 2025-01-28 07:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:19:05' and `end` < '2025-01-28 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-28 07:19:19] Production.INFO: count ==93 [2025-01-28 07:19:19] Production.ERROR: pbx CDR StartTime 2025-01-28 04:19:05 - End Time 2025-01-28 07:19:05 [2025-01-28 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347413', 'tblTempUsageDetail_20' ) start [2025-01-28 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347413', 'tblTempUsageDetail_20' ) end [2025-01-28 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347413', 'tblTempVendorCDR_20' ) start [2025-01-28 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347413', 'tblTempVendorCDR_20' ) end [2025-01-28 07:19:19] Production.INFO: ProcessCDR(1,14347413,1,1,2) [2025-01-28 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347413', 'tblTempUsageDetail_20' ) start [2025-01-28 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347413', 'tblTempUsageDetail_20' ) end [2025-01-28 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:19:22] Production.INFO: ==11744== Releasing lock... [2025-01-28 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:19:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:20:05 [end_date_ymd] => 2025-01-28 07:20:05 [RateCDR] => 1 ) [2025-01-28 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 04:20:05' and `end` < '2025-01-28 07:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 07:20:18] Production.INFO: count ==87 [2025-01-28 07:20:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:20:05 - End Time 2025-01-28 07:20:05 [2025-01-28 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347419', 'tblTempUsageDetail_20' ) start [2025-01-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347419', 'tblTempUsageDetail_20' ) end [2025-01-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347419', 'tblTempVendorCDR_20' ) start [2025-01-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347419', 'tblTempVendorCDR_20' ) end [2025-01-28 07:20:18] Production.INFO: ProcessCDR(1,14347419,1,1,2) [2025-01-28 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347419', 'tblTempUsageDetail_20' ) start [2025-01-28 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347419', 'tblTempUsageDetail_20' ) end [2025-01-28 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:20:21] Production.INFO: ==11817== Releasing lock... [2025-01-28 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:21:05 [end_date_ymd] => 2025-01-28 07:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:21:05' and `end` < '2025-01-28 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-28 07:21:18] Production.INFO: count ==91 [2025-01-28 07:21:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:21:05 - End Time 2025-01-28 07:21:05 [2025-01-28 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347424', 'tblTempUsageDetail_20' ) start [2025-01-28 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347424', 'tblTempUsageDetail_20' ) end [2025-01-28 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347424', 'tblTempVendorCDR_20' ) start [2025-01-28 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347424', 'tblTempVendorCDR_20' ) end [2025-01-28 07:21:18] Production.INFO: ProcessCDR(1,14347424,1,1,2) [2025-01-28 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347424', 'tblTempUsageDetail_20' ) start [2025-01-28 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347424', 'tblTempUsageDetail_20' ) end [2025-01-28 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:21:21] Production.INFO: ==11891== Releasing lock... [2025-01-28 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:21:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:22:06 [end_date_ymd] => 2025-01-28 07:22:06 [RateCDR] => 1 ) [2025-01-28 07: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-28 04:22:06' and `end` < '2025-01-28 07: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-28 07:22:26] Production.INFO: count ==91 [2025-01-28 07:22:26] Production.ERROR: pbx CDR StartTime 2025-01-28 04:22:06 - End Time 2025-01-28 07:22:06 [2025-01-28 07:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347429', 'tblTempUsageDetail_20' ) start [2025-01-28 07:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347429', 'tblTempUsageDetail_20' ) end [2025-01-28 07:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347429', 'tblTempVendorCDR_20' ) start [2025-01-28 07:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347429', 'tblTempVendorCDR_20' ) end [2025-01-28 07:22:26] Production.INFO: ProcessCDR(1,14347429,1,1,2) [2025-01-28 07:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347429', 'tblTempUsageDetail_20' ) start [2025-01-28 07:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347429', 'tblTempUsageDetail_20' ) end [2025-01-28 07:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:22:29] Production.INFO: ==11967== Releasing lock... [2025-01-28 07:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:22:29] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:23:05 [end_date_ymd] => 2025-01-28 07:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:23:05' and `end` < '2025-01-28 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-28 07:23:17] Production.INFO: count ==91 [2025-01-28 07:23:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:23:05 - End Time 2025-01-28 07:23:05 [2025-01-28 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347434', 'tblTempUsageDetail_20' ) start [2025-01-28 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347434', 'tblTempUsageDetail_20' ) end [2025-01-28 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347434', 'tblTempVendorCDR_20' ) start [2025-01-28 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347434', 'tblTempVendorCDR_20' ) end [2025-01-28 07:23:17] Production.INFO: ProcessCDR(1,14347434,1,1,2) [2025-01-28 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347434', 'tblTempUsageDetail_20' ) start [2025-01-28 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347434', 'tblTempUsageDetail_20' ) end [2025-01-28 07:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:23:20] Production.INFO: ==12036== Releasing lock... [2025-01-28 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:23:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:24:05 [end_date_ymd] => 2025-01-28 07:24:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:24:05' and `end` < '2025-01-28 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-28 07:24:18] Production.INFO: count ==91 [2025-01-28 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:24:05 - End Time 2025-01-28 07:24:05 [2025-01-28 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347439', 'tblTempUsageDetail_20' ) start [2025-01-28 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347439', 'tblTempUsageDetail_20' ) end [2025-01-28 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347439', 'tblTempVendorCDR_20' ) start [2025-01-28 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347439', 'tblTempVendorCDR_20' ) end [2025-01-28 07:24:18] Production.INFO: ProcessCDR(1,14347439,1,1,2) [2025-01-28 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347439', 'tblTempUsageDetail_20' ) start [2025-01-28 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347439', 'tblTempUsageDetail_20' ) end [2025-01-28 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:24:21] Production.INFO: ==12106== Releasing lock... [2025-01-28 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:25:05 [end_date_ymd] => 2025-01-28 07:25:05 [RateCDR] => 1 ) [2025-01-28 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 04:25:05' and `end` < '2025-01-28 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 07:25:17] Production.INFO: count ==91 [2025-01-28 07:25:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:25:05 - End Time 2025-01-28 07:25:05 [2025-01-28 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347444', 'tblTempUsageDetail_20' ) start [2025-01-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347444', 'tblTempUsageDetail_20' ) end [2025-01-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347444', 'tblTempVendorCDR_20' ) start [2025-01-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347444', 'tblTempVendorCDR_20' ) end [2025-01-28 07:25:17] Production.INFO: ProcessCDR(1,14347444,1,1,2) [2025-01-28 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347444', 'tblTempUsageDetail_20' ) start [2025-01-28 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347444', 'tblTempUsageDetail_20' ) end [2025-01-28 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:25:20] Production.INFO: ==12180== Releasing lock... [2025-01-28 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:25:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:26:05 [end_date_ymd] => 2025-01-28 07:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:26:05' and `end` < '2025-01-28 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-28 07:26:17] Production.INFO: count ==91 [2025-01-28 07:26:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:26:05 - End Time 2025-01-28 07:26:05 [2025-01-28 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347449', 'tblTempUsageDetail_20' ) start [2025-01-28 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347449', 'tblTempUsageDetail_20' ) end [2025-01-28 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347449', 'tblTempVendorCDR_20' ) start [2025-01-28 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347449', 'tblTempVendorCDR_20' ) end [2025-01-28 07:26:18] Production.INFO: ProcessCDR(1,14347449,1,1,2) [2025-01-28 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347449', 'tblTempUsageDetail_20' ) start [2025-01-28 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347449', 'tblTempUsageDetail_20' ) end [2025-01-28 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:26:20] Production.INFO: ==12254== Releasing lock... [2025-01-28 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:26:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:27:05 [end_date_ymd] => 2025-01-28 07:27:05 [RateCDR] => 1 ) [2025-01-28 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 04:27:05' and `end` < '2025-01-28 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 07:27:17] Production.INFO: count ==91 [2025-01-28 07:27:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:27:05 - End Time 2025-01-28 07:27:05 [2025-01-28 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347454', 'tblTempUsageDetail_20' ) start [2025-01-28 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347454', 'tblTempUsageDetail_20' ) end [2025-01-28 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347454', 'tblTempVendorCDR_20' ) start [2025-01-28 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347454', 'tblTempVendorCDR_20' ) end [2025-01-28 07:27:17] Production.INFO: ProcessCDR(1,14347454,1,1,2) [2025-01-28 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347454', 'tblTempUsageDetail_20' ) start [2025-01-28 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347454', 'tblTempUsageDetail_20' ) end [2025-01-28 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:27:20] Production.INFO: ==12328== Releasing lock... [2025-01-28 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:27:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:28:05 [end_date_ymd] => 2025-01-28 07:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:28:05' and `end` < '2025-01-28 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-28 07:28:17] Production.INFO: count ==91 [2025-01-28 07:28:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:28:05 - End Time 2025-01-28 07:28:05 [2025-01-28 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347459', 'tblTempUsageDetail_20' ) start [2025-01-28 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347459', 'tblTempUsageDetail_20' ) end [2025-01-28 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347459', 'tblTempVendorCDR_20' ) start [2025-01-28 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347459', 'tblTempVendorCDR_20' ) end [2025-01-28 07:28:17] Production.INFO: ProcessCDR(1,14347459,1,1,2) [2025-01-28 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347459', 'tblTempUsageDetail_20' ) start [2025-01-28 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347459', 'tblTempUsageDetail_20' ) end [2025-01-28 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:28:21] Production.INFO: ==12440== Releasing lock... [2025-01-28 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:29:04 [end_date_ymd] => 2025-01-28 07:29:04 [RateCDR] => 1 ) [2025-01-28 07: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-28 04:29:04' and `end` < '2025-01-28 07: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-28 07:29:17] Production.INFO: count ==91 [2025-01-28 07:29:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:29:04 - End Time 2025-01-28 07:29:04 [2025-01-28 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347464', 'tblTempUsageDetail_20' ) start [2025-01-28 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347464', 'tblTempUsageDetail_20' ) end [2025-01-28 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347464', 'tblTempVendorCDR_20' ) start [2025-01-28 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347464', 'tblTempVendorCDR_20' ) end [2025-01-28 07:29:17] Production.INFO: ProcessCDR(1,14347464,1,1,2) [2025-01-28 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347464', 'tblTempUsageDetail_20' ) start [2025-01-28 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347464', 'tblTempUsageDetail_20' ) end [2025-01-28 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:29:20] Production.INFO: ==12518== Releasing lock... [2025-01-28 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:29:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:30:05 [end_date_ymd] => 2025-01-28 07:30:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:30:05' and `end` < '2025-01-28 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-28 07:30:18] Production.INFO: count ==82 [2025-01-28 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:30:05 - End Time 2025-01-28 07:30:05 [2025-01-28 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347468', 'tblTempUsageDetail_20' ) start [2025-01-28 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347468', 'tblTempUsageDetail_20' ) end [2025-01-28 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347468', 'tblTempVendorCDR_20' ) start [2025-01-28 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347468', 'tblTempVendorCDR_20' ) end [2025-01-28 07:30:18] Production.INFO: ProcessCDR(1,14347468,1,1,2) [2025-01-28 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347468', 'tblTempUsageDetail_20' ) start [2025-01-28 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347468', 'tblTempUsageDetail_20' ) end [2025-01-28 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:30:21] Production.INFO: ==12595== Releasing lock... [2025-01-28 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:31:05 [end_date_ymd] => 2025-01-28 07:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:31:05' and `end` < '2025-01-28 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-28 07:31:18] Production.INFO: count ==80 [2025-01-28 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:31:05 - End Time 2025-01-28 07:31:05 [2025-01-28 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347475', 'tblTempUsageDetail_20' ) start [2025-01-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347475', 'tblTempUsageDetail_20' ) end [2025-01-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347475', 'tblTempVendorCDR_20' ) start [2025-01-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347475', 'tblTempVendorCDR_20' ) end [2025-01-28 07:31:18] Production.INFO: ProcessCDR(1,14347475,1,1,2) [2025-01-28 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347475', 'tblTempUsageDetail_20' ) start [2025-01-28 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347475', 'tblTempUsageDetail_20' ) end [2025-01-28 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:31:21] Production.INFO: ==12673== Releasing lock... [2025-01-28 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:32:05 [end_date_ymd] => 2025-01-28 07:32:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:32:05' and `end` < '2025-01-28 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-28 07:32:18] Production.INFO: count ==81 [2025-01-28 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:32:05 - End Time 2025-01-28 07:32:05 [2025-01-28 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347480', 'tblTempUsageDetail_20' ) start [2025-01-28 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347480', 'tblTempUsageDetail_20' ) end [2025-01-28 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347480', 'tblTempVendorCDR_20' ) start [2025-01-28 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347480', 'tblTempVendorCDR_20' ) end [2025-01-28 07:32:18] Production.INFO: ProcessCDR(1,14347480,1,1,2) [2025-01-28 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347480', 'tblTempUsageDetail_20' ) start [2025-01-28 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347480', 'tblTempUsageDetail_20' ) end [2025-01-28 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:32:21] Production.INFO: ==12743== Releasing lock... [2025-01-28 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:33:06 [end_date_ymd] => 2025-01-28 07:33:06 [RateCDR] => 1 ) [2025-01-28 07: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-28 04:33:06' and `end` < '2025-01-28 07: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-28 07:33:18] Production.INFO: count ==81 [2025-01-28 07:33:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:33:06 - End Time 2025-01-28 07:33:06 [2025-01-28 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347485', 'tblTempUsageDetail_20' ) start [2025-01-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347485', 'tblTempUsageDetail_20' ) end [2025-01-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347485', 'tblTempVendorCDR_20' ) start [2025-01-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347485', 'tblTempVendorCDR_20' ) end [2025-01-28 07:33:18] Production.INFO: ProcessCDR(1,14347485,1,1,2) [2025-01-28 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347485', 'tblTempUsageDetail_20' ) start [2025-01-28 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347485', 'tblTempUsageDetail_20' ) end [2025-01-28 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:33:21] Production.INFO: ==12814== Releasing lock... [2025-01-28 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:34:05 [end_date_ymd] => 2025-01-28 07:34:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:34:05' and `end` < '2025-01-28 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-28 07:34:17] Production.INFO: count ==81 [2025-01-28 07:34:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:34:05 - End Time 2025-01-28 07:34:05 [2025-01-28 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347490', 'tblTempUsageDetail_20' ) start [2025-01-28 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347490', 'tblTempUsageDetail_20' ) end [2025-01-28 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347490', 'tblTempVendorCDR_20' ) start [2025-01-28 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347490', 'tblTempVendorCDR_20' ) end [2025-01-28 07:34:17] Production.INFO: ProcessCDR(1,14347490,1,1,2) [2025-01-28 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347490', 'tblTempUsageDetail_20' ) start [2025-01-28 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347490', 'tblTempUsageDetail_20' ) end [2025-01-28 07:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:34:20] Production.INFO: ==12904== Releasing lock... [2025-01-28 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:34:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:35:05 [end_date_ymd] => 2025-01-28 07:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:35:05' and `end` < '2025-01-28 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-28 07:35:18] Production.INFO: count ==81 [2025-01-28 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:35:05 - End Time 2025-01-28 07:35:05 [2025-01-28 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347495', 'tblTempUsageDetail_20' ) start [2025-01-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347495', 'tblTempUsageDetail_20' ) end [2025-01-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347495', 'tblTempVendorCDR_20' ) start [2025-01-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347495', 'tblTempVendorCDR_20' ) end [2025-01-28 07:35:18] Production.INFO: ProcessCDR(1,14347495,1,1,2) [2025-01-28 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347495', 'tblTempUsageDetail_20' ) start [2025-01-28 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347495', 'tblTempUsageDetail_20' ) end [2025-01-28 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:35:21] Production.INFO: ==12975== Releasing lock... [2025-01-28 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:36:05 [end_date_ymd] => 2025-01-28 07:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:36:05' and `end` < '2025-01-28 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-28 07:36:17] Production.INFO: count ==81 [2025-01-28 07:36:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:36:05 - End Time 2025-01-28 07:36:05 [2025-01-28 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347500', 'tblTempUsageDetail_20' ) start [2025-01-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347500', 'tblTempUsageDetail_20' ) end [2025-01-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347500', 'tblTempVendorCDR_20' ) start [2025-01-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347500', 'tblTempVendorCDR_20' ) end [2025-01-28 07:36:17] Production.INFO: ProcessCDR(1,14347500,1,1,2) [2025-01-28 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347500', 'tblTempUsageDetail_20' ) start [2025-01-28 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347500', 'tblTempUsageDetail_20' ) end [2025-01-28 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:36:21] Production.INFO: ==13046== Releasing lock... [2025-01-28 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:37:05 [end_date_ymd] => 2025-01-28 07:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:37:05' and `end` < '2025-01-28 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-28 07:37:18] Production.INFO: count ==81 [2025-01-28 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:37:05 - End Time 2025-01-28 07:37:05 [2025-01-28 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347505', 'tblTempUsageDetail_20' ) start [2025-01-28 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347505', 'tblTempUsageDetail_20' ) end [2025-01-28 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347505', 'tblTempVendorCDR_20' ) start [2025-01-28 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347505', 'tblTempVendorCDR_20' ) end [2025-01-28 07:37:18] Production.INFO: ProcessCDR(1,14347505,1,1,2) [2025-01-28 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347505', 'tblTempUsageDetail_20' ) start [2025-01-28 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347505', 'tblTempUsageDetail_20' ) end [2025-01-28 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:37:21] Production.INFO: ==13117== Releasing lock... [2025-01-28 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:38:04 [end_date_ymd] => 2025-01-28 07:38:04 [RateCDR] => 1 ) [2025-01-28 07: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-28 04:38:04' and `end` < '2025-01-28 07: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-28 07:38:17] Production.INFO: count ==81 [2025-01-28 07:38:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:38:04 - End Time 2025-01-28 07:38:04 [2025-01-28 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347510', 'tblTempUsageDetail_20' ) start [2025-01-28 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347510', 'tblTempUsageDetail_20' ) end [2025-01-28 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347510', 'tblTempVendorCDR_20' ) start [2025-01-28 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347510', 'tblTempVendorCDR_20' ) end [2025-01-28 07:38:17] Production.INFO: ProcessCDR(1,14347510,1,1,2) [2025-01-28 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347510', 'tblTempUsageDetail_20' ) start [2025-01-28 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347510', 'tblTempUsageDetail_20' ) end [2025-01-28 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:38:20] Production.INFO: ==13188== Releasing lock... [2025-01-28 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:38:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:39:05 [end_date_ymd] => 2025-01-28 07:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:39:05' and `end` < '2025-01-28 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-28 07:39:18] Production.INFO: count ==81 [2025-01-28 07:39:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:39:05 - End Time 2025-01-28 07:39:05 [2025-01-28 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347515', 'tblTempUsageDetail_20' ) start [2025-01-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347515', 'tblTempUsageDetail_20' ) end [2025-01-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347515', 'tblTempVendorCDR_20' ) start [2025-01-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347515', 'tblTempVendorCDR_20' ) end [2025-01-28 07:39:18] Production.INFO: ProcessCDR(1,14347515,1,1,2) [2025-01-28 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347515', 'tblTempUsageDetail_20' ) start [2025-01-28 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347515', 'tblTempUsageDetail_20' ) end [2025-01-28 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:39:21] Production.INFO: ==13263== Releasing lock... [2025-01-28 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:40:06 [end_date_ymd] => 2025-01-28 07:40:06 [RateCDR] => 1 ) [2025-01-28 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 04:40:06' and `end` < '2025-01-28 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 07:40:19] Production.INFO: count ==92 [2025-01-28 07:40:19] Production.ERROR: pbx CDR StartTime 2025-01-28 04:40:06 - End Time 2025-01-28 07:40:06 [2025-01-28 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347521', 'tblTempUsageDetail_20' ) start [2025-01-28 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347521', 'tblTempUsageDetail_20' ) end [2025-01-28 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347521', 'tblTempVendorCDR_20' ) start [2025-01-28 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347521', 'tblTempVendorCDR_20' ) end [2025-01-28 07:40:19] Production.INFO: ProcessCDR(1,14347521,1,1,2) [2025-01-28 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347521', 'tblTempUsageDetail_20' ) start [2025-01-28 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347521', 'tblTempUsageDetail_20' ) end [2025-01-28 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:40:22] Production.INFO: ==13339== Releasing lock... [2025-01-28 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:41:05 [end_date_ymd] => 2025-01-28 07:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:41:05' and `end` < '2025-01-28 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-28 07:41:18] Production.INFO: count ==92 [2025-01-28 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:41:05 - End Time 2025-01-28 07:41:05 [2025-01-28 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347526', 'tblTempUsageDetail_20' ) start [2025-01-28 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347526', 'tblTempUsageDetail_20' ) end [2025-01-28 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347526', 'tblTempVendorCDR_20' ) start [2025-01-28 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347526', 'tblTempVendorCDR_20' ) end [2025-01-28 07:41:18] Production.INFO: ProcessCDR(1,14347526,1,1,2) [2025-01-28 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347526', 'tblTempUsageDetail_20' ) start [2025-01-28 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347526', 'tblTempUsageDetail_20' ) end [2025-01-28 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:41:21] Production.INFO: ==13414== Releasing lock... [2025-01-28 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:42:05 [end_date_ymd] => 2025-01-28 07:42:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:42:05' and `end` < '2025-01-28 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-28 07:42:18] Production.INFO: count ==92 [2025-01-28 07:42:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:42:05 - End Time 2025-01-28 07:42:05 [2025-01-28 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347531', 'tblTempUsageDetail_20' ) start [2025-01-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347531', 'tblTempUsageDetail_20' ) end [2025-01-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347531', 'tblTempVendorCDR_20' ) start [2025-01-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347531', 'tblTempVendorCDR_20' ) end [2025-01-28 07:42:18] Production.INFO: ProcessCDR(1,14347531,1,1,2) [2025-01-28 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347531', 'tblTempUsageDetail_20' ) start [2025-01-28 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347531', 'tblTempUsageDetail_20' ) end [2025-01-28 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:42:21] Production.INFO: ==13483== Releasing lock... [2025-01-28 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:42:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:43:05 [end_date_ymd] => 2025-01-28 07:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:43:05' and `end` < '2025-01-28 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-28 07:43:17] Production.INFO: count ==92 [2025-01-28 07:43:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:43:05 - End Time 2025-01-28 07:43:05 [2025-01-28 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347536', 'tblTempUsageDetail_20' ) start [2025-01-28 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347536', 'tblTempUsageDetail_20' ) end [2025-01-28 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347536', 'tblTempVendorCDR_20' ) start [2025-01-28 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347536', 'tblTempVendorCDR_20' ) end [2025-01-28 07:43:17] Production.INFO: ProcessCDR(1,14347536,1,1,2) [2025-01-28 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347536', 'tblTempUsageDetail_20' ) start [2025-01-28 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347536', 'tblTempUsageDetail_20' ) end [2025-01-28 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:43:20] Production.INFO: ==13595== Releasing lock... [2025-01-28 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:43:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:44:05 [end_date_ymd] => 2025-01-28 07:44:05 [RateCDR] => 1 ) [2025-01-28 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 04:44:05' and `end` < '2025-01-28 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 07:44:18] Production.INFO: count ==92 [2025-01-28 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:44:05 - End Time 2025-01-28 07:44:05 [2025-01-28 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347541', 'tblTempUsageDetail_20' ) start [2025-01-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347541', 'tblTempUsageDetail_20' ) end [2025-01-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347541', 'tblTempVendorCDR_20' ) start [2025-01-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347541', 'tblTempVendorCDR_20' ) end [2025-01-28 07:44:18] Production.INFO: ProcessCDR(1,14347541,1,1,2) [2025-01-28 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347541', 'tblTempUsageDetail_20' ) start [2025-01-28 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347541', 'tblTempUsageDetail_20' ) end [2025-01-28 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:44:21] Production.INFO: ==13665== Releasing lock... [2025-01-28 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:45:05 [end_date_ymd] => 2025-01-28 07:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:45:05' and `end` < '2025-01-28 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-28 07:45:17] Production.INFO: count ==93 [2025-01-28 07:45:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:45:05 - End Time 2025-01-28 07:45:05 [2025-01-28 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347546', 'tblTempUsageDetail_20' ) start [2025-01-28 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347546', 'tblTempUsageDetail_20' ) end [2025-01-28 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347546', 'tblTempVendorCDR_20' ) start [2025-01-28 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347546', 'tblTempVendorCDR_20' ) end [2025-01-28 07:45:17] Production.INFO: ProcessCDR(1,14347546,1,1,2) [2025-01-28 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347546', 'tblTempUsageDetail_20' ) start [2025-01-28 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347546', 'tblTempUsageDetail_20' ) end [2025-01-28 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:45:20] Production.INFO: ==13736== Releasing lock... [2025-01-28 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:45:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:46:05 [end_date_ymd] => 2025-01-28 07:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:46:05' and `end` < '2025-01-28 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-28 07:46:18] Production.INFO: count ==94 [2025-01-28 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:46:05 - End Time 2025-01-28 07:46:05 [2025-01-28 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347551', 'tblTempUsageDetail_20' ) start [2025-01-28 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347551', 'tblTempUsageDetail_20' ) end [2025-01-28 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347551', 'tblTempVendorCDR_20' ) start [2025-01-28 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347551', 'tblTempVendorCDR_20' ) end [2025-01-28 07:46:18] Production.INFO: ProcessCDR(1,14347551,1,1,2) [2025-01-28 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347551', 'tblTempUsageDetail_20' ) start [2025-01-28 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347551', 'tblTempUsageDetail_20' ) end [2025-01-28 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:46:21] Production.INFO: ==13809== Releasing lock... [2025-01-28 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:47:05 [end_date_ymd] => 2025-01-28 07:47:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:47:05' and `end` < '2025-01-28 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-28 07:47:17] Production.INFO: count ==94 [2025-01-28 07:47:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:47:05 - End Time 2025-01-28 07:47:05 [2025-01-28 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347556', 'tblTempUsageDetail_20' ) start [2025-01-28 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347556', 'tblTempUsageDetail_20' ) end [2025-01-28 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347556', 'tblTempVendorCDR_20' ) start [2025-01-28 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347556', 'tblTempVendorCDR_20' ) end [2025-01-28 07:47:17] Production.INFO: ProcessCDR(1,14347556,1,1,2) [2025-01-28 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347556', 'tblTempUsageDetail_20' ) start [2025-01-28 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347556', 'tblTempUsageDetail_20' ) end [2025-01-28 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:47:20] Production.INFO: ==13883== Releasing lock... [2025-01-28 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:47:20] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:48:05 [end_date_ymd] => 2025-01-28 07:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:48:05' and `end` < '2025-01-28 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-28 07:48:18] Production.INFO: count ==94 [2025-01-28 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:48:05 - End Time 2025-01-28 07:48:05 [2025-01-28 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347561', 'tblTempUsageDetail_20' ) start [2025-01-28 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347561', 'tblTempUsageDetail_20' ) end [2025-01-28 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347561', 'tblTempVendorCDR_20' ) start [2025-01-28 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347561', 'tblTempVendorCDR_20' ) end [2025-01-28 07:48:18] Production.INFO: ProcessCDR(1,14347561,1,1,2) [2025-01-28 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347561', 'tblTempUsageDetail_20' ) start [2025-01-28 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347561', 'tblTempUsageDetail_20' ) end [2025-01-28 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:48:21] Production.INFO: ==13953== Releasing lock... [2025-01-28 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:49:06 [end_date_ymd] => 2025-01-28 07:49:06 [RateCDR] => 1 ) [2025-01-28 07: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-28 04:49:06' and `end` < '2025-01-28 07: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-28 07:49:18] Production.INFO: count ==94 [2025-01-28 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:49:06 - End Time 2025-01-28 07:49:06 [2025-01-28 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347566', 'tblTempUsageDetail_20' ) start [2025-01-28 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347566', 'tblTempUsageDetail_20' ) end [2025-01-28 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347566', 'tblTempVendorCDR_20' ) start [2025-01-28 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347566', 'tblTempVendorCDR_20' ) end [2025-01-28 07:49:18] Production.INFO: ProcessCDR(1,14347566,1,1,2) [2025-01-28 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347566', 'tblTempUsageDetail_20' ) start [2025-01-28 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347566', 'tblTempUsageDetail_20' ) end [2025-01-28 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:49:21] Production.INFO: ==14025== Releasing lock... [2025-01-28 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:49:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:50:05 [end_date_ymd] => 2025-01-28 07:50:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:50:05' and `end` < '2025-01-28 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-28 07:50:18] Production.INFO: count ==96 [2025-01-28 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:50:05 - End Time 2025-01-28 07:50:05 [2025-01-28 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347570', 'tblTempUsageDetail_20' ) start [2025-01-28 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347570', 'tblTempUsageDetail_20' ) end [2025-01-28 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347570', 'tblTempVendorCDR_20' ) start [2025-01-28 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347570', 'tblTempVendorCDR_20' ) end [2025-01-28 07:50:18] Production.INFO: ProcessCDR(1,14347570,1,1,2) [2025-01-28 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347570', 'tblTempUsageDetail_20' ) start [2025-01-28 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347570', 'tblTempUsageDetail_20' ) end [2025-01-28 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:50:21] Production.INFO: ==14102== Releasing lock... [2025-01-28 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:51:06 [end_date_ymd] => 2025-01-28 07:51:06 [RateCDR] => 1 ) [2025-01-28 07: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-28 04:51:06' and `end` < '2025-01-28 07: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-28 07:51:19] Production.INFO: count ==104 [2025-01-28 07:51:19] Production.ERROR: pbx CDR StartTime 2025-01-28 04:51:06 - End Time 2025-01-28 07:51:06 [2025-01-28 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347577', 'tblTempUsageDetail_20' ) start [2025-01-28 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347577', 'tblTempUsageDetail_20' ) end [2025-01-28 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347577', 'tblTempVendorCDR_20' ) start [2025-01-28 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347577', 'tblTempVendorCDR_20' ) end [2025-01-28 07:51:19] Production.INFO: ProcessCDR(1,14347577,1,1,2) [2025-01-28 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347577', 'tblTempUsageDetail_20' ) start [2025-01-28 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347577', 'tblTempUsageDetail_20' ) end [2025-01-28 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:51:22] Production.INFO: ==14177== Releasing lock... [2025-01-28 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:51:22] Production.INFO: 28 MB #Memory Used# [2025-01-28 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:52:05 [end_date_ymd] => 2025-01-28 07:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:52:05' and `end` < '2025-01-28 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-28 07:52:18] Production.INFO: count ==108 [2025-01-28 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:52:05 - End Time 2025-01-28 07:52:05 [2025-01-28 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347582', 'tblTempUsageDetail_20' ) start [2025-01-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347582', 'tblTempUsageDetail_20' ) end [2025-01-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347582', 'tblTempVendorCDR_20' ) start [2025-01-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347582', 'tblTempVendorCDR_20' ) end [2025-01-28 07:52:18] Production.INFO: ProcessCDR(1,14347582,1,1,2) [2025-01-28 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347582', 'tblTempUsageDetail_20' ) start [2025-01-28 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347582', 'tblTempUsageDetail_20' ) end [2025-01-28 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:52:22] Production.INFO: ==14248== Releasing lock... [2025-01-28 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:53:05 [end_date_ymd] => 2025-01-28 07:53:05 [RateCDR] => 1 ) [2025-01-28 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 04:53:05' and `end` < '2025-01-28 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 07:53:18] Production.INFO: count ==108 [2025-01-28 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:53:05 - End Time 2025-01-28 07:53:05 [2025-01-28 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347587', 'tblTempUsageDetail_20' ) start [2025-01-28 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347587', 'tblTempUsageDetail_20' ) end [2025-01-28 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347587', 'tblTempVendorCDR_20' ) start [2025-01-28 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347587', 'tblTempVendorCDR_20' ) end [2025-01-28 07:53:18] Production.INFO: ProcessCDR(1,14347587,1,1,2) [2025-01-28 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347587', 'tblTempUsageDetail_20' ) start [2025-01-28 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347587', 'tblTempUsageDetail_20' ) end [2025-01-28 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:53:21] Production.INFO: ==14324== Releasing lock... [2025-01-28 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:54:05 [end_date_ymd] => 2025-01-28 07:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:54:05' and `end` < '2025-01-28 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-28 07:54:17] Production.INFO: count ==110 [2025-01-28 07:54:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:54:05 - End Time 2025-01-28 07:54:05 [2025-01-28 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347592', 'tblTempUsageDetail_20' ) start [2025-01-28 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347592', 'tblTempUsageDetail_20' ) end [2025-01-28 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347592', 'tblTempVendorCDR_20' ) start [2025-01-28 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347592', 'tblTempVendorCDR_20' ) end [2025-01-28 07:54:17] Production.INFO: ProcessCDR(1,14347592,1,1,2) [2025-01-28 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347592', 'tblTempUsageDetail_20' ) start [2025-01-28 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347592', 'tblTempUsageDetail_20' ) end [2025-01-28 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:54:22] Production.INFO: ==14396== Releasing lock... [2025-01-28 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:55:05 [end_date_ymd] => 2025-01-28 07:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:55:05' and `end` < '2025-01-28 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-28 07:55:17] Production.INFO: count ==111 [2025-01-28 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:55:05 - End Time 2025-01-28 07:55:05 [2025-01-28 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347597', 'tblTempUsageDetail_20' ) start [2025-01-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347597', 'tblTempUsageDetail_20' ) end [2025-01-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347597', 'tblTempVendorCDR_20' ) start [2025-01-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347597', 'tblTempVendorCDR_20' ) end [2025-01-28 07:55:17] Production.INFO: ProcessCDR(1,14347597,1,1,2) [2025-01-28 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347597', 'tblTempUsageDetail_20' ) start [2025-01-28 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347597', 'tblTempUsageDetail_20' ) end [2025-01-28 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:55:20] Production.INFO: ==14494== Releasing lock... [2025-01-28 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:56:05 [end_date_ymd] => 2025-01-28 07:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:56:05' and `end` < '2025-01-28 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-28 07:56:17] Production.INFO: count ==112 [2025-01-28 07:56:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:56:05 - End Time 2025-01-28 07:56:05 [2025-01-28 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347602', 'tblTempUsageDetail_20' ) start [2025-01-28 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347602', 'tblTempUsageDetail_20' ) end [2025-01-28 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347602', 'tblTempVendorCDR_20' ) start [2025-01-28 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347602', 'tblTempVendorCDR_20' ) end [2025-01-28 07:56:17] Production.INFO: ProcessCDR(1,14347602,1,1,2) [2025-01-28 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347602', 'tblTempUsageDetail_20' ) start [2025-01-28 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347602', 'tblTempUsageDetail_20' ) end [2025-01-28 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:56:21] Production.INFO: ==14568== Releasing lock... [2025-01-28 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:57:05 [end_date_ymd] => 2025-01-28 07:57:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:57:05' and `end` < '2025-01-28 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-28 07:57:18] Production.INFO: count ==112 [2025-01-28 07:57:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:57:05 - End Time 2025-01-28 07:57:05 [2025-01-28 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347607', 'tblTempUsageDetail_20' ) start [2025-01-28 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347607', 'tblTempUsageDetail_20' ) end [2025-01-28 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347607', 'tblTempVendorCDR_20' ) start [2025-01-28 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347607', 'tblTempVendorCDR_20' ) end [2025-01-28 07:57:18] Production.INFO: ProcessCDR(1,14347607,1,1,2) [2025-01-28 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347607', 'tblTempUsageDetail_20' ) start [2025-01-28 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347607', 'tblTempUsageDetail_20' ) end [2025-01-28 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:57:21] Production.INFO: ==14639== Releasing lock... [2025-01-28 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:58:05 [end_date_ymd] => 2025-01-28 07:58:05 [RateCDR] => 1 ) [2025-01-28 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 04:58:05' and `end` < '2025-01-28 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 07:58:17] Production.INFO: count ==112 [2025-01-28 07:58:17] Production.ERROR: pbx CDR StartTime 2025-01-28 04:58:05 - End Time 2025-01-28 07:58:05 [2025-01-28 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347612', 'tblTempUsageDetail_20' ) start [2025-01-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347612', 'tblTempUsageDetail_20' ) end [2025-01-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347612', 'tblTempVendorCDR_20' ) start [2025-01-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347612', 'tblTempVendorCDR_20' ) end [2025-01-28 07:58:17] Production.INFO: ProcessCDR(1,14347612,1,1,2) [2025-01-28 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347612', 'tblTempUsageDetail_20' ) start [2025-01-28 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347612', 'tblTempUsageDetail_20' ) end [2025-01-28 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:58:20] Production.INFO: ==14753== Releasing lock... [2025-01-28 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:58:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 04:59:05 [end_date_ymd] => 2025-01-28 07:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 04:59:05' and `end` < '2025-01-28 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-28 07:59:18] Production.INFO: count ==112 [2025-01-28 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-28 04:59:05 - End Time 2025-01-28 07:59:05 [2025-01-28 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347617', 'tblTempUsageDetail_20' ) start [2025-01-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347617', 'tblTempUsageDetail_20' ) end [2025-01-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347617', 'tblTempVendorCDR_20' ) start [2025-01-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347617', 'tblTempVendorCDR_20' ) end [2025-01-28 07:59:18] Production.INFO: ProcessCDR(1,14347617,1,1,2) [2025-01-28 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347617', 'tblTempUsageDetail_20' ) start [2025-01-28 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347617', 'tblTempUsageDetail_20' ) end [2025-01-28 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 07:59:21] Production.INFO: ==14827== Releasing lock... [2025-01-28 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 07:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:00:07 [end_date_ymd] => 2025-01-28 08:00:07 [RateCDR] => 1 ) [2025-01-28 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:00:07' and `end` < '2025-01-28 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:00:19] Production.INFO: count ==125 [2025-01-28 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:00:07 - End Time 2025-01-28 08:00:07 [2025-01-28 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347623', 'tblTempUsageDetail_20' ) start [2025-01-28 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347623', 'tblTempUsageDetail_20' ) end [2025-01-28 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347623', 'tblTempVendorCDR_20' ) start [2025-01-28 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347623', 'tblTempVendorCDR_20' ) end [2025-01-28 08:00:19] Production.INFO: ProcessCDR(1,14347623,1,1,2) [2025-01-28 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347623', 'tblTempUsageDetail_20' ) start [2025-01-28 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347623', 'tblTempUsageDetail_20' ) end [2025-01-28 08:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:00:24] Production.INFO: ==14901== Releasing lock... [2025-01-28 08:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:00:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:01:05 [end_date_ymd] => 2025-01-28 08:01:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:01:05' and `end` < '2025-01-28 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-28 08:01:18] Production.INFO: count ==125 [2025-01-28 08:01:18] Production.ERROR: pbx CDR StartTime 2025-01-28 05:01:05 - End Time 2025-01-28 08:01:05 [2025-01-28 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347628', 'tblTempUsageDetail_20' ) start [2025-01-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347628', 'tblTempUsageDetail_20' ) end [2025-01-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347628', 'tblTempVendorCDR_20' ) start [2025-01-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347628', 'tblTempVendorCDR_20' ) end [2025-01-28 08:01:18] Production.INFO: ProcessCDR(1,14347628,1,1,2) [2025-01-28 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347628', 'tblTempUsageDetail_20' ) start [2025-01-28 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347628', 'tblTempUsageDetail_20' ) end [2025-01-28 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:01:21] Production.INFO: ==14986== Releasing lock... [2025-01-28 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:02:05 [end_date_ymd] => 2025-01-28 08:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:02:05' and `end` < '2025-01-28 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-28 08:02:18] Production.INFO: count ==125 [2025-01-28 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-28 05:02:05 - End Time 2025-01-28 08:02:05 [2025-01-28 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347633', 'tblTempUsageDetail_20' ) start [2025-01-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347633', 'tblTempUsageDetail_20' ) end [2025-01-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347633', 'tblTempVendorCDR_20' ) start [2025-01-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347633', 'tblTempVendorCDR_20' ) end [2025-01-28 08:02:18] Production.INFO: ProcessCDR(1,14347633,1,1,2) [2025-01-28 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347633', 'tblTempUsageDetail_20' ) start [2025-01-28 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347633', 'tblTempUsageDetail_20' ) end [2025-01-28 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:02:21] Production.INFO: ==15060== Releasing lock... [2025-01-28 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:03:05 [end_date_ymd] => 2025-01-28 08:03:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:03:05' and `end` < '2025-01-28 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-28 08:03:17] Production.INFO: count ==129 [2025-01-28 08:03:17] Production.ERROR: pbx CDR StartTime 2025-01-28 05:03:05 - End Time 2025-01-28 08:03:05 [2025-01-28 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347638', 'tblTempUsageDetail_20' ) start [2025-01-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347638', 'tblTempUsageDetail_20' ) end [2025-01-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347638', 'tblTempVendorCDR_20' ) start [2025-01-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347638', 'tblTempVendorCDR_20' ) end [2025-01-28 08:03:17] Production.INFO: ProcessCDR(1,14347638,1,1,2) [2025-01-28 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347638', 'tblTempUsageDetail_20' ) start [2025-01-28 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347638', 'tblTempUsageDetail_20' ) end [2025-01-28 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:03:21] Production.INFO: ==15132== Releasing lock... [2025-01-28 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:04:06 [end_date_ymd] => 2025-01-28 08:04:06 [RateCDR] => 1 ) [2025-01-28 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-28 05:04:06' and `end` < '2025-01-28 08: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-28 08:04:19] Production.INFO: count ==129 [2025-01-28 08:04:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:04:06 - End Time 2025-01-28 08:04:06 [2025-01-28 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347643', 'tblTempUsageDetail_20' ) start [2025-01-28 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347643', 'tblTempUsageDetail_20' ) end [2025-01-28 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347643', 'tblTempVendorCDR_20' ) start [2025-01-28 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347643', 'tblTempVendorCDR_20' ) end [2025-01-28 08:04:19] Production.INFO: ProcessCDR(1,14347643,1,1,2) [2025-01-28 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347643', 'tblTempUsageDetail_20' ) start [2025-01-28 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347643', 'tblTempUsageDetail_20' ) end [2025-01-28 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:04:22] Production.INFO: ==15203== Releasing lock... [2025-01-28 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:05:05 [end_date_ymd] => 2025-01-28 08:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:05:05' and `end` < '2025-01-28 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-28 08:05:18] Production.INFO: count ==129 [2025-01-28 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-28 05:05:05 - End Time 2025-01-28 08:05:05 [2025-01-28 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347648', 'tblTempUsageDetail_20' ) start [2025-01-28 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347648', 'tblTempUsageDetail_20' ) end [2025-01-28 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347648', 'tblTempVendorCDR_20' ) start [2025-01-28 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347648', 'tblTempVendorCDR_20' ) end [2025-01-28 08:05:18] Production.INFO: ProcessCDR(1,14347648,1,1,2) [2025-01-28 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347648', 'tblTempUsageDetail_20' ) start [2025-01-28 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347648', 'tblTempUsageDetail_20' ) end [2025-01-28 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:05:21] Production.INFO: ==15278== Releasing lock... [2025-01-28 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:06:05 [end_date_ymd] => 2025-01-28 08:06:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:06:05' and `end` < '2025-01-28 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-28 08:06:18] Production.INFO: count ==129 [2025-01-28 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-28 05:06:05 - End Time 2025-01-28 08:06:05 [2025-01-28 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347653', 'tblTempUsageDetail_20' ) start [2025-01-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347653', 'tblTempUsageDetail_20' ) end [2025-01-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347653', 'tblTempVendorCDR_20' ) start [2025-01-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347653', 'tblTempVendorCDR_20' ) end [2025-01-28 08:06:18] Production.INFO: ProcessCDR(1,14347653,1,1,2) [2025-01-28 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347653', 'tblTempUsageDetail_20' ) start [2025-01-28 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347653', 'tblTempUsageDetail_20' ) end [2025-01-28 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:06:21] Production.INFO: ==15352== Releasing lock... [2025-01-28 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:07:05 [end_date_ymd] => 2025-01-28 08:07:05 [RateCDR] => 1 ) [2025-01-28 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:07:05' and `end` < '2025-01-28 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:07:17] Production.INFO: count ==129 [2025-01-28 08:07:17] Production.ERROR: pbx CDR StartTime 2025-01-28 05:07:05 - End Time 2025-01-28 08:07:05 [2025-01-28 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347658', 'tblTempUsageDetail_20' ) start [2025-01-28 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347658', 'tblTempUsageDetail_20' ) end [2025-01-28 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347658', 'tblTempVendorCDR_20' ) start [2025-01-28 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347658', 'tblTempVendorCDR_20' ) end [2025-01-28 08:07:17] Production.INFO: ProcessCDR(1,14347658,1,1,2) [2025-01-28 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347658', 'tblTempUsageDetail_20' ) start [2025-01-28 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347658', 'tblTempUsageDetail_20' ) end [2025-01-28 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:07:20] Production.INFO: ==15425== Releasing lock... [2025-01-28 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-28 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:08:05 [end_date_ymd] => 2025-01-28 08:08:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:08:05' and `end` < '2025-01-28 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-28 08:08:17] Production.INFO: count ==134 [2025-01-28 08:08:17] Production.ERROR: pbx CDR StartTime 2025-01-28 05:08:05 - End Time 2025-01-28 08:08:05 [2025-01-28 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347663', 'tblTempUsageDetail_20' ) start [2025-01-28 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347663', 'tblTempUsageDetail_20' ) end [2025-01-28 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347663', 'tblTempVendorCDR_20' ) start [2025-01-28 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347663', 'tblTempVendorCDR_20' ) end [2025-01-28 08:08:17] Production.INFO: ProcessCDR(1,14347663,1,1,2) [2025-01-28 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347663', 'tblTempUsageDetail_20' ) start [2025-01-28 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347663', 'tblTempUsageDetail_20' ) end [2025-01-28 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:08:20] Production.INFO: ==15501== Releasing lock... [2025-01-28 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:08:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:09:05 [end_date_ymd] => 2025-01-28 08:09:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:09:05' and `end` < '2025-01-28 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-28 08:09:17] Production.INFO: count ==135 [2025-01-28 08:09:17] Production.ERROR: pbx CDR StartTime 2025-01-28 05:09:05 - End Time 2025-01-28 08:09:05 [2025-01-28 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347668', 'tblTempUsageDetail_20' ) start [2025-01-28 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347668', 'tblTempUsageDetail_20' ) end [2025-01-28 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347668', 'tblTempVendorCDR_20' ) start [2025-01-28 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347668', 'tblTempVendorCDR_20' ) end [2025-01-28 08:09:18] Production.INFO: ProcessCDR(1,14347668,1,1,2) [2025-01-28 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347668', 'tblTempUsageDetail_20' ) start [2025-01-28 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347668', 'tblTempUsageDetail_20' ) end [2025-01-28 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:09:21] Production.INFO: ==15577== Releasing lock... [2025-01-28 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:10:06 [end_date_ymd] => 2025-01-28 08:10:06 [RateCDR] => 1 ) [2025-01-28 08: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-28 05:10:06' and `end` < '2025-01-28 08: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-28 08:10:19] Production.INFO: count ==150 [2025-01-28 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:10:06 - End Time 2025-01-28 08:10:06 [2025-01-28 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347674', 'tblTempUsageDetail_20' ) start [2025-01-28 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347674', 'tblTempUsageDetail_20' ) end [2025-01-28 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347674', 'tblTempVendorCDR_20' ) start [2025-01-28 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347674', 'tblTempVendorCDR_20' ) end [2025-01-28 08:10:19] Production.INFO: ProcessCDR(1,14347674,1,1,2) [2025-01-28 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347674', 'tblTempUsageDetail_20' ) start [2025-01-28 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347674', 'tblTempUsageDetail_20' ) end [2025-01-28 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:10:24] Production.INFO: ==15660== Releasing lock... [2025-01-28 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:10:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-28 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:11:05 [end_date_ymd] => 2025-01-28 08:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:11:05' and `end` < '2025-01-28 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-28 08:11:18] Production.INFO: count ==172 [2025-01-28 08:11:18] Production.ERROR: pbx CDR StartTime 2025-01-28 05:11:05 - End Time 2025-01-28 08:11:05 [2025-01-28 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347679', 'tblTempUsageDetail_20' ) start [2025-01-28 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347679', 'tblTempUsageDetail_20' ) end [2025-01-28 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347679', 'tblTempVendorCDR_20' ) start [2025-01-28 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347679', 'tblTempVendorCDR_20' ) end [2025-01-28 08:11:18] Production.INFO: ProcessCDR(1,14347679,1,1,2) [2025-01-28 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347679', 'tblTempUsageDetail_20' ) start [2025-01-28 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347679', 'tblTempUsageDetail_20' ) end [2025-01-28 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:11:21] Production.INFO: ==15739== Releasing lock... [2025-01-28 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:12:05 [end_date_ymd] => 2025-01-28 08:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:12:05' and `end` < '2025-01-28 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-28 08:12:18] Production.INFO: count ==180 [2025-01-28 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-28 05:12:05 - End Time 2025-01-28 08:12:05 [2025-01-28 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347684', 'tblTempUsageDetail_20' ) start [2025-01-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347684', 'tblTempUsageDetail_20' ) end [2025-01-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347684', 'tblTempVendorCDR_20' ) start [2025-01-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347684', 'tblTempVendorCDR_20' ) end [2025-01-28 08:12:18] Production.INFO: ProcessCDR(1,14347684,1,1,2) [2025-01-28 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347684', 'tblTempUsageDetail_20' ) start [2025-01-28 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347684', 'tblTempUsageDetail_20' ) end [2025-01-28 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:12:21] Production.INFO: ==15811== Releasing lock... [2025-01-28 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:13:05 [end_date_ymd] => 2025-01-28 08:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:13:05' and `end` < '2025-01-28 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-28 08:13:18] Production.INFO: count ==186 [2025-01-28 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-28 05:13:05 - End Time 2025-01-28 08:13:05 [2025-01-28 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347689', 'tblTempUsageDetail_20' ) start [2025-01-28 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347689', 'tblTempUsageDetail_20' ) end [2025-01-28 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347689', 'tblTempVendorCDR_20' ) start [2025-01-28 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347689', 'tblTempVendorCDR_20' ) end [2025-01-28 08:13:18] Production.INFO: ProcessCDR(1,14347689,1,1,2) [2025-01-28 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347689', 'tblTempUsageDetail_20' ) start [2025-01-28 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347689', 'tblTempUsageDetail_20' ) end [2025-01-28 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:13:23] Production.INFO: ==15884== Releasing lock... [2025-01-28 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:13:23] Production.INFO: 29 MB #Memory Used# [2025-01-28 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:14:06 [end_date_ymd] => 2025-01-28 08:14:06 [RateCDR] => 1 ) [2025-01-28 08:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:14:06' and `end` < '2025-01-28 08:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:14:23] Production.INFO: count ==191 [2025-01-28 08:14:23] Production.ERROR: pbx CDR StartTime 2025-01-28 05:14:06 - End Time 2025-01-28 08:14:06 [2025-01-28 08:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347694', 'tblTempUsageDetail_20' ) start [2025-01-28 08:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347694', 'tblTempUsageDetail_20' ) end [2025-01-28 08:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347694', 'tblTempVendorCDR_20' ) start [2025-01-28 08:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347694', 'tblTempVendorCDR_20' ) end [2025-01-28 08:14:23] Production.INFO: ProcessCDR(1,14347694,1,1,2) [2025-01-28 08:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347694', 'tblTempUsageDetail_20' ) start [2025-01-28 08:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347694', 'tblTempUsageDetail_20' ) end [2025-01-28 08:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:14:26] Production.INFO: ==16000== Releasing lock... [2025-01-28 08:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:14:26] Production.INFO: 29 MB #Memory Used# [2025-01-28 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:15:05 [end_date_ymd] => 2025-01-28 08:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:15:05' and `end` < '2025-01-28 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-28 08:15:17] Production.INFO: count ==194 [2025-01-28 08:15:17] Production.ERROR: pbx CDR StartTime 2025-01-28 05:15:05 - End Time 2025-01-28 08:15:05 [2025-01-28 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347699', 'tblTempUsageDetail_20' ) start [2025-01-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347699', 'tblTempUsageDetail_20' ) end [2025-01-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347699', 'tblTempVendorCDR_20' ) start [2025-01-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347699', 'tblTempVendorCDR_20' ) end [2025-01-28 08:15:17] Production.INFO: ProcessCDR(1,14347699,1,1,2) [2025-01-28 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347699', 'tblTempUsageDetail_20' ) start [2025-01-28 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347699', 'tblTempUsageDetail_20' ) end [2025-01-28 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:15:21] Production.INFO: ==16070== Releasing lock... [2025-01-28 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-28 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:16:05 [end_date_ymd] => 2025-01-28 08:16:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:16:05' and `end` < '2025-01-28 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-28 08:16:18] Production.INFO: count ==195 [2025-01-28 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-28 05:16:05 - End Time 2025-01-28 08:16:05 [2025-01-28 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347704', 'tblTempUsageDetail_20' ) start [2025-01-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347704', 'tblTempUsageDetail_20' ) end [2025-01-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347704', 'tblTempVendorCDR_20' ) start [2025-01-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347704', 'tblTempVendorCDR_20' ) end [2025-01-28 08:16:18] Production.INFO: ProcessCDR(1,14347704,1,1,2) [2025-01-28 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347704', 'tblTempUsageDetail_20' ) start [2025-01-28 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347704', 'tblTempUsageDetail_20' ) end [2025-01-28 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:16:21] Production.INFO: ==16144== Releasing lock... [2025-01-28 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:16:21] Production.INFO: 29 MB #Memory Used# [2025-01-28 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:17:05 [end_date_ymd] => 2025-01-28 08:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:17:05' and `end` < '2025-01-28 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-28 08:17:19] Production.INFO: count ==202 [2025-01-28 08:17:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:17:05 - End Time 2025-01-28 08:17:05 [2025-01-28 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347709', 'tblTempUsageDetail_20' ) start [2025-01-28 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347709', 'tblTempUsageDetail_20' ) end [2025-01-28 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347709', 'tblTempVendorCDR_20' ) start [2025-01-28 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347709', 'tblTempVendorCDR_20' ) end [2025-01-28 08:17:19] Production.INFO: ProcessCDR(1,14347709,1,1,2) [2025-01-28 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347709', 'tblTempUsageDetail_20' ) start [2025-01-28 08:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347709', 'tblTempUsageDetail_20' ) end [2025-01-28 08:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:17:24] Production.INFO: ==16216== Releasing lock... [2025-01-28 08:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:17:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-28 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:18:05 [end_date_ymd] => 2025-01-28 08:18:05 [RateCDR] => 1 ) [2025-01-28 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:18:05' and `end` < '2025-01-28 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:18:18] Production.INFO: count ==213 [2025-01-28 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-28 05:18:05 - End Time 2025-01-28 08:18:05 [2025-01-28 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347714', 'tblTempUsageDetail_20' ) start [2025-01-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347714', 'tblTempUsageDetail_20' ) end [2025-01-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347714', 'tblTempVendorCDR_20' ) start [2025-01-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347714', 'tblTempVendorCDR_20' ) end [2025-01-28 08:18:18] Production.INFO: ProcessCDR(1,14347714,1,1,2) [2025-01-28 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347714', 'tblTempUsageDetail_20' ) start [2025-01-28 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347714', 'tblTempUsageDetail_20' ) end [2025-01-28 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:18:23] Production.INFO: ==16299== Releasing lock... [2025-01-28 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:18:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-28 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:19:05 [end_date_ymd] => 2025-01-28 08:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:19:05' and `end` < '2025-01-28 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-28 08:19:18] Production.INFO: count ==218 [2025-01-28 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-28 05:19:05 - End Time 2025-01-28 08:19:05 [2025-01-28 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347719', 'tblTempUsageDetail_20' ) start [2025-01-28 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347719', 'tblTempUsageDetail_20' ) end [2025-01-28 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347719', 'tblTempVendorCDR_20' ) start [2025-01-28 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347719', 'tblTempVendorCDR_20' ) end [2025-01-28 08:19:18] Production.INFO: ProcessCDR(1,14347719,1,1,2) [2025-01-28 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347719', 'tblTempUsageDetail_20' ) start [2025-01-28 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347719', 'tblTempUsageDetail_20' ) end [2025-01-28 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:19:21] Production.INFO: ==16375== Releasing lock... [2025-01-28 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-28 08:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:20:07 [end_date_ymd] => 2025-01-28 08:20:07 [RateCDR] => 1 ) [2025-01-28 08: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-28 05:20:07' and `end` < '2025-01-28 08:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:20:20] Production.INFO: count ==243 [2025-01-28 08:20:20] Production.ERROR: pbx CDR StartTime 2025-01-28 05:20:07 - End Time 2025-01-28 08:20:07 [2025-01-28 08:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347725', 'tblTempUsageDetail_20' ) start [2025-01-28 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347725', 'tblTempUsageDetail_20' ) end [2025-01-28 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347725', 'tblTempVendorCDR_20' ) start [2025-01-28 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347725', 'tblTempVendorCDR_20' ) end [2025-01-28 08:20:20] Production.INFO: ProcessCDR(1,14347725,1,1,2) [2025-01-28 08:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347725', 'tblTempUsageDetail_20' ) start [2025-01-28 08:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347725', 'tblTempUsageDetail_20' ) end [2025-01-28 08:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:20:25] Production.INFO: ==16447== Releasing lock... [2025-01-28 08:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:20:25] Production.INFO: 29.5 MB #Memory Used# [2025-01-28 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:21:05 [end_date_ymd] => 2025-01-28 08:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:21:05' and `end` < '2025-01-28 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-28 08:21:19] Production.INFO: count ==263 [2025-01-28 08:21:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:21:05 - End Time 2025-01-28 08:21:05 [2025-01-28 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347730', 'tblTempUsageDetail_20' ) start [2025-01-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347730', 'tblTempUsageDetail_20' ) end [2025-01-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347730', 'tblTempVendorCDR_20' ) start [2025-01-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347730', 'tblTempVendorCDR_20' ) end [2025-01-28 08:21:19] Production.INFO: ProcessCDR(1,14347730,1,1,2) [2025-01-28 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347730', 'tblTempUsageDetail_20' ) start [2025-01-28 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347730', 'tblTempUsageDetail_20' ) end [2025-01-28 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:21:22] Production.INFO: ==16522== Releasing lock... [2025-01-28 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:21:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:22:05 [end_date_ymd] => 2025-01-28 08:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:22:05' and `end` < '2025-01-28 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-28 08:22:20] Production.INFO: count ==274 [2025-01-28 08:22:20] Production.ERROR: pbx CDR StartTime 2025-01-28 05:22:05 - End Time 2025-01-28 08:22:05 [2025-01-28 08:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347735', 'tblTempUsageDetail_20' ) start [2025-01-28 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347735', 'tblTempUsageDetail_20' ) end [2025-01-28 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347735', 'tblTempVendorCDR_20' ) start [2025-01-28 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347735', 'tblTempVendorCDR_20' ) end [2025-01-28 08:22:20] Production.INFO: ProcessCDR(1,14347735,1,1,2) [2025-01-28 08:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347735', 'tblTempUsageDetail_20' ) start [2025-01-28 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347735', 'tblTempUsageDetail_20' ) end [2025-01-28 08:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:22:24] Production.INFO: ==16597== Releasing lock... [2025-01-28 08:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:22:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:23:05 [end_date_ymd] => 2025-01-28 08:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:23:05' and `end` < '2025-01-28 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-28 08:23:43] Production.INFO: count ==278 [2025-01-28 08:23:44] Production.ERROR: pbx CDR StartTime 2025-01-28 05:23:05 - End Time 2025-01-28 08:23:05 [2025-01-28 08:23:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:23:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347740', 'tblTempUsageDetail_20' ) start [2025-01-28 08:23:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347740', 'tblTempUsageDetail_20' ) end [2025-01-28 08:23:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347740', 'tblTempVendorCDR_20' ) start [2025-01-28 08:23:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347740', 'tblTempVendorCDR_20' ) end [2025-01-28 08:23:44] Production.INFO: ProcessCDR(1,14347740,1,1,2) [2025-01-28 08:23:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:23:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:23:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:23:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:23:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347740', 'tblTempUsageDetail_20' ) start [2025-01-28 08:23:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347740', 'tblTempUsageDetail_20' ) end [2025-01-28 08:23:47] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:23:47] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:23:47] Production.INFO: ==16679== Releasing lock... [2025-01-28 08:23:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:23:47] Production.INFO: 29.75 MB #Memory Used# [2025-01-28 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:24:05 [end_date_ymd] => 2025-01-28 08:24:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:24:05' and `end` < '2025-01-28 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-28 08:24:21] Production.INFO: count ==287 [2025-01-28 08:24:21] Production.ERROR: pbx CDR StartTime 2025-01-28 05:24:05 - End Time 2025-01-28 08:24:05 [2025-01-28 08:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347745', 'tblTempUsageDetail_20' ) start [2025-01-28 08:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347745', 'tblTempUsageDetail_20' ) end [2025-01-28 08:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347745', 'tblTempVendorCDR_20' ) start [2025-01-28 08:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347745', 'tblTempVendorCDR_20' ) end [2025-01-28 08:24:21] Production.INFO: ProcessCDR(1,14347745,1,1,2) [2025-01-28 08:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347745', 'tblTempUsageDetail_20' ) start [2025-01-28 08:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347745', 'tblTempUsageDetail_20' ) end [2025-01-28 08:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:24:25] Production.INFO: ==16753== Releasing lock... [2025-01-28 08:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:24:25] Production.INFO: 30 MB #Memory Used# [2025-01-28 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:25:05 [end_date_ymd] => 2025-01-28 08:25:05 [RateCDR] => 1 ) [2025-01-28 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:25:05' and `end` < '2025-01-28 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:25:22] Production.INFO: count ==296 [2025-01-28 08:25:22] Production.ERROR: pbx CDR StartTime 2025-01-28 05:25:05 - End Time 2025-01-28 08:25:05 [2025-01-28 08:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347750', 'tblTempUsageDetail_20' ) start [2025-01-28 08:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347750', 'tblTempUsageDetail_20' ) end [2025-01-28 08:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347750', 'tblTempVendorCDR_20' ) start [2025-01-28 08:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347750', 'tblTempVendorCDR_20' ) end [2025-01-28 08:25:22] Production.INFO: ProcessCDR(1,14347750,1,1,2) [2025-01-28 08:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347750', 'tblTempUsageDetail_20' ) start [2025-01-28 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347750', 'tblTempUsageDetail_20' ) end [2025-01-28 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:25:26] Production.INFO: ==16827== Releasing lock... [2025-01-28 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:25:26] Production.INFO: 30 MB #Memory Used# [2025-01-28 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:26:05 [end_date_ymd] => 2025-01-28 08:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:26:05' and `end` < '2025-01-28 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-28 08:26:19] Production.INFO: count ==303 [2025-01-28 08:26:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:26:05 - End Time 2025-01-28 08:26:05 [2025-01-28 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347755', 'tblTempUsageDetail_20' ) start [2025-01-28 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347755', 'tblTempUsageDetail_20' ) end [2025-01-28 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347755', 'tblTempVendorCDR_20' ) start [2025-01-28 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347755', 'tblTempVendorCDR_20' ) end [2025-01-28 08:26:19] Production.INFO: ProcessCDR(1,14347755,1,1,2) [2025-01-28 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347755', 'tblTempUsageDetail_20' ) start [2025-01-28 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347755', 'tblTempUsageDetail_20' ) end [2025-01-28 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:26:24] Production.INFO: ==16900== Releasing lock... [2025-01-28 08:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:26:24] Production.INFO: 30 MB #Memory Used# [2025-01-28 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:27:05 [end_date_ymd] => 2025-01-28 08:27:05 [RateCDR] => 1 ) [2025-01-28 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:27:05' and `end` < '2025-01-28 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:27:21] Production.INFO: count ==314 [2025-01-28 08:27:21] Production.ERROR: pbx CDR StartTime 2025-01-28 05:27:05 - End Time 2025-01-28 08:27:05 [2025-01-28 08:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347760', 'tblTempUsageDetail_20' ) start [2025-01-28 08:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347760', 'tblTempUsageDetail_20' ) end [2025-01-28 08:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347760', 'tblTempVendorCDR_20' ) start [2025-01-28 08:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347760', 'tblTempVendorCDR_20' ) end [2025-01-28 08:27:21] Production.INFO: ProcessCDR(1,14347760,1,1,2) [2025-01-28 08:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347760', 'tblTempUsageDetail_20' ) start [2025-01-28 08:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347760', 'tblTempUsageDetail_20' ) end [2025-01-28 08:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:27:26] Production.INFO: ==16974== Releasing lock... [2025-01-28 08:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:27:26] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:28:05 [end_date_ymd] => 2025-01-28 08:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:28:05' and `end` < '2025-01-28 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-28 08:28:19] Production.INFO: count ==315 [2025-01-28 08:28:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:28:05 - End Time 2025-01-28 08:28:05 [2025-01-28 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347765', 'tblTempUsageDetail_20' ) start [2025-01-28 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347765', 'tblTempUsageDetail_20' ) end [2025-01-28 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347765', 'tblTempVendorCDR_20' ) start [2025-01-28 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347765', 'tblTempVendorCDR_20' ) end [2025-01-28 08:28:20] Production.INFO: ProcessCDR(1,14347765,1,1,2) [2025-01-28 08:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347765', 'tblTempUsageDetail_20' ) start [2025-01-28 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347765', 'tblTempUsageDetail_20' ) end [2025-01-28 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:28:23] Production.INFO: ==17047== Releasing lock... [2025-01-28 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:28:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:29:05 [end_date_ymd] => 2025-01-28 08:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:29:05' and `end` < '2025-01-28 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-28 08:29:20] Production.INFO: count ==317 [2025-01-28 08:29:21] Production.ERROR: pbx CDR StartTime 2025-01-28 05:29:05 - End Time 2025-01-28 08:29:05 [2025-01-28 08:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347770', 'tblTempUsageDetail_20' ) start [2025-01-28 08:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347770', 'tblTempUsageDetail_20' ) end [2025-01-28 08:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347770', 'tblTempVendorCDR_20' ) start [2025-01-28 08:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347770', 'tblTempVendorCDR_20' ) end [2025-01-28 08:29:21] Production.INFO: ProcessCDR(1,14347770,1,1,2) [2025-01-28 08:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347770', 'tblTempUsageDetail_20' ) start [2025-01-28 08:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347770', 'tblTempUsageDetail_20' ) end [2025-01-28 08:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:29:25] Production.INFO: ==17164== Releasing lock... [2025-01-28 08:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:29:25] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:30:06 [end_date_ymd] => 2025-01-28 08:30:06 [RateCDR] => 1 ) [2025-01-28 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-28 05:30:06' and `end` < '2025-01-28 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-28 08:30:19] Production.INFO: count ==329 [2025-01-28 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:30:06 - End Time 2025-01-28 08:30:06 [2025-01-28 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347776', 'tblTempUsageDetail_20' ) start [2025-01-28 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347776', 'tblTempUsageDetail_20' ) end [2025-01-28 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347776', 'tblTempVendorCDR_20' ) start [2025-01-28 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347776', 'tblTempVendorCDR_20' ) end [2025-01-28 08:30:19] Production.INFO: ProcessCDR(1,14347776,1,1,2) [2025-01-28 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347776', 'tblTempUsageDetail_20' ) start [2025-01-28 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347776', 'tblTempUsageDetail_20' ) end [2025-01-28 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:30:22] Production.INFO: ==17243== Releasing lock... [2025-01-28 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-28 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:31:05 [end_date_ymd] => 2025-01-28 08:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:31:05' and `end` < '2025-01-28 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-28 08:31:20] Production.INFO: count ==358 [2025-01-28 08:31:20] Production.ERROR: pbx CDR StartTime 2025-01-28 05:31:05 - End Time 2025-01-28 08:31:05 [2025-01-28 08:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347780', 'tblTempUsageDetail_20' ) start [2025-01-28 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347780', 'tblTempUsageDetail_20' ) end [2025-01-28 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347780', 'tblTempVendorCDR_20' ) start [2025-01-28 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347780', 'tblTempVendorCDR_20' ) end [2025-01-28 08:31:20] Production.INFO: ProcessCDR(1,14347780,1,1,2) [2025-01-28 08:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347780', 'tblTempUsageDetail_20' ) start [2025-01-28 08:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347780', 'tblTempUsageDetail_20' ) end [2025-01-28 08:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:31:25] Production.INFO: ==17320== Releasing lock... [2025-01-28 08:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:31:25] Production.INFO: 30.75 MB #Memory Used# [2025-01-28 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:32:05 [end_date_ymd] => 2025-01-28 08:32:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:32:05' and `end` < '2025-01-28 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-28 08:32:23] Production.INFO: count ==362 [2025-01-28 08:32:23] Production.ERROR: pbx CDR StartTime 2025-01-28 05:32:05 - End Time 2025-01-28 08:32:05 [2025-01-28 08:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347786', 'tblTempUsageDetail_20' ) start [2025-01-28 08:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347786', 'tblTempUsageDetail_20' ) end [2025-01-28 08:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347786', 'tblTempVendorCDR_20' ) start [2025-01-28 08:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347786', 'tblTempVendorCDR_20' ) end [2025-01-28 08:32:23] Production.INFO: ProcessCDR(1,14347786,1,1,2) [2025-01-28 08:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347786', 'tblTempUsageDetail_20' ) start [2025-01-28 08:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347786', 'tblTempUsageDetail_20' ) end [2025-01-28 08:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:32:27] Production.INFO: ==17395== Releasing lock... [2025-01-28 08:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:32:27] Production.INFO: 30.75 MB #Memory Used# [2025-01-28 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:33:05 [end_date_ymd] => 2025-01-28 08:33:05 [RateCDR] => 1 ) [2025-01-28 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:33:05' and `end` < '2025-01-28 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:33:24] Production.INFO: count ==378 [2025-01-28 08:33:24] Production.ERROR: pbx CDR StartTime 2025-01-28 05:33:05 - End Time 2025-01-28 08:33:05 [2025-01-28 08:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347791', 'tblTempUsageDetail_20' ) start [2025-01-28 08:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347791', 'tblTempUsageDetail_20' ) end [2025-01-28 08:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347791', 'tblTempVendorCDR_20' ) start [2025-01-28 08:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347791', 'tblTempVendorCDR_20' ) end [2025-01-28 08:33:24] Production.INFO: ProcessCDR(1,14347791,1,1,2) [2025-01-28 08:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347791', 'tblTempUsageDetail_20' ) start [2025-01-28 08:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347791', 'tblTempUsageDetail_20' ) end [2025-01-28 08:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:33:29] Production.INFO: ==17468== Releasing lock... [2025-01-28 08:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:33:29] Production.INFO: 31 MB #Memory Used# [2025-01-28 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:34:05 [end_date_ymd] => 2025-01-28 08:34:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:34:05' and `end` < '2025-01-28 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-28 08:34:22] Production.INFO: count ==385 [2025-01-28 08:34:22] Production.ERROR: pbx CDR StartTime 2025-01-28 05:34:05 - End Time 2025-01-28 08:34:05 [2025-01-28 08:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347796', 'tblTempUsageDetail_20' ) start [2025-01-28 08:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347796', 'tblTempUsageDetail_20' ) end [2025-01-28 08:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347796', 'tblTempVendorCDR_20' ) start [2025-01-28 08:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347796', 'tblTempVendorCDR_20' ) end [2025-01-28 08:34:22] Production.INFO: ProcessCDR(1,14347796,1,1,2) [2025-01-28 08:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347796', 'tblTempUsageDetail_20' ) start [2025-01-28 08:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347796', 'tblTempUsageDetail_20' ) end [2025-01-28 08:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:34:27] Production.INFO: ==17540== Releasing lock... [2025-01-28 08:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:34:27] Production.INFO: 31 MB #Memory Used# [2025-01-28 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:35:05 [end_date_ymd] => 2025-01-28 08:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:35:05' and `end` < '2025-01-28 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-28 08:35:21] Production.INFO: count ==385 [2025-01-28 08:35:21] Production.ERROR: pbx CDR StartTime 2025-01-28 05:35:05 - End Time 2025-01-28 08:35:05 [2025-01-28 08:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347801', 'tblTempUsageDetail_20' ) start [2025-01-28 08:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347801', 'tblTempUsageDetail_20' ) end [2025-01-28 08:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347801', 'tblTempVendorCDR_20' ) start [2025-01-28 08:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347801', 'tblTempVendorCDR_20' ) end [2025-01-28 08:35:21] Production.INFO: ProcessCDR(1,14347801,1,1,2) [2025-01-28 08:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347801', 'tblTempUsageDetail_20' ) start [2025-01-28 08:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347801', 'tblTempUsageDetail_20' ) end [2025-01-28 08:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:35:25] Production.INFO: ==17612== Releasing lock... [2025-01-28 08:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:35:25] Production.INFO: 31 MB #Memory Used# [2025-01-28 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:36:05 [end_date_ymd] => 2025-01-28 08:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:36:05' and `end` < '2025-01-28 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-28 08:36:19] Production.INFO: count ==393 [2025-01-28 08:36:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:36:05 - End Time 2025-01-28 08:36:05 [2025-01-28 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347806', 'tblTempUsageDetail_20' ) start [2025-01-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347806', 'tblTempUsageDetail_20' ) end [2025-01-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347806', 'tblTempVendorCDR_20' ) start [2025-01-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347806', 'tblTempVendorCDR_20' ) end [2025-01-28 08:36:19] Production.INFO: ProcessCDR(1,14347806,1,1,2) [2025-01-28 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347806', 'tblTempUsageDetail_20' ) start [2025-01-28 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347806', 'tblTempUsageDetail_20' ) end [2025-01-28 08:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:36:24] Production.INFO: ==17690== Releasing lock... [2025-01-28 08:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:36:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-28 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:37:05 [end_date_ymd] => 2025-01-28 08:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:37:05' and `end` < '2025-01-28 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-28 08:37:20] Production.INFO: count ==399 [2025-01-28 08:37:20] Production.ERROR: pbx CDR StartTime 2025-01-28 05:37:05 - End Time 2025-01-28 08:37:05 [2025-01-28 08:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347811', 'tblTempUsageDetail_20' ) start [2025-01-28 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347811', 'tblTempUsageDetail_20' ) end [2025-01-28 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347811', 'tblTempVendorCDR_20' ) start [2025-01-28 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347811', 'tblTempVendorCDR_20' ) end [2025-01-28 08:37:20] Production.INFO: ProcessCDR(1,14347811,1,1,2) [2025-01-28 08:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347811', 'tblTempUsageDetail_20' ) start [2025-01-28 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347811', 'tblTempUsageDetail_20' ) end [2025-01-28 08:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:37:24] Production.INFO: ==17766== Releasing lock... [2025-01-28 08:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:37:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-28 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:38:05 [end_date_ymd] => 2025-01-28 08:38:05 [RateCDR] => 1 ) [2025-01-28 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:38:05' and `end` < '2025-01-28 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:38:20] Production.INFO: count ==403 [2025-01-28 08:38:20] Production.ERROR: pbx CDR StartTime 2025-01-28 05:38:05 - End Time 2025-01-28 08:38:05 [2025-01-28 08:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347816', 'tblTempUsageDetail_20' ) start [2025-01-28 08:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347816', 'tblTempUsageDetail_20' ) end [2025-01-28 08:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347816', 'tblTempVendorCDR_20' ) start [2025-01-28 08:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347816', 'tblTempVendorCDR_20' ) end [2025-01-28 08:38:20] Production.INFO: ProcessCDR(1,14347816,1,1,2) [2025-01-28 08:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347816', 'tblTempUsageDetail_20' ) start [2025-01-28 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347816', 'tblTempUsageDetail_20' ) end [2025-01-28 08:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:38:24] Production.INFO: ==17844== Releasing lock... [2025-01-28 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:38:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-28 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:39:05 [end_date_ymd] => 2025-01-28 08:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:39:05' and `end` < '2025-01-28 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-28 08:39:21] Production.INFO: count ==403 [2025-01-28 08:39:21] Production.ERROR: pbx CDR StartTime 2025-01-28 05:39:05 - End Time 2025-01-28 08:39:05 [2025-01-28 08:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347821', 'tblTempUsageDetail_20' ) start [2025-01-28 08:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347821', 'tblTempUsageDetail_20' ) end [2025-01-28 08:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347821', 'tblTempVendorCDR_20' ) start [2025-01-28 08:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347821', 'tblTempVendorCDR_20' ) end [2025-01-28 08:39:21] Production.INFO: ProcessCDR(1,14347821,1,1,2) [2025-01-28 08:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347821', 'tblTempUsageDetail_20' ) start [2025-01-28 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347821', 'tblTempUsageDetail_20' ) end [2025-01-28 08:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:39:24] Production.INFO: ==17920== Releasing lock... [2025-01-28 08:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:39:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-28 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:40:05 [end_date_ymd] => 2025-01-28 08:40:05 [RateCDR] => 1 ) [2025-01-28 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:40:05' and `end` < '2025-01-28 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:40:22] Production.INFO: count ==417 [2025-01-28 08:40:22] Production.ERROR: pbx CDR StartTime 2025-01-28 05:40:05 - End Time 2025-01-28 08:40:05 [2025-01-28 08:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347826', 'tblTempUsageDetail_20' ) start [2025-01-28 08:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347826', 'tblTempUsageDetail_20' ) end [2025-01-28 08:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347826', 'tblTempVendorCDR_20' ) start [2025-01-28 08:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347826', 'tblTempVendorCDR_20' ) end [2025-01-28 08:40:22] Production.INFO: ProcessCDR(1,14347826,1,1,2) [2025-01-28 08:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347826', 'tblTempUsageDetail_20' ) start [2025-01-28 08:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347826', 'tblTempUsageDetail_20' ) end [2025-01-28 08:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:40:27] Production.INFO: ==17994== Releasing lock... [2025-01-28 08:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:40:27] Production.INFO: 31.75 MB #Memory Used# [2025-01-28 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:41:05 [end_date_ymd] => 2025-01-28 08:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:41:05' and `end` < '2025-01-28 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-28 08:41:19] Production.INFO: count ==450 [2025-01-28 08:41:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:41:05 - End Time 2025-01-28 08:41:05 [2025-01-28 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347832', 'tblTempUsageDetail_20' ) start [2025-01-28 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347832', 'tblTempUsageDetail_20' ) end [2025-01-28 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347832', 'tblTempVendorCDR_20' ) start [2025-01-28 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347832', 'tblTempVendorCDR_20' ) end [2025-01-28 08:41:19] Production.INFO: ProcessCDR(1,14347832,1,1,2) [2025-01-28 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347832', 'tblTempUsageDetail_20' ) start [2025-01-28 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347832', 'tblTempUsageDetail_20' ) end [2025-01-28 08:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:41:24] Production.INFO: ==18072== Releasing lock... [2025-01-28 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:41:24] Production.INFO: 32 MB #Memory Used# [2025-01-28 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:42:05 [end_date_ymd] => 2025-01-28 08:42:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:42:05' and `end` < '2025-01-28 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-28 08:42:19] Production.INFO: count ==459 [2025-01-28 08:42:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:42:05 - End Time 2025-01-28 08:42:05 [2025-01-28 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347837', 'tblTempUsageDetail_20' ) start [2025-01-28 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347837', 'tblTempUsageDetail_20' ) end [2025-01-28 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347837', 'tblTempVendorCDR_20' ) start [2025-01-28 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347837', 'tblTempVendorCDR_20' ) end [2025-01-28 08:42:19] Production.INFO: ProcessCDR(1,14347837,1,1,2) [2025-01-28 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347837', 'tblTempUsageDetail_20' ) start [2025-01-28 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347837', 'tblTempUsageDetail_20' ) end [2025-01-28 08:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:42:24] Production.INFO: ==18143== Releasing lock... [2025-01-28 08:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:42:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-28 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:43:05 [end_date_ymd] => 2025-01-28 08:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:43:05' and `end` < '2025-01-28 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-28 08:43:22] Production.INFO: count ==463 [2025-01-28 08:43:22] Production.ERROR: pbx CDR StartTime 2025-01-28 05:43:05 - End Time 2025-01-28 08:43:05 [2025-01-28 08:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347842', 'tblTempUsageDetail_20' ) start [2025-01-28 08:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347842', 'tblTempUsageDetail_20' ) end [2025-01-28 08:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347842', 'tblTempVendorCDR_20' ) start [2025-01-28 08:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347842', 'tblTempVendorCDR_20' ) end [2025-01-28 08:43:22] Production.INFO: ProcessCDR(1,14347842,1,1,2) [2025-01-28 08:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347842', 'tblTempUsageDetail_20' ) start [2025-01-28 08:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347842', 'tblTempUsageDetail_20' ) end [2025-01-28 08:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:43:28] Production.INFO: ==18217== Releasing lock... [2025-01-28 08:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:43:28] Production.INFO: 31.75 MB #Memory Used# [2025-01-28 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:44:06 [end_date_ymd] => 2025-01-28 08:44:06 [RateCDR] => 1 ) [2025-01-28 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:44:06' and `end` < '2025-01-28 08:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:44:22] Production.INFO: count ==473 [2025-01-28 08:44:22] Production.ERROR: pbx CDR StartTime 2025-01-28 05:44:06 - End Time 2025-01-28 08:44:06 [2025-01-28 08:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347847', 'tblTempUsageDetail_20' ) start [2025-01-28 08:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347847', 'tblTempUsageDetail_20' ) end [2025-01-28 08:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347847', 'tblTempVendorCDR_20' ) start [2025-01-28 08:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347847', 'tblTempVendorCDR_20' ) end [2025-01-28 08:44:22] Production.INFO: ProcessCDR(1,14347847,1,1,2) [2025-01-28 08:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347847', 'tblTempUsageDetail_20' ) start [2025-01-28 08:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347847', 'tblTempUsageDetail_20' ) end [2025-01-28 08:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:44:28] Production.INFO: ==18290== Releasing lock... [2025-01-28 08:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:44:28] Production.INFO: 32 MB #Memory Used# [2025-01-28 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:45:05 [end_date_ymd] => 2025-01-28 08:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:45:05' and `end` < '2025-01-28 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-28 08:45:19] Production.INFO: count ==476 [2025-01-28 08:45:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:45:05 - End Time 2025-01-28 08:45:05 [2025-01-28 08:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347852', 'tblTempUsageDetail_20' ) start [2025-01-28 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347852', 'tblTempUsageDetail_20' ) end [2025-01-28 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347852', 'tblTempVendorCDR_20' ) start [2025-01-28 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347852', 'tblTempVendorCDR_20' ) end [2025-01-28 08:45:19] Production.INFO: ProcessCDR(1,14347852,1,1,2) [2025-01-28 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347852', 'tblTempUsageDetail_20' ) start [2025-01-28 08:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347852', 'tblTempUsageDetail_20' ) end [2025-01-28 08:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:45:24] Production.INFO: ==18403== Releasing lock... [2025-01-28 08:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:45:24] Production.INFO: 32 MB #Memory Used# [2025-01-28 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:46:05 [end_date_ymd] => 2025-01-28 08:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:46:05' and `end` < '2025-01-28 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-28 08:46:23] Production.INFO: count ==479 [2025-01-28 08:46:23] Production.ERROR: pbx CDR StartTime 2025-01-28 05:46:05 - End Time 2025-01-28 08:46:05 [2025-01-28 08:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347857', 'tblTempUsageDetail_20' ) start [2025-01-28 08:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347857', 'tblTempUsageDetail_20' ) end [2025-01-28 08:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347857', 'tblTempVendorCDR_20' ) start [2025-01-28 08:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347857', 'tblTempVendorCDR_20' ) end [2025-01-28 08:46:23] Production.INFO: ProcessCDR(1,14347857,1,1,2) [2025-01-28 08:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347857', 'tblTempUsageDetail_20' ) start [2025-01-28 08:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347857', 'tblTempUsageDetail_20' ) end [2025-01-28 08:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:46:28] Production.INFO: ==18476== Releasing lock... [2025-01-28 08:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:46:28] Production.INFO: 32.5 MB #Memory Used# [2025-01-28 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:47:05 [end_date_ymd] => 2025-01-28 08:47:05 [RateCDR] => 1 ) [2025-01-28 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:47:05' and `end` < '2025-01-28 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:47:22] Production.INFO: count ==481 [2025-01-28 08:47:22] Production.ERROR: pbx CDR StartTime 2025-01-28 05:47:05 - End Time 2025-01-28 08:47:05 [2025-01-28 08:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347862', 'tblTempUsageDetail_20' ) start [2025-01-28 08:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347862', 'tblTempUsageDetail_20' ) end [2025-01-28 08:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347862', 'tblTempVendorCDR_20' ) start [2025-01-28 08:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347862', 'tblTempVendorCDR_20' ) end [2025-01-28 08:47:22] Production.INFO: ProcessCDR(1,14347862,1,1,2) [2025-01-28 08:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347862', 'tblTempUsageDetail_20' ) start [2025-01-28 08:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347862', 'tblTempUsageDetail_20' ) end [2025-01-28 08:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:47:27] Production.INFO: ==18548== Releasing lock... [2025-01-28 08:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:47:27] Production.INFO: 32.25 MB #Memory Used# [2025-01-28 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:48:06 [end_date_ymd] => 2025-01-28 08:48:06 [RateCDR] => 1 ) [2025-01-28 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:48:06' and `end` < '2025-01-28 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:48:22] Production.INFO: count ==483 [2025-01-28 08:48:22] Production.ERROR: pbx CDR StartTime 2025-01-28 05:48:06 - End Time 2025-01-28 08:48:06 [2025-01-28 08:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347867', 'tblTempUsageDetail_20' ) start [2025-01-28 08:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347867', 'tblTempUsageDetail_20' ) end [2025-01-28 08:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347867', 'tblTempVendorCDR_20' ) start [2025-01-28 08:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347867', 'tblTempVendorCDR_20' ) end [2025-01-28 08:48:22] Production.INFO: ProcessCDR(1,14347867,1,1,2) [2025-01-28 08:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347867', 'tblTempUsageDetail_20' ) start [2025-01-28 08:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347867', 'tblTempUsageDetail_20' ) end [2025-01-28 08:48:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:48:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:48:27] Production.INFO: ==18618== Releasing lock... [2025-01-28 08:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:48:27] Production.INFO: 32.25 MB #Memory Used# [2025-01-28 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:49:05 [end_date_ymd] => 2025-01-28 08:49:05 [RateCDR] => 1 ) [2025-01-28 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:49:05' and `end` < '2025-01-28 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:49:20] Production.INFO: count ==484 [2025-01-28 08:49:20] Production.ERROR: pbx CDR StartTime 2025-01-28 05:49:05 - End Time 2025-01-28 08:49:05 [2025-01-28 08:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347872', 'tblTempUsageDetail_20' ) start [2025-01-28 08:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347872', 'tblTempUsageDetail_20' ) end [2025-01-28 08:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347872', 'tblTempVendorCDR_20' ) start [2025-01-28 08:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347872', 'tblTempVendorCDR_20' ) end [2025-01-28 08:49:20] Production.INFO: ProcessCDR(1,14347872,1,1,2) [2025-01-28 08:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347872', 'tblTempUsageDetail_20' ) start [2025-01-28 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347872', 'tblTempUsageDetail_20' ) end [2025-01-28 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:49:24] Production.INFO: ==18696== Releasing lock... [2025-01-28 08:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:49:24] Production.INFO: 32 MB #Memory Used# [2025-01-28 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:50:06 [end_date_ymd] => 2025-01-28 08:50:06 [RateCDR] => 1 ) [2025-01-28 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-28 05:50:06' and `end` < '2025-01-28 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-28 08:50:24] Production.INFO: count ==504 [2025-01-28 08:50:24] Production.ERROR: pbx CDR StartTime 2025-01-28 05:50:06 - End Time 2025-01-28 08:50:06 [2025-01-28 08:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347877', 'tblTempUsageDetail_20' ) start [2025-01-28 08:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347877', 'tblTempUsageDetail_20' ) end [2025-01-28 08:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347877', 'tblTempVendorCDR_20' ) start [2025-01-28 08:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347877', 'tblTempVendorCDR_20' ) end [2025-01-28 08:50:24] Production.INFO: ProcessCDR(1,14347877,1,1,2) [2025-01-28 08:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347877', 'tblTempUsageDetail_20' ) start [2025-01-28 08:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347877', 'tblTempUsageDetail_20' ) end [2025-01-28 08:50:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:50:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:50:29] Production.INFO: ==18774== Releasing lock... [2025-01-28 08:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:50:29] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:51:05 [end_date_ymd] => 2025-01-28 08:51:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:51:05' and `end` < '2025-01-28 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-28 08:51:19] Production.INFO: count ==526 [2025-01-28 08:51:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:51:05 - End Time 2025-01-28 08:51:05 [2025-01-28 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347883', 'tblTempUsageDetail_20' ) start [2025-01-28 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347883', 'tblTempUsageDetail_20' ) end [2025-01-28 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347883', 'tblTempVendorCDR_20' ) start [2025-01-28 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347883', 'tblTempVendorCDR_20' ) end [2025-01-28 08:51:19] Production.INFO: ProcessCDR(1,14347883,1,1,2) [2025-01-28 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347883', 'tblTempUsageDetail_20' ) start [2025-01-28 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347883', 'tblTempUsageDetail_20' ) end [2025-01-28 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:51:23] Production.INFO: ==18856== Releasing lock... [2025-01-28 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:51:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:52:06 [end_date_ymd] => 2025-01-28 08:52:06 [RateCDR] => 1 ) [2025-01-28 08:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:52:06' and `end` < '2025-01-28 08:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:52:23] Production.INFO: count ==529 [2025-01-28 08:52:23] Production.ERROR: pbx CDR StartTime 2025-01-28 05:52:06 - End Time 2025-01-28 08:52:06 [2025-01-28 08:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347888', 'tblTempUsageDetail_20' ) start [2025-01-28 08:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347888', 'tblTempUsageDetail_20' ) end [2025-01-28 08:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347888', 'tblTempVendorCDR_20' ) start [2025-01-28 08:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347888', 'tblTempVendorCDR_20' ) end [2025-01-28 08:52:23] Production.INFO: ProcessCDR(1,14347888,1,1,2) [2025-01-28 08:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347888', 'tblTempUsageDetail_20' ) start [2025-01-28 08:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347888', 'tblTempUsageDetail_20' ) end [2025-01-28 08:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:52:28] Production.INFO: ==18928== Releasing lock... [2025-01-28 08:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:52:28] Production.INFO: 32.5 MB #Memory Used# [2025-01-28 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:53:05 [end_date_ymd] => 2025-01-28 08:53:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:53:05' and `end` < '2025-01-28 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-28 08:53:19] Production.INFO: count ==536 [2025-01-28 08:53:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:53:05 - End Time 2025-01-28 08:53:05 [2025-01-28 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347893', 'tblTempUsageDetail_20' ) start [2025-01-28 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347893', 'tblTempUsageDetail_20' ) end [2025-01-28 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347893', 'tblTempVendorCDR_20' ) start [2025-01-28 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347893', 'tblTempVendorCDR_20' ) end [2025-01-28 08:53:19] Production.INFO: ProcessCDR(1,14347893,1,1,2) [2025-01-28 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347893', 'tblTempUsageDetail_20' ) start [2025-01-28 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347893', 'tblTempUsageDetail_20' ) end [2025-01-28 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:53:24] Production.INFO: ==19000== Releasing lock... [2025-01-28 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:53:24] Production.INFO: 33 MB #Memory Used# [2025-01-28 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:54:06 [end_date_ymd] => 2025-01-28 08:54:06 [RateCDR] => 1 ) [2025-01-28 08:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:54:06' and `end` < '2025-01-28 08:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:54:22] Production.INFO: count ==541 [2025-01-28 08:54:23] Production.ERROR: pbx CDR StartTime 2025-01-28 05:54:06 - End Time 2025-01-28 08:54:06 [2025-01-28 08:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347898', 'tblTempUsageDetail_20' ) start [2025-01-28 08:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347898', 'tblTempUsageDetail_20' ) end [2025-01-28 08:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347898', 'tblTempVendorCDR_20' ) start [2025-01-28 08:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347898', 'tblTempVendorCDR_20' ) end [2025-01-28 08:54:23] Production.INFO: ProcessCDR(1,14347898,1,1,2) [2025-01-28 08:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347898', 'tblTempUsageDetail_20' ) start [2025-01-28 08:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347898', 'tblTempUsageDetail_20' ) end [2025-01-28 08:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:54:28] Production.INFO: ==19070== Releasing lock... [2025-01-28 08:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:54:28] Production.INFO: 33 MB #Memory Used# [2025-01-28 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:55:05 [end_date_ymd] => 2025-01-28 08:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:55:05' and `end` < '2025-01-28 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-28 08:55:19] Production.INFO: count ==551 [2025-01-28 08:55:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:55:05 - End Time 2025-01-28 08:55:05 [2025-01-28 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347903', 'tblTempUsageDetail_20' ) start [2025-01-28 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347903', 'tblTempUsageDetail_20' ) end [2025-01-28 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347903', 'tblTempVendorCDR_20' ) start [2025-01-28 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347903', 'tblTempVendorCDR_20' ) end [2025-01-28 08:55:19] Production.INFO: ProcessCDR(1,14347903,1,1,2) [2025-01-28 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347903', 'tblTempUsageDetail_20' ) start [2025-01-28 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347903', 'tblTempUsageDetail_20' ) end [2025-01-28 08:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:55:24] Production.INFO: ==19151== Releasing lock... [2025-01-28 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:55:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:56:06 [end_date_ymd] => 2025-01-28 08:56:06 [RateCDR] => 1 ) [2025-01-28 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:56:06' and `end` < '2025-01-28 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:56:24] Production.INFO: count ==558 [2025-01-28 08:56:24] Production.ERROR: pbx CDR StartTime 2025-01-28 05:56:06 - End Time 2025-01-28 08:56:06 [2025-01-28 08:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347908', 'tblTempUsageDetail_20' ) start [2025-01-28 08:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347908', 'tblTempUsageDetail_20' ) end [2025-01-28 08:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347908', 'tblTempVendorCDR_20' ) start [2025-01-28 08:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347908', 'tblTempVendorCDR_20' ) end [2025-01-28 08:56:25] Production.INFO: ProcessCDR(1,14347908,1,1,2) [2025-01-28 08:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347908', 'tblTempUsageDetail_20' ) start [2025-01-28 08:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347908', 'tblTempUsageDetail_20' ) end [2025-01-28 08:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:56:30] Production.INFO: ==19225== Releasing lock... [2025-01-28 08:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:56:30] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:57:05 [end_date_ymd] => 2025-01-28 08:57:05 [RateCDR] => 1 ) [2025-01-28 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 05:57:05' and `end` < '2025-01-28 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 08:57:23] Production.INFO: count ==578 [2025-01-28 08:57:24] Production.ERROR: pbx CDR StartTime 2025-01-28 05:57:05 - End Time 2025-01-28 08:57:05 [2025-01-28 08:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347913', 'tblTempUsageDetail_20' ) start [2025-01-28 08:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347913', 'tblTempUsageDetail_20' ) end [2025-01-28 08:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347913', 'tblTempVendorCDR_20' ) start [2025-01-28 08:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347913', 'tblTempVendorCDR_20' ) end [2025-01-28 08:57:24] Production.INFO: ProcessCDR(1,14347913,1,1,2) [2025-01-28 08:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347913', 'tblTempUsageDetail_20' ) start [2025-01-28 08:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347913', 'tblTempUsageDetail_20' ) end [2025-01-28 08:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:57:29] Production.INFO: ==19297== Releasing lock... [2025-01-28 08:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:57:29] Production.INFO: 33 MB #Memory Used# [2025-01-28 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:58:05 [end_date_ymd] => 2025-01-28 08:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:58:05' and `end` < '2025-01-28 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-28 08:58:19] Production.INFO: count ==581 [2025-01-28 08:58:19] Production.ERROR: pbx CDR StartTime 2025-01-28 05:58:05 - End Time 2025-01-28 08:58:05 [2025-01-28 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347918', 'tblTempUsageDetail_20' ) start [2025-01-28 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347918', 'tblTempUsageDetail_20' ) end [2025-01-28 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347918', 'tblTempVendorCDR_20' ) start [2025-01-28 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347918', 'tblTempVendorCDR_20' ) end [2025-01-28 08:58:19] Production.INFO: ProcessCDR(1,14347918,1,1,2) [2025-01-28 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347918', 'tblTempUsageDetail_20' ) start [2025-01-28 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347918', 'tblTempUsageDetail_20' ) end [2025-01-28 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:58:24] Production.INFO: ==19373== Releasing lock... [2025-01-28 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:58:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-28 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 05:59:05 [end_date_ymd] => 2025-01-28 08:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 05:59:05' and `end` < '2025-01-28 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-28 08:59:23] Production.INFO: count ==583 [2025-01-28 08:59:23] Production.ERROR: pbx CDR StartTime 2025-01-28 05:59:05 - End Time 2025-01-28 08:59:05 [2025-01-28 08:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 08:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347923', 'tblTempUsageDetail_20' ) start [2025-01-28 08:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347923', 'tblTempUsageDetail_20' ) end [2025-01-28 08:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347923', 'tblTempVendorCDR_20' ) start [2025-01-28 08:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347923', 'tblTempVendorCDR_20' ) end [2025-01-28 08:59:23] Production.INFO: ProcessCDR(1,14347923,1,1,2) [2025-01-28 08:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 08:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 08:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347923', 'tblTempUsageDetail_20' ) start [2025-01-28 08:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347923', 'tblTempUsageDetail_20' ) end [2025-01-28 08:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 08:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 08:59:27] Production.INFO: ==19446== Releasing lock... [2025-01-28 08:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 08:59:27] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:00:06 [end_date_ymd] => 2025-01-28 09:00:06 [RateCDR] => 1 ) [2025-01-28 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-28 06:00:06' and `end` < '2025-01-28 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-28 09:00:20] Production.INFO: count ==598 [2025-01-28 09:00:20] Production.ERROR: pbx CDR StartTime 2025-01-28 06:00:06 - End Time 2025-01-28 09:00:06 [2025-01-28 09:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347929', 'tblTempUsageDetail_20' ) start [2025-01-28 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347929', 'tblTempUsageDetail_20' ) end [2025-01-28 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347929', 'tblTempVendorCDR_20' ) start [2025-01-28 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347929', 'tblTempVendorCDR_20' ) end [2025-01-28 09:00:20] Production.INFO: ProcessCDR(1,14347929,1,1,2) [2025-01-28 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347929', 'tblTempUsageDetail_20' ) start [2025-01-28 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347929', 'tblTempUsageDetail_20' ) end [2025-01-28 09:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:00:25] Production.INFO: ==19563== Releasing lock... [2025-01-28 09:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:00:25] Production.INFO: 33 MB #Memory Used# [2025-01-28 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:01:05 [end_date_ymd] => 2025-01-28 09:01:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:01:05' and `end` < '2025-01-28 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-28 09:01:25] Production.INFO: count ==638 [2025-01-28 09:01:25] Production.ERROR: pbx CDR StartTime 2025-01-28 06:01:05 - End Time 2025-01-28 09:01:05 [2025-01-28 09:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347934', 'tblTempUsageDetail_20' ) start [2025-01-28 09:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347934', 'tblTempUsageDetail_20' ) end [2025-01-28 09:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347934', 'tblTempVendorCDR_20' ) start [2025-01-28 09:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347934', 'tblTempVendorCDR_20' ) end [2025-01-28 09:01:25] Production.INFO: ProcessCDR(1,14347934,1,1,2) [2025-01-28 09:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347934', 'tblTempUsageDetail_20' ) start [2025-01-28 09:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347934', 'tblTempUsageDetail_20' ) end [2025-01-28 09:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:01:30] Production.INFO: ==19652== Releasing lock... [2025-01-28 09:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:01:30] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:02:05 [end_date_ymd] => 2025-01-28 09:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:02:05' and `end` < '2025-01-28 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-28 09:02:19] Production.INFO: count ==659 [2025-01-28 09:02:20] Production.ERROR: pbx CDR StartTime 2025-01-28 06:02:05 - End Time 2025-01-28 09:02:05 [2025-01-28 09:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347939', 'tblTempUsageDetail_20' ) start [2025-01-28 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347939', 'tblTempUsageDetail_20' ) end [2025-01-28 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347939', 'tblTempVendorCDR_20' ) start [2025-01-28 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347939', 'tblTempVendorCDR_20' ) end [2025-01-28 09:02:20] Production.INFO: ProcessCDR(1,14347939,1,1,2) [2025-01-28 09:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347939', 'tblTempUsageDetail_20' ) start [2025-01-28 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347939', 'tblTempUsageDetail_20' ) end [2025-01-28 09:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:02:25] Production.INFO: ==19729== Releasing lock... [2025-01-28 09:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:02:25] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:03:06 [end_date_ymd] => 2025-01-28 09:03:06 [RateCDR] => 1 ) [2025-01-28 09: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-28 06:03:06' and `end` < '2025-01-28 09: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-28 09:03:20] Production.INFO: count ==670 [2025-01-28 09:03:20] Production.ERROR: pbx CDR StartTime 2025-01-28 06:03:06 - End Time 2025-01-28 09:03:06 [2025-01-28 09:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347944', 'tblTempUsageDetail_20' ) start [2025-01-28 09:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347944', 'tblTempUsageDetail_20' ) end [2025-01-28 09:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347944', 'tblTempVendorCDR_20' ) start [2025-01-28 09:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347944', 'tblTempVendorCDR_20' ) end [2025-01-28 09:03:20] Production.INFO: ProcessCDR(1,14347944,1,1,2) [2025-01-28 09:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347944', 'tblTempUsageDetail_20' ) start [2025-01-28 09:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347944', 'tblTempUsageDetail_20' ) end [2025-01-28 09:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:03:25] Production.INFO: ==19801== Releasing lock... [2025-01-28 09:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:03:25] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:04:06 [end_date_ymd] => 2025-01-28 09:04:06 [RateCDR] => 1 ) [2025-01-28 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:04:06' and `end` < '2025-01-28 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:04:19] Production.INFO: count ==685 [2025-01-28 09:04:19] Production.ERROR: pbx CDR StartTime 2025-01-28 06:04:06 - End Time 2025-01-28 09:04:06 [2025-01-28 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347949', 'tblTempUsageDetail_20' ) start [2025-01-28 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347949', 'tblTempUsageDetail_20' ) end [2025-01-28 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347949', 'tblTempVendorCDR_20' ) start [2025-01-28 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347949', 'tblTempVendorCDR_20' ) end [2025-01-28 09:04:19] Production.INFO: ProcessCDR(1,14347949,1,1,2) [2025-01-28 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347949', 'tblTempUsageDetail_20' ) start [2025-01-28 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347949', 'tblTempUsageDetail_20' ) end [2025-01-28 09:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:04:25] Production.INFO: ==19877== Releasing lock... [2025-01-28 09:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:04:25] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:05:05 [end_date_ymd] => 2025-01-28 09:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:05:05' and `end` < '2025-01-28 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-28 09:05:18] Production.INFO: count ==707 [2025-01-28 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-28 06:05:05 - End Time 2025-01-28 09:05:05 [2025-01-28 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347954', 'tblTempUsageDetail_20' ) start [2025-01-28 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347954', 'tblTempUsageDetail_20' ) end [2025-01-28 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347954', 'tblTempVendorCDR_20' ) start [2025-01-28 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347954', 'tblTempVendorCDR_20' ) end [2025-01-28 09:05:18] Production.INFO: ProcessCDR(1,14347954,1,1,2) [2025-01-28 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347954', 'tblTempUsageDetail_20' ) start [2025-01-28 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347954', 'tblTempUsageDetail_20' ) end [2025-01-28 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:05:24] Production.INFO: ==19953== Releasing lock... [2025-01-28 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:05:24] Production.INFO: 34 MB #Memory Used# [2025-01-28 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:06:06 [end_date_ymd] => 2025-01-28 09:06:06 [RateCDR] => 1 ) [2025-01-28 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:06:06' and `end` < '2025-01-28 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:06:19] Production.INFO: count ==734 [2025-01-28 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-28 06:06:06 - End Time 2025-01-28 09:06:06 [2025-01-28 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347959', 'tblTempUsageDetail_20' ) start [2025-01-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347959', 'tblTempUsageDetail_20' ) end [2025-01-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347959', 'tblTempVendorCDR_20' ) start [2025-01-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347959', 'tblTempVendorCDR_20' ) end [2025-01-28 09:06:19] Production.INFO: ProcessCDR(1,14347959,1,1,2) [2025-01-28 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347959', 'tblTempUsageDetail_20' ) start [2025-01-28 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347959', 'tblTempUsageDetail_20' ) end [2025-01-28 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:06:25] Production.INFO: ==20026== Releasing lock... [2025-01-28 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:06:25] Production.INFO: 34.25 MB #Memory Used# [2025-01-28 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:07:05 [end_date_ymd] => 2025-01-28 09:07:05 [RateCDR] => 1 ) [2025-01-28 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:07:05' and `end` < '2025-01-28 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:07:18] Production.INFO: count ==748 [2025-01-28 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-28 06:07:05 - End Time 2025-01-28 09:07:05 [2025-01-28 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347964', 'tblTempUsageDetail_20' ) start [2025-01-28 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347964', 'tblTempUsageDetail_20' ) end [2025-01-28 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347964', 'tblTempVendorCDR_20' ) start [2025-01-28 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347964', 'tblTempVendorCDR_20' ) end [2025-01-28 09:07:18] Production.INFO: ProcessCDR(1,14347964,1,1,2) [2025-01-28 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347964', 'tblTempUsageDetail_20' ) start [2025-01-28 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347964', 'tblTempUsageDetail_20' ) end [2025-01-28 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:07:24] Production.INFO: ==20101== Releasing lock... [2025-01-28 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:07:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-28 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:08:06 [end_date_ymd] => 2025-01-28 09:08:06 [RateCDR] => 1 ) [2025-01-28 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:08:06' and `end` < '2025-01-28 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:08:19] Production.INFO: count ==754 [2025-01-28 09:08:19] Production.ERROR: pbx CDR StartTime 2025-01-28 06:08:06 - End Time 2025-01-28 09:08:06 [2025-01-28 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347969', 'tblTempUsageDetail_20' ) start [2025-01-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347969', 'tblTempUsageDetail_20' ) end [2025-01-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347969', 'tblTempVendorCDR_20' ) start [2025-01-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347969', 'tblTempVendorCDR_20' ) end [2025-01-28 09:08:19] Production.INFO: ProcessCDR(1,14347969,1,1,2) [2025-01-28 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347969', 'tblTempUsageDetail_20' ) start [2025-01-28 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347969', 'tblTempUsageDetail_20' ) end [2025-01-28 09:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:08:25] Production.INFO: ==20181== Releasing lock... [2025-01-28 09:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:08:25] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:09:05 [end_date_ymd] => 2025-01-28 09:09:05 [RateCDR] => 1 ) [2025-01-28 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:09:05' and `end` < '2025-01-28 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:09:18] Production.INFO: count ==765 [2025-01-28 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-28 06:09:05 - End Time 2025-01-28 09:09:05 [2025-01-28 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347974', 'tblTempUsageDetail_20' ) start [2025-01-28 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347974', 'tblTempUsageDetail_20' ) end [2025-01-28 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347974', 'tblTempVendorCDR_20' ) start [2025-01-28 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347974', 'tblTempVendorCDR_20' ) end [2025-01-28 09:09:18] Production.INFO: ProcessCDR(1,14347974,1,1,2) [2025-01-28 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347974', 'tblTempUsageDetail_20' ) start [2025-01-28 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347974', 'tblTempUsageDetail_20' ) end [2025-01-28 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:09:23] Production.INFO: ==20255== Releasing lock... [2025-01-28 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:09:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-28 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:10:07 [end_date_ymd] => 2025-01-28 09:10:07 [RateCDR] => 1 ) [2025-01-28 09:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:10:07' and `end` < '2025-01-28 09:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:10:20] Production.INFO: count ==793 [2025-01-28 09:10:20] Production.ERROR: pbx CDR StartTime 2025-01-28 06:10:07 - End Time 2025-01-28 09:10:07 [2025-01-28 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347980', 'tblTempUsageDetail_20' ) start [2025-01-28 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347980', 'tblTempUsageDetail_20' ) end [2025-01-28 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347980', 'tblTempVendorCDR_20' ) start [2025-01-28 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347980', 'tblTempVendorCDR_20' ) end [2025-01-28 09:10:20] Production.INFO: ProcessCDR(1,14347980,1,1,2) [2025-01-28 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347980', 'tblTempUsageDetail_20' ) start [2025-01-28 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347980', 'tblTempUsageDetail_20' ) end [2025-01-28 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:10:25] Production.INFO: ==20333== Releasing lock... [2025-01-28 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:10:25] Production.INFO: 34.75 MB #Memory Used# [2025-01-28 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:11:05 [end_date_ymd] => 2025-01-28 09:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:11:05' and `end` < '2025-01-28 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-28 09:11:17] Production.INFO: count ==851 [2025-01-28 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-28 06:11:05 - End Time 2025-01-28 09:11:05 [2025-01-28 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347985', 'tblTempUsageDetail_20' ) start [2025-01-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347985', 'tblTempUsageDetail_20' ) end [2025-01-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347985', 'tblTempVendorCDR_20' ) start [2025-01-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347985', 'tblTempVendorCDR_20' ) end [2025-01-28 09:11:18] Production.INFO: ProcessCDR(1,14347985,1,1,2) [2025-01-28 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347985', 'tblTempUsageDetail_20' ) start [2025-01-28 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347985', 'tblTempUsageDetail_20' ) end [2025-01-28 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:11:23] Production.INFO: ==20407== Releasing lock... [2025-01-28 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:11:23] Production.INFO: 35 MB #Memory Used# [2025-01-28 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:12:06 [end_date_ymd] => 2025-01-28 09:12:06 [RateCDR] => 1 ) [2025-01-28 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:12:06' and `end` < '2025-01-28 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:12:19] Production.INFO: count ==853 [2025-01-28 09:12:19] Production.ERROR: pbx CDR StartTime 2025-01-28 06:12:06 - End Time 2025-01-28 09:12:06 [2025-01-28 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347990', 'tblTempUsageDetail_20' ) start [2025-01-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347990', 'tblTempUsageDetail_20' ) end [2025-01-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347990', 'tblTempVendorCDR_20' ) start [2025-01-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347990', 'tblTempVendorCDR_20' ) end [2025-01-28 09:12:19] Production.INFO: ProcessCDR(1,14347990,1,1,2) [2025-01-28 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347990', 'tblTempUsageDetail_20' ) start [2025-01-28 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347990', 'tblTempUsageDetail_20' ) end [2025-01-28 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:12:23] Production.INFO: ==20481== Releasing lock... [2025-01-28 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:12:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-28 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:13:05 [end_date_ymd] => 2025-01-28 09:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:13:05' and `end` < '2025-01-28 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-28 09:13:18] Production.INFO: count ==862 [2025-01-28 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-28 06:13:05 - End Time 2025-01-28 09:13:05 [2025-01-28 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347995', 'tblTempUsageDetail_20' ) start [2025-01-28 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14347995', 'tblTempUsageDetail_20' ) end [2025-01-28 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347995', 'tblTempVendorCDR_20' ) start [2025-01-28 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14347995', 'tblTempVendorCDR_20' ) end [2025-01-28 09:13:18] Production.INFO: ProcessCDR(1,14347995,1,1,2) [2025-01-28 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14347995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14347995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14347995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14347995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347995', 'tblTempUsageDetail_20' ) start [2025-01-28 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14347995', 'tblTempUsageDetail_20' ) end [2025-01-28 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:13:24] Production.INFO: ==20555== Releasing lock... [2025-01-28 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:13:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-28 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:14:06 [end_date_ymd] => 2025-01-28 09:14:06 [RateCDR] => 1 ) [2025-01-28 09:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:14:06' and `end` < '2025-01-28 09:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:14:19] Production.INFO: count ==876 [2025-01-28 09:14:19] Production.ERROR: pbx CDR StartTime 2025-01-28 06:14:06 - End Time 2025-01-28 09:14:06 [2025-01-28 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348000', 'tblTempUsageDetail_20' ) start [2025-01-28 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348000', 'tblTempUsageDetail_20' ) end [2025-01-28 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348000', 'tblTempVendorCDR_20' ) start [2025-01-28 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348000', 'tblTempVendorCDR_20' ) end [2025-01-28 09:14:19] Production.INFO: ProcessCDR(1,14348000,1,1,2) [2025-01-28 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348000', 'tblTempUsageDetail_20' ) start [2025-01-28 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348000', 'tblTempUsageDetail_20' ) end [2025-01-28 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:14:24] Production.INFO: ==20630== Releasing lock... [2025-01-28 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:14:24] Production.INFO: 35 MB #Memory Used# [2025-01-28 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:15:05 [end_date_ymd] => 2025-01-28 09:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:15:05' and `end` < '2025-01-28 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-28 09:15:18] Production.INFO: count ==888 [2025-01-28 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-28 06:15:05 - End Time 2025-01-28 09:15:05 [2025-01-28 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348005', 'tblTempUsageDetail_20' ) start [2025-01-28 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348005', 'tblTempUsageDetail_20' ) end [2025-01-28 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348005', 'tblTempVendorCDR_20' ) start [2025-01-28 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348005', 'tblTempVendorCDR_20' ) end [2025-01-28 09:15:19] Production.INFO: ProcessCDR(1,14348005,1,1,2) [2025-01-28 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348005', 'tblTempUsageDetail_20' ) start [2025-01-28 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348005', 'tblTempUsageDetail_20' ) end [2025-01-28 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:15:24] Production.INFO: ==20707== Releasing lock... [2025-01-28 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:15:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-28 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:16:06 [end_date_ymd] => 2025-01-28 09:16:06 [RateCDR] => 1 ) [2025-01-28 09: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-28 06:16:06' and `end` < '2025-01-28 09: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-28 09:16:19] Production.INFO: count ==896 [2025-01-28 09:16:19] Production.ERROR: pbx CDR StartTime 2025-01-28 06:16:06 - End Time 2025-01-28 09:16:06 [2025-01-28 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348010', 'tblTempUsageDetail_20' ) start [2025-01-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348010', 'tblTempUsageDetail_20' ) end [2025-01-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348010', 'tblTempVendorCDR_20' ) start [2025-01-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348010', 'tblTempVendorCDR_20' ) end [2025-01-28 09:16:19] Production.INFO: ProcessCDR(1,14348010,1,1,2) [2025-01-28 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348010', 'tblTempUsageDetail_20' ) start [2025-01-28 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348010', 'tblTempUsageDetail_20' ) end [2025-01-28 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:16:24] Production.INFO: ==20823== Releasing lock... [2025-01-28 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:16:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-28 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:17:05 [end_date_ymd] => 2025-01-28 09:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:17:05' and `end` < '2025-01-28 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-28 09:17:18] Production.INFO: count ==910 [2025-01-28 09:17:19] Production.ERROR: pbx CDR StartTime 2025-01-28 06:17:05 - End Time 2025-01-28 09:17:05 [2025-01-28 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348015', 'tblTempUsageDetail_20' ) start [2025-01-28 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348015', 'tblTempUsageDetail_20' ) end [2025-01-28 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348015', 'tblTempVendorCDR_20' ) start [2025-01-28 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348015', 'tblTempVendorCDR_20' ) end [2025-01-28 09:17:19] Production.INFO: ProcessCDR(1,14348015,1,1,2) [2025-01-28 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348015', 'tblTempUsageDetail_20' ) start [2025-01-28 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348015', 'tblTempUsageDetail_20' ) end [2025-01-28 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:17:24] Production.INFO: ==20894== Releasing lock... [2025-01-28 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:17:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-28 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:18:06 [end_date_ymd] => 2025-01-28 09:18:06 [RateCDR] => 1 ) [2025-01-28 09:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:18:06' and `end` < '2025-01-28 09:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:18:19] Production.INFO: count ==921 [2025-01-28 09:18:19] Production.ERROR: pbx CDR StartTime 2025-01-28 06:18:06 - End Time 2025-01-28 09:18:06 [2025-01-28 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348020', 'tblTempUsageDetail_20' ) start [2025-01-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348020', 'tblTempUsageDetail_20' ) end [2025-01-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348020', 'tblTempVendorCDR_20' ) start [2025-01-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348020', 'tblTempVendorCDR_20' ) end [2025-01-28 09:18:19] Production.INFO: ProcessCDR(1,14348020,1,1,2) [2025-01-28 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348020', 'tblTempUsageDetail_20' ) start [2025-01-28 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348020', 'tblTempUsageDetail_20' ) end [2025-01-28 09:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:18:25] Production.INFO: ==20968== Releasing lock... [2025-01-28 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:18:25] Production.INFO: 35 MB #Memory Used# [2025-01-28 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:19:05 [end_date_ymd] => 2025-01-28 09:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:19:05' and `end` < '2025-01-28 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-28 09:19:19] Production.INFO: count ==930 [2025-01-28 09:19:20] Production.ERROR: pbx CDR StartTime 2025-01-28 06:19:05 - End Time 2025-01-28 09:19:05 [2025-01-28 09:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348025', 'tblTempUsageDetail_20' ) start [2025-01-28 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348025', 'tblTempUsageDetail_20' ) end [2025-01-28 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348025', 'tblTempVendorCDR_20' ) start [2025-01-28 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348025', 'tblTempVendorCDR_20' ) end [2025-01-28 09:19:20] Production.INFO: ProcessCDR(1,14348025,1,1,2) [2025-01-28 09:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348025', 'tblTempUsageDetail_20' ) start [2025-01-28 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348025', 'tblTempUsageDetail_20' ) end [2025-01-28 09:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:19:25] Production.INFO: ==21049== Releasing lock... [2025-01-28 09:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:19:25] Production.INFO: 35.5 MB #Memory Used# [2025-01-28 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:20:07 [end_date_ymd] => 2025-01-28 09:20:07 [RateCDR] => 1 ) [2025-01-28 09:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:20:07' and `end` < '2025-01-28 09:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:20:31] Production.INFO: count ==960 [2025-01-28 09:20:32] Production.ERROR: pbx CDR StartTime 2025-01-28 06:20:07 - End Time 2025-01-28 09:20:07 [2025-01-28 09:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348031', 'tblTempUsageDetail_20' ) start [2025-01-28 09:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348031', 'tblTempUsageDetail_20' ) end [2025-01-28 09:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348031', 'tblTempVendorCDR_20' ) start [2025-01-28 09:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348031', 'tblTempVendorCDR_20' ) end [2025-01-28 09:20:32] Production.INFO: ProcessCDR(1,14348031,1,1,2) [2025-01-28 09:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348031', 'tblTempUsageDetail_20' ) start [2025-01-28 09:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348031', 'tblTempUsageDetail_20' ) end [2025-01-28 09:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:20:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:20:37] Production.INFO: ==21129== Releasing lock... [2025-01-28 09:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:20:37] Production.INFO: 35.75 MB #Memory Used# [2025-01-28 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:21:05 [end_date_ymd] => 2025-01-28 09:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:21:05' and `end` < '2025-01-28 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-28 09:21:25] Production.INFO: count ==1052 [2025-01-28 09:21:25] Production.ERROR: pbx CDR StartTime 2025-01-28 06:21:05 - End Time 2025-01-28 09:21:05 [2025-01-28 09:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348036', 'tblTempUsageDetail_20' ) start [2025-01-28 09:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348036', 'tblTempUsageDetail_20' ) end [2025-01-28 09:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348036', 'tblTempVendorCDR_20' ) start [2025-01-28 09:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348036', 'tblTempVendorCDR_20' ) end [2025-01-28 09:21:25] Production.INFO: ProcessCDR(1,14348036,1,1,2) [2025-01-28 09:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348036', 'tblTempUsageDetail_20' ) start [2025-01-28 09:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348036', 'tblTempUsageDetail_20' ) end [2025-01-28 09:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:21:31] Production.INFO: ==21206== Releasing lock... [2025-01-28 09:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:21:31] Production.INFO: 36.5 MB #Memory Used# [2025-01-28 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:22:06 [end_date_ymd] => 2025-01-28 09:22:06 [RateCDR] => 1 ) [2025-01-28 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:22:06' and `end` < '2025-01-28 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:22:29] Production.INFO: count ==1066 [2025-01-28 09:22:29] Production.ERROR: pbx CDR StartTime 2025-01-28 06:22:06 - End Time 2025-01-28 09:22:06 [2025-01-28 09:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348041', 'tblTempUsageDetail_20' ) start [2025-01-28 09:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348041', 'tblTempUsageDetail_20' ) end [2025-01-28 09:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348041', 'tblTempVendorCDR_20' ) start [2025-01-28 09:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348041', 'tblTempVendorCDR_20' ) end [2025-01-28 09:22:29] Production.INFO: ProcessCDR(1,14348041,1,1,2) [2025-01-28 09:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348041', 'tblTempUsageDetail_20' ) start [2025-01-28 09:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348041', 'tblTempUsageDetail_20' ) end [2025-01-28 09:22:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:22:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:22:35] Production.INFO: ==21280== Releasing lock... [2025-01-28 09:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:22:35] Production.INFO: 36.5 MB #Memory Used# [2025-01-28 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:23:05 [end_date_ymd] => 2025-01-28 09:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:23:05' and `end` < '2025-01-28 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-28 09:23:28] Production.INFO: count ==1086 [2025-01-28 09:23:28] Production.ERROR: pbx CDR StartTime 2025-01-28 06:23:05 - End Time 2025-01-28 09:23:05 [2025-01-28 09:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348046', 'tblTempUsageDetail_20' ) start [2025-01-28 09:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348046', 'tblTempUsageDetail_20' ) end [2025-01-28 09:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348046', 'tblTempVendorCDR_20' ) start [2025-01-28 09:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348046', 'tblTempVendorCDR_20' ) end [2025-01-28 09:23:28] Production.INFO: ProcessCDR(1,14348046,1,1,2) [2025-01-28 09:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348046', 'tblTempUsageDetail_20' ) start [2025-01-28 09:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348046', 'tblTempUsageDetail_20' ) end [2025-01-28 09:23:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:23:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:23:33] Production.INFO: ==21351== Releasing lock... [2025-01-28 09:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:23:33] Production.INFO: 36.5 MB #Memory Used# [2025-01-28 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:24:06 [end_date_ymd] => 2025-01-28 09:24:06 [RateCDR] => 1 ) [2025-01-28 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:24:06' and `end` < '2025-01-28 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:24:27] Production.INFO: count ==1098 [2025-01-28 09:24:27] Production.ERROR: pbx CDR StartTime 2025-01-28 06:24:06 - End Time 2025-01-28 09:24:06 [2025-01-28 09:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348051', 'tblTempUsageDetail_20' ) start [2025-01-28 09:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348051', 'tblTempUsageDetail_20' ) end [2025-01-28 09:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348051', 'tblTempVendorCDR_20' ) start [2025-01-28 09:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348051', 'tblTempVendorCDR_20' ) end [2025-01-28 09:24:27] Production.INFO: ProcessCDR(1,14348051,1,1,2) [2025-01-28 09:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348051', 'tblTempUsageDetail_20' ) start [2025-01-28 09:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348051', 'tblTempUsageDetail_20' ) end [2025-01-28 09:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:24:32] Production.INFO: ==21425== Releasing lock... [2025-01-28 09:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:24:32] Production.INFO: 37.25 MB #Memory Used# [2025-01-28 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:25:05 [end_date_ymd] => 2025-01-28 09:25:05 [RateCDR] => 1 ) [2025-01-28 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:25:05' and `end` < '2025-01-28 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:25:24] Production.INFO: count ==1104 [2025-01-28 09:25:24] Production.ERROR: pbx CDR StartTime 2025-01-28 06:25:05 - End Time 2025-01-28 09:25:05 [2025-01-28 09:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348056', 'tblTempUsageDetail_20' ) start [2025-01-28 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348056', 'tblTempUsageDetail_20' ) end [2025-01-28 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348056', 'tblTempVendorCDR_20' ) start [2025-01-28 09:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348056', 'tblTempVendorCDR_20' ) end [2025-01-28 09:25:24] Production.INFO: ProcessCDR(1,14348056,1,1,2) [2025-01-28 09:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348056', 'tblTempUsageDetail_20' ) start [2025-01-28 09:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348056', 'tblTempUsageDetail_20' ) end [2025-01-28 09:25:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:25:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:25:29] Production.INFO: ==21501== Releasing lock... [2025-01-28 09:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:25:29] Production.INFO: 36.75 MB #Memory Used# [2025-01-28 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:26:06 [end_date_ymd] => 2025-01-28 09:26:06 [RateCDR] => 1 ) [2025-01-28 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:26:06' and `end` < '2025-01-28 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:26:22] Production.INFO: count ==1122 [2025-01-28 09:26:22] Production.ERROR: pbx CDR StartTime 2025-01-28 06:26:06 - End Time 2025-01-28 09:26:06 [2025-01-28 09:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348061', 'tblTempUsageDetail_20' ) start [2025-01-28 09:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348061', 'tblTempUsageDetail_20' ) end [2025-01-28 09:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348061', 'tblTempVendorCDR_20' ) start [2025-01-28 09:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348061', 'tblTempVendorCDR_20' ) end [2025-01-28 09:26:22] Production.INFO: ProcessCDR(1,14348061,1,1,2) [2025-01-28 09:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348061', 'tblTempUsageDetail_20' ) start [2025-01-28 09:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348061', 'tblTempUsageDetail_20' ) end [2025-01-28 09:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:26:27] Production.INFO: ==21575== Releasing lock... [2025-01-28 09:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:26:27] Production.INFO: 37.25 MB #Memory Used# [2025-01-28 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:27:05 [end_date_ymd] => 2025-01-28 09:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:27:05' and `end` < '2025-01-28 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-28 09:27:23] Production.INFO: count ==1139 [2025-01-28 09:27:24] Production.ERROR: pbx CDR StartTime 2025-01-28 06:27:05 - End Time 2025-01-28 09:27:05 [2025-01-28 09:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348066', 'tblTempUsageDetail_20' ) start [2025-01-28 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348066', 'tblTempUsageDetail_20' ) end [2025-01-28 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348066', 'tblTempVendorCDR_20' ) start [2025-01-28 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348066', 'tblTempVendorCDR_20' ) end [2025-01-28 09:27:24] Production.INFO: ProcessCDR(1,14348066,1,1,2) [2025-01-28 09:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348066', 'tblTempUsageDetail_20' ) start [2025-01-28 09:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348066', 'tblTempUsageDetail_20' ) end [2025-01-28 09:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:27:29] Production.INFO: ==21655== Releasing lock... [2025-01-28 09:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:27:29] Production.INFO: 37.25 MB #Memory Used# [2025-01-28 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:28:05 [end_date_ymd] => 2025-01-28 09:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:28:05' and `end` < '2025-01-28 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-28 09:28:23] Production.INFO: count ==1159 [2025-01-28 09:28:24] Production.ERROR: pbx CDR StartTime 2025-01-28 06:28:05 - End Time 2025-01-28 09:28:05 [2025-01-28 09:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348071', 'tblTempUsageDetail_20' ) start [2025-01-28 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348071', 'tblTempUsageDetail_20' ) end [2025-01-28 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348071', 'tblTempVendorCDR_20' ) start [2025-01-28 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348071', 'tblTempVendorCDR_20' ) end [2025-01-28 09:28:24] Production.INFO: ProcessCDR(1,14348071,1,1,2) [2025-01-28 09:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348071', 'tblTempUsageDetail_20' ) start [2025-01-28 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348071', 'tblTempUsageDetail_20' ) end [2025-01-28 09:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:28:29] Production.INFO: ==21731== Releasing lock... [2025-01-28 09:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:28:29] Production.INFO: 37.5 MB #Memory Used# [2025-01-28 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:29:05 [end_date_ymd] => 2025-01-28 09:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:29:05' and `end` < '2025-01-28 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-28 09:29:27] Production.INFO: count ==1174 [2025-01-28 09:29:27] Production.ERROR: pbx CDR StartTime 2025-01-28 06:29:05 - End Time 2025-01-28 09:29:05 [2025-01-28 09:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348076', 'tblTempUsageDetail_20' ) start [2025-01-28 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348076', 'tblTempUsageDetail_20' ) end [2025-01-28 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348076', 'tblTempVendorCDR_20' ) start [2025-01-28 09:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348076', 'tblTempVendorCDR_20' ) end [2025-01-28 09:29:27] Production.INFO: ProcessCDR(1,14348076,1,1,2) [2025-01-28 09:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348076', 'tblTempUsageDetail_20' ) start [2025-01-28 09:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348076', 'tblTempUsageDetail_20' ) end [2025-01-28 09:29:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:29:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:29:33] Production.INFO: ==21802== Releasing lock... [2025-01-28 09:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:29:33] Production.INFO: 38 MB #Memory Used# [2025-01-28 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:30:06 [end_date_ymd] => 2025-01-28 09:30:06 [RateCDR] => 1 ) [2025-01-28 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-28 06:30:06' and `end` < '2025-01-28 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-28 09:30:22] Production.INFO: count ==1192 [2025-01-28 09:30:23] Production.ERROR: pbx CDR StartTime 2025-01-28 06:30:06 - End Time 2025-01-28 09:30:06 [2025-01-28 09:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348082', 'tblTempUsageDetail_20' ) start [2025-01-28 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348082', 'tblTempUsageDetail_20' ) end [2025-01-28 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348082', 'tblTempVendorCDR_20' ) start [2025-01-28 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348082', 'tblTempVendorCDR_20' ) end [2025-01-28 09:30:23] Production.INFO: ProcessCDR(1,14348082,1,1,2) [2025-01-28 09:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348082', 'tblTempUsageDetail_20' ) start [2025-01-28 09:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348082', 'tblTempUsageDetail_20' ) end [2025-01-28 09:30:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:30:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:30:28] Production.INFO: ==21880== Releasing lock... [2025-01-28 09:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:30:28] Production.INFO: 37.5 MB #Memory Used# [2025-01-28 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:31:05 [end_date_ymd] => 2025-01-28 09:31:05 [RateCDR] => 1 ) [2025-01-28 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:31:05' and `end` < '2025-01-28 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:31:24] Production.INFO: count ==1280 [2025-01-28 09:31:24] Production.ERROR: pbx CDR StartTime 2025-01-28 06:31:05 - End Time 2025-01-28 09:31:05 [2025-01-28 09:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348087', 'tblTempUsageDetail_20' ) start [2025-01-28 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348087', 'tblTempUsageDetail_20' ) end [2025-01-28 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348087', 'tblTempVendorCDR_20' ) start [2025-01-28 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348087', 'tblTempVendorCDR_20' ) end [2025-01-28 09:31:24] Production.INFO: ProcessCDR(1,14348087,1,1,2) [2025-01-28 09:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348087', 'tblTempUsageDetail_20' ) start [2025-01-28 09:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348087', 'tblTempUsageDetail_20' ) end [2025-01-28 09:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:31:29] Production.INFO: ==21996== Releasing lock... [2025-01-28 09:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:31:29] Production.INFO: 38.25 MB #Memory Used# [2025-01-28 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:32:06 [end_date_ymd] => 2025-01-28 09:32:06 [RateCDR] => 1 ) [2025-01-28 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:32:06' and `end` < '2025-01-28 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:32:24] Production.INFO: count ==1291 [2025-01-28 09:32:24] Production.ERROR: pbx CDR StartTime 2025-01-28 06:32:06 - End Time 2025-01-28 09:32:06 [2025-01-28 09:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348092', 'tblTempUsageDetail_20' ) start [2025-01-28 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348092', 'tblTempUsageDetail_20' ) end [2025-01-28 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348092', 'tblTempVendorCDR_20' ) start [2025-01-28 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348092', 'tblTempVendorCDR_20' ) end [2025-01-28 09:32:24] Production.INFO: ProcessCDR(1,14348092,1,1,2) [2025-01-28 09:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348092', 'tblTempUsageDetail_20' ) start [2025-01-28 09:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348092', 'tblTempUsageDetail_20' ) end [2025-01-28 09:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:32:30] Production.INFO: ==22071== Releasing lock... [2025-01-28 09:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:32:30] Production.INFO: 38.5 MB #Memory Used# [2025-01-28 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:33:06 [end_date_ymd] => 2025-01-28 09:33:06 [RateCDR] => 1 ) [2025-01-28 09: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-28 06:33:06' and `end` < '2025-01-28 09: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-28 09:33:19] Production.INFO: count ==1301 [2025-01-28 09:33:19] Production.ERROR: pbx CDR StartTime 2025-01-28 06:33:06 - End Time 2025-01-28 09:33:06 [2025-01-28 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348097', 'tblTempUsageDetail_20' ) start [2025-01-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348097', 'tblTempUsageDetail_20' ) end [2025-01-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348097', 'tblTempVendorCDR_20' ) start [2025-01-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348097', 'tblTempVendorCDR_20' ) end [2025-01-28 09:33:19] Production.INFO: ProcessCDR(1,14348097,1,1,2) [2025-01-28 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348097', 'tblTempUsageDetail_20' ) start [2025-01-28 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348097', 'tblTempUsageDetail_20' ) end [2025-01-28 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:33:24] Production.INFO: ==22158== Releasing lock... [2025-01-28 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:33:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-28 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:34:06 [end_date_ymd] => 2025-01-28 09:34:06 [RateCDR] => 1 ) [2025-01-28 09:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:34:06' and `end` < '2025-01-28 09:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:34:28] Production.INFO: count ==1325 [2025-01-28 09:34:28] Production.ERROR: pbx CDR StartTime 2025-01-28 06:34:06 - End Time 2025-01-28 09:34:06 [2025-01-28 09:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348102', 'tblTempUsageDetail_20' ) start [2025-01-28 09:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348102', 'tblTempUsageDetail_20' ) end [2025-01-28 09:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348102', 'tblTempVendorCDR_20' ) start [2025-01-28 09:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348102', 'tblTempVendorCDR_20' ) end [2025-01-28 09:34:29] Production.INFO: ProcessCDR(1,14348102,1,1,2) [2025-01-28 09:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348102', 'tblTempUsageDetail_20' ) start [2025-01-28 09:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348102', 'tblTempUsageDetail_20' ) end [2025-01-28 09:34:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:34:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:34:33] Production.INFO: ==22242== Releasing lock... [2025-01-28 09:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:34:33] Production.INFO: 39 MB #Memory Used# [2025-01-28 09:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:35:04 [end_date_ymd] => 2025-01-28 09:35:04 [RateCDR] => 1 ) [2025-01-28 09: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-28 06:35:04' and `end` < '2025-01-28 09: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-28 09:35:22] Production.INFO: count ==1328 [2025-01-28 09:35:23] Production.ERROR: pbx CDR StartTime 2025-01-28 06:35:04 - End Time 2025-01-28 09:35:04 [2025-01-28 09:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348107', 'tblTempUsageDetail_20' ) start [2025-01-28 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348107', 'tblTempUsageDetail_20' ) end [2025-01-28 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348107', 'tblTempVendorCDR_20' ) start [2025-01-28 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348107', 'tblTempVendorCDR_20' ) end [2025-01-28 09:35:23] Production.INFO: ProcessCDR(1,14348107,1,1,2) [2025-01-28 09:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348107', 'tblTempUsageDetail_20' ) start [2025-01-28 09:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348107', 'tblTempUsageDetail_20' ) end [2025-01-28 09:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:35:26] Production.INFO: ==22322== Releasing lock... [2025-01-28 09:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:35:26] Production.INFO: 38.25 MB #Memory Used# [2025-01-28 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:36:06 [end_date_ymd] => 2025-01-28 09:36:06 [RateCDR] => 1 ) [2025-01-28 09:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:36:06' and `end` < '2025-01-28 09:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:36:21] Production.INFO: count ==1336 [2025-01-28 09:36:22] Production.ERROR: pbx CDR StartTime 2025-01-28 06:36:06 - End Time 2025-01-28 09:36:06 [2025-01-28 09:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348112', 'tblTempUsageDetail_20' ) start [2025-01-28 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348112', 'tblTempUsageDetail_20' ) end [2025-01-28 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348112', 'tblTempVendorCDR_20' ) start [2025-01-28 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348112', 'tblTempVendorCDR_20' ) end [2025-01-28 09:36:22] Production.INFO: ProcessCDR(1,14348112,1,1,2) [2025-01-28 09:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348112', 'tblTempUsageDetail_20' ) start [2025-01-28 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348112', 'tblTempUsageDetail_20' ) end [2025-01-28 09:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:36:26] Production.INFO: ==22404== Releasing lock... [2025-01-28 09:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:36:26] Production.INFO: 38.75 MB #Memory Used# [2025-01-28 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:37:05 [end_date_ymd] => 2025-01-28 09:37:05 [RateCDR] => 1 ) [2025-01-28 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:37:05' and `end` < '2025-01-28 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:37:19] Production.INFO: count ==1352 [2025-01-28 09:37:19] Production.ERROR: pbx CDR StartTime 2025-01-28 06:37:05 - End Time 2025-01-28 09:37:05 [2025-01-28 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348117', 'tblTempUsageDetail_20' ) start [2025-01-28 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348117', 'tblTempUsageDetail_20' ) end [2025-01-28 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348117', 'tblTempVendorCDR_20' ) start [2025-01-28 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348117', 'tblTempVendorCDR_20' ) end [2025-01-28 09:37:20] Production.INFO: ProcessCDR(1,14348117,1,1,2) [2025-01-28 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348117', 'tblTempUsageDetail_20' ) start [2025-01-28 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348117', 'tblTempUsageDetail_20' ) end [2025-01-28 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:37:24] Production.INFO: ==22486== Releasing lock... [2025-01-28 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:37:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-28 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:38:06 [end_date_ymd] => 2025-01-28 09:38:06 [RateCDR] => 1 ) [2025-01-28 09:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:38:06' and `end` < '2025-01-28 09:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:38:24] Production.INFO: count ==1368 [2025-01-28 09:38:24] Production.ERROR: pbx CDR StartTime 2025-01-28 06:38:06 - End Time 2025-01-28 09:38:06 [2025-01-28 09:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348122', 'tblTempUsageDetail_20' ) start [2025-01-28 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348122', 'tblTempUsageDetail_20' ) end [2025-01-28 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348122', 'tblTempVendorCDR_20' ) start [2025-01-28 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348122', 'tblTempVendorCDR_20' ) end [2025-01-28 09:38:24] Production.INFO: ProcessCDR(1,14348122,1,1,2) [2025-01-28 09:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348122', 'tblTempUsageDetail_20' ) start [2025-01-28 09:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348122', 'tblTempUsageDetail_20' ) end [2025-01-28 09:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:38:30] Production.INFO: ==22568== Releasing lock... [2025-01-28 09:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:38:30] Production.INFO: 38.75 MB #Memory Used# [2025-01-28 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:39:05 [end_date_ymd] => 2025-01-28 09:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:39:05' and `end` < '2025-01-28 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-28 09:39:24] Production.INFO: count ==1394 [2025-01-28 09:39:25] Production.ERROR: pbx CDR StartTime 2025-01-28 06:39:05 - End Time 2025-01-28 09:39:05 [2025-01-28 09:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348127', 'tblTempUsageDetail_20' ) start [2025-01-28 09:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348127', 'tblTempUsageDetail_20' ) end [2025-01-28 09:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348127', 'tblTempVendorCDR_20' ) start [2025-01-28 09:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348127', 'tblTempVendorCDR_20' ) end [2025-01-28 09:39:25] Production.INFO: ProcessCDR(1,14348127,1,1,2) [2025-01-28 09:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348127', 'tblTempUsageDetail_20' ) start [2025-01-28 09:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348127', 'tblTempUsageDetail_20' ) end [2025-01-28 09:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:39:30] Production.INFO: ==22652== Releasing lock... [2025-01-28 09:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:39:30] Production.INFO: 39 MB #Memory Used# [2025-01-28 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:40:07 [end_date_ymd] => 2025-01-28 09:40:07 [RateCDR] => 1 ) [2025-01-28 09:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:40:07' and `end` < '2025-01-28 09:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:40:26] Production.INFO: count ==1419 [2025-01-28 09:40:27] Production.ERROR: pbx CDR StartTime 2025-01-28 06:40:07 - End Time 2025-01-28 09:40:07 [2025-01-28 09:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348133', 'tblTempUsageDetail_20' ) start [2025-01-28 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348133', 'tblTempUsageDetail_20' ) end [2025-01-28 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348133', 'tblTempVendorCDR_20' ) start [2025-01-28 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348133', 'tblTempVendorCDR_20' ) end [2025-01-28 09:40:27] Production.INFO: ProcessCDR(1,14348133,1,1,2) [2025-01-28 09:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348133', 'tblTempUsageDetail_20' ) start [2025-01-28 09:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348133', 'tblTempUsageDetail_20' ) end [2025-01-28 09:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:40:32] Production.INFO: ==22732== Releasing lock... [2025-01-28 09:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:40:32] Production.INFO: 39.25 MB #Memory Used# [2025-01-28 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:41:05 [end_date_ymd] => 2025-01-28 09:41:05 [RateCDR] => 1 ) [2025-01-28 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:41:05' and `end` < '2025-01-28 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:41:22] Production.INFO: count ==1505 [2025-01-28 09:41:22] Production.ERROR: pbx CDR StartTime 2025-01-28 06:41:05 - End Time 2025-01-28 09:41:05 [2025-01-28 09:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348138', 'tblTempUsageDetail_20' ) start [2025-01-28 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348138', 'tblTempUsageDetail_20' ) end [2025-01-28 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348138', 'tblTempVendorCDR_20' ) start [2025-01-28 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348138', 'tblTempVendorCDR_20' ) end [2025-01-28 09:41:22] Production.INFO: ProcessCDR(1,14348138,1,1,2) [2025-01-28 09:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348138', 'tblTempUsageDetail_20' ) start [2025-01-28 09:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348138', 'tblTempUsageDetail_20' ) end [2025-01-28 09:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:41:28] Production.INFO: ==22807== Releasing lock... [2025-01-28 09:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:41:28] Production.INFO: 39.75 MB #Memory Used# [2025-01-28 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:42:06 [end_date_ymd] => 2025-01-28 09:42:06 [RateCDR] => 1 ) [2025-01-28 09: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-28 06:42:06' and `end` < '2025-01-28 09:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:42:23] Production.INFO: count ==1524 [2025-01-28 09:42:24] Production.ERROR: pbx CDR StartTime 2025-01-28 06:42:06 - End Time 2025-01-28 09:42:06 [2025-01-28 09:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348143', 'tblTempUsageDetail_20' ) start [2025-01-28 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348143', 'tblTempUsageDetail_20' ) end [2025-01-28 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348143', 'tblTempVendorCDR_20' ) start [2025-01-28 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348143', 'tblTempVendorCDR_20' ) end [2025-01-28 09:42:24] Production.INFO: ProcessCDR(1,14348143,1,1,2) [2025-01-28 09:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348143', 'tblTempUsageDetail_20' ) start [2025-01-28 09:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348143', 'tblTempUsageDetail_20' ) end [2025-01-28 09:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:42:29] Production.INFO: ==22882== Releasing lock... [2025-01-28 09:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:42:29] Production.INFO: 40 MB #Memory Used# [2025-01-28 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:43:05 [end_date_ymd] => 2025-01-28 09:43:05 [RateCDR] => 1 ) [2025-01-28 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:43:05' and `end` < '2025-01-28 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:43:23] Production.INFO: count ==1529 [2025-01-28 09:43:23] Production.ERROR: pbx CDR StartTime 2025-01-28 06:43:05 - End Time 2025-01-28 09:43:05 [2025-01-28 09:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348148', 'tblTempUsageDetail_20' ) start [2025-01-28 09:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348148', 'tblTempUsageDetail_20' ) end [2025-01-28 09:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348148', 'tblTempVendorCDR_20' ) start [2025-01-28 09:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348148', 'tblTempVendorCDR_20' ) end [2025-01-28 09:43:23] Production.INFO: ProcessCDR(1,14348148,1,1,2) [2025-01-28 09:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348148', 'tblTempUsageDetail_20' ) start [2025-01-28 09:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348148', 'tblTempUsageDetail_20' ) end [2025-01-28 09:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:43:29] Production.INFO: ==22955== Releasing lock... [2025-01-28 09:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:43:29] Production.INFO: 39.5 MB #Memory Used# [2025-01-28 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:44:06 [end_date_ymd] => 2025-01-28 09:44:06 [RateCDR] => 1 ) [2025-01-28 09:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:44:06' and `end` < '2025-01-28 09:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:44:22] Production.INFO: count ==1547 [2025-01-28 09:44:23] Production.ERROR: pbx CDR StartTime 2025-01-28 06:44:06 - End Time 2025-01-28 09:44:06 [2025-01-28 09:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348153', 'tblTempUsageDetail_20' ) start [2025-01-28 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348153', 'tblTempUsageDetail_20' ) end [2025-01-28 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348153', 'tblTempVendorCDR_20' ) start [2025-01-28 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348153', 'tblTempVendorCDR_20' ) end [2025-01-28 09:44:23] Production.INFO: ProcessCDR(1,14348153,1,1,2) [2025-01-28 09:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348153', 'tblTempUsageDetail_20' ) start [2025-01-28 09:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348153', 'tblTempUsageDetail_20' ) end [2025-01-28 09:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:44:29] Production.INFO: ==23026== Releasing lock... [2025-01-28 09:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:44:29] Production.INFO: 40 MB #Memory Used# [2025-01-28 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:45:06 [end_date_ymd] => 2025-01-28 09:45:06 [RateCDR] => 1 ) [2025-01-28 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:45:06' and `end` < '2025-01-28 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:45:26] Production.INFO: count ==1557 [2025-01-28 09:45:26] Production.ERROR: pbx CDR StartTime 2025-01-28 06:45:06 - End Time 2025-01-28 09:45:06 [2025-01-28 09:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348158', 'tblTempUsageDetail_20' ) start [2025-01-28 09:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348158', 'tblTempUsageDetail_20' ) end [2025-01-28 09:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348158', 'tblTempVendorCDR_20' ) start [2025-01-28 09:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348158', 'tblTempVendorCDR_20' ) end [2025-01-28 09:45:27] Production.INFO: ProcessCDR(1,14348158,1,1,2) [2025-01-28 09:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348158', 'tblTempUsageDetail_20' ) start [2025-01-28 09:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348158', 'tblTempUsageDetail_20' ) end [2025-01-28 09:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:45:32] Production.INFO: ==23101== Releasing lock... [2025-01-28 09:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:45:32] Production.INFO: 40 MB #Memory Used# [2025-01-28 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:46:05 [end_date_ymd] => 2025-01-28 09:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:46:05' and `end` < '2025-01-28 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-28 09:46:28] Production.INFO: count ==1563 [2025-01-28 09:46:28] Production.ERROR: pbx CDR StartTime 2025-01-28 06:46:05 - End Time 2025-01-28 09:46:05 [2025-01-28 09:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348163', 'tblTempUsageDetail_20' ) start [2025-01-28 09:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348163', 'tblTempUsageDetail_20' ) end [2025-01-28 09:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348163', 'tblTempVendorCDR_20' ) start [2025-01-28 09:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348163', 'tblTempVendorCDR_20' ) end [2025-01-28 09:46:28] Production.INFO: ProcessCDR(1,14348163,1,1,2) [2025-01-28 09:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348163', 'tblTempUsageDetail_20' ) start [2025-01-28 09:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348163', 'tblTempUsageDetail_20' ) end [2025-01-28 09:46:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:46:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:46:34] Production.INFO: ==23173== Releasing lock... [2025-01-28 09:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:46:34] Production.INFO: 40 MB #Memory Used# [2025-01-28 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:47:06 [end_date_ymd] => 2025-01-28 09:47:06 [RateCDR] => 1 ) [2025-01-28 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:47:06' and `end` < '2025-01-28 09:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:47:27] Production.INFO: count ==1571 [2025-01-28 09:47:28] Production.ERROR: pbx CDR StartTime 2025-01-28 06:47:06 - End Time 2025-01-28 09:47:06 [2025-01-28 09:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348168', 'tblTempUsageDetail_20' ) start [2025-01-28 09:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348168', 'tblTempUsageDetail_20' ) end [2025-01-28 09:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348168', 'tblTempVendorCDR_20' ) start [2025-01-28 09:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348168', 'tblTempVendorCDR_20' ) end [2025-01-28 09:47:28] Production.INFO: ProcessCDR(1,14348168,1,1,2) [2025-01-28 09:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348168', 'tblTempUsageDetail_20' ) start [2025-01-28 09:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348168', 'tblTempUsageDetail_20' ) end [2025-01-28 09:47:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:47:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:47:33] Production.INFO: ==23292== Releasing lock... [2025-01-28 09:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:47:33] Production.INFO: 40 MB #Memory Used# [2025-01-28 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:48:06 [end_date_ymd] => 2025-01-28 09:48:06 [RateCDR] => 1 ) [2025-01-28 09:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:48:06' and `end` < '2025-01-28 09:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:48:25] Production.INFO: count ==1585 [2025-01-28 09:48:25] Production.ERROR: pbx CDR StartTime 2025-01-28 06:48:06 - End Time 2025-01-28 09:48:06 [2025-01-28 09:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348173', 'tblTempUsageDetail_20' ) start [2025-01-28 09:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348173', 'tblTempUsageDetail_20' ) end [2025-01-28 09:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348173', 'tblTempVendorCDR_20' ) start [2025-01-28 09:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348173', 'tblTempVendorCDR_20' ) end [2025-01-28 09:48:26] Production.INFO: ProcessCDR(1,14348173,1,1,2) [2025-01-28 09:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348173', 'tblTempUsageDetail_20' ) start [2025-01-28 09:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348173', 'tblTempUsageDetail_20' ) end [2025-01-28 09:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:48:31] Production.INFO: ==23371== Releasing lock... [2025-01-28 09:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:48:31] Production.INFO: 40 MB #Memory Used# [2025-01-28 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:49:05 [end_date_ymd] => 2025-01-28 09:49:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:49:05' and `end` < '2025-01-28 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-28 09:49:23] Production.INFO: count ==1594 [2025-01-28 09:49:24] Production.ERROR: pbx CDR StartTime 2025-01-28 06:49:05 - End Time 2025-01-28 09:49:05 [2025-01-28 09:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348178', 'tblTempUsageDetail_20' ) start [2025-01-28 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348178', 'tblTempUsageDetail_20' ) end [2025-01-28 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348178', 'tblTempVendorCDR_20' ) start [2025-01-28 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348178', 'tblTempVendorCDR_20' ) end [2025-01-28 09:49:24] Production.INFO: ProcessCDR(1,14348178,1,1,2) [2025-01-28 09:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348178', 'tblTempUsageDetail_20' ) start [2025-01-28 09:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348178', 'tblTempUsageDetail_20' ) end [2025-01-28 09:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:49:29] Production.INFO: ==23444== Releasing lock... [2025-01-28 09:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:49:29] Production.INFO: 40.25 MB #Memory Used# [2025-01-28 09:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:50:07 [end_date_ymd] => 2025-01-28 09:50:07 [RateCDR] => 1 ) [2025-01-28 09:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:50:07' and `end` < '2025-01-28 09:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:50:22] Production.INFO: count ==1611 [2025-01-28 09:50:22] Production.ERROR: pbx CDR StartTime 2025-01-28 06:50:07 - End Time 2025-01-28 09:50:07 [2025-01-28 09:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348184', 'tblTempUsageDetail_20' ) start [2025-01-28 09:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348184', 'tblTempUsageDetail_20' ) end [2025-01-28 09:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348184', 'tblTempVendorCDR_20' ) start [2025-01-28 09:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348184', 'tblTempVendorCDR_20' ) end [2025-01-28 09:50:22] Production.INFO: ProcessCDR(1,14348184,1,1,2) [2025-01-28 09:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348184', 'tblTempUsageDetail_20' ) start [2025-01-28 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348184', 'tblTempUsageDetail_20' ) end [2025-01-28 09:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:50:26] Production.INFO: ==23521== Releasing lock... [2025-01-28 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:50:26] Production.INFO: 40.75 MB #Memory Used# [2025-01-28 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:51:05 [end_date_ymd] => 2025-01-28 09:51:05 [RateCDR] => 1 ) [2025-01-28 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-28 06:51:05' and `end` < '2025-01-28 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-28 09:51:21] Production.INFO: count ==1668 [2025-01-28 09:51:22] Production.ERROR: pbx CDR StartTime 2025-01-28 06:51:05 - End Time 2025-01-28 09:51:05 [2025-01-28 09:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348189', 'tblTempUsageDetail_20' ) start [2025-01-28 09:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348189', 'tblTempUsageDetail_20' ) end [2025-01-28 09:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348189', 'tblTempVendorCDR_20' ) start [2025-01-28 09:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348189', 'tblTempVendorCDR_20' ) end [2025-01-28 09:51:22] Production.INFO: ProcessCDR(1,14348189,1,1,2) [2025-01-28 09:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348189', 'tblTempUsageDetail_20' ) start [2025-01-28 09:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348189', 'tblTempUsageDetail_20' ) end [2025-01-28 09:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:51:27] Production.INFO: ==23595== Releasing lock... [2025-01-28 09:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:51:27] Production.INFO: 41 MB #Memory Used# [2025-01-28 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:52:06 [end_date_ymd] => 2025-01-28 09:52:06 [RateCDR] => 1 ) [2025-01-28 09: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-28 06:52:06' and `end` < '2025-01-28 09:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:52:26] Production.INFO: count ==1673 [2025-01-28 09:52:27] Production.ERROR: pbx CDR StartTime 2025-01-28 06:52:06 - End Time 2025-01-28 09:52:06 [2025-01-28 09:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348194', 'tblTempUsageDetail_20' ) start [2025-01-28 09:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348194', 'tblTempUsageDetail_20' ) end [2025-01-28 09:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348194', 'tblTempVendorCDR_20' ) start [2025-01-28 09:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348194', 'tblTempVendorCDR_20' ) end [2025-01-28 09:52:27] Production.INFO: ProcessCDR(1,14348194,1,1,2) [2025-01-28 09:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348194', 'tblTempUsageDetail_20' ) start [2025-01-28 09:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348194', 'tblTempUsageDetail_20' ) end [2025-01-28 09:52:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:52:32] Production.INFO: ==23666== Releasing lock... [2025-01-28 09:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:52:32] Production.INFO: 41.25 MB #Memory Used# [2025-01-28 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:53:05 [end_date_ymd] => 2025-01-28 09:53:05 [RateCDR] => 1 ) [2025-01-28 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:53:05' and `end` < '2025-01-28 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:53:24] Production.INFO: count ==1682 [2025-01-28 09:53:24] Production.ERROR: pbx CDR StartTime 2025-01-28 06:53:05 - End Time 2025-01-28 09:53:05 [2025-01-28 09:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348199', 'tblTempUsageDetail_20' ) start [2025-01-28 09:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348199', 'tblTempUsageDetail_20' ) end [2025-01-28 09:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348199', 'tblTempVendorCDR_20' ) start [2025-01-28 09:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348199', 'tblTempVendorCDR_20' ) end [2025-01-28 09:53:24] Production.INFO: ProcessCDR(1,14348199,1,1,2) [2025-01-28 09:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348199', 'tblTempUsageDetail_20' ) start [2025-01-28 09:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348199', 'tblTempUsageDetail_20' ) end [2025-01-28 09:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:53:30] Production.INFO: ==23738== Releasing lock... [2025-01-28 09:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:53:30] Production.INFO: 41.25 MB #Memory Used# [2025-01-28 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:54:06 [end_date_ymd] => 2025-01-28 09:54:06 [RateCDR] => 1 ) [2025-01-28 09: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-28 06:54:06' and `end` < '2025-01-28 09: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-28 09:54:27] Production.INFO: count ==1690 [2025-01-28 09:54:27] Production.ERROR: pbx CDR StartTime 2025-01-28 06:54:06 - End Time 2025-01-28 09:54:06 [2025-01-28 09:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348204', 'tblTempUsageDetail_20' ) start [2025-01-28 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348204', 'tblTempUsageDetail_20' ) end [2025-01-28 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348204', 'tblTempVendorCDR_20' ) start [2025-01-28 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348204', 'tblTempVendorCDR_20' ) end [2025-01-28 09:54:27] Production.INFO: ProcessCDR(1,14348204,1,1,2) [2025-01-28 09:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348204', 'tblTempUsageDetail_20' ) start [2025-01-28 09:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348204', 'tblTempUsageDetail_20' ) end [2025-01-28 09:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:54:33] Production.INFO: ==23809== Releasing lock... [2025-01-28 09:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:54:33] Production.INFO: 41.25 MB #Memory Used# [2025-01-28 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:55:06 [end_date_ymd] => 2025-01-28 09:55:06 [RateCDR] => 1 ) [2025-01-28 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:55:06' and `end` < '2025-01-28 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:55:24] Production.INFO: count ==1706 [2025-01-28 09:55:25] Production.ERROR: pbx CDR StartTime 2025-01-28 06:55:06 - End Time 2025-01-28 09:55:06 [2025-01-28 09:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348209', 'tblTempUsageDetail_20' ) start [2025-01-28 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348209', 'tblTempUsageDetail_20' ) end [2025-01-28 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348209', 'tblTempVendorCDR_20' ) start [2025-01-28 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348209', 'tblTempVendorCDR_20' ) end [2025-01-28 09:55:25] Production.INFO: ProcessCDR(1,14348209,1,1,2) [2025-01-28 09:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348209', 'tblTempUsageDetail_20' ) start [2025-01-28 09:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348209', 'tblTempUsageDetail_20' ) end [2025-01-28 09:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:55:30] Production.INFO: ==23880== Releasing lock... [2025-01-28 09:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:55:30] Production.INFO: 41.25 MB #Memory Used# [2025-01-28 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:56:06 [end_date_ymd] => 2025-01-28 09:56:06 [RateCDR] => 1 ) [2025-01-28 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:56:06' and `end` < '2025-01-28 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:56:20] Production.INFO: count ==1718 [2025-01-28 09:56:20] Production.ERROR: pbx CDR StartTime 2025-01-28 06:56:06 - End Time 2025-01-28 09:56:06 [2025-01-28 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348214', 'tblTempUsageDetail_20' ) start [2025-01-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348214', 'tblTempUsageDetail_20' ) end [2025-01-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348214', 'tblTempVendorCDR_20' ) start [2025-01-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348214', 'tblTempVendorCDR_20' ) end [2025-01-28 09:56:20] Production.INFO: ProcessCDR(1,14348214,1,1,2) [2025-01-28 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348214', 'tblTempUsageDetail_20' ) start [2025-01-28 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348214', 'tblTempUsageDetail_20' ) end [2025-01-28 09:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:56:26] Production.INFO: ==23959== Releasing lock... [2025-01-28 09:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:56:26] Production.INFO: 41.25 MB #Memory Used# [2025-01-28 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:57:05 [end_date_ymd] => 2025-01-28 09:57:05 [RateCDR] => 1 ) [2025-01-28 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:57:05' and `end` < '2025-01-28 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:57:21] Production.INFO: count ==1723 [2025-01-28 09:57:22] Production.ERROR: pbx CDR StartTime 2025-01-28 06:57:05 - End Time 2025-01-28 09:57:05 [2025-01-28 09:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348219', 'tblTempUsageDetail_20' ) start [2025-01-28 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348219', 'tblTempUsageDetail_20' ) end [2025-01-28 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348219', 'tblTempVendorCDR_20' ) start [2025-01-28 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348219', 'tblTempVendorCDR_20' ) end [2025-01-28 09:57:22] Production.INFO: ProcessCDR(1,14348219,1,1,2) [2025-01-28 09:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348219', 'tblTempUsageDetail_20' ) start [2025-01-28 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348219', 'tblTempUsageDetail_20' ) end [2025-01-28 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:57:25] Production.INFO: ==24029== Releasing lock... [2025-01-28 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:57:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-28 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:58:06 [end_date_ymd] => 2025-01-28 09:58:06 [RateCDR] => 1 ) [2025-01-28 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-28 06:58:06' and `end` < '2025-01-28 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-28 09:58:28] Production.INFO: count ==1730 [2025-01-28 09:58:28] Production.ERROR: pbx CDR StartTime 2025-01-28 06:58:06 - End Time 2025-01-28 09:58:06 [2025-01-28 09:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348224', 'tblTempUsageDetail_20' ) start [2025-01-28 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348224', 'tblTempUsageDetail_20' ) end [2025-01-28 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348224', 'tblTempVendorCDR_20' ) start [2025-01-28 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348224', 'tblTempVendorCDR_20' ) end [2025-01-28 09:58:28] Production.INFO: ProcessCDR(1,14348224,1,1,2) [2025-01-28 09:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348224', 'tblTempUsageDetail_20' ) start [2025-01-28 09:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348224', 'tblTempUsageDetail_20' ) end [2025-01-28 09:58:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:58:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:58:34] Production.INFO: ==24104== Releasing lock... [2025-01-28 09:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:58:34] Production.INFO: 41.25 MB #Memory Used# [2025-01-28 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 06:59:06 [end_date_ymd] => 2025-01-28 09:59:06 [RateCDR] => 1 ) [2025-01-28 09:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 06:59:06' and `end` < '2025-01-28 09:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 09:59:26] Production.INFO: count ==1749 [2025-01-28 09:59:27] Production.ERROR: pbx CDR StartTime 2025-01-28 06:59:06 - End Time 2025-01-28 09:59:06 [2025-01-28 09:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 09:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348229', 'tblTempUsageDetail_20' ) start [2025-01-28 09:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348229', 'tblTempUsageDetail_20' ) end [2025-01-28 09:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348229', 'tblTempVendorCDR_20' ) start [2025-01-28 09:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348229', 'tblTempVendorCDR_20' ) end [2025-01-28 09:59:27] Production.INFO: ProcessCDR(1,14348229,1,1,2) [2025-01-28 09:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:59:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 09:59:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 09:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348229', 'tblTempUsageDetail_20' ) start [2025-01-28 09:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348229', 'tblTempUsageDetail_20' ) end [2025-01-28 09:59:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 09:59:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 09:59:33] Production.INFO: ==24179== Releasing lock... [2025-01-28 09:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 09:59:33] Production.INFO: 41.75 MB #Memory Used# [2025-01-28 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:00:07 [end_date_ymd] => 2025-01-28 10:00:07 [RateCDR] => 1 ) [2025-01-28 10: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-28 07:00:07' and `end` < '2025-01-28 10: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-28 10:00:30] Production.INFO: count ==1776 [2025-01-28 10:00:31] Production.ERROR: pbx CDR StartTime 2025-01-28 07:00:07 - End Time 2025-01-28 10:00:07 [2025-01-28 10:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348235', 'tblTempUsageDetail_20' ) start [2025-01-28 10:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348235', 'tblTempUsageDetail_20' ) end [2025-01-28 10:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348235', 'tblTempVendorCDR_20' ) start [2025-01-28 10:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348235', 'tblTempVendorCDR_20' ) end [2025-01-28 10:00:31] Production.INFO: ProcessCDR(1,14348235,1,1,2) [2025-01-28 10:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348235', 'tblTempUsageDetail_20' ) start [2025-01-28 10:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348235', 'tblTempUsageDetail_20' ) end [2025-01-28 10:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:00:36] Production.INFO: ==24255== Releasing lock... [2025-01-28 10:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:00:36] Production.INFO: 42 MB #Memory Used# [2025-01-28 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:01:05 [end_date_ymd] => 2025-01-28 10:01:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:01:05' and `end` < '2025-01-28 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-28 10:01:24] Production.INFO: count ==1854 [2025-01-28 10:01:25] Production.ERROR: pbx CDR StartTime 2025-01-28 07:01:05 - End Time 2025-01-28 10:01:05 [2025-01-28 10:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348240', 'tblTempUsageDetail_20' ) start [2025-01-28 10:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348240', 'tblTempUsageDetail_20' ) end [2025-01-28 10:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348240', 'tblTempVendorCDR_20' ) start [2025-01-28 10:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348240', 'tblTempVendorCDR_20' ) end [2025-01-28 10:01:25] Production.INFO: ProcessCDR(1,14348240,1,1,2) [2025-01-28 10:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348240', 'tblTempUsageDetail_20' ) start [2025-01-28 10:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348240', 'tblTempUsageDetail_20' ) end [2025-01-28 10:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:01:30] Production.INFO: ==24346== Releasing lock... [2025-01-28 10:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:01:30] Production.INFO: 42.5 MB #Memory Used# [2025-01-28 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:02:06 [end_date_ymd] => 2025-01-28 10:02:06 [RateCDR] => 1 ) [2025-01-28 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:02:06' and `end` < '2025-01-28 10: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-28 10:02:26] Production.INFO: count ==1864 [2025-01-28 10:02:26] Production.ERROR: pbx CDR StartTime 2025-01-28 07:02:06 - End Time 2025-01-28 10:02:06 [2025-01-28 10:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348245', 'tblTempUsageDetail_20' ) start [2025-01-28 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348245', 'tblTempUsageDetail_20' ) end [2025-01-28 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348245', 'tblTempVendorCDR_20' ) start [2025-01-28 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348245', 'tblTempVendorCDR_20' ) end [2025-01-28 10:02:26] Production.INFO: ProcessCDR(1,14348245,1,1,2) [2025-01-28 10:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348245', 'tblTempUsageDetail_20' ) start [2025-01-28 10:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348245', 'tblTempUsageDetail_20' ) end [2025-01-28 10:02:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:02:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:02:32] Production.INFO: ==24464== Releasing lock... [2025-01-28 10:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:02:32] Production.INFO: 42 MB #Memory Used# [2025-01-28 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:03:05 [end_date_ymd] => 2025-01-28 10:03:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:03:05' and `end` < '2025-01-28 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-28 10:03:24] Production.INFO: count ==1872 [2025-01-28 10:03:25] Production.ERROR: pbx CDR StartTime 2025-01-28 07:03:05 - End Time 2025-01-28 10:03:05 [2025-01-28 10:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348250', 'tblTempUsageDetail_20' ) start [2025-01-28 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348250', 'tblTempUsageDetail_20' ) end [2025-01-28 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348250', 'tblTempVendorCDR_20' ) start [2025-01-28 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348250', 'tblTempVendorCDR_20' ) end [2025-01-28 10:03:25] Production.INFO: ProcessCDR(1,14348250,1,1,2) [2025-01-28 10:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348250', 'tblTempUsageDetail_20' ) start [2025-01-28 10:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348250', 'tblTempUsageDetail_20' ) end [2025-01-28 10:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:03:30] Production.INFO: ==24536== Releasing lock... [2025-01-28 10:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:03:30] Production.INFO: 42.5 MB #Memory Used# [2025-01-28 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:04:06 [end_date_ymd] => 2025-01-28 10:04:06 [RateCDR] => 1 ) [2025-01-28 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:04:06' and `end` < '2025-01-28 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:04:22] Production.INFO: count ==1884 [2025-01-28 10:04:23] Production.ERROR: pbx CDR StartTime 2025-01-28 07:04:06 - End Time 2025-01-28 10:04:06 [2025-01-28 10:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348255', 'tblTempUsageDetail_20' ) start [2025-01-28 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348255', 'tblTempUsageDetail_20' ) end [2025-01-28 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348255', 'tblTempVendorCDR_20' ) start [2025-01-28 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348255', 'tblTempVendorCDR_20' ) end [2025-01-28 10:04:23] Production.INFO: ProcessCDR(1,14348255,1,1,2) [2025-01-28 10:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348255', 'tblTempUsageDetail_20' ) start [2025-01-28 10:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348255', 'tblTempUsageDetail_20' ) end [2025-01-28 10:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:04:28] Production.INFO: ==24611== Releasing lock... [2025-01-28 10:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:04:28] Production.INFO: 42.25 MB #Memory Used# [2025-01-28 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:05:06 [end_date_ymd] => 2025-01-28 10:05:06 [RateCDR] => 1 ) [2025-01-28 10: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-28 07:05:06' and `end` < '2025-01-28 10: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-28 10:05:22] Production.INFO: count ==1892 [2025-01-28 10:05:22] Production.ERROR: pbx CDR StartTime 2025-01-28 07:05:06 - End Time 2025-01-28 10:05:06 [2025-01-28 10:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348260', 'tblTempUsageDetail_20' ) start [2025-01-28 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348260', 'tblTempUsageDetail_20' ) end [2025-01-28 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348260', 'tblTempVendorCDR_20' ) start [2025-01-28 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348260', 'tblTempVendorCDR_20' ) end [2025-01-28 10:05:23] Production.INFO: ProcessCDR(1,14348260,1,1,2) [2025-01-28 10:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348260', 'tblTempUsageDetail_20' ) start [2025-01-28 10:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348260', 'tblTempUsageDetail_20' ) end [2025-01-28 10:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:05:28] Production.INFO: ==24686== Releasing lock... [2025-01-28 10:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:05:28] Production.INFO: 42.5 MB #Memory Used# [2025-01-28 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:06:05 [end_date_ymd] => 2025-01-28 10:06:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:06:05' and `end` < '2025-01-28 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-28 10:06:21] Production.INFO: count ==1898 [2025-01-28 10:06:22] Production.ERROR: pbx CDR StartTime 2025-01-28 07:06:05 - End Time 2025-01-28 10:06:05 [2025-01-28 10:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348265', 'tblTempUsageDetail_20' ) start [2025-01-28 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348265', 'tblTempUsageDetail_20' ) end [2025-01-28 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348265', 'tblTempVendorCDR_20' ) start [2025-01-28 10:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348265', 'tblTempVendorCDR_20' ) end [2025-01-28 10:06:22] Production.INFO: ProcessCDR(1,14348265,1,1,2) [2025-01-28 10:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348265', 'tblTempUsageDetail_20' ) start [2025-01-28 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348265', 'tblTempUsageDetail_20' ) end [2025-01-28 10:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:06:27] Production.INFO: ==24765== Releasing lock... [2025-01-28 10:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:06:27] Production.INFO: 42.75 MB #Memory Used# [2025-01-28 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:07:06 [end_date_ymd] => 2025-01-28 10:07:06 [RateCDR] => 1 ) [2025-01-28 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:07:06' and `end` < '2025-01-28 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:07:20] Production.INFO: count ==1913 [2025-01-28 10:07:20] Production.ERROR: pbx CDR StartTime 2025-01-28 07:07:06 - End Time 2025-01-28 10:07:06 [2025-01-28 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348270', 'tblTempUsageDetail_20' ) start [2025-01-28 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348270', 'tblTempUsageDetail_20' ) end [2025-01-28 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348270', 'tblTempVendorCDR_20' ) start [2025-01-28 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348270', 'tblTempVendorCDR_20' ) end [2025-01-28 10:07:20] Production.INFO: ProcessCDR(1,14348270,1,1,2) [2025-01-28 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348270', 'tblTempUsageDetail_20' ) start [2025-01-28 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348270', 'tblTempUsageDetail_20' ) end [2025-01-28 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:07:26] Production.INFO: ==24835== Releasing lock... [2025-01-28 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:07:26] Production.INFO: 42.75 MB #Memory Used# [2025-01-28 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:08:05 [end_date_ymd] => 2025-01-28 10:08:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:08:05' and `end` < '2025-01-28 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-28 10:08:22] Production.INFO: count ==1926 [2025-01-28 10:08:22] Production.ERROR: pbx CDR StartTime 2025-01-28 07:08:05 - End Time 2025-01-28 10:08:05 [2025-01-28 10:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348275', 'tblTempUsageDetail_20' ) start [2025-01-28 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348275', 'tblTempUsageDetail_20' ) end [2025-01-28 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348275', 'tblTempVendorCDR_20' ) start [2025-01-28 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348275', 'tblTempVendorCDR_20' ) end [2025-01-28 10:08:23] Production.INFO: ProcessCDR(1,14348275,1,1,2) [2025-01-28 10:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348275', 'tblTempUsageDetail_20' ) start [2025-01-28 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348275', 'tblTempUsageDetail_20' ) end [2025-01-28 10:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:08:28] Production.INFO: ==24913== Releasing lock... [2025-01-28 10:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:08:28] Production.INFO: 43 MB #Memory Used# [2025-01-28 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:09:06 [end_date_ymd] => 2025-01-28 10:09:06 [RateCDR] => 1 ) [2025-01-28 10:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:09:06' and `end` < '2025-01-28 10:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:09:22] Production.INFO: count ==1934 [2025-01-28 10:09:23] Production.ERROR: pbx CDR StartTime 2025-01-28 07:09:06 - End Time 2025-01-28 10:09:06 [2025-01-28 10:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348280', 'tblTempUsageDetail_20' ) start [2025-01-28 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348280', 'tblTempUsageDetail_20' ) end [2025-01-28 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348280', 'tblTempVendorCDR_20' ) start [2025-01-28 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348280', 'tblTempVendorCDR_20' ) end [2025-01-28 10:09:23] Production.INFO: ProcessCDR(1,14348280,1,1,2) [2025-01-28 10:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348280', 'tblTempUsageDetail_20' ) start [2025-01-28 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348280', 'tblTempUsageDetail_20' ) end [2025-01-28 10:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:09:28] Production.INFO: ==24988== Releasing lock... [2025-01-28 10:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:09:28] Production.INFO: 42.75 MB #Memory Used# [2025-01-28 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:10:06 [end_date_ymd] => 2025-01-28 10:10:06 [RateCDR] => 1 ) [2025-01-28 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-28 07:10:06' and `end` < '2025-01-28 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-28 10:10:25] Production.INFO: count ==1959 [2025-01-28 10:10:26] Production.ERROR: pbx CDR StartTime 2025-01-28 07:10:06 - End Time 2025-01-28 10:10:06 [2025-01-28 10:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348285', 'tblTempUsageDetail_20' ) start [2025-01-28 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348285', 'tblTempUsageDetail_20' ) end [2025-01-28 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348285', 'tblTempVendorCDR_20' ) start [2025-01-28 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348285', 'tblTempVendorCDR_20' ) end [2025-01-28 10:10:26] Production.INFO: ProcessCDR(1,14348285,1,1,2) [2025-01-28 10:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348285', 'tblTempUsageDetail_20' ) start [2025-01-28 10:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348285', 'tblTempUsageDetail_20' ) end [2025-01-28 10:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:10:31] Production.INFO: ==25060== Releasing lock... [2025-01-28 10:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:10:31] Production.INFO: 43.25 MB #Memory Used# [2025-01-28 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:11:06 [end_date_ymd] => 2025-01-28 10:11:06 [RateCDR] => 1 ) [2025-01-28 10: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-28 07:11:06' and `end` < '2025-01-28 10: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-28 10:11:25] Production.INFO: count ==2072 [2025-01-28 10:11:26] Production.ERROR: pbx CDR StartTime 2025-01-28 07:11:06 - End Time 2025-01-28 10:11:06 [2025-01-28 10:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348291', 'tblTempUsageDetail_20' ) start [2025-01-28 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348291', 'tblTempUsageDetail_20' ) end [2025-01-28 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348291', 'tblTempVendorCDR_20' ) start [2025-01-28 10:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348291', 'tblTempVendorCDR_20' ) end [2025-01-28 10:11:26] Production.INFO: ProcessCDR(1,14348291,1,1,2) [2025-01-28 10:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348291', 'tblTempUsageDetail_20' ) start [2025-01-28 10:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348291', 'tblTempUsageDetail_20' ) end [2025-01-28 10:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:11:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:11:31] Production.INFO: ==25136== Releasing lock... [2025-01-28 10:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:11:31] Production.INFO: 44 MB #Memory Used# [2025-01-28 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:12:05 [end_date_ymd] => 2025-01-28 10:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:12:05' and `end` < '2025-01-28 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-28 10:12:22] Production.INFO: count ==2079 [2025-01-28 10:12:23] Production.ERROR: pbx CDR StartTime 2025-01-28 07:12:05 - End Time 2025-01-28 10:12:05 [2025-01-28 10:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348296', 'tblTempUsageDetail_20' ) start [2025-01-28 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348296', 'tblTempUsageDetail_20' ) end [2025-01-28 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348296', 'tblTempVendorCDR_20' ) start [2025-01-28 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348296', 'tblTempVendorCDR_20' ) end [2025-01-28 10:12:23] Production.INFO: ProcessCDR(1,14348296,1,1,2) [2025-01-28 10:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348296', 'tblTempUsageDetail_20' ) start [2025-01-28 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348296', 'tblTempUsageDetail_20' ) end [2025-01-28 10:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:12:28] Production.INFO: ==25211== Releasing lock... [2025-01-28 10:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:12:28] Production.INFO: 44.25 MB #Memory Used# [2025-01-28 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:13:05 [end_date_ymd] => 2025-01-28 10:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:13:05' and `end` < '2025-01-28 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-28 10:13:28] Production.INFO: count ==2106 [2025-01-28 10:13:29] Production.ERROR: pbx CDR StartTime 2025-01-28 07:13:05 - End Time 2025-01-28 10:13:05 [2025-01-28 10:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348301', 'tblTempUsageDetail_20' ) start [2025-01-28 10:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348301', 'tblTempUsageDetail_20' ) end [2025-01-28 10:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348301', 'tblTempVendorCDR_20' ) start [2025-01-28 10:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348301', 'tblTempVendorCDR_20' ) end [2025-01-28 10:13:29] Production.INFO: ProcessCDR(1,14348301,1,1,2) [2025-01-28 10:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348301', 'tblTempUsageDetail_20' ) start [2025-01-28 10:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348301', 'tblTempUsageDetail_20' ) end [2025-01-28 10:13:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:13:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:13:34] Production.INFO: ==25289== Releasing lock... [2025-01-28 10:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:13:34] Production.INFO: 44.25 MB #Memory Used# [2025-01-28 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:14:05 [end_date_ymd] => 2025-01-28 10:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:14:05' and `end` < '2025-01-28 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-28 10:14:24] Production.INFO: count ==2113 [2025-01-28 10:14:25] Production.ERROR: pbx CDR StartTime 2025-01-28 07:14:05 - End Time 2025-01-28 10:14:05 [2025-01-28 10:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348306', 'tblTempUsageDetail_20' ) start [2025-01-28 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348306', 'tblTempUsageDetail_20' ) end [2025-01-28 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348306', 'tblTempVendorCDR_20' ) start [2025-01-28 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348306', 'tblTempVendorCDR_20' ) end [2025-01-28 10:14:25] Production.INFO: ProcessCDR(1,14348306,1,1,2) [2025-01-28 10:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348306', 'tblTempUsageDetail_20' ) start [2025-01-28 10:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348306', 'tblTempUsageDetail_20' ) end [2025-01-28 10:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:14:30] Production.INFO: ==25362== Releasing lock... [2025-01-28 10:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:14:30] Production.INFO: 44 MB #Memory Used# [2025-01-28 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:15:05 [end_date_ymd] => 2025-01-28 10:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:15:05' and `end` < '2025-01-28 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-28 10:15:29] Production.INFO: count ==2133 [2025-01-28 10:15:30] Production.ERROR: pbx CDR StartTime 2025-01-28 07:15:05 - End Time 2025-01-28 10:15:05 [2025-01-28 10:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348311', 'tblTempUsageDetail_20' ) start [2025-01-28 10:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348311', 'tblTempUsageDetail_20' ) end [2025-01-28 10:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348311', 'tblTempVendorCDR_20' ) start [2025-01-28 10:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348311', 'tblTempVendorCDR_20' ) end [2025-01-28 10:15:30] Production.INFO: ProcessCDR(1,14348311,1,1,2) [2025-01-28 10:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348311', 'tblTempUsageDetail_20' ) start [2025-01-28 10:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348311', 'tblTempUsageDetail_20' ) end [2025-01-28 10:15:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:15:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:15:36] Production.INFO: ==25437== Releasing lock... [2025-01-28 10:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:15:36] Production.INFO: 44.5 MB #Memory Used# [2025-01-28 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:16:05 [end_date_ymd] => 2025-01-28 10:16:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:16:05' and `end` < '2025-01-28 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-28 10:16:24] Production.INFO: count ==2153 [2025-01-28 10:16:25] Production.ERROR: pbx CDR StartTime 2025-01-28 07:16:05 - End Time 2025-01-28 10:16:05 [2025-01-28 10:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348316', 'tblTempUsageDetail_20' ) start [2025-01-28 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348316', 'tblTempUsageDetail_20' ) end [2025-01-28 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348316', 'tblTempVendorCDR_20' ) start [2025-01-28 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348316', 'tblTempVendorCDR_20' ) end [2025-01-28 10:16:25] Production.INFO: ProcessCDR(1,14348316,1,1,2) [2025-01-28 10:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348316', 'tblTempUsageDetail_20' ) start [2025-01-28 10:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348316', 'tblTempUsageDetail_20' ) end [2025-01-28 10:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:16:31] Production.INFO: ==25515== Releasing lock... [2025-01-28 10:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:16:31] Production.INFO: 44.5 MB #Memory Used# [2025-01-28 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:17:06 [end_date_ymd] => 2025-01-28 10:17:06 [RateCDR] => 1 ) [2025-01-28 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:17:06' and `end` < '2025-01-28 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:17:28] Production.INFO: count ==2170 [2025-01-28 10:17:29] Production.ERROR: pbx CDR StartTime 2025-01-28 07:17:06 - End Time 2025-01-28 10:17:06 [2025-01-28 10:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348321', 'tblTempUsageDetail_20' ) start [2025-01-28 10:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348321', 'tblTempUsageDetail_20' ) end [2025-01-28 10:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348321', 'tblTempVendorCDR_20' ) start [2025-01-28 10:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348321', 'tblTempVendorCDR_20' ) end [2025-01-28 10:17:29] Production.INFO: ProcessCDR(1,14348321,1,1,2) [2025-01-28 10:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348321', 'tblTempUsageDetail_20' ) start [2025-01-28 10:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348321', 'tblTempUsageDetail_20' ) end [2025-01-28 10:17:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:17:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:17:34] Production.INFO: ==25626== Releasing lock... [2025-01-28 10:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:17:34] Production.INFO: 45 MB #Memory Used# [2025-01-28 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:18:05 [end_date_ymd] => 2025-01-28 10:18:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:18:05' and `end` < '2025-01-28 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-28 10:18:25] Production.INFO: count ==2175 [2025-01-28 10:18:26] Production.ERROR: pbx CDR StartTime 2025-01-28 07:18:05 - End Time 2025-01-28 10:18:05 [2025-01-28 10:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348326', 'tblTempUsageDetail_20' ) start [2025-01-28 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348326', 'tblTempUsageDetail_20' ) end [2025-01-28 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348326', 'tblTempVendorCDR_20' ) start [2025-01-28 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348326', 'tblTempVendorCDR_20' ) end [2025-01-28 10:18:26] Production.INFO: ProcessCDR(1,14348326,1,1,2) [2025-01-28 10:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348326', 'tblTempUsageDetail_20' ) start [2025-01-28 10:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348326', 'tblTempUsageDetail_20' ) end [2025-01-28 10:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:18:31] Production.INFO: ==25702== Releasing lock... [2025-01-28 10:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:18:31] Production.INFO: 45 MB #Memory Used# [2025-01-28 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:19:05 [end_date_ymd] => 2025-01-28 10:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:19:05' and `end` < '2025-01-28 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-28 10:19:25] Production.INFO: count ==2188 [2025-01-28 10:19:26] Production.ERROR: pbx CDR StartTime 2025-01-28 07:19:05 - End Time 2025-01-28 10:19:05 [2025-01-28 10:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348331', 'tblTempUsageDetail_20' ) start [2025-01-28 10:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348331', 'tblTempUsageDetail_20' ) end [2025-01-28 10:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348331', 'tblTempVendorCDR_20' ) start [2025-01-28 10:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348331', 'tblTempVendorCDR_20' ) end [2025-01-28 10:19:26] Production.INFO: ProcessCDR(1,14348331,1,1,2) [2025-01-28 10:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348331', 'tblTempUsageDetail_20' ) start [2025-01-28 10:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348331', 'tblTempUsageDetail_20' ) end [2025-01-28 10:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:19:32] Production.INFO: ==25779== Releasing lock... [2025-01-28 10:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:19:32] Production.INFO: 45 MB #Memory Used# [2025-01-28 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:20:05 [end_date_ymd] => 2025-01-28 10:20:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:20:05' and `end` < '2025-01-28 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-28 10:20:25] Production.INFO: count ==2216 [2025-01-28 10:20:25] Production.ERROR: pbx CDR StartTime 2025-01-28 07:20:05 - End Time 2025-01-28 10:20:05 [2025-01-28 10:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348336', 'tblTempUsageDetail_20' ) start [2025-01-28 10:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348336', 'tblTempUsageDetail_20' ) end [2025-01-28 10:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348336', 'tblTempVendorCDR_20' ) start [2025-01-28 10:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348336', 'tblTempVendorCDR_20' ) end [2025-01-28 10:20:26] Production.INFO: ProcessCDR(1,14348336,1,1,2) [2025-01-28 10:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348336', 'tblTempUsageDetail_20' ) start [2025-01-28 10:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348336', 'tblTempUsageDetail_20' ) end [2025-01-28 10:20:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:20:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:20:31] Production.INFO: ==25853== Releasing lock... [2025-01-28 10:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:20:31] Production.INFO: 45 MB #Memory Used# [2025-01-28 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:21:05 [end_date_ymd] => 2025-01-28 10:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:21:05' and `end` < '2025-01-28 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-28 10:21:23] Production.INFO: count ==2310 [2025-01-28 10:21:24] Production.ERROR: pbx CDR StartTime 2025-01-28 07:21:05 - End Time 2025-01-28 10:21:05 [2025-01-28 10:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348342', 'tblTempUsageDetail_20' ) start [2025-01-28 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348342', 'tblTempUsageDetail_20' ) end [2025-01-28 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348342', 'tblTempVendorCDR_20' ) start [2025-01-28 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348342', 'tblTempVendorCDR_20' ) end [2025-01-28 10:21:24] Production.INFO: ProcessCDR(1,14348342,1,1,2) [2025-01-28 10:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348342', 'tblTempUsageDetail_20' ) start [2025-01-28 10:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348342', 'tblTempUsageDetail_20' ) end [2025-01-28 10:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:21:29] Production.INFO: ==25932== Releasing lock... [2025-01-28 10:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:21:29] Production.INFO: 45.5 MB #Memory Used# [2025-01-28 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:22:05 [end_date_ymd] => 2025-01-28 10:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:22:05' and `end` < '2025-01-28 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-28 10:22:32] Production.INFO: count ==2341 [2025-01-28 10:22:33] Production.ERROR: pbx CDR StartTime 2025-01-28 07:22:05 - End Time 2025-01-28 10:22:05 [2025-01-28 10:22:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348347', 'tblTempUsageDetail_20' ) start [2025-01-28 10:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348347', 'tblTempUsageDetail_20' ) end [2025-01-28 10:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348347', 'tblTempVendorCDR_20' ) start [2025-01-28 10:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348347', 'tblTempVendorCDR_20' ) end [2025-01-28 10:22:33] Production.INFO: ProcessCDR(1,14348347,1,1,2) [2025-01-28 10:22:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:22:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:22:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:22:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348347', 'tblTempUsageDetail_20' ) start [2025-01-28 10:22:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348347', 'tblTempUsageDetail_20' ) end [2025-01-28 10:22:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:22:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:22:39] Production.INFO: ==26008== Releasing lock... [2025-01-28 10:22:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:22:39] Production.INFO: 46 MB #Memory Used# [2025-01-28 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:23:05 [end_date_ymd] => 2025-01-28 10:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:23:05' and `end` < '2025-01-28 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-28 10:23:29] Production.INFO: count ==2361 [2025-01-28 10:23:30] Production.ERROR: pbx CDR StartTime 2025-01-28 07:23:05 - End Time 2025-01-28 10:23:05 [2025-01-28 10:23:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348352', 'tblTempUsageDetail_20' ) start [2025-01-28 10:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348352', 'tblTempUsageDetail_20' ) end [2025-01-28 10:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348352', 'tblTempVendorCDR_20' ) start [2025-01-28 10:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348352', 'tblTempVendorCDR_20' ) end [2025-01-28 10:23:30] Production.INFO: ProcessCDR(1,14348352,1,1,2) [2025-01-28 10:23:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:23:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:23:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:23:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348352', 'tblTempUsageDetail_20' ) start [2025-01-28 10:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348352', 'tblTempUsageDetail_20' ) end [2025-01-28 10:23:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:23:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:23:36] Production.INFO: ==26084== Releasing lock... [2025-01-28 10:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:23:36] Production.INFO: 46 MB #Memory Used# [2025-01-28 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:24:06 [end_date_ymd] => 2025-01-28 10:24:06 [RateCDR] => 1 ) [2025-01-28 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:24:06' and `end` < '2025-01-28 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:24:27] Production.INFO: count ==2378 [2025-01-28 10:24:28] Production.ERROR: pbx CDR StartTime 2025-01-28 07:24:06 - End Time 2025-01-28 10:24:06 [2025-01-28 10:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348357', 'tblTempUsageDetail_20' ) start [2025-01-28 10:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348357', 'tblTempUsageDetail_20' ) end [2025-01-28 10:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348357', 'tblTempVendorCDR_20' ) start [2025-01-28 10:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348357', 'tblTempVendorCDR_20' ) end [2025-01-28 10:24:28] Production.INFO: ProcessCDR(1,14348357,1,1,2) [2025-01-28 10:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348357', 'tblTempUsageDetail_20' ) start [2025-01-28 10:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348357', 'tblTempUsageDetail_20' ) end [2025-01-28 10:24:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:24:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:24:33] Production.INFO: ==26156== Releasing lock... [2025-01-28 10:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:24:33] Production.INFO: 46.25 MB #Memory Used# [2025-01-28 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:25:06 [end_date_ymd] => 2025-01-28 10:25:06 [RateCDR] => 1 ) [2025-01-28 10: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-28 07:25:06' and `end` < '2025-01-28 10: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-28 10:25:30] Production.INFO: count ==2402 [2025-01-28 10:25:31] Production.ERROR: pbx CDR StartTime 2025-01-28 07:25:06 - End Time 2025-01-28 10:25:06 [2025-01-28 10:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348362', 'tblTempUsageDetail_20' ) start [2025-01-28 10:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348362', 'tblTempUsageDetail_20' ) end [2025-01-28 10:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348362', 'tblTempVendorCDR_20' ) start [2025-01-28 10:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348362', 'tblTempVendorCDR_20' ) end [2025-01-28 10:25:31] Production.INFO: ProcessCDR(1,14348362,1,1,2) [2025-01-28 10:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348362', 'tblTempUsageDetail_20' ) start [2025-01-28 10:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348362', 'tblTempUsageDetail_20' ) end [2025-01-28 10:25:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:25:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:25:36] Production.INFO: ==26239== Releasing lock... [2025-01-28 10:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:25:36] Production.INFO: 46.25 MB #Memory Used# [2025-01-28 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:26:05 [end_date_ymd] => 2025-01-28 10:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:26:05' and `end` < '2025-01-28 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-28 10:26:26] Production.INFO: count ==2423 [2025-01-28 10:26:27] Production.ERROR: pbx CDR StartTime 2025-01-28 07:26:05 - End Time 2025-01-28 10:26:05 [2025-01-28 10:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348367', 'tblTempUsageDetail_20' ) start [2025-01-28 10:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348367', 'tblTempUsageDetail_20' ) end [2025-01-28 10:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348367', 'tblTempVendorCDR_20' ) start [2025-01-28 10:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348367', 'tblTempVendorCDR_20' ) end [2025-01-28 10:26:27] Production.INFO: ProcessCDR(1,14348367,1,1,2) [2025-01-28 10:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348367', 'tblTempUsageDetail_20' ) start [2025-01-28 10:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348367', 'tblTempUsageDetail_20' ) end [2025-01-28 10:26:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:26:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:26:32] Production.INFO: ==26313== Releasing lock... [2025-01-28 10:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:26:32] Production.INFO: 46.5 MB #Memory Used# [2025-01-28 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:27:05 [end_date_ymd] => 2025-01-28 10:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:27:05' and `end` < '2025-01-28 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-28 10:27:29] Production.INFO: count ==2460 [2025-01-28 10:27:30] Production.ERROR: pbx CDR StartTime 2025-01-28 07:27:05 - End Time 2025-01-28 10:27:05 [2025-01-28 10:27:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348372', 'tblTempUsageDetail_20' ) start [2025-01-28 10:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348372', 'tblTempUsageDetail_20' ) end [2025-01-28 10:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348372', 'tblTempVendorCDR_20' ) start [2025-01-28 10:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348372', 'tblTempVendorCDR_20' ) end [2025-01-28 10:27:30] Production.INFO: ProcessCDR(1,14348372,1,1,2) [2025-01-28 10:27:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:27:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:27:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:27:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348372', 'tblTempUsageDetail_20' ) start [2025-01-28 10:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348372', 'tblTempUsageDetail_20' ) end [2025-01-28 10:27:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:27:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:27:35] Production.INFO: ==26391== Releasing lock... [2025-01-28 10:27:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:27:35] Production.INFO: 46.5 MB #Memory Used# [2025-01-28 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:28:05 [end_date_ymd] => 2025-01-28 10:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:28:05' and `end` < '2025-01-28 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-28 10:28:27] Production.INFO: count ==2472 [2025-01-28 10:28:28] Production.ERROR: pbx CDR StartTime 2025-01-28 07:28:05 - End Time 2025-01-28 10:28:05 [2025-01-28 10:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348377', 'tblTempUsageDetail_20' ) start [2025-01-28 10:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348377', 'tblTempUsageDetail_20' ) end [2025-01-28 10:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348377', 'tblTempVendorCDR_20' ) start [2025-01-28 10:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348377', 'tblTempVendorCDR_20' ) end [2025-01-28 10:28:28] Production.INFO: ProcessCDR(1,14348377,1,1,2) [2025-01-28 10:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:28:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:28:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348377', 'tblTempUsageDetail_20' ) start [2025-01-28 10:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348377', 'tblTempUsageDetail_20' ) end [2025-01-28 10:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:28:33] Production.INFO: ==26468== Releasing lock... [2025-01-28 10:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:28:33] Production.INFO: 46.75 MB #Memory Used# [2025-01-28 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:29:05 [end_date_ymd] => 2025-01-28 10:29:05 [RateCDR] => 1 ) [2025-01-28 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:29:05' and `end` < '2025-01-28 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:29:26] Production.INFO: count ==2494 [2025-01-28 10:29:27] Production.ERROR: pbx CDR StartTime 2025-01-28 07:29:05 - End Time 2025-01-28 10:29:05 [2025-01-28 10:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348382', 'tblTempUsageDetail_20' ) start [2025-01-28 10:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348382', 'tblTempUsageDetail_20' ) end [2025-01-28 10:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348382', 'tblTempVendorCDR_20' ) start [2025-01-28 10:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348382', 'tblTempVendorCDR_20' ) end [2025-01-28 10:29:27] Production.INFO: ProcessCDR(1,14348382,1,1,2) [2025-01-28 10:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348382', 'tblTempUsageDetail_20' ) start [2025-01-28 10:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348382', 'tblTempUsageDetail_20' ) end [2025-01-28 10:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:29:32] Production.INFO: ==26538== Releasing lock... [2025-01-28 10:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:29:32] Production.INFO: 46.75 MB #Memory Used# [2025-01-28 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:30:06 [end_date_ymd] => 2025-01-28 10:30:06 [RateCDR] => 1 ) [2025-01-28 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:30:06' and `end` < '2025-01-28 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:30:28] Production.INFO: count ==2518 [2025-01-28 10:30:29] Production.ERROR: pbx CDR StartTime 2025-01-28 07:30:06 - End Time 2025-01-28 10:30:06 [2025-01-28 10:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348388', 'tblTempUsageDetail_20' ) start [2025-01-28 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348388', 'tblTempUsageDetail_20' ) end [2025-01-28 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348388', 'tblTempVendorCDR_20' ) start [2025-01-28 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348388', 'tblTempVendorCDR_20' ) end [2025-01-28 10:30:29] Production.INFO: ProcessCDR(1,14348388,1,1,2) [2025-01-28 10:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348388', 'tblTempUsageDetail_20' ) start [2025-01-28 10:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348388', 'tblTempUsageDetail_20' ) end [2025-01-28 10:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:30:35] Production.INFO: ==26620== Releasing lock... [2025-01-28 10:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:30:35] Production.INFO: 47.5 MB #Memory Used# [2025-01-28 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:31:06 [end_date_ymd] => 2025-01-28 10:31:06 [RateCDR] => 1 ) [2025-01-28 10:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:31:06' and `end` < '2025-01-28 10:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:31:25] Production.INFO: count ==2669 [2025-01-28 10:31:26] Production.ERROR: pbx CDR StartTime 2025-01-28 07:31:06 - End Time 2025-01-28 10:31:06 [2025-01-28 10:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348393', 'tblTempUsageDetail_20' ) start [2025-01-28 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348393', 'tblTempUsageDetail_20' ) end [2025-01-28 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348393', 'tblTempVendorCDR_20' ) start [2025-01-28 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348393', 'tblTempVendorCDR_20' ) end [2025-01-28 10:31:26] Production.INFO: ProcessCDR(1,14348393,1,1,2) [2025-01-28 10:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348393', 'tblTempUsageDetail_20' ) start [2025-01-28 10:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348393', 'tblTempUsageDetail_20' ) end [2025-01-28 10:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:31:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:31:32] Production.INFO: ==26696== Releasing lock... [2025-01-28 10:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:31:32] Production.INFO: 48.25 MB #Memory Used# [2025-01-28 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:32:05 [end_date_ymd] => 2025-01-28 10:32:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:32:05' and `end` < '2025-01-28 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-28 10:32:34] Production.INFO: count ==2695 [2025-01-28 10:32:35] Production.ERROR: pbx CDR StartTime 2025-01-28 07:32:05 - End Time 2025-01-28 10:32:05 [2025-01-28 10:32:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348398', 'tblTempUsageDetail_20' ) start [2025-01-28 10:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348398', 'tblTempUsageDetail_20' ) end [2025-01-28 10:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348398', 'tblTempVendorCDR_20' ) start [2025-01-28 10:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348398', 'tblTempVendorCDR_20' ) end [2025-01-28 10:32:35] Production.INFO: ProcessCDR(1,14348398,1,1,2) [2025-01-28 10:32:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:32:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:32:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:32:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348398', 'tblTempUsageDetail_20' ) start [2025-01-28 10:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348398', 'tblTempUsageDetail_20' ) end [2025-01-28 10:32:40] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:32:40] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:32:40] Production.INFO: ==26778== Releasing lock... [2025-01-28 10:32:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:32:40] Production.INFO: 48.25 MB #Memory Used# [2025-01-28 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:33:05 [end_date_ymd] => 2025-01-28 10:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:33:05' and `end` < '2025-01-28 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-28 10:33:26] Production.INFO: count ==2723 [2025-01-28 10:33:27] Production.ERROR: pbx CDR StartTime 2025-01-28 07:33:05 - End Time 2025-01-28 10:33:05 [2025-01-28 10:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348403', 'tblTempUsageDetail_20' ) start [2025-01-28 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348403', 'tblTempUsageDetail_20' ) end [2025-01-28 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348403', 'tblTempVendorCDR_20' ) start [2025-01-28 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348403', 'tblTempVendorCDR_20' ) end [2025-01-28 10:33:27] Production.INFO: ProcessCDR(1,14348403,1,1,2) [2025-01-28 10:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348403', 'tblTempUsageDetail_20' ) start [2025-01-28 10:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348403', 'tblTempUsageDetail_20' ) end [2025-01-28 10:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:33:32] Production.INFO: ==26891== Releasing lock... [2025-01-28 10:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:33:32] Production.INFO: 48.5 MB #Memory Used# [2025-01-28 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:34:06 [end_date_ymd] => 2025-01-28 10:34:06 [RateCDR] => 1 ) [2025-01-28 10: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-28 07:34:06' and `end` < '2025-01-28 10: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-28 10:34:25] Production.INFO: count ==2737 [2025-01-28 10:34:26] Production.ERROR: pbx CDR StartTime 2025-01-28 07:34:06 - End Time 2025-01-28 10:34:06 [2025-01-28 10:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348408', 'tblTempUsageDetail_20' ) start [2025-01-28 10:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348408', 'tblTempUsageDetail_20' ) end [2025-01-28 10:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348408', 'tblTempVendorCDR_20' ) start [2025-01-28 10:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348408', 'tblTempVendorCDR_20' ) end [2025-01-28 10:34:26] Production.INFO: ProcessCDR(1,14348408,1,1,2) [2025-01-28 10:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348408', 'tblTempUsageDetail_20' ) start [2025-01-28 10:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348408', 'tblTempUsageDetail_20' ) end [2025-01-28 10:34:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:34:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:34:32] Production.INFO: ==26968== Releasing lock... [2025-01-28 10:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:34:32] Production.INFO: 48.75 MB #Memory Used# [2025-01-28 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:35:06 [end_date_ymd] => 2025-01-28 10:35:06 [RateCDR] => 1 ) [2025-01-28 10:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:35:06' and `end` < '2025-01-28 10:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:35:26] Production.INFO: count ==2753 [2025-01-28 10:35:27] Production.ERROR: pbx CDR StartTime 2025-01-28 07:35:06 - End Time 2025-01-28 10:35:06 [2025-01-28 10:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348413', 'tblTempUsageDetail_20' ) start [2025-01-28 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348413', 'tblTempUsageDetail_20' ) end [2025-01-28 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348413', 'tblTempVendorCDR_20' ) start [2025-01-28 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348413', 'tblTempVendorCDR_20' ) end [2025-01-28 10:35:27] Production.INFO: ProcessCDR(1,14348413,1,1,2) [2025-01-28 10:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348413', 'tblTempUsageDetail_20' ) start [2025-01-28 10:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348413', 'tblTempUsageDetail_20' ) end [2025-01-28 10:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:35:32] Production.INFO: ==27039== Releasing lock... [2025-01-28 10:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:35:32] Production.INFO: 48.75 MB #Memory Used# [2025-01-28 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:36:06 [end_date_ymd] => 2025-01-28 10:36:06 [RateCDR] => 1 ) [2025-01-28 10: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-28 07:36:06' and `end` < '2025-01-28 10: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-28 10:36:29] Production.INFO: count ==2772 [2025-01-28 10:36:30] Production.ERROR: pbx CDR StartTime 2025-01-28 07:36:06 - End Time 2025-01-28 10:36:06 [2025-01-28 10:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348418', 'tblTempUsageDetail_20' ) start [2025-01-28 10:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348418', 'tblTempUsageDetail_20' ) end [2025-01-28 10:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348418', 'tblTempVendorCDR_20' ) start [2025-01-28 10:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348418', 'tblTempVendorCDR_20' ) end [2025-01-28 10:36:30] Production.INFO: ProcessCDR(1,14348418,1,1,2) [2025-01-28 10:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:36:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348418', 'tblTempUsageDetail_20' ) start [2025-01-28 10:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348418', 'tblTempUsageDetail_20' ) end [2025-01-28 10:36:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:36:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:36:35] Production.INFO: ==27117== Releasing lock... [2025-01-28 10:36:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:36:35] Production.INFO: 49 MB #Memory Used# [2025-01-28 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:37:06 [end_date_ymd] => 2025-01-28 10:37:06 [RateCDR] => 1 ) [2025-01-28 10:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:37:06' and `end` < '2025-01-28 10:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:37:25] Production.INFO: count ==2778 [2025-01-28 10:37:26] Production.ERROR: pbx CDR StartTime 2025-01-28 07:37:06 - End Time 2025-01-28 10:37:06 [2025-01-28 10:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348423', 'tblTempUsageDetail_20' ) start [2025-01-28 10:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348423', 'tblTempUsageDetail_20' ) end [2025-01-28 10:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348423', 'tblTempVendorCDR_20' ) start [2025-01-28 10:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348423', 'tblTempVendorCDR_20' ) end [2025-01-28 10:37:26] Production.INFO: ProcessCDR(1,14348423,1,1,2) [2025-01-28 10:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348423', 'tblTempUsageDetail_20' ) start [2025-01-28 10:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348423', 'tblTempUsageDetail_20' ) end [2025-01-28 10:37:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:37:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:37:32] Production.INFO: ==27195== Releasing lock... [2025-01-28 10:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:37:32] Production.INFO: 49 MB #Memory Used# [2025-01-28 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:38:06 [end_date_ymd] => 2025-01-28 10:38:06 [RateCDR] => 1 ) [2025-01-28 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:38:06' and `end` < '2025-01-28 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:38:19] Production.INFO: count ==2781 [2025-01-28 10:38:20] Production.ERROR: pbx CDR StartTime 2025-01-28 07:38:06 - End Time 2025-01-28 10:38:06 [2025-01-28 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348428', 'tblTempUsageDetail_20' ) start [2025-01-28 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348428', 'tblTempUsageDetail_20' ) end [2025-01-28 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348428', 'tblTempVendorCDR_20' ) start [2025-01-28 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348428', 'tblTempVendorCDR_20' ) end [2025-01-28 10:38:20] Production.INFO: ProcessCDR(1,14348428,1,1,2) [2025-01-28 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348428', 'tblTempUsageDetail_20' ) start [2025-01-28 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348428', 'tblTempUsageDetail_20' ) end [2025-01-28 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:38:26] Production.INFO: ==27270== Releasing lock... [2025-01-28 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:38:26] Production.INFO: 49 MB #Memory Used# [2025-01-28 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:39:05 [end_date_ymd] => 2025-01-28 10:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:39:05' and `end` < '2025-01-28 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-28 10:39:20] Production.INFO: count ==2785 [2025-01-28 10:39:21] Production.ERROR: pbx CDR StartTime 2025-01-28 07:39:05 - End Time 2025-01-28 10:39:05 [2025-01-28 10:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348433', 'tblTempUsageDetail_20' ) start [2025-01-28 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348433', 'tblTempUsageDetail_20' ) end [2025-01-28 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348433', 'tblTempVendorCDR_20' ) start [2025-01-28 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348433', 'tblTempVendorCDR_20' ) end [2025-01-28 10:39:21] Production.INFO: ProcessCDR(1,14348433,1,1,2) [2025-01-28 10:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348433', 'tblTempUsageDetail_20' ) start [2025-01-28 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348433', 'tblTempUsageDetail_20' ) end [2025-01-28 10:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:39:27] Production.INFO: ==27348== Releasing lock... [2025-01-28 10:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:39:27] Production.INFO: 49 MB #Memory Used# [2025-01-28 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:40:06 [end_date_ymd] => 2025-01-28 10:40:06 [RateCDR] => 1 ) [2025-01-28 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:40:06' and `end` < '2025-01-28 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:40:20] Production.INFO: count ==2802 [2025-01-28 10:40:21] Production.ERROR: pbx CDR StartTime 2025-01-28 07:40:06 - End Time 2025-01-28 10:40:06 [2025-01-28 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348439', 'tblTempUsageDetail_20' ) start [2025-01-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348439', 'tblTempUsageDetail_20' ) end [2025-01-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348439', 'tblTempVendorCDR_20' ) start [2025-01-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348439', 'tblTempVendorCDR_20' ) end [2025-01-28 10:40:21] Production.INFO: ProcessCDR(1,14348439,1,1,2) [2025-01-28 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348439', 'tblTempUsageDetail_20' ) start [2025-01-28 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348439', 'tblTempUsageDetail_20' ) end [2025-01-28 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:40:27] Production.INFO: ==27431== Releasing lock... [2025-01-28 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:40:27] Production.INFO: 49.25 MB #Memory Used# [2025-01-28 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:41:05 [end_date_ymd] => 2025-01-28 10:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:41:05' and `end` < '2025-01-28 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-28 10:41:25] Production.INFO: count ==2944 [2025-01-28 10:41:26] Production.ERROR: pbx CDR StartTime 2025-01-28 07:41:05 - End Time 2025-01-28 10:41:05 [2025-01-28 10:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348443', 'tblTempUsageDetail_20' ) start [2025-01-28 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348443', 'tblTempUsageDetail_20' ) end [2025-01-28 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348443', 'tblTempVendorCDR_20' ) start [2025-01-28 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348443', 'tblTempVendorCDR_20' ) end [2025-01-28 10:41:26] Production.INFO: ProcessCDR(1,14348443,1,1,2) [2025-01-28 10:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348443', 'tblTempUsageDetail_20' ) start [2025-01-28 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348443', 'tblTempUsageDetail_20' ) end [2025-01-28 10:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:41:31] Production.INFO: ==27507== Releasing lock... [2025-01-28 10:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:41:31] Production.INFO: 50 MB #Memory Used# [2025-01-28 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:42:06 [end_date_ymd] => 2025-01-28 10:42:06 [RateCDR] => 1 ) [2025-01-28 10: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-28 07:42:06' and `end` < '2025-01-28 10: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-28 10:42:23] Production.INFO: count ==2952 [2025-01-28 10:42:25] Production.ERROR: pbx CDR StartTime 2025-01-28 07:42:06 - End Time 2025-01-28 10:42:06 [2025-01-28 10:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348449', 'tblTempUsageDetail_20' ) start [2025-01-28 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348449', 'tblTempUsageDetail_20' ) end [2025-01-28 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348449', 'tblTempVendorCDR_20' ) start [2025-01-28 10:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348449', 'tblTempVendorCDR_20' ) end [2025-01-28 10:42:25] Production.INFO: ProcessCDR(1,14348449,1,1,2) [2025-01-28 10:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348449', 'tblTempUsageDetail_20' ) start [2025-01-28 10:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348449', 'tblTempUsageDetail_20' ) end [2025-01-28 10:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:42:30] Production.INFO: ==27581== Releasing lock... [2025-01-28 10:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:42:30] Production.INFO: 50 MB #Memory Used# [2025-01-28 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:43:05 [end_date_ymd] => 2025-01-28 10:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:43:05' and `end` < '2025-01-28 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-28 10:43:22] Production.INFO: count ==2981 [2025-01-28 10:43:23] Production.ERROR: pbx CDR StartTime 2025-01-28 07:43:05 - End Time 2025-01-28 10:43:05 [2025-01-28 10:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348454', 'tblTempUsageDetail_20' ) start [2025-01-28 10:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348454', 'tblTempUsageDetail_20' ) end [2025-01-28 10:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348454', 'tblTempVendorCDR_20' ) start [2025-01-28 10:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348454', 'tblTempVendorCDR_20' ) end [2025-01-28 10:43:23] Production.INFO: ProcessCDR(1,14348454,1,1,2) [2025-01-28 10:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348454', 'tblTempUsageDetail_20' ) start [2025-01-28 10:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348454', 'tblTempUsageDetail_20' ) end [2025-01-28 10:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:43:27] Production.INFO: ==27657== Releasing lock... [2025-01-28 10:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:43:27] Production.INFO: 50.25 MB #Memory Used# [2025-01-28 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:44:05 [end_date_ymd] => 2025-01-28 10:44:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:44:05' and `end` < '2025-01-28 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-28 10:44:24] Production.INFO: count ==2985 [2025-01-28 10:44:25] Production.ERROR: pbx CDR StartTime 2025-01-28 07:44:05 - End Time 2025-01-28 10:44:05 [2025-01-28 10:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348459', 'tblTempUsageDetail_20' ) start [2025-01-28 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348459', 'tblTempUsageDetail_20' ) end [2025-01-28 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348459', 'tblTempVendorCDR_20' ) start [2025-01-28 10:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348459', 'tblTempVendorCDR_20' ) end [2025-01-28 10:44:25] Production.INFO: ProcessCDR(1,14348459,1,1,2) [2025-01-28 10:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348459', 'tblTempUsageDetail_20' ) start [2025-01-28 10:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348459', 'tblTempUsageDetail_20' ) end [2025-01-28 10:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:44:30] Production.INFO: ==27741== Releasing lock... [2025-01-28 10:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:44:30] Production.INFO: 50.25 MB #Memory Used# [2025-01-28 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:45:05 [end_date_ymd] => 2025-01-28 10:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:45:05' and `end` < '2025-01-28 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-28 10:45:34] Production.INFO: count ==2998 [2025-01-28 10:45:35] Production.ERROR: pbx CDR StartTime 2025-01-28 07:45:05 - End Time 2025-01-28 10:45:05 [2025-01-28 10:45:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348464', 'tblTempUsageDetail_20' ) start [2025-01-28 10:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348464', 'tblTempUsageDetail_20' ) end [2025-01-28 10:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348464', 'tblTempVendorCDR_20' ) start [2025-01-28 10:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348464', 'tblTempVendorCDR_20' ) end [2025-01-28 10:45:35] Production.INFO: ProcessCDR(1,14348464,1,1,2) [2025-01-28 10:45:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:45:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:45:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:45:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348464', 'tblTempUsageDetail_20' ) start [2025-01-28 10:45:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348464', 'tblTempUsageDetail_20' ) end [2025-01-28 10:45:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:45:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:45:41] Production.INFO: ==27819== Releasing lock... [2025-01-28 10:45:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:45:41] Production.INFO: 50.5 MB #Memory Used# [2025-01-28 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:46:05 [end_date_ymd] => 2025-01-28 10:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:46:05' and `end` < '2025-01-28 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-28 10:46:34] Production.INFO: count ==3015 [2025-01-28 10:46:35] Production.ERROR: pbx CDR StartTime 2025-01-28 07:46:05 - End Time 2025-01-28 10:46:05 [2025-01-28 10:46:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:46:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348469', 'tblTempUsageDetail_20' ) start [2025-01-28 10:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348469', 'tblTempUsageDetail_20' ) end [2025-01-28 10:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348469', 'tblTempVendorCDR_20' ) start [2025-01-28 10:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348469', 'tblTempVendorCDR_20' ) end [2025-01-28 10:46:36] Production.INFO: ProcessCDR(1,14348469,1,1,2) [2025-01-28 10:46:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:46:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:46:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:46:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:46:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348469', 'tblTempUsageDetail_20' ) start [2025-01-28 10:46:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348469', 'tblTempUsageDetail_20' ) end [2025-01-28 10:46:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:46:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:46:41] Production.INFO: ==27896== Releasing lock... [2025-01-28 10:46:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:46:41] Production.INFO: 50.75 MB #Memory Used# [2025-01-28 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:47:05 [end_date_ymd] => 2025-01-28 10:47:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:47:05' and `end` < '2025-01-28 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-28 10:47:30] Production.INFO: count ==3037 [2025-01-28 10:47:31] Production.ERROR: pbx CDR StartTime 2025-01-28 07:47:05 - End Time 2025-01-28 10:47:05 [2025-01-28 10:47:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348474', 'tblTempUsageDetail_20' ) start [2025-01-28 10:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348474', 'tblTempUsageDetail_20' ) end [2025-01-28 10:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348474', 'tblTempVendorCDR_20' ) start [2025-01-28 10:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348474', 'tblTempVendorCDR_20' ) end [2025-01-28 10:47:31] Production.INFO: ProcessCDR(1,14348474,1,1,2) [2025-01-28 10:47:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:47:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:47:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:47:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348474', 'tblTempUsageDetail_20' ) start [2025-01-28 10:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348474', 'tblTempUsageDetail_20' ) end [2025-01-28 10:47:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:47:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:47:37] Production.INFO: ==27969== Releasing lock... [2025-01-28 10:47:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:47:37] Production.INFO: 51.5 MB #Memory Used# [2025-01-28 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:48:06 [end_date_ymd] => 2025-01-28 10:48:06 [RateCDR] => 1 ) [2025-01-28 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:48:06' and `end` < '2025-01-28 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:48:26] Production.INFO: count ==3047 [2025-01-28 10:48:27] Production.ERROR: pbx CDR StartTime 2025-01-28 07:48:06 - End Time 2025-01-28 10:48:06 [2025-01-28 10:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348479', 'tblTempUsageDetail_20' ) start [2025-01-28 10:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348479', 'tblTempUsageDetail_20' ) end [2025-01-28 10:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348479', 'tblTempVendorCDR_20' ) start [2025-01-28 10:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348479', 'tblTempVendorCDR_20' ) end [2025-01-28 10:48:27] Production.INFO: ProcessCDR(1,14348479,1,1,2) [2025-01-28 10:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348479', 'tblTempUsageDetail_20' ) start [2025-01-28 10:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348479', 'tblTempUsageDetail_20' ) end [2025-01-28 10:48:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:48:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:48:32] Production.INFO: ==28084== Releasing lock... [2025-01-28 10:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:48:32] Production.INFO: 51.25 MB #Memory Used# [2025-01-28 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:49:05 [end_date_ymd] => 2025-01-28 10:49:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:49:05' and `end` < '2025-01-28 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-28 10:49:25] Production.INFO: count ==3072 [2025-01-28 10:49:26] Production.ERROR: pbx CDR StartTime 2025-01-28 07:49:05 - End Time 2025-01-28 10:49:05 [2025-01-28 10:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348484', 'tblTempUsageDetail_20' ) start [2025-01-28 10:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348484', 'tblTempUsageDetail_20' ) end [2025-01-28 10:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348484', 'tblTempVendorCDR_20' ) start [2025-01-28 10:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348484', 'tblTempVendorCDR_20' ) end [2025-01-28 10:49:26] Production.INFO: ProcessCDR(1,14348484,1,1,2) [2025-01-28 10:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348484', 'tblTempUsageDetail_20' ) start [2025-01-28 10:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348484', 'tblTempUsageDetail_20' ) end [2025-01-28 10:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:49:32] Production.INFO: ==28160== Releasing lock... [2025-01-28 10:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:49:32] Production.INFO: 51 MB #Memory Used# [2025-01-28 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:50:06 [end_date_ymd] => 2025-01-28 10:50:06 [RateCDR] => 1 ) [2025-01-28 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-28 07:50:06' and `end` < '2025-01-28 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-28 10:50:34] Production.INFO: count ==3090 [2025-01-28 10:50:35] Production.ERROR: pbx CDR StartTime 2025-01-28 07:50:06 - End Time 2025-01-28 10:50:06 [2025-01-28 10:50:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348489', 'tblTempUsageDetail_20' ) start [2025-01-28 10:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348489', 'tblTempUsageDetail_20' ) end [2025-01-28 10:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348489', 'tblTempVendorCDR_20' ) start [2025-01-28 10:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348489', 'tblTempVendorCDR_20' ) end [2025-01-28 10:50:36] Production.INFO: ProcessCDR(1,14348489,1,1,2) [2025-01-28 10:50:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:50:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:50:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:50:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348489', 'tblTempUsageDetail_20' ) start [2025-01-28 10:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348489', 'tblTempUsageDetail_20' ) end [2025-01-28 10:50:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:50:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:50:41] Production.INFO: ==28238== Releasing lock... [2025-01-28 10:50:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:50:41] Production.INFO: 51 MB #Memory Used# [2025-01-28 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:51:05 [end_date_ymd] => 2025-01-28 10:51:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:51:05' and `end` < '2025-01-28 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-28 10:51:33] Production.INFO: count ==3242 [2025-01-28 10:51:34] Production.ERROR: pbx CDR StartTime 2025-01-28 07:51:05 - End Time 2025-01-28 10:51:05 [2025-01-28 10:51:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348495', 'tblTempUsageDetail_20' ) start [2025-01-28 10:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348495', 'tblTempUsageDetail_20' ) end [2025-01-28 10:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348495', 'tblTempVendorCDR_20' ) start [2025-01-28 10:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348495', 'tblTempVendorCDR_20' ) end [2025-01-28 10:51:34] Production.INFO: ProcessCDR(1,14348495,1,1,2) [2025-01-28 10:51:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:51:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:51:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:51:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348495', 'tblTempUsageDetail_20' ) start [2025-01-28 10:51:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348495', 'tblTempUsageDetail_20' ) end [2025-01-28 10:51:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:51:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:51:38] Production.INFO: ==28314== Releasing lock... [2025-01-28 10:51:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:51:38] Production.INFO: 52.25 MB #Memory Used# [2025-01-28 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:52:05 [end_date_ymd] => 2025-01-28 10:52:05 [RateCDR] => 1 ) [2025-01-28 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:52:05' and `end` < '2025-01-28 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-28 10:52:35] Production.INFO: count ==3261 [2025-01-28 10:52:36] Production.ERROR: pbx CDR StartTime 2025-01-28 07:52:05 - End Time 2025-01-28 10:52:05 [2025-01-28 10:52:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348500', 'tblTempUsageDetail_20' ) start [2025-01-28 10:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348500', 'tblTempUsageDetail_20' ) end [2025-01-28 10:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348500', 'tblTempVendorCDR_20' ) start [2025-01-28 10:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348500', 'tblTempVendorCDR_20' ) end [2025-01-28 10:52:37] Production.INFO: ProcessCDR(1,14348500,1,1,2) [2025-01-28 10:52:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:52:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:52:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:52:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:52:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348500', 'tblTempUsageDetail_20' ) start [2025-01-28 10:52:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348500', 'tblTempUsageDetail_20' ) end [2025-01-28 10:52:42] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:52:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:52:42] Production.INFO: ==28390== Releasing lock... [2025-01-28 10:52:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:52:42] Production.INFO: 52.5 MB #Memory Used# [2025-01-28 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:53:05 [end_date_ymd] => 2025-01-28 10:53:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:53:05' and `end` < '2025-01-28 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-28 10:53:27] Production.INFO: count ==3276 [2025-01-28 10:53:29] Production.ERROR: pbx CDR StartTime 2025-01-28 07:53:05 - End Time 2025-01-28 10:53:05 [2025-01-28 10:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348505', 'tblTempUsageDetail_20' ) start [2025-01-28 10:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348505', 'tblTempUsageDetail_20' ) end [2025-01-28 10:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348505', 'tblTempVendorCDR_20' ) start [2025-01-28 10:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348505', 'tblTempVendorCDR_20' ) end [2025-01-28 10:53:29] Production.INFO: ProcessCDR(1,14348505,1,1,2) [2025-01-28 10:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:53:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:53:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348505', 'tblTempUsageDetail_20' ) start [2025-01-28 10:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348505', 'tblTempUsageDetail_20' ) end [2025-01-28 10:53:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:53:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:53:34] Production.INFO: ==28467== Releasing lock... [2025-01-28 10:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:53:34] Production.INFO: 52.75 MB #Memory Used# [2025-01-28 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:54:06 [end_date_ymd] => 2025-01-28 10:54:06 [RateCDR] => 1 ) [2025-01-28 10:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:54:06' and `end` < '2025-01-28 10:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:54:30] Production.INFO: count ==3287 [2025-01-28 10:54:31] Production.ERROR: pbx CDR StartTime 2025-01-28 07:54:06 - End Time 2025-01-28 10:54:06 [2025-01-28 10:54:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348510', 'tblTempUsageDetail_20' ) start [2025-01-28 10:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348510', 'tblTempUsageDetail_20' ) end [2025-01-28 10:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348510', 'tblTempVendorCDR_20' ) start [2025-01-28 10:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348510', 'tblTempVendorCDR_20' ) end [2025-01-28 10:54:31] Production.INFO: ProcessCDR(1,14348510,1,1,2) [2025-01-28 10:54:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:54:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348510', 'tblTempUsageDetail_20' ) start [2025-01-28 10:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348510', 'tblTempUsageDetail_20' ) end [2025-01-28 10:54:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:54:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:54:37] Production.INFO: ==28537== Releasing lock... [2025-01-28 10:54:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:54:37] Production.INFO: 52.75 MB #Memory Used# [2025-01-28 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:55:05 [end_date_ymd] => 2025-01-28 10:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:55:05' and `end` < '2025-01-28 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-28 10:55:27] Production.INFO: count ==3295 [2025-01-28 10:55:28] Production.ERROR: pbx CDR StartTime 2025-01-28 07:55:05 - End Time 2025-01-28 10:55:05 [2025-01-28 10:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348515', 'tblTempUsageDetail_20' ) start [2025-01-28 10:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348515', 'tblTempUsageDetail_20' ) end [2025-01-28 10:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348515', 'tblTempVendorCDR_20' ) start [2025-01-28 10:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348515', 'tblTempVendorCDR_20' ) end [2025-01-28 10:55:28] Production.INFO: ProcessCDR(1,14348515,1,1,2) [2025-01-28 10:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348515', 'tblTempUsageDetail_20' ) start [2025-01-28 10:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348515', 'tblTempUsageDetail_20' ) end [2025-01-28 10:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:55:34] Production.INFO: ==28608== Releasing lock... [2025-01-28 10:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:55:34] Production.INFO: 53 MB #Memory Used# [2025-01-28 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:56:05 [end_date_ymd] => 2025-01-28 10:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:56:05' and `end` < '2025-01-28 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-28 10:56:35] Production.INFO: count ==3313 [2025-01-28 10:56:36] Production.ERROR: pbx CDR StartTime 2025-01-28 07:56:05 - End Time 2025-01-28 10:56:05 [2025-01-28 10:56:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348520', 'tblTempUsageDetail_20' ) start [2025-01-28 10:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348520', 'tblTempUsageDetail_20' ) end [2025-01-28 10:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348520', 'tblTempVendorCDR_20' ) start [2025-01-28 10:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348520', 'tblTempVendorCDR_20' ) end [2025-01-28 10:56:36] Production.INFO: ProcessCDR(1,14348520,1,1,2) [2025-01-28 10:56:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:56:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:56:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:56:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:56:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348520', 'tblTempUsageDetail_20' ) start [2025-01-28 10:56:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348520', 'tblTempUsageDetail_20' ) end [2025-01-28 10:56:42] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:56:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:56:42] Production.INFO: ==28682== Releasing lock... [2025-01-28 10:56:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:56:42] Production.INFO: 52.75 MB #Memory Used# [2025-01-28 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:57:06 [end_date_ymd] => 2025-01-28 10:57:06 [RateCDR] => 1 ) [2025-01-28 10:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:57:06' and `end` < '2025-01-28 10:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:57:29] Production.INFO: count ==3328 [2025-01-28 10:57:30] Production.ERROR: pbx CDR StartTime 2025-01-28 07:57:06 - End Time 2025-01-28 10:57:06 [2025-01-28 10:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348525', 'tblTempUsageDetail_20' ) start [2025-01-28 10:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348525', 'tblTempUsageDetail_20' ) end [2025-01-28 10:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348525', 'tblTempVendorCDR_20' ) start [2025-01-28 10:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348525', 'tblTempVendorCDR_20' ) end [2025-01-28 10:57:30] Production.INFO: ProcessCDR(1,14348525,1,1,2) [2025-01-28 10:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:57:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:57:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:57:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348525', 'tblTempUsageDetail_20' ) start [2025-01-28 10:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348525', 'tblTempUsageDetail_20' ) end [2025-01-28 10:57:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:57:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:57:35] Production.INFO: ==28756== Releasing lock... [2025-01-28 10:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:57:35] Production.INFO: 53.25 MB #Memory Used# [2025-01-28 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:58:05 [end_date_ymd] => 2025-01-28 10:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 07:58:05' and `end` < '2025-01-28 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-28 10:58:26] Production.INFO: count ==3340 [2025-01-28 10:58:28] Production.ERROR: pbx CDR StartTime 2025-01-28 07:58:05 - End Time 2025-01-28 10:58:05 [2025-01-28 10:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348530', 'tblTempUsageDetail_20' ) start [2025-01-28 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348530', 'tblTempUsageDetail_20' ) end [2025-01-28 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348530', 'tblTempVendorCDR_20' ) start [2025-01-28 10:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348530', 'tblTempVendorCDR_20' ) end [2025-01-28 10:58:28] Production.INFO: ProcessCDR(1,14348530,1,1,2) [2025-01-28 10:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348530', 'tblTempUsageDetail_20' ) start [2025-01-28 10:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348530', 'tblTempUsageDetail_20' ) end [2025-01-28 10:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:58:33] Production.INFO: ==28831== Releasing lock... [2025-01-28 10:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:58:33] Production.INFO: 53.25 MB #Memory Used# [2025-01-28 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 07:59:06 [end_date_ymd] => 2025-01-28 10:59:06 [RateCDR] => 1 ) [2025-01-28 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 07:59:06' and `end` < '2025-01-28 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 10:59:27] Production.INFO: count ==3344 [2025-01-28 10:59:28] Production.ERROR: pbx CDR StartTime 2025-01-28 07:59:06 - End Time 2025-01-28 10:59:06 [2025-01-28 10:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348535', 'tblTempUsageDetail_20' ) start [2025-01-28 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348535', 'tblTempUsageDetail_20' ) end [2025-01-28 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348535', 'tblTempVendorCDR_20' ) start [2025-01-28 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348535', 'tblTempVendorCDR_20' ) end [2025-01-28 10:59:28] Production.INFO: ProcessCDR(1,14348535,1,1,2) [2025-01-28 10:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 10:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:59:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 10:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348535', 'tblTempUsageDetail_20' ) start [2025-01-28 10:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348535', 'tblTempUsageDetail_20' ) end [2025-01-28 10:59:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 10:59:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 10:59:34] Production.INFO: ==28905== Releasing lock... [2025-01-28 10:59:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 10:59:34] Production.INFO: 53.75 MB #Memory Used# [2025-01-28 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:00:06 [end_date_ymd] => 2025-01-28 11:00:06 [RateCDR] => 1 ) [2025-01-28 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-28 08:00:06' and `end` < '2025-01-28 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-28 11:00:22] Production.INFO: count ==3358 [2025-01-28 11:00:24] Production.ERROR: pbx CDR StartTime 2025-01-28 08:00:06 - End Time 2025-01-28 11:00:06 [2025-01-28 11:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348539', 'tblTempUsageDetail_20' ) start [2025-01-28 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348539', 'tblTempUsageDetail_20' ) end [2025-01-28 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348539', 'tblTempVendorCDR_20' ) start [2025-01-28 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348539', 'tblTempVendorCDR_20' ) end [2025-01-28 11:00:24] Production.INFO: ProcessCDR(1,14348539,1,1,2) [2025-01-28 11:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348539', 'tblTempUsageDetail_20' ) start [2025-01-28 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348539', 'tblTempUsageDetail_20' ) end [2025-01-28 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:00:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:00:29] Production.INFO: ==28986== Releasing lock... [2025-01-28 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:00:29] Production.INFO: 53.75 MB #Memory Used# [2025-01-28 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:01:05 [end_date_ymd] => 2025-01-28 11:01:05 [RateCDR] => 1 ) [2025-01-28 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:01:05' and `end` < '2025-01-28 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:01:23] Production.INFO: count ==3475 [2025-01-28 11:01:24] Production.ERROR: pbx CDR StartTime 2025-01-28 08:01:05 - End Time 2025-01-28 11:01:05 [2025-01-28 11:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348546', 'tblTempUsageDetail_20' ) start [2025-01-28 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348546', 'tblTempUsageDetail_20' ) end [2025-01-28 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348546', 'tblTempVendorCDR_20' ) start [2025-01-28 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348546', 'tblTempVendorCDR_20' ) end [2025-01-28 11:01:24] Production.INFO: ProcessCDR(1,14348546,1,1,2) [2025-01-28 11:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348546', 'tblTempUsageDetail_20' ) start [2025-01-28 11:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348546', 'tblTempUsageDetail_20' ) end [2025-01-28 11:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:01:30] Production.INFO: ==29148== Releasing lock... [2025-01-28 11:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:01:30] Production.INFO: 54.5 MB #Memory Used# [2025-01-28 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:02:06 [end_date_ymd] => 2025-01-28 11:02:06 [RateCDR] => 1 ) [2025-01-28 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:02:06' and `end` < '2025-01-28 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:02:24] Production.INFO: count ==3487 [2025-01-28 11:02:25] Production.ERROR: pbx CDR StartTime 2025-01-28 08:02:06 - End Time 2025-01-28 11:02:06 [2025-01-28 11:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348551', 'tblTempUsageDetail_20' ) start [2025-01-28 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348551', 'tblTempUsageDetail_20' ) end [2025-01-28 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348551', 'tblTempVendorCDR_20' ) start [2025-01-28 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348551', 'tblTempVendorCDR_20' ) end [2025-01-28 11:02:25] Production.INFO: ProcessCDR(1,14348551,1,1,2) [2025-01-28 11:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348551', 'tblTempUsageDetail_20' ) start [2025-01-28 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348551', 'tblTempUsageDetail_20' ) end [2025-01-28 11:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:02:31] Production.INFO: ==29225== Releasing lock... [2025-01-28 11:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:02:31] Production.INFO: 54.5 MB #Memory Used# [2025-01-28 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:03:05 [end_date_ymd] => 2025-01-28 11:03:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:03:05' and `end` < '2025-01-28 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-28 11:03:27] Production.INFO: count ==3514 [2025-01-28 11:03:28] Production.ERROR: pbx CDR StartTime 2025-01-28 08:03:05 - End Time 2025-01-28 11:03:05 [2025-01-28 11:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348556', 'tblTempUsageDetail_20' ) start [2025-01-28 11:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348556', 'tblTempUsageDetail_20' ) end [2025-01-28 11:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348556', 'tblTempVendorCDR_20' ) start [2025-01-28 11:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348556', 'tblTempVendorCDR_20' ) end [2025-01-28 11:03:28] Production.INFO: ProcessCDR(1,14348556,1,1,2) [2025-01-28 11:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348556', 'tblTempUsageDetail_20' ) start [2025-01-28 11:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348556', 'tblTempUsageDetail_20' ) end [2025-01-28 11:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:03:34] Production.INFO: ==29302== Releasing lock... [2025-01-28 11:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:03:34] Production.INFO: 55 MB #Memory Used# [2025-01-28 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:04:05 [end_date_ymd] => 2025-01-28 11:04:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:04:05' and `end` < '2025-01-28 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-28 11:04:23] Production.INFO: count ==3533 [2025-01-28 11:04:25] Production.ERROR: pbx CDR StartTime 2025-01-28 08:04:05 - End Time 2025-01-28 11:04:05 [2025-01-28 11:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348561', 'tblTempUsageDetail_20' ) start [2025-01-28 11:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348561', 'tblTempUsageDetail_20' ) end [2025-01-28 11:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348561', 'tblTempVendorCDR_20' ) start [2025-01-28 11:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348561', 'tblTempVendorCDR_20' ) end [2025-01-28 11:04:25] Production.INFO: ProcessCDR(1,14348561,1,1,2) [2025-01-28 11:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348561', 'tblTempUsageDetail_20' ) start [2025-01-28 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348561', 'tblTempUsageDetail_20' ) end [2025-01-28 11:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:04:30] Production.INFO: ==29417== Releasing lock... [2025-01-28 11:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:04:30] Production.INFO: 55.5 MB #Memory Used# [2025-01-28 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:05:06 [end_date_ymd] => 2025-01-28 11:05:06 [RateCDR] => 1 ) [2025-01-28 11: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-28 08:05:06' and `end` < '2025-01-28 11: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-28 11:05:25] Production.INFO: count ==3554 [2025-01-28 11:05:27] Production.ERROR: pbx CDR StartTime 2025-01-28 08:05:06 - End Time 2025-01-28 11:05:06 [2025-01-28 11:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348566', 'tblTempUsageDetail_20' ) start [2025-01-28 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348566', 'tblTempUsageDetail_20' ) end [2025-01-28 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348566', 'tblTempVendorCDR_20' ) start [2025-01-28 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348566', 'tblTempVendorCDR_20' ) end [2025-01-28 11:05:27] Production.INFO: ProcessCDR(1,14348566,1,1,2) [2025-01-28 11:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348566', 'tblTempUsageDetail_20' ) start [2025-01-28 11:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348566', 'tblTempUsageDetail_20' ) end [2025-01-28 11:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:05:32] Production.INFO: ==29571== Releasing lock... [2025-01-28 11:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:05:32] Production.INFO: 55.25 MB #Memory Used# [2025-01-28 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:06:05 [end_date_ymd] => 2025-01-28 11:06:05 [RateCDR] => 1 ) [2025-01-28 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:06:05' and `end` < '2025-01-28 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:06:38] Production.INFO: count ==3589 [2025-01-28 11:06:40] Production.ERROR: pbx CDR StartTime 2025-01-28 08:06:05 - End Time 2025-01-28 11:06:05 [2025-01-28 11:06:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348571', 'tblTempUsageDetail_20' ) start [2025-01-28 11:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348571', 'tblTempUsageDetail_20' ) end [2025-01-28 11:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348571', 'tblTempVendorCDR_20' ) start [2025-01-28 11:06:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348571', 'tblTempVendorCDR_20' ) end [2025-01-28 11:06:40] Production.INFO: ProcessCDR(1,14348571,1,1,2) [2025-01-28 11:06:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:06:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:06:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:06:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:06:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348571', 'tblTempUsageDetail_20' ) start [2025-01-28 11:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348571', 'tblTempUsageDetail_20' ) end [2025-01-28 11:06:46] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:06:46] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:06:46] Production.INFO: ==29642== Releasing lock... [2025-01-28 11:06:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:06:46] Production.INFO: 55.5 MB #Memory Used# [2025-01-28 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:07:05 [end_date_ymd] => 2025-01-28 11:07:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:07:05' and `end` < '2025-01-28 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-28 11:07:32] Production.INFO: count ==3610 [2025-01-28 11:07:33] Production.ERROR: pbx CDR StartTime 2025-01-28 08:07:05 - End Time 2025-01-28 11:07:05 [2025-01-28 11:07:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348576', 'tblTempUsageDetail_20' ) start [2025-01-28 11:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348576', 'tblTempUsageDetail_20' ) end [2025-01-28 11:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348576', 'tblTempVendorCDR_20' ) start [2025-01-28 11:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348576', 'tblTempVendorCDR_20' ) end [2025-01-28 11:07:33] Production.INFO: ProcessCDR(1,14348576,1,1,2) [2025-01-28 11:07:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:07:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:07:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:07:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348576', 'tblTempUsageDetail_20' ) start [2025-01-28 11:07:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348576', 'tblTempUsageDetail_20' ) end [2025-01-28 11:07:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:07:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:07:39] Production.INFO: ==29720== Releasing lock... [2025-01-28 11:07:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:07:39] Production.INFO: 55.75 MB #Memory Used# [2025-01-28 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:08:05 [end_date_ymd] => 2025-01-28 11:08:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:08:05' and `end` < '2025-01-28 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-28 11:08:34] Production.INFO: count ==3616 [2025-01-28 11:08:36] Production.ERROR: pbx CDR StartTime 2025-01-28 08:08:05 - End Time 2025-01-28 11:08:05 [2025-01-28 11:08:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348581', 'tblTempUsageDetail_20' ) start [2025-01-28 11:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348581', 'tblTempUsageDetail_20' ) end [2025-01-28 11:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348581', 'tblTempVendorCDR_20' ) start [2025-01-28 11:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348581', 'tblTempVendorCDR_20' ) end [2025-01-28 11:08:36] Production.INFO: ProcessCDR(1,14348581,1,1,2) [2025-01-28 11:08:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:08:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:08:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:08:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:08:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348581', 'tblTempUsageDetail_20' ) start [2025-01-28 11:08:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348581', 'tblTempUsageDetail_20' ) end [2025-01-28 11:08:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:08:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:08:41] Production.INFO: ==29874== Releasing lock... [2025-01-28 11:08:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:08:41] Production.INFO: 56 MB #Memory Used# [2025-01-28 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:09:05 [end_date_ymd] => 2025-01-28 11:09:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:09:05' and `end` < '2025-01-28 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-28 11:09:37] Production.INFO: count ==3623 [2025-01-28 11:09:38] Production.ERROR: pbx CDR StartTime 2025-01-28 08:09:05 - End Time 2025-01-28 11:09:05 [2025-01-28 11:09:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:09:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348586', 'tblTempUsageDetail_20' ) start [2025-01-28 11:09:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348586', 'tblTempUsageDetail_20' ) end [2025-01-28 11:09:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348586', 'tblTempVendorCDR_20' ) start [2025-01-28 11:09:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348586', 'tblTempVendorCDR_20' ) end [2025-01-28 11:09:38] Production.INFO: ProcessCDR(1,14348586,1,1,2) [2025-01-28 11:09:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:09:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:09:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:09:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:09:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348586', 'tblTempUsageDetail_20' ) start [2025-01-28 11:09:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348586', 'tblTempUsageDetail_20' ) end [2025-01-28 11:09:44] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:09:44] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:09:44] Production.INFO: ==29948== Releasing lock... [2025-01-28 11:09:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:09:44] Production.INFO: 55.75 MB #Memory Used# [2025-01-28 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:10:06 [end_date_ymd] => 2025-01-28 11:10:06 [RateCDR] => 1 ) [2025-01-28 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:10:06' and `end` < '2025-01-28 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:10:29] Production.INFO: count ==3635 [2025-01-28 11:10:31] Production.ERROR: pbx CDR StartTime 2025-01-28 08:10:06 - End Time 2025-01-28 11:10:06 [2025-01-28 11:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348592', 'tblTempUsageDetail_20' ) start [2025-01-28 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348592', 'tblTempUsageDetail_20' ) end [2025-01-28 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348592', 'tblTempVendorCDR_20' ) start [2025-01-28 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348592', 'tblTempVendorCDR_20' ) end [2025-01-28 11:10:31] Production.INFO: ProcessCDR(1,14348592,1,1,2) [2025-01-28 11:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:10:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348592', 'tblTempUsageDetail_20' ) start [2025-01-28 11:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348592', 'tblTempUsageDetail_20' ) end [2025-01-28 11:10:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:10:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:10:36] Production.INFO: ==30025== Releasing lock... [2025-01-28 11:10:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:10:36] Production.INFO: 56 MB #Memory Used# [2025-01-28 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:11:05 [end_date_ymd] => 2025-01-28 11:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:11:05' and `end` < '2025-01-28 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-28 11:11:28] Production.INFO: count ==3799 [2025-01-28 11:11:29] Production.ERROR: pbx CDR StartTime 2025-01-28 08:11:05 - End Time 2025-01-28 11:11:05 [2025-01-28 11:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348597', 'tblTempUsageDetail_20' ) start [2025-01-28 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348597', 'tblTempUsageDetail_20' ) end [2025-01-28 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348597', 'tblTempVendorCDR_20' ) start [2025-01-28 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348597', 'tblTempVendorCDR_20' ) end [2025-01-28 11:11:29] Production.INFO: ProcessCDR(1,14348597,1,1,2) [2025-01-28 11:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:11:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:11:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348597', 'tblTempUsageDetail_20' ) start [2025-01-28 11:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348597', 'tblTempUsageDetail_20' ) end [2025-01-28 11:11:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:11:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:11:35] Production.INFO: ==30100== Releasing lock... [2025-01-28 11:11:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:11:35] Production.INFO: 56.5 MB #Memory Used# [2025-01-28 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:12:06 [end_date_ymd] => 2025-01-28 11:12:06 [RateCDR] => 1 ) [2025-01-28 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:12:06' and `end` < '2025-01-28 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:12:27] Production.INFO: count ==3800 [2025-01-28 11:12:28] Production.ERROR: pbx CDR StartTime 2025-01-28 08:12:06 - End Time 2025-01-28 11:12:06 [2025-01-28 11:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348602', 'tblTempUsageDetail_20' ) start [2025-01-28 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348602', 'tblTempUsageDetail_20' ) end [2025-01-28 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348602', 'tblTempVendorCDR_20' ) start [2025-01-28 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348602', 'tblTempVendorCDR_20' ) end [2025-01-28 11:12:28] Production.INFO: ProcessCDR(1,14348602,1,1,2) [2025-01-28 11:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348602', 'tblTempUsageDetail_20' ) start [2025-01-28 11:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348602', 'tblTempUsageDetail_20' ) end [2025-01-28 11:12:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:12:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:12:33] Production.INFO: ==30255== Releasing lock... [2025-01-28 11:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:12:33] Production.INFO: 57 MB #Memory Used# [2025-01-28 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:13:05 [end_date_ymd] => 2025-01-28 11:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:13:05' and `end` < '2025-01-28 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-28 11:13:24] Production.INFO: count ==3820 [2025-01-28 11:13:25] Production.ERROR: pbx CDR StartTime 2025-01-28 08:13:05 - End Time 2025-01-28 11:13:05 [2025-01-28 11:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348607', 'tblTempUsageDetail_20' ) start [2025-01-28 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348607', 'tblTempUsageDetail_20' ) end [2025-01-28 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348607', 'tblTempVendorCDR_20' ) start [2025-01-28 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348607', 'tblTempVendorCDR_20' ) end [2025-01-28 11:13:25] Production.INFO: ProcessCDR(1,14348607,1,1,2) [2025-01-28 11:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348607', 'tblTempUsageDetail_20' ) start [2025-01-28 11:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348607', 'tblTempUsageDetail_20' ) end [2025-01-28 11:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:13:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:13:31] Production.INFO: ==30331== Releasing lock... [2025-01-28 11:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:13:31] Production.INFO: 56.5 MB #Memory Used# [2025-01-28 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:14:06 [end_date_ymd] => 2025-01-28 11:14:06 [RateCDR] => 1 ) [2025-01-28 11:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:14:06' and `end` < '2025-01-28 11:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:14:29] Production.INFO: count ==3841 [2025-01-28 11:14:30] Production.ERROR: pbx CDR StartTime 2025-01-28 08:14:06 - End Time 2025-01-28 11:14:06 [2025-01-28 11:14:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348612', 'tblTempUsageDetail_20' ) start [2025-01-28 11:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348612', 'tblTempUsageDetail_20' ) end [2025-01-28 11:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348612', 'tblTempVendorCDR_20' ) start [2025-01-28 11:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348612', 'tblTempVendorCDR_20' ) end [2025-01-28 11:14:31] Production.INFO: ProcessCDR(1,14348612,1,1,2) [2025-01-28 11:14:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:14:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:14:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:14:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:14:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348612', 'tblTempUsageDetail_20' ) start [2025-01-28 11:14:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348612', 'tblTempUsageDetail_20' ) end [2025-01-28 11:14:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:14:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:14:37] Production.INFO: ==30406== Releasing lock... [2025-01-28 11:14:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:14:37] Production.INFO: 56.75 MB #Memory Used# [2025-01-28 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:15:05 [end_date_ymd] => 2025-01-28 11:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:15:05' and `end` < '2025-01-28 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-28 11:15:25] Production.INFO: count ==3857 [2025-01-28 11:15:27] Production.ERROR: pbx CDR StartTime 2025-01-28 08:15:05 - End Time 2025-01-28 11:15:05 [2025-01-28 11:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348617', 'tblTempUsageDetail_20' ) start [2025-01-28 11:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348617', 'tblTempUsageDetail_20' ) end [2025-01-28 11:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348617', 'tblTempVendorCDR_20' ) start [2025-01-28 11:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348617', 'tblTempVendorCDR_20' ) end [2025-01-28 11:15:27] Production.INFO: ProcessCDR(1,14348617,1,1,2) [2025-01-28 11:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348617', 'tblTempUsageDetail_20' ) start [2025-01-28 11:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348617', 'tblTempUsageDetail_20' ) end [2025-01-28 11:15:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:15:33] Production.INFO: ==30559== Releasing lock... [2025-01-28 11:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:15:33] Production.INFO: 56.75 MB #Memory Used# [2025-01-28 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:16:05 [end_date_ymd] => 2025-01-28 11:16:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:16:05' and `end` < '2025-01-28 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-28 11:16:32] Production.INFO: count ==3887 [2025-01-28 11:16:33] Production.ERROR: pbx CDR StartTime 2025-01-28 08:16:05 - End Time 2025-01-28 11:16:05 [2025-01-28 11:16:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348622', 'tblTempUsageDetail_20' ) start [2025-01-28 11:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348622', 'tblTempUsageDetail_20' ) end [2025-01-28 11:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348622', 'tblTempVendorCDR_20' ) start [2025-01-28 11:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348622', 'tblTempVendorCDR_20' ) end [2025-01-28 11:16:33] Production.INFO: ProcessCDR(1,14348622,1,1,2) [2025-01-28 11:16:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:16:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:16:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:16:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:16:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348622', 'tblTempUsageDetail_20' ) start [2025-01-28 11:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348622', 'tblTempUsageDetail_20' ) end [2025-01-28 11:16:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:16:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:16:39] Production.INFO: ==30634== Releasing lock... [2025-01-28 11:16:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:16:39] Production.INFO: 57 MB #Memory Used# [2025-01-28 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:17:06 [end_date_ymd] => 2025-01-28 11:17:06 [RateCDR] => 1 ) [2025-01-28 11: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-28 08:17:06' and `end` < '2025-01-28 11: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-28 11:17:37] Production.INFO: count ==3910 [2025-01-28 11:17:38] Production.ERROR: pbx CDR StartTime 2025-01-28 08:17:06 - End Time 2025-01-28 11:17:06 [2025-01-28 11:17:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:17:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348627', 'tblTempUsageDetail_20' ) start [2025-01-28 11:17:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348627', 'tblTempUsageDetail_20' ) end [2025-01-28 11:17:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348627', 'tblTempVendorCDR_20' ) start [2025-01-28 11:17:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348627', 'tblTempVendorCDR_20' ) end [2025-01-28 11:17:38] Production.INFO: ProcessCDR(1,14348627,1,1,2) [2025-01-28 11:17:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:17:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:17:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:17:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:17:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348627', 'tblTempUsageDetail_20' ) start [2025-01-28 11:17:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348627', 'tblTempUsageDetail_20' ) end [2025-01-28 11:17:44] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:17:44] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:17:44] Production.INFO: ==30709== Releasing lock... [2025-01-28 11:17:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:17:44] Production.INFO: 57.5 MB #Memory Used# [2025-01-28 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:18:05 [end_date_ymd] => 2025-01-28 11:18:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:18:05' and `end` < '2025-01-28 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-28 11:18:36] Production.INFO: count ==3912 [2025-01-28 11:18:37] Production.ERROR: pbx CDR StartTime 2025-01-28 08:18:05 - End Time 2025-01-28 11:18:05 [2025-01-28 11:18:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348632', 'tblTempUsageDetail_20' ) start [2025-01-28 11:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348632', 'tblTempUsageDetail_20' ) end [2025-01-28 11:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348632', 'tblTempVendorCDR_20' ) start [2025-01-28 11:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348632', 'tblTempVendorCDR_20' ) end [2025-01-28 11:18:37] Production.INFO: ProcessCDR(1,14348632,1,1,2) [2025-01-28 11:18:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:18:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:18:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:18:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:18:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348632', 'tblTempUsageDetail_20' ) start [2025-01-28 11:18:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348632', 'tblTempUsageDetail_20' ) end [2025-01-28 11:18:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:18:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:18:43] Production.INFO: ==30781== Releasing lock... [2025-01-28 11:18:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:18:43] Production.INFO: 57.25 MB #Memory Used# [2025-01-28 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:19:05 [end_date_ymd] => 2025-01-28 11:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:19:05' and `end` < '2025-01-28 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-28 11:19:36] Production.INFO: count ==3939 [2025-01-28 11:19:38] Production.ERROR: pbx CDR StartTime 2025-01-28 08:19:05 - End Time 2025-01-28 11:19:05 [2025-01-28 11:19:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348637', 'tblTempUsageDetail_20' ) start [2025-01-28 11:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348637', 'tblTempUsageDetail_20' ) end [2025-01-28 11:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348637', 'tblTempVendorCDR_20' ) start [2025-01-28 11:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348637', 'tblTempVendorCDR_20' ) end [2025-01-28 11:19:38] Production.INFO: ProcessCDR(1,14348637,1,1,2) [2025-01-28 11:19:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:19:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:19:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:19:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:19:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348637', 'tblTempUsageDetail_20' ) start [2025-01-28 11:19:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348637', 'tblTempUsageDetail_20' ) end [2025-01-28 11:19:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:19:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:19:43] Production.INFO: ==30892== Releasing lock... [2025-01-28 11:19:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:19:43] Production.INFO: 57.5 MB #Memory Used# [2025-01-28 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:20:06 [end_date_ymd] => 2025-01-28 11:20:06 [RateCDR] => 1 ) [2025-01-28 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-28 08:20:06' and `end` < '2025-01-28 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-28 11:20:29] Production.INFO: count ==3941 [2025-01-28 11:20:31] Production.ERROR: pbx CDR StartTime 2025-01-28 08:20:06 - End Time 2025-01-28 11:20:06 [2025-01-28 11:20:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348643', 'tblTempUsageDetail_20' ) start [2025-01-28 11:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348643', 'tblTempUsageDetail_20' ) end [2025-01-28 11:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348643', 'tblTempVendorCDR_20' ) start [2025-01-28 11:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348643', 'tblTempVendorCDR_20' ) end [2025-01-28 11:20:31] Production.INFO: ProcessCDR(1,14348643,1,1,2) [2025-01-28 11:20:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348643', 'tblTempUsageDetail_20' ) start [2025-01-28 11:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348643', 'tblTempUsageDetail_20' ) end [2025-01-28 11:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:20:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:20:36] Production.INFO: ==30965== Releasing lock... [2025-01-28 11:20:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:20:36] Production.INFO: 57.5 MB #Memory Used# [2025-01-28 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:21:05 [end_date_ymd] => 2025-01-28 11:21:05 [RateCDR] => 1 ) [2025-01-28 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:21:05' and `end` < '2025-01-28 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:21:26] Production.INFO: count ==4029 [2025-01-28 11:21:28] Production.ERROR: pbx CDR StartTime 2025-01-28 08:21:05 - End Time 2025-01-28 11:21:05 [2025-01-28 11:21:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348648', 'tblTempUsageDetail_20' ) start [2025-01-28 11:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348648', 'tblTempUsageDetail_20' ) end [2025-01-28 11:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348648', 'tblTempVendorCDR_20' ) start [2025-01-28 11:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348648', 'tblTempVendorCDR_20' ) end [2025-01-28 11:21:28] Production.INFO: ProcessCDR(1,14348648,1,1,2) [2025-01-28 11:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348648', 'tblTempUsageDetail_20' ) start [2025-01-28 11:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348648', 'tblTempUsageDetail_20' ) end [2025-01-28 11:21:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:21:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:21:33] Production.INFO: ==31040== Releasing lock... [2025-01-28 11:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:21:33] Production.INFO: 58.25 MB #Memory Used# [2025-01-28 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:22:05 [end_date_ymd] => 2025-01-28 11:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:22:05' and `end` < '2025-01-28 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-28 11:22:31] Production.INFO: count ==4036 [2025-01-28 11:22:33] Production.ERROR: pbx CDR StartTime 2025-01-28 08:22:05 - End Time 2025-01-28 11:22:05 [2025-01-28 11:22:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348653', 'tblTempUsageDetail_20' ) start [2025-01-28 11:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348653', 'tblTempUsageDetail_20' ) end [2025-01-28 11:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348653', 'tblTempVendorCDR_20' ) start [2025-01-28 11:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348653', 'tblTempVendorCDR_20' ) end [2025-01-28 11:22:33] Production.INFO: ProcessCDR(1,14348653,1,1,2) [2025-01-28 11:22:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:22:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:22:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:22:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348653', 'tblTempUsageDetail_20' ) start [2025-01-28 11:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348653', 'tblTempUsageDetail_20' ) end [2025-01-28 11:22:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:22:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:22:38] Production.INFO: ==31111== Releasing lock... [2025-01-28 11:22:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:22:38] Production.INFO: 58.25 MB #Memory Used# [2025-01-28 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:23:05 [end_date_ymd] => 2025-01-28 11:23:05 [RateCDR] => 1 ) [2025-01-28 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:23:05' and `end` < '2025-01-28 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:23:25] Production.INFO: count ==4039 [2025-01-28 11:23:26] Production.ERROR: pbx CDR StartTime 2025-01-28 08:23:05 - End Time 2025-01-28 11:23:05 [2025-01-28 11:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348658', 'tblTempUsageDetail_20' ) start [2025-01-28 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348658', 'tblTempUsageDetail_20' ) end [2025-01-28 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348658', 'tblTempVendorCDR_20' ) start [2025-01-28 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348658', 'tblTempVendorCDR_20' ) end [2025-01-28 11:23:27] Production.INFO: ProcessCDR(1,14348658,1,1,2) [2025-01-28 11:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348658', 'tblTempUsageDetail_20' ) start [2025-01-28 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348658', 'tblTempUsageDetail_20' ) end [2025-01-28 11:23:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:23:32] Production.INFO: ==31183== Releasing lock... [2025-01-28 11:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:23:32] Production.INFO: 58.25 MB #Memory Used# [2025-01-28 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:24:06 [end_date_ymd] => 2025-01-28 11:24:06 [RateCDR] => 1 ) [2025-01-28 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:24:06' and `end` < '2025-01-28 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:24:26] Production.INFO: count ==4046 [2025-01-28 11:24:28] Production.ERROR: pbx CDR StartTime 2025-01-28 08:24:06 - End Time 2025-01-28 11:24:06 [2025-01-28 11:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348663', 'tblTempUsageDetail_20' ) start [2025-01-28 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348663', 'tblTempUsageDetail_20' ) end [2025-01-28 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348663', 'tblTempVendorCDR_20' ) start [2025-01-28 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348663', 'tblTempVendorCDR_20' ) end [2025-01-28 11:24:28] Production.INFO: ProcessCDR(1,14348663,1,1,2) [2025-01-28 11:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348663', 'tblTempUsageDetail_20' ) start [2025-01-28 11:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348663', 'tblTempUsageDetail_20' ) end [2025-01-28 11:24:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:24:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:24:33] Production.INFO: ==31263== Releasing lock... [2025-01-28 11:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:24:33] Production.INFO: 58.25 MB #Memory Used# [2025-01-28 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:25:06 [end_date_ymd] => 2025-01-28 11:25:06 [RateCDR] => 1 ) [2025-01-28 11: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-28 08:25:06' and `end` < '2025-01-28 11: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-28 11:25:24] Production.INFO: count ==4056 [2025-01-28 11:25:26] Production.ERROR: pbx CDR StartTime 2025-01-28 08:25:06 - End Time 2025-01-28 11:25:06 [2025-01-28 11:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348668', 'tblTempUsageDetail_20' ) start [2025-01-28 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348668', 'tblTempUsageDetail_20' ) end [2025-01-28 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348668', 'tblTempVendorCDR_20' ) start [2025-01-28 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348668', 'tblTempVendorCDR_20' ) end [2025-01-28 11:25:26] Production.INFO: ProcessCDR(1,14348668,1,1,2) [2025-01-28 11:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348668', 'tblTempUsageDetail_20' ) start [2025-01-28 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348668', 'tblTempUsageDetail_20' ) end [2025-01-28 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:25:31] Production.INFO: ==31335== Releasing lock... [2025-01-28 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:25:31] Production.INFO: 58.25 MB #Memory Used# [2025-01-28 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:26:06 [end_date_ymd] => 2025-01-28 11:26:06 [RateCDR] => 1 ) [2025-01-28 11: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-28 08:26:06' and `end` < '2025-01-28 11: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-28 11:26:30] Production.INFO: count ==4077 [2025-01-28 11:26:32] Production.ERROR: pbx CDR StartTime 2025-01-28 08:26:06 - End Time 2025-01-28 11:26:06 [2025-01-28 11:26:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348673', 'tblTempUsageDetail_20' ) start [2025-01-28 11:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348673', 'tblTempUsageDetail_20' ) end [2025-01-28 11:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348673', 'tblTempVendorCDR_20' ) start [2025-01-28 11:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348673', 'tblTempVendorCDR_20' ) end [2025-01-28 11:26:32] Production.INFO: ProcessCDR(1,14348673,1,1,2) [2025-01-28 11:26:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:26:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:26:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:26:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:26:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348673', 'tblTempUsageDetail_20' ) start [2025-01-28 11:26:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348673', 'tblTempUsageDetail_20' ) end [2025-01-28 11:26:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:26:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:26:38] Production.INFO: ==31415== Releasing lock... [2025-01-28 11:26:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:26:38] Production.INFO: 58.5 MB #Memory Used# [2025-01-28 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:27:05 [end_date_ymd] => 2025-01-28 11:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:27:05' and `end` < '2025-01-28 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-28 11:27:30] Production.INFO: count ==4105 [2025-01-28 11:27:32] Production.ERROR: pbx CDR StartTime 2025-01-28 08:27:05 - End Time 2025-01-28 11:27:05 [2025-01-28 11:27:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348678', 'tblTempUsageDetail_20' ) start [2025-01-28 11:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348678', 'tblTempUsageDetail_20' ) end [2025-01-28 11:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348678', 'tblTempVendorCDR_20' ) start [2025-01-28 11:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348678', 'tblTempVendorCDR_20' ) end [2025-01-28 11:27:32] Production.INFO: ProcessCDR(1,14348678,1,1,2) [2025-01-28 11:27:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:27:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:27:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:27:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:27:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348678', 'tblTempUsageDetail_20' ) start [2025-01-28 11:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348678', 'tblTempUsageDetail_20' ) end [2025-01-28 11:27:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:27:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:27:38] Production.INFO: ==31489== Releasing lock... [2025-01-28 11:27:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:27:38] Production.INFO: 58.75 MB #Memory Used# [2025-01-28 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:28:06 [end_date_ymd] => 2025-01-28 11:28:06 [RateCDR] => 1 ) [2025-01-28 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-28 08:28:06' and `end` < '2025-01-28 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-28 11:28:28] Production.INFO: count ==4133 [2025-01-28 11:28:30] Production.ERROR: pbx CDR StartTime 2025-01-28 08:28:06 - End Time 2025-01-28 11:28:06 [2025-01-28 11:28:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348683', 'tblTempUsageDetail_20' ) start [2025-01-28 11:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348683', 'tblTempUsageDetail_20' ) end [2025-01-28 11:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348683', 'tblTempVendorCDR_20' ) start [2025-01-28 11:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348683', 'tblTempVendorCDR_20' ) end [2025-01-28 11:28:30] Production.INFO: ProcessCDR(1,14348683,1,1,2) [2025-01-28 11:28:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:28:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:28:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:28:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348683', 'tblTempUsageDetail_20' ) start [2025-01-28 11:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348683', 'tblTempUsageDetail_20' ) end [2025-01-28 11:28:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:28:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:28:36] Production.INFO: ==31563== Releasing lock... [2025-01-28 11:28:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:28:36] Production.INFO: 59 MB #Memory Used# [2025-01-28 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:29:05 [end_date_ymd] => 2025-01-28 11:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:29:05' and `end` < '2025-01-28 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-28 11:29:32] Production.INFO: count ==4139 [2025-01-28 11:29:33] Production.ERROR: pbx CDR StartTime 2025-01-28 08:29:05 - End Time 2025-01-28 11:29:05 [2025-01-28 11:29:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348688', 'tblTempUsageDetail_20' ) start [2025-01-28 11:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348688', 'tblTempUsageDetail_20' ) end [2025-01-28 11:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348688', 'tblTempVendorCDR_20' ) start [2025-01-28 11:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348688', 'tblTempVendorCDR_20' ) end [2025-01-28 11:29:34] Production.INFO: ProcessCDR(1,14348688,1,1,2) [2025-01-28 11:29:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:29:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:29:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:29:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:29:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348688', 'tblTempUsageDetail_20' ) start [2025-01-28 11:29:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348688', 'tblTempUsageDetail_20' ) end [2025-01-28 11:29:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:29:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:29:39] Production.INFO: ==31636== Releasing lock... [2025-01-28 11:29:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:29:39] Production.INFO: 59 MB #Memory Used# [2025-01-28 11:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:30:07 [end_date_ymd] => 2025-01-28 11:30:07 [RateCDR] => 1 ) [2025-01-28 11:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:30:07' and `end` < '2025-01-28 11:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:30:28] Production.INFO: count ==4146 [2025-01-28 11:30:30] Production.ERROR: pbx CDR StartTime 2025-01-28 08:30:07 - End Time 2025-01-28 11:30:07 [2025-01-28 11:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348693', 'tblTempUsageDetail_20' ) start [2025-01-28 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348693', 'tblTempUsageDetail_20' ) end [2025-01-28 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348693', 'tblTempVendorCDR_20' ) start [2025-01-28 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348693', 'tblTempVendorCDR_20' ) end [2025-01-28 11:30:30] Production.INFO: ProcessCDR(1,14348693,1,1,2) [2025-01-28 11:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348693', 'tblTempUsageDetail_20' ) start [2025-01-28 11:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348693', 'tblTempUsageDetail_20' ) end [2025-01-28 11:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:30:36] Production.INFO: ==31713== Releasing lock... [2025-01-28 11:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:30:36] Production.INFO: 59 MB #Memory Used# [2025-01-28 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:31:06 [end_date_ymd] => 2025-01-28 11:31:06 [RateCDR] => 1 ) [2025-01-28 11:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:31:06' and `end` < '2025-01-28 11:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:31:27] Production.INFO: count ==4243 [2025-01-28 11:31:29] Production.ERROR: pbx CDR StartTime 2025-01-28 08:31:06 - End Time 2025-01-28 11:31:06 [2025-01-28 11:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348699', 'tblTempUsageDetail_20' ) start [2025-01-28 11:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348699', 'tblTempUsageDetail_20' ) end [2025-01-28 11:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348699', 'tblTempVendorCDR_20' ) start [2025-01-28 11:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348699', 'tblTempVendorCDR_20' ) end [2025-01-28 11:31:29] Production.INFO: ProcessCDR(1,14348699,1,1,2) [2025-01-28 11:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348699', 'tblTempUsageDetail_20' ) start [2025-01-28 11:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348699', 'tblTempUsageDetail_20' ) end [2025-01-28 11:31:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:31:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:31:35] Production.INFO: ==31787== Releasing lock... [2025-01-28 11:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:31:35] Production.INFO: 59.75 MB #Memory Used# [2025-01-28 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:32:06 [end_date_ymd] => 2025-01-28 11:32:06 [RateCDR] => 1 ) [2025-01-28 11: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-28 08:32:06' and `end` < '2025-01-28 11: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-28 11:32:26] Production.INFO: count ==4246 [2025-01-28 11:32:28] Production.ERROR: pbx CDR StartTime 2025-01-28 08:32:06 - End Time 2025-01-28 11:32:06 [2025-01-28 11:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348704', 'tblTempUsageDetail_20' ) start [2025-01-28 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348704', 'tblTempUsageDetail_20' ) end [2025-01-28 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348704', 'tblTempVendorCDR_20' ) start [2025-01-28 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348704', 'tblTempVendorCDR_20' ) end [2025-01-28 11:32:28] Production.INFO: ProcessCDR(1,14348704,1,1,2) [2025-01-28 11:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348704', 'tblTempUsageDetail_20' ) start [2025-01-28 11:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348704', 'tblTempUsageDetail_20' ) end [2025-01-28 11:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:32:33] Production.INFO: ==31861== Releasing lock... [2025-01-28 11:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:32:33] Production.INFO: 59.75 MB #Memory Used# [2025-01-28 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:33:05 [end_date_ymd] => 2025-01-28 11:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:33:05' and `end` < '2025-01-28 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-28 11:33:25] Production.INFO: count ==4237 [2025-01-28 11:33:27] Production.ERROR: pbx CDR StartTime 2025-01-28 08:33:05 - End Time 2025-01-28 11:33:05 [2025-01-28 11:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348709', 'tblTempUsageDetail_20' ) start [2025-01-28 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348709', 'tblTempUsageDetail_20' ) end [2025-01-28 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348709', 'tblTempVendorCDR_20' ) start [2025-01-28 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348709', 'tblTempVendorCDR_20' ) end [2025-01-28 11:33:27] Production.INFO: ProcessCDR(1,14348709,1,1,2) [2025-01-28 11:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348709', 'tblTempUsageDetail_20' ) start [2025-01-28 11:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348709', 'tblTempUsageDetail_20' ) end [2025-01-28 11:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:33:32] Production.INFO: ==31935== Releasing lock... [2025-01-28 11:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:33:32] Production.INFO: 60 MB #Memory Used# [2025-01-28 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:34:06 [end_date_ymd] => 2025-01-28 11:34:06 [RateCDR] => 1 ) [2025-01-28 11: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-28 08:34:06' and `end` < '2025-01-28 11: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-28 11:34:28] Production.INFO: count ==4256 [2025-01-28 11:34:30] Production.ERROR: pbx CDR StartTime 2025-01-28 08:34:06 - End Time 2025-01-28 11:34:06 [2025-01-28 11:34:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348714', 'tblTempUsageDetail_20' ) start [2025-01-28 11:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348714', 'tblTempUsageDetail_20' ) end [2025-01-28 11:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348714', 'tblTempVendorCDR_20' ) start [2025-01-28 11:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348714', 'tblTempVendorCDR_20' ) end [2025-01-28 11:34:30] Production.INFO: ProcessCDR(1,14348714,1,1,2) [2025-01-28 11:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:34:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348714', 'tblTempUsageDetail_20' ) start [2025-01-28 11:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348714', 'tblTempUsageDetail_20' ) end [2025-01-28 11:34:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:34:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:34:36] Production.INFO: ==32007== Releasing lock... [2025-01-28 11:34:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:34:36] Production.INFO: 60 MB #Memory Used# [2025-01-28 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:35:05 [end_date_ymd] => 2025-01-28 11:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:35:05' and `end` < '2025-01-28 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-28 11:35:27] Production.INFO: count ==4275 [2025-01-28 11:35:29] Production.ERROR: pbx CDR StartTime 2025-01-28 08:35:05 - End Time 2025-01-28 11:35:05 [2025-01-28 11:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348719', 'tblTempUsageDetail_20' ) start [2025-01-28 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348719', 'tblTempUsageDetail_20' ) end [2025-01-28 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348719', 'tblTempVendorCDR_20' ) start [2025-01-28 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348719', 'tblTempVendorCDR_20' ) end [2025-01-28 11:35:29] Production.INFO: ProcessCDR(1,14348719,1,1,2) [2025-01-28 11:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348719', 'tblTempUsageDetail_20' ) start [2025-01-28 11:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348719', 'tblTempUsageDetail_20' ) end [2025-01-28 11:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:35:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:35:34] Production.INFO: ==32120== Releasing lock... [2025-01-28 11:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:35:34] Production.INFO: 60 MB #Memory Used# [2025-01-28 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:36:06 [end_date_ymd] => 2025-01-28 11:36:06 [RateCDR] => 1 ) [2025-01-28 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:36:06' and `end` < '2025-01-28 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:36:31] Production.INFO: count ==4318 [2025-01-28 11:36:33] Production.ERROR: pbx CDR StartTime 2025-01-28 08:36:06 - End Time 2025-01-28 11:36:06 [2025-01-28 11:36:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348724', 'tblTempUsageDetail_20' ) start [2025-01-28 11:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348724', 'tblTempUsageDetail_20' ) end [2025-01-28 11:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348724', 'tblTempVendorCDR_20' ) start [2025-01-28 11:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348724', 'tblTempVendorCDR_20' ) end [2025-01-28 11:36:33] Production.INFO: ProcessCDR(1,14348724,1,1,2) [2025-01-28 11:36:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:36:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:36:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:36:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348724', 'tblTempUsageDetail_20' ) start [2025-01-28 11:36:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348724', 'tblTempUsageDetail_20' ) end [2025-01-28 11:36:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:36:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:36:39] Production.INFO: ==32191== Releasing lock... [2025-01-28 11:36:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:36:39] Production.INFO: 60.25 MB #Memory Used# [2025-01-28 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:37:06 [end_date_ymd] => 2025-01-28 11:37:06 [RateCDR] => 1 ) [2025-01-28 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:37:06' and `end` < '2025-01-28 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:37:26] Production.INFO: count ==4340 [2025-01-28 11:37:28] Production.ERROR: pbx CDR StartTime 2025-01-28 08:37:06 - End Time 2025-01-28 11:37:06 [2025-01-28 11:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348729', 'tblTempUsageDetail_20' ) start [2025-01-28 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348729', 'tblTempUsageDetail_20' ) end [2025-01-28 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348729', 'tblTempVendorCDR_20' ) start [2025-01-28 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348729', 'tblTempVendorCDR_20' ) end [2025-01-28 11:37:28] Production.INFO: ProcessCDR(1,14348729,1,1,2) [2025-01-28 11:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348729', 'tblTempUsageDetail_20' ) start [2025-01-28 11:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348729', 'tblTempUsageDetail_20' ) end [2025-01-28 11:37:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:37:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:37:34] Production.INFO: ==32262== Releasing lock... [2025-01-28 11:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:37:34] Production.INFO: 60.5 MB #Memory Used# [2025-01-28 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:38:06 [end_date_ymd] => 2025-01-28 11:38:06 [RateCDR] => 1 ) [2025-01-28 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-28 08:38:06' and `end` < '2025-01-28 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-28 11:38:33] Production.INFO: count ==4367 [2025-01-28 11:38:35] Production.ERROR: pbx CDR StartTime 2025-01-28 08:38:06 - End Time 2025-01-28 11:38:06 [2025-01-28 11:38:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348734', 'tblTempUsageDetail_20' ) start [2025-01-28 11:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348734', 'tblTempUsageDetail_20' ) end [2025-01-28 11:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348734', 'tblTempVendorCDR_20' ) start [2025-01-28 11:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348734', 'tblTempVendorCDR_20' ) end [2025-01-28 11:38:35] Production.INFO: ProcessCDR(1,14348734,1,1,2) [2025-01-28 11:38:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:38:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:38:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:38:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:38:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348734', 'tblTempUsageDetail_20' ) start [2025-01-28 11:38:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348734', 'tblTempUsageDetail_20' ) end [2025-01-28 11:38:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:38:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:38:41] Production.INFO: ==32343== Releasing lock... [2025-01-28 11:38:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:38:41] Production.INFO: 60.75 MB #Memory Used# [2025-01-28 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:39:06 [end_date_ymd] => 2025-01-28 11:39:06 [RateCDR] => 1 ) [2025-01-28 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:39:06' and `end` < '2025-01-28 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:39:25] Production.INFO: count ==4380 [2025-01-28 11:39:26] Production.ERROR: pbx CDR StartTime 2025-01-28 08:39:06 - End Time 2025-01-28 11:39:06 [2025-01-28 11:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348739', 'tblTempUsageDetail_20' ) start [2025-01-28 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348739', 'tblTempUsageDetail_20' ) end [2025-01-28 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348739', 'tblTempVendorCDR_20' ) start [2025-01-28 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348739', 'tblTempVendorCDR_20' ) end [2025-01-28 11:39:26] Production.INFO: ProcessCDR(1,14348739,1,1,2) [2025-01-28 11:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348739', 'tblTempUsageDetail_20' ) start [2025-01-28 11:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348739', 'tblTempUsageDetail_20' ) end [2025-01-28 11:39:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:39:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:39:32] Production.INFO: ==32412== Releasing lock... [2025-01-28 11:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:39:32] Production.INFO: 60.75 MB #Memory Used# [2025-01-28 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:40:06 [end_date_ymd] => 2025-01-28 11:40:06 [RateCDR] => 1 ) [2025-01-28 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-28 08:40:06' and `end` < '2025-01-28 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-28 11:40:22] Production.INFO: count ==4381 [2025-01-28 11:40:24] Production.ERROR: pbx CDR StartTime 2025-01-28 08:40:06 - End Time 2025-01-28 11:40:06 [2025-01-28 11:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348744', 'tblTempUsageDetail_20' ) start [2025-01-28 11:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348744', 'tblTempUsageDetail_20' ) end [2025-01-28 11:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348744', 'tblTempVendorCDR_20' ) start [2025-01-28 11:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348744', 'tblTempVendorCDR_20' ) end [2025-01-28 11:40:24] Production.INFO: ProcessCDR(1,14348744,1,1,2) [2025-01-28 11:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348744', 'tblTempUsageDetail_20' ) start [2025-01-28 11:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348744', 'tblTempUsageDetail_20' ) end [2025-01-28 11:40:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:40:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:40:29] Production.INFO: ==32486== Releasing lock... [2025-01-28 11:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:40:29] Production.INFO: 60.75 MB #Memory Used# [2025-01-28 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:41:05 [end_date_ymd] => 2025-01-28 11:41:05 [RateCDR] => 1 ) [2025-01-28 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:41:05' and `end` < '2025-01-28 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:41:25] Production.INFO: count ==4495 [2025-01-28 11:41:27] Production.ERROR: pbx CDR StartTime 2025-01-28 08:41:05 - End Time 2025-01-28 11:41:05 [2025-01-28 11:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348750', 'tblTempUsageDetail_20' ) start [2025-01-28 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348750', 'tblTempUsageDetail_20' ) end [2025-01-28 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348750', 'tblTempVendorCDR_20' ) start [2025-01-28 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348750', 'tblTempVendorCDR_20' ) end [2025-01-28 11:41:27] Production.INFO: ProcessCDR(1,14348750,1,1,2) [2025-01-28 11:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348750', 'tblTempUsageDetail_20' ) start [2025-01-28 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348750', 'tblTempUsageDetail_20' ) end [2025-01-28 11:41:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:41:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:41:32] Production.INFO: ==32566== Releasing lock... [2025-01-28 11:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:41:32] Production.INFO: 61.75 MB #Memory Used# [2025-01-28 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:42:06 [end_date_ymd] => 2025-01-28 11:42:06 [RateCDR] => 1 ) [2025-01-28 11: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-28 08:42:06' and `end` < '2025-01-28 11: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-28 11:42:23] Production.INFO: count ==4500 [2025-01-28 11:42:25] Production.ERROR: pbx CDR StartTime 2025-01-28 08:42:06 - End Time 2025-01-28 11:42:06 [2025-01-28 11:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348755', 'tblTempUsageDetail_20' ) start [2025-01-28 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348755', 'tblTempUsageDetail_20' ) end [2025-01-28 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348755', 'tblTempVendorCDR_20' ) start [2025-01-28 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348755', 'tblTempVendorCDR_20' ) end [2025-01-28 11:42:25] Production.INFO: ProcessCDR(1,14348755,1,1,2) [2025-01-28 11:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348755', 'tblTempUsageDetail_20' ) start [2025-01-28 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348755', 'tblTempUsageDetail_20' ) end [2025-01-28 11:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:42:30] Production.INFO: ==32639== Releasing lock... [2025-01-28 11:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:42:30] Production.INFO: 61.75 MB #Memory Used# [2025-01-28 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:43:05 [end_date_ymd] => 2025-01-28 11:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:43:05' and `end` < '2025-01-28 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-28 11:43:31] Production.INFO: count ==4516 [2025-01-28 11:43:33] Production.ERROR: pbx CDR StartTime 2025-01-28 08:43:05 - End Time 2025-01-28 11:43:05 [2025-01-28 11:43:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348760', 'tblTempUsageDetail_20' ) start [2025-01-28 11:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348760', 'tblTempUsageDetail_20' ) end [2025-01-28 11:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348760', 'tblTempVendorCDR_20' ) start [2025-01-28 11:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348760', 'tblTempVendorCDR_20' ) end [2025-01-28 11:43:33] Production.INFO: ProcessCDR(1,14348760,1,1,2) [2025-01-28 11:43:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:43:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:43:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:43:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348760', 'tblTempUsageDetail_20' ) start [2025-01-28 11:43:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348760', 'tblTempUsageDetail_20' ) end [2025-01-28 11:43:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:43:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:43:39] Production.INFO: ==32716== Releasing lock... [2025-01-28 11:43:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:43:39] Production.INFO: 61.75 MB #Memory Used# [2025-01-28 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:44:06 [end_date_ymd] => 2025-01-28 11:44:06 [RateCDR] => 1 ) [2025-01-28 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:44:06' and `end` < '2025-01-28 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:44:33] Production.INFO: count ==4528 [2025-01-28 11:44:35] Production.ERROR: pbx CDR StartTime 2025-01-28 08:44:06 - End Time 2025-01-28 11:44:06 [2025-01-28 11:44:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:44:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348765', 'tblTempUsageDetail_20' ) start [2025-01-28 11:44:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348765', 'tblTempUsageDetail_20' ) end [2025-01-28 11:44:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348765', 'tblTempVendorCDR_20' ) start [2025-01-28 11:44:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348765', 'tblTempVendorCDR_20' ) end [2025-01-28 11:44:35] Production.INFO: ProcessCDR(1,14348765,1,1,2) [2025-01-28 11:44:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:44:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:44:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:44:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:44:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348765', 'tblTempUsageDetail_20' ) start [2025-01-28 11:44:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348765', 'tblTempUsageDetail_20' ) end [2025-01-28 11:44:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:44:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:44:41] Production.INFO: ==329== Releasing lock... [2025-01-28 11:44:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:44:41] Production.INFO: 62 MB #Memory Used# [2025-01-28 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:45:05 [end_date_ymd] => 2025-01-28 11:45:05 [RateCDR] => 1 ) [2025-01-28 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:45:05' and `end` < '2025-01-28 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:45:29] Production.INFO: count ==4554 [2025-01-28 11:45:31] Production.ERROR: pbx CDR StartTime 2025-01-28 08:45:05 - End Time 2025-01-28 11:45:05 [2025-01-28 11:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348770', 'tblTempUsageDetail_20' ) start [2025-01-28 11:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348770', 'tblTempUsageDetail_20' ) end [2025-01-28 11:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348770', 'tblTempVendorCDR_20' ) start [2025-01-28 11:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348770', 'tblTempVendorCDR_20' ) end [2025-01-28 11:45:31] Production.INFO: ProcessCDR(1,14348770,1,1,2) [2025-01-28 11:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348770', 'tblTempUsageDetail_20' ) start [2025-01-28 11:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348770', 'tblTempUsageDetail_20' ) end [2025-01-28 11:45:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:45:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:45:37] Production.INFO: ==413== Releasing lock... [2025-01-28 11:45:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:45:37] Production.INFO: 62.25 MB #Memory Used# [2025-01-28 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:46:06 [end_date_ymd] => 2025-01-28 11:46:06 [RateCDR] => 1 ) [2025-01-28 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:46:06' and `end` < '2025-01-28 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:46:28] Production.INFO: count ==4564 [2025-01-28 11:46:30] Production.ERROR: pbx CDR StartTime 2025-01-28 08:46:06 - End Time 2025-01-28 11:46:06 [2025-01-28 11:46:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348775', 'tblTempUsageDetail_20' ) start [2025-01-28 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348775', 'tblTempUsageDetail_20' ) end [2025-01-28 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348775', 'tblTempVendorCDR_20' ) start [2025-01-28 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348775', 'tblTempVendorCDR_20' ) end [2025-01-28 11:46:30] Production.INFO: ProcessCDR(1,14348775,1,1,2) [2025-01-28 11:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348775', 'tblTempUsageDetail_20' ) start [2025-01-28 11:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348775', 'tblTempUsageDetail_20' ) end [2025-01-28 11:46:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:46:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:46:35] Production.INFO: ==484== Releasing lock... [2025-01-28 11:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:46:35] Production.INFO: 62.25 MB #Memory Used# [2025-01-28 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:47:05 [end_date_ymd] => 2025-01-28 11:47:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:47:05' and `end` < '2025-01-28 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-28 11:47:26] Production.INFO: count ==4580 [2025-01-28 11:47:28] Production.ERROR: pbx CDR StartTime 2025-01-28 08:47:05 - End Time 2025-01-28 11:47:05 [2025-01-28 11:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348780', 'tblTempUsageDetail_20' ) start [2025-01-28 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348780', 'tblTempUsageDetail_20' ) end [2025-01-28 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348780', 'tblTempVendorCDR_20' ) start [2025-01-28 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348780', 'tblTempVendorCDR_20' ) end [2025-01-28 11:47:28] Production.INFO: ProcessCDR(1,14348780,1,1,2) [2025-01-28 11:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348780', 'tblTempUsageDetail_20' ) start [2025-01-28 11:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348780', 'tblTempUsageDetail_20' ) end [2025-01-28 11:47:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:47:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:47:33] Production.INFO: ==556== Releasing lock... [2025-01-28 11:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:47:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-28 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:48:05 [end_date_ymd] => 2025-01-28 11:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:48:05' and `end` < '2025-01-28 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-28 11:48:28] Production.INFO: count ==4587 [2025-01-28 11:48:30] Production.ERROR: pbx CDR StartTime 2025-01-28 08:48:05 - End Time 2025-01-28 11:48:05 [2025-01-28 11:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348785', 'tblTempUsageDetail_20' ) start [2025-01-28 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348785', 'tblTempUsageDetail_20' ) end [2025-01-28 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348785', 'tblTempVendorCDR_20' ) start [2025-01-28 11:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348785', 'tblTempVendorCDR_20' ) end [2025-01-28 11:48:31] Production.INFO: ProcessCDR(1,14348785,1,1,2) [2025-01-28 11:48:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:48:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348785', 'tblTempUsageDetail_20' ) start [2025-01-28 11:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348785', 'tblTempUsageDetail_20' ) end [2025-01-28 11:48:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:48:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:48:36] Production.INFO: ==636== Releasing lock... [2025-01-28 11:48:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:48:36] Production.INFO: 62.75 MB #Memory Used# [2025-01-28 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:49:05 [end_date_ymd] => 2025-01-28 11:49:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:49:05' and `end` < '2025-01-28 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-28 11:49:31] Production.INFO: count ==4606 [2025-01-28 11:49:33] Production.ERROR: pbx CDR StartTime 2025-01-28 08:49:05 - End Time 2025-01-28 11:49:05 [2025-01-28 11:49:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348790', 'tblTempUsageDetail_20' ) start [2025-01-28 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348790', 'tblTempUsageDetail_20' ) end [2025-01-28 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348790', 'tblTempVendorCDR_20' ) start [2025-01-28 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348790', 'tblTempVendorCDR_20' ) end [2025-01-28 11:49:33] Production.INFO: ProcessCDR(1,14348790,1,1,2) [2025-01-28 11:49:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:49:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:49:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:49:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:49:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348790', 'tblTempUsageDetail_20' ) start [2025-01-28 11:49:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348790', 'tblTempUsageDetail_20' ) end [2025-01-28 11:49:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:49:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:49:39] Production.INFO: ==734== Releasing lock... [2025-01-28 11:49:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:49:39] Production.INFO: 62.5 MB #Memory Used# [2025-01-28 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:50:07 [end_date_ymd] => 2025-01-28 11:50:07 [RateCDR] => 1 ) [2025-01-28 11:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:50:07' and `end` < '2025-01-28 11:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:50:30] Production.INFO: count ==4611 [2025-01-28 11:50:32] Production.ERROR: pbx CDR StartTime 2025-01-28 08:50:07 - End Time 2025-01-28 11:50:07 [2025-01-28 11:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348796', 'tblTempUsageDetail_20' ) start [2025-01-28 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348796', 'tblTempUsageDetail_20' ) end [2025-01-28 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348796', 'tblTempVendorCDR_20' ) start [2025-01-28 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348796', 'tblTempVendorCDR_20' ) end [2025-01-28 11:50:32] Production.INFO: ProcessCDR(1,14348796,1,1,2) [2025-01-28 11:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348796', 'tblTempUsageDetail_20' ) start [2025-01-28 11:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348796', 'tblTempUsageDetail_20' ) end [2025-01-28 11:50:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:50:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:50:37] Production.INFO: ==853== Releasing lock... [2025-01-28 11:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:50:37] Production.INFO: 62.5 MB #Memory Used# [2025-01-28 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:51:06 [end_date_ymd] => 2025-01-28 11:51:06 [RateCDR] => 1 ) [2025-01-28 11: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-28 08:51:06' and `end` < '2025-01-28 11: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-28 11:51:29] Production.INFO: count ==4714 [2025-01-28 11:51:31] Production.ERROR: pbx CDR StartTime 2025-01-28 08:51:06 - End Time 2025-01-28 11:51:06 [2025-01-28 11:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348801', 'tblTempUsageDetail_20' ) start [2025-01-28 11:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348801', 'tblTempUsageDetail_20' ) end [2025-01-28 11:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348801', 'tblTempVendorCDR_20' ) start [2025-01-28 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348801', 'tblTempVendorCDR_20' ) end [2025-01-28 11:51:32] Production.INFO: ProcessCDR(1,14348801,1,1,2) [2025-01-28 11:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:51:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:51:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:51:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348801', 'tblTempUsageDetail_20' ) start [2025-01-28 11:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348801', 'tblTempUsageDetail_20' ) end [2025-01-28 11:51:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:51:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:51:37] Production.INFO: ==927== Releasing lock... [2025-01-28 11:51:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:51:37] Production.INFO: 63.25 MB #Memory Used# [2025-01-28 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:52:06 [end_date_ymd] => 2025-01-28 11:52:06 [RateCDR] => 1 ) [2025-01-28 11: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-28 08:52:06' and `end` < '2025-01-28 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:52:26] Production.INFO: count ==4729 [2025-01-28 11:52:28] Production.ERROR: pbx CDR StartTime 2025-01-28 08:52:06 - End Time 2025-01-28 11:52:06 [2025-01-28 11:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348806', 'tblTempUsageDetail_20' ) start [2025-01-28 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348806', 'tblTempUsageDetail_20' ) end [2025-01-28 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348806', 'tblTempVendorCDR_20' ) start [2025-01-28 11:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348806', 'tblTempVendorCDR_20' ) end [2025-01-28 11:52:28] Production.INFO: ProcessCDR(1,14348806,1,1,2) [2025-01-28 11:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348806', 'tblTempUsageDetail_20' ) start [2025-01-28 11:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348806', 'tblTempUsageDetail_20' ) end [2025-01-28 11:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:52:33] Production.INFO: ==1000== Releasing lock... [2025-01-28 11:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:52:33] Production.INFO: 63.5 MB #Memory Used# [2025-01-28 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:53:05 [end_date_ymd] => 2025-01-28 11:53:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:53:05' and `end` < '2025-01-28 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-28 11:53:31] Production.INFO: count ==4753 [2025-01-28 11:53:32] Production.ERROR: pbx CDR StartTime 2025-01-28 08:53:05 - End Time 2025-01-28 11:53:05 [2025-01-28 11:53:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348807', 'tblTempUsageDetail_20' ) start [2025-01-28 11:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348807', 'tblTempUsageDetail_20' ) end [2025-01-28 11:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348807', 'tblTempVendorCDR_20' ) start [2025-01-28 11:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348807', 'tblTempVendorCDR_20' ) end [2025-01-28 11:53:33] Production.INFO: ProcessCDR(1,14348807,1,1,2) [2025-01-28 11:53:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:53:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:53:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:53:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348807', 'tblTempUsageDetail_20' ) start [2025-01-28 11:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348807', 'tblTempUsageDetail_20' ) end [2025-01-28 11:53:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:53:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:53:38] Production.INFO: ==1073== Releasing lock... [2025-01-28 11:53:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:53:38] Production.INFO: 63.75 MB #Memory Used# [2025-01-28 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:54:06 [end_date_ymd] => 2025-01-28 11:54:06 [RateCDR] => 1 ) [2025-01-28 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:54:06' and `end` < '2025-01-28 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:54:26] Production.INFO: count ==4786 [2025-01-28 11:54:28] Production.ERROR: pbx CDR StartTime 2025-01-28 08:54:06 - End Time 2025-01-28 11:54:06 [2025-01-28 11:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348816', 'tblTempUsageDetail_20' ) start [2025-01-28 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348816', 'tblTempUsageDetail_20' ) end [2025-01-28 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348816', 'tblTempVendorCDR_20' ) start [2025-01-28 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348816', 'tblTempVendorCDR_20' ) end [2025-01-28 11:54:28] Production.INFO: ProcessCDR(1,14348816,1,1,2) [2025-01-28 11:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348816', 'tblTempUsageDetail_20' ) start [2025-01-28 11:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348816', 'tblTempUsageDetail_20' ) end [2025-01-28 11:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:54:33] Production.INFO: ==1150== Releasing lock... [2025-01-28 11:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:54:33] Production.INFO: 64 MB #Memory Used# [2025-01-28 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:55:05 [end_date_ymd] => 2025-01-28 11:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:55:05' and `end` < '2025-01-28 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-28 11:55:30] Production.INFO: count ==4822 [2025-01-28 11:55:32] Production.ERROR: pbx CDR StartTime 2025-01-28 08:55:05 - End Time 2025-01-28 11:55:05 [2025-01-28 11:55:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348821', 'tblTempUsageDetail_20' ) start [2025-01-28 11:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348821', 'tblTempUsageDetail_20' ) end [2025-01-28 11:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348821', 'tblTempVendorCDR_20' ) start [2025-01-28 11:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348821', 'tblTempVendorCDR_20' ) end [2025-01-28 11:55:32] Production.INFO: ProcessCDR(1,14348821,1,1,2) [2025-01-28 11:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:55:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:55:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348821', 'tblTempUsageDetail_20' ) start [2025-01-28 11:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348821', 'tblTempUsageDetail_20' ) end [2025-01-28 11:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:55:38] Production.INFO: ==1229== Releasing lock... [2025-01-28 11:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:55:38] Production.INFO: 64.25 MB #Memory Used# [2025-01-28 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:56:06 [end_date_ymd] => 2025-01-28 11:56:06 [RateCDR] => 1 ) [2025-01-28 11: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-28 08:56:06' and `end` < '2025-01-28 11: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-28 11:56:26] Production.INFO: count ==4839 [2025-01-28 11:56:28] Production.ERROR: pbx CDR StartTime 2025-01-28 08:56:06 - End Time 2025-01-28 11:56:06 [2025-01-28 11:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348826', 'tblTempUsageDetail_20' ) start [2025-01-28 11:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348826', 'tblTempUsageDetail_20' ) end [2025-01-28 11:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348826', 'tblTempVendorCDR_20' ) start [2025-01-28 11:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348826', 'tblTempVendorCDR_20' ) end [2025-01-28 11:56:28] Production.INFO: ProcessCDR(1,14348826,1,1,2) [2025-01-28 11:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348826', 'tblTempUsageDetail_20' ) start [2025-01-28 11:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348826', 'tblTempUsageDetail_20' ) end [2025-01-28 11:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:56:33] Production.INFO: ==1315== Releasing lock... [2025-01-28 11:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:56:33] Production.INFO: 64.25 MB #Memory Used# [2025-01-28 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:57:05 [end_date_ymd] => 2025-01-28 11:57:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:57:05' and `end` < '2025-01-28 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-28 11:57:23] Production.INFO: count ==4857 [2025-01-28 11:57:25] Production.ERROR: pbx CDR StartTime 2025-01-28 08:57:05 - End Time 2025-01-28 11:57:05 [2025-01-28 11:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348831', 'tblTempUsageDetail_20' ) start [2025-01-28 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348831', 'tblTempUsageDetail_20' ) end [2025-01-28 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348831', 'tblTempVendorCDR_20' ) start [2025-01-28 11:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348831', 'tblTempVendorCDR_20' ) end [2025-01-28 11:57:25] Production.INFO: ProcessCDR(1,14348831,1,1,2) [2025-01-28 11:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348831', 'tblTempUsageDetail_20' ) start [2025-01-28 11:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348831', 'tblTempUsageDetail_20' ) end [2025-01-28 11:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:57:30] Production.INFO: ==1387== Releasing lock... [2025-01-28 11:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:57:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-28 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:58:05 [end_date_ymd] => 2025-01-28 11:58:05 [RateCDR] => 1 ) [2025-01-28 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 08:58:05' and `end` < '2025-01-28 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 11:58:36] Production.INFO: count ==4889 [2025-01-28 11:58:38] Production.ERROR: pbx CDR StartTime 2025-01-28 08:58:05 - End Time 2025-01-28 11:58:05 [2025-01-28 11:58:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348836', 'tblTempUsageDetail_20' ) start [2025-01-28 11:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348836', 'tblTempUsageDetail_20' ) end [2025-01-28 11:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348836', 'tblTempVendorCDR_20' ) start [2025-01-28 11:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348836', 'tblTempVendorCDR_20' ) end [2025-01-28 11:58:38] Production.INFO: ProcessCDR(1,14348836,1,1,2) [2025-01-28 11:58:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:58:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:58:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:58:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:58:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348836', 'tblTempUsageDetail_20' ) start [2025-01-28 11:58:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348836', 'tblTempUsageDetail_20' ) end [2025-01-28 11:58:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:58:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:58:44] Production.INFO: ==1457== Releasing lock... [2025-01-28 11:58:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:58:44] Production.INFO: 64.75 MB #Memory Used# [2025-01-28 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 08:59:05 [end_date_ymd] => 2025-01-28 11:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 08:59:05' and `end` < '2025-01-28 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-28 11:59:30] Production.INFO: count ==4903 [2025-01-28 11:59:32] Production.ERROR: pbx CDR StartTime 2025-01-28 08:59:05 - End Time 2025-01-28 11:59:05 [2025-01-28 11:59:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 11:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348841', 'tblTempUsageDetail_20' ) start [2025-01-28 11:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348841', 'tblTempUsageDetail_20' ) end [2025-01-28 11:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348841', 'tblTempVendorCDR_20' ) start [2025-01-28 11:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348841', 'tblTempVendorCDR_20' ) end [2025-01-28 11:59:32] Production.INFO: ProcessCDR(1,14348841,1,1,2) [2025-01-28 11:59:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:59:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 11:59:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:59:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 11:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348841', 'tblTempUsageDetail_20' ) start [2025-01-28 11:59:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348841', 'tblTempUsageDetail_20' ) end [2025-01-28 11:59:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 11:59:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 11:59:38] Production.INFO: ==1562== Releasing lock... [2025-01-28 11:59:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 11:59:38] Production.INFO: 64.75 MB #Memory Used# [2025-01-28 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:00:06 [end_date_ymd] => 2025-01-28 12:00:06 [RateCDR] => 1 ) [2025-01-28 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-28 09:00:06' and `end` < '2025-01-28 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-28 12:00:26] Production.INFO: count ==4915 [2025-01-28 12:00:28] Production.ERROR: pbx CDR StartTime 2025-01-28 09:00:06 - End Time 2025-01-28 12:00:06 [2025-01-28 12:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348847', 'tblTempUsageDetail_20' ) start [2025-01-28 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348847', 'tblTempUsageDetail_20' ) end [2025-01-28 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348847', 'tblTempVendorCDR_20' ) start [2025-01-28 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348847', 'tblTempVendorCDR_20' ) end [2025-01-28 12:00:29] Production.INFO: ProcessCDR(1,14348847,1,1,2) [2025-01-28 12:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348847', 'tblTempUsageDetail_20' ) start [2025-01-28 12:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348847', 'tblTempUsageDetail_20' ) end [2025-01-28 12:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:00:34] Production.INFO: ==1642== Releasing lock... [2025-01-28 12:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:00:34] Production.INFO: 64.75 MB #Memory Used# [2025-01-28 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:01:05 [end_date_ymd] => 2025-01-28 12:01:05 [RateCDR] => 1 ) [2025-01-28 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:01:05' and `end` < '2025-01-28 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:01:33] Production.INFO: count ==5029 [2025-01-28 12:01:35] Production.ERROR: pbx CDR StartTime 2025-01-28 09:01:05 - End Time 2025-01-28 12:01:05 [2025-01-28 12:01:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348852', 'tblTempUsageDetail_20' ) start [2025-01-28 12:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348852', 'tblTempUsageDetail_20' ) end [2025-01-28 12:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348852', 'tblTempVendorCDR_20' ) start [2025-01-28 12:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348852', 'tblTempVendorCDR_20' ) end [2025-01-28 12:01:36] Production.INFO: ProcessCDR(1,14348852,1,1,2) [2025-01-28 12:01:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:01:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:01:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:01:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348852', 'tblTempUsageDetail_20' ) start [2025-01-28 12:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348852', 'tblTempUsageDetail_20' ) end [2025-01-28 12:01:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:01:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:01:41] Production.INFO: ==1725== Releasing lock... [2025-01-28 12:01:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:01:41] Production.INFO: 65.75 MB #Memory Used# [2025-01-28 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:02:05 [end_date_ymd] => 2025-01-28 12:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:02:05' and `end` < '2025-01-28 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-28 12:02:29] Production.INFO: count ==5029 [2025-01-28 12:02:31] Production.ERROR: pbx CDR StartTime 2025-01-28 09:02:05 - End Time 2025-01-28 12:02:05 [2025-01-28 12:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348857', 'tblTempUsageDetail_20' ) start [2025-01-28 12:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348857', 'tblTempUsageDetail_20' ) end [2025-01-28 12:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348857', 'tblTempVendorCDR_20' ) start [2025-01-28 12:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348857', 'tblTempVendorCDR_20' ) end [2025-01-28 12:02:31] Production.INFO: ProcessCDR(1,14348857,1,1,2) [2025-01-28 12:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348857', 'tblTempUsageDetail_20' ) start [2025-01-28 12:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348857', 'tblTempUsageDetail_20' ) end [2025-01-28 12:02:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:02:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:02:36] Production.INFO: ==1803== Releasing lock... [2025-01-28 12:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:02:36] Production.INFO: 65.75 MB #Memory Used# [2025-01-28 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:03:05 [end_date_ymd] => 2025-01-28 12:03:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:03:05' and `end` < '2025-01-28 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-28 12:03:28] Production.INFO: count ==5018 [2025-01-28 12:03:30] Production.ERROR: pbx CDR StartTime 2025-01-28 09:03:05 - End Time 2025-01-28 12:03:05 [2025-01-28 12:03:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348862', 'tblTempUsageDetail_20' ) start [2025-01-28 12:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348862', 'tblTempUsageDetail_20' ) end [2025-01-28 12:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348862', 'tblTempVendorCDR_20' ) start [2025-01-28 12:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348862', 'tblTempVendorCDR_20' ) end [2025-01-28 12:03:30] Production.INFO: ProcessCDR(1,14348862,1,1,2) [2025-01-28 12:03:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348862', 'tblTempUsageDetail_20' ) start [2025-01-28 12:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348862', 'tblTempUsageDetail_20' ) end [2025-01-28 12:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:03:34] Production.INFO: ==1881== Releasing lock... [2025-01-28 12:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:03:34] Production.INFO: 65.75 MB #Memory Used# [2025-01-28 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:04:06 [end_date_ymd] => 2025-01-28 12:04:06 [RateCDR] => 1 ) [2025-01-28 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-28 09:04:06' and `end` < '2025-01-28 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-28 12:04:28] Production.INFO: count ==5016 [2025-01-28 12:04:30] Production.ERROR: pbx CDR StartTime 2025-01-28 09:04:06 - End Time 2025-01-28 12:04:06 [2025-01-28 12:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348867', 'tblTempUsageDetail_20' ) start [2025-01-28 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348867', 'tblTempUsageDetail_20' ) end [2025-01-28 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348867', 'tblTempVendorCDR_20' ) start [2025-01-28 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348867', 'tblTempVendorCDR_20' ) end [2025-01-28 12:04:30] Production.INFO: ProcessCDR(1,14348867,1,1,2) [2025-01-28 12:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348867', 'tblTempUsageDetail_20' ) start [2025-01-28 12:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348867', 'tblTempUsageDetail_20' ) end [2025-01-28 12:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:04:34] Production.INFO: ==1954== Releasing lock... [2025-01-28 12:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:04:34] Production.INFO: 65.5 MB #Memory Used# [2025-01-28 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:05:05 [end_date_ymd] => 2025-01-28 12:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:05:05' and `end` < '2025-01-28 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-28 12:05:32] Production.INFO: count ==5004 [2025-01-28 12:05:34] Production.ERROR: pbx CDR StartTime 2025-01-28 09:05:05 - End Time 2025-01-28 12:05:05 [2025-01-28 12:05:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348872', 'tblTempUsageDetail_20' ) start [2025-01-28 12:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348872', 'tblTempUsageDetail_20' ) end [2025-01-28 12:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348872', 'tblTempVendorCDR_20' ) start [2025-01-28 12:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348872', 'tblTempVendorCDR_20' ) end [2025-01-28 12:05:35] Production.INFO: ProcessCDR(1,14348872,1,1,2) [2025-01-28 12:05:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:05:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:05:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:05:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348872', 'tblTempUsageDetail_20' ) start [2025-01-28 12:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348872', 'tblTempUsageDetail_20' ) end [2025-01-28 12:05:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:05:40] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:05:40] Production.INFO: ==2029== Releasing lock... [2025-01-28 12:05:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:05:40] Production.INFO: 65.5 MB #Memory Used# [2025-01-28 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:06:06 [end_date_ymd] => 2025-01-28 12:06:06 [RateCDR] => 1 ) [2025-01-28 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:06:06' and `end` < '2025-01-28 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:06:30] Production.INFO: count ==5000 [2025-01-28 12:06:32] Production.ERROR: pbx CDR StartTime 2025-01-28 09:06:06 - End Time 2025-01-28 12:06:06 [2025-01-28 12:06:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348877', 'tblTempUsageDetail_20' ) start [2025-01-28 12:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348877', 'tblTempUsageDetail_20' ) end [2025-01-28 12:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348877', 'tblTempVendorCDR_20' ) start [2025-01-28 12:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348877', 'tblTempVendorCDR_20' ) end [2025-01-28 12:06:32] Production.INFO: ProcessCDR(1,14348877,1,1,2) [2025-01-28 12:06:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:06:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348877', 'tblTempUsageDetail_20' ) start [2025-01-28 12:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348877', 'tblTempUsageDetail_20' ) end [2025-01-28 12:06:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:06:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:06:37] Production.INFO: ==2139== Releasing lock... [2025-01-28 12:06:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:06:37] Production.INFO: 65.5 MB #Memory Used# [2025-01-28 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:07:06 [end_date_ymd] => 2025-01-28 12:07:06 [RateCDR] => 1 ) [2025-01-28 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:07:06' and `end` < '2025-01-28 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:07:31] Production.INFO: count ==4998 [2025-01-28 12:07:33] Production.ERROR: pbx CDR StartTime 2025-01-28 09:07:06 - End Time 2025-01-28 12:07:06 [2025-01-28 12:07:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348882', 'tblTempUsageDetail_20' ) start [2025-01-28 12:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348882', 'tblTempUsageDetail_20' ) end [2025-01-28 12:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348882', 'tblTempVendorCDR_20' ) start [2025-01-28 12:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348882', 'tblTempVendorCDR_20' ) end [2025-01-28 12:07:33] Production.INFO: ProcessCDR(1,14348882,1,1,2) [2025-01-28 12:07:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:07:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:07:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:07:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348882', 'tblTempUsageDetail_20' ) start [2025-01-28 12:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348882', 'tblTempUsageDetail_20' ) end [2025-01-28 12:07:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:07:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:07:38] Production.INFO: ==2212== Releasing lock... [2025-01-28 12:07:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:07:38] Production.INFO: 65.5 MB #Memory Used# [2025-01-28 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:08:06 [end_date_ymd] => 2025-01-28 12:08:06 [RateCDR] => 1 ) [2025-01-28 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:08:06' and `end` < '2025-01-28 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:08:25] Production.INFO: count ==5004 [2025-01-28 12:08:27] Production.ERROR: pbx CDR StartTime 2025-01-28 09:08:06 - End Time 2025-01-28 12:08:06 [2025-01-28 12:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348887', 'tblTempUsageDetail_20' ) start [2025-01-28 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348887', 'tblTempUsageDetail_20' ) end [2025-01-28 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348887', 'tblTempVendorCDR_20' ) start [2025-01-28 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348887', 'tblTempVendorCDR_20' ) end [2025-01-28 12:08:27] Production.INFO: ProcessCDR(1,14348887,1,1,2) [2025-01-28 12:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348887', 'tblTempUsageDetail_20' ) start [2025-01-28 12:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348887', 'tblTempUsageDetail_20' ) end [2025-01-28 12:08:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:08:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:08:32] Production.INFO: ==2284== Releasing lock... [2025-01-28 12:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:08:32] Production.INFO: 65.5 MB #Memory Used# [2025-01-28 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:09:05 [end_date_ymd] => 2025-01-28 12:09:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:09:05' and `end` < '2025-01-28 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-28 12:09:32] Production.INFO: count ==5006 [2025-01-28 12:09:34] Production.ERROR: pbx CDR StartTime 2025-01-28 09:09:05 - End Time 2025-01-28 12:09:05 [2025-01-28 12:09:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348892', 'tblTempUsageDetail_20' ) start [2025-01-28 12:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348892', 'tblTempUsageDetail_20' ) end [2025-01-28 12:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348892', 'tblTempVendorCDR_20' ) start [2025-01-28 12:09:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348892', 'tblTempVendorCDR_20' ) end [2025-01-28 12:09:34] Production.INFO: ProcessCDR(1,14348892,1,1,2) [2025-01-28 12:09:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:09:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:09:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:09:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348892', 'tblTempUsageDetail_20' ) start [2025-01-28 12:09:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348892', 'tblTempUsageDetail_20' ) end [2025-01-28 12:09:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:09:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:09:39] Production.INFO: ==2359== Releasing lock... [2025-01-28 12:09:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:09:39] Production.INFO: 65.5 MB #Memory Used# [2025-01-28 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:10:06 [end_date_ymd] => 2025-01-28 12:10:06 [RateCDR] => 1 ) [2025-01-28 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-28 09:10:06' and `end` < '2025-01-28 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-28 12:10:28] Production.INFO: count ==5005 [2025-01-28 12:10:30] Production.ERROR: pbx CDR StartTime 2025-01-28 09:10:06 - End Time 2025-01-28 12:10:06 [2025-01-28 12:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348898', 'tblTempUsageDetail_20' ) start [2025-01-28 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348898', 'tblTempUsageDetail_20' ) end [2025-01-28 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348898', 'tblTempVendorCDR_20' ) start [2025-01-28 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348898', 'tblTempVendorCDR_20' ) end [2025-01-28 12:10:30] Production.INFO: ProcessCDR(1,14348898,1,1,2) [2025-01-28 12:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348898', 'tblTempUsageDetail_20' ) start [2025-01-28 12:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348898', 'tblTempUsageDetail_20' ) end [2025-01-28 12:10:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:10:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:10:35] Production.INFO: ==2435== Releasing lock... [2025-01-28 12:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:10:35] Production.INFO: 65.5 MB #Memory Used# [2025-01-28 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:11:05 [end_date_ymd] => 2025-01-28 12:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:11:05' and `end` < '2025-01-28 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-28 12:11:31] Production.INFO: count ==5061 [2025-01-28 12:11:33] Production.ERROR: pbx CDR StartTime 2025-01-28 09:11:05 - End Time 2025-01-28 12:11:05 [2025-01-28 12:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348903', 'tblTempUsageDetail_20' ) start [2025-01-28 12:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348903', 'tblTempUsageDetail_20' ) end [2025-01-28 12:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348903', 'tblTempVendorCDR_20' ) start [2025-01-28 12:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348903', 'tblTempVendorCDR_20' ) end [2025-01-28 12:11:33] Production.INFO: ProcessCDR(1,14348903,1,1,2) [2025-01-28 12:11:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:11:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:11:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:11:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348903', 'tblTempUsageDetail_20' ) start [2025-01-28 12:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348903', 'tblTempUsageDetail_20' ) end [2025-01-28 12:11:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:11:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:11:38] Production.INFO: ==2512== Releasing lock... [2025-01-28 12:11:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:11:38] Production.INFO: 66 MB #Memory Used# [2025-01-28 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:12:05 [end_date_ymd] => 2025-01-28 12:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:12:05' and `end` < '2025-01-28 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-28 12:12:25] Production.INFO: count ==5072 [2025-01-28 12:12:28] Production.ERROR: pbx CDR StartTime 2025-01-28 09:12:05 - End Time 2025-01-28 12:12:05 [2025-01-28 12:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348908', 'tblTempUsageDetail_20' ) start [2025-01-28 12:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348908', 'tblTempUsageDetail_20' ) end [2025-01-28 12:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348908', 'tblTempVendorCDR_20' ) start [2025-01-28 12:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348908', 'tblTempVendorCDR_20' ) end [2025-01-28 12:12:28] Production.INFO: ProcessCDR(1,14348908,1,1,2) [2025-01-28 12:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348908', 'tblTempUsageDetail_20' ) start [2025-01-28 12:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348908', 'tblTempUsageDetail_20' ) end [2025-01-28 12:12:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:12:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:12:33] Production.INFO: ==2584== Releasing lock... [2025-01-28 12:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:12:33] Production.INFO: 66 MB #Memory Used# [2025-01-28 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:13:05 [end_date_ymd] => 2025-01-28 12:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:13:05' and `end` < '2025-01-28 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-28 12:13:26] Production.INFO: count ==5076 [2025-01-28 12:13:28] Production.ERROR: pbx CDR StartTime 2025-01-28 09:13:05 - End Time 2025-01-28 12:13:05 [2025-01-28 12:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348913', 'tblTempUsageDetail_20' ) start [2025-01-28 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348913', 'tblTempUsageDetail_20' ) end [2025-01-28 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348913', 'tblTempVendorCDR_20' ) start [2025-01-28 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348913', 'tblTempVendorCDR_20' ) end [2025-01-28 12:13:28] Production.INFO: ProcessCDR(1,14348913,1,1,2) [2025-01-28 12:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348913', 'tblTempUsageDetail_20' ) start [2025-01-28 12:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348913', 'tblTempUsageDetail_20' ) end [2025-01-28 12:13:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:13:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:13:33] Production.INFO: ==2657== Releasing lock... [2025-01-28 12:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:13:33] Production.INFO: 66 MB #Memory Used# [2025-01-28 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:14:06 [end_date_ymd] => 2025-01-28 12:14:06 [RateCDR] => 1 ) [2025-01-28 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-28 09:14:06' and `end` < '2025-01-28 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-28 12:14:25] Production.INFO: count ==5071 [2025-01-28 12:14:28] Production.ERROR: pbx CDR StartTime 2025-01-28 09:14:06 - End Time 2025-01-28 12:14:06 [2025-01-28 12:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348918', 'tblTempUsageDetail_20' ) start [2025-01-28 12:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348918', 'tblTempUsageDetail_20' ) end [2025-01-28 12:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348918', 'tblTempVendorCDR_20' ) start [2025-01-28 12:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348918', 'tblTempVendorCDR_20' ) end [2025-01-28 12:14:28] Production.INFO: ProcessCDR(1,14348918,1,1,2) [2025-01-28 12:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348918', 'tblTempUsageDetail_20' ) start [2025-01-28 12:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348918', 'tblTempUsageDetail_20' ) end [2025-01-28 12:14:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:14:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:14:33] Production.INFO: ==2729== Releasing lock... [2025-01-28 12:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:14:33] Production.INFO: 66 MB #Memory Used# [2025-01-28 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:15:05 [end_date_ymd] => 2025-01-28 12:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:15:05' and `end` < '2025-01-28 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-28 12:15:26] Production.INFO: count ==5080 [2025-01-28 12:15:29] Production.ERROR: pbx CDR StartTime 2025-01-28 09:15:05 - End Time 2025-01-28 12:15:05 [2025-01-28 12:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348923', 'tblTempUsageDetail_20' ) start [2025-01-28 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348923', 'tblTempUsageDetail_20' ) end [2025-01-28 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348923', 'tblTempVendorCDR_20' ) start [2025-01-28 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348923', 'tblTempVendorCDR_20' ) end [2025-01-28 12:15:29] Production.INFO: ProcessCDR(1,14348923,1,1,2) [2025-01-28 12:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348923', 'tblTempUsageDetail_20' ) start [2025-01-28 12:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348923', 'tblTempUsageDetail_20' ) end [2025-01-28 12:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:15:34] Production.INFO: ==2805== Releasing lock... [2025-01-28 12:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:15:34] Production.INFO: 66 MB #Memory Used# [2025-01-28 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:16:06 [end_date_ymd] => 2025-01-28 12:16:06 [RateCDR] => 1 ) [2025-01-28 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:16:06' and `end` < '2025-01-28 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:16:24] Production.INFO: count ==5094 [2025-01-28 12:16:26] Production.ERROR: pbx CDR StartTime 2025-01-28 09:16:06 - End Time 2025-01-28 12:16:06 [2025-01-28 12:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348928', 'tblTempUsageDetail_20' ) start [2025-01-28 12:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348928', 'tblTempUsageDetail_20' ) end [2025-01-28 12:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348928', 'tblTempVendorCDR_20' ) start [2025-01-28 12:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348928', 'tblTempVendorCDR_20' ) end [2025-01-28 12:16:27] Production.INFO: ProcessCDR(1,14348928,1,1,2) [2025-01-28 12:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348928', 'tblTempUsageDetail_20' ) start [2025-01-28 12:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348928', 'tblTempUsageDetail_20' ) end [2025-01-28 12:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:16:32] Production.INFO: ==2876== Releasing lock... [2025-01-28 12:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:16:32] Production.INFO: 66.25 MB #Memory Used# [2025-01-28 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:17:05 [end_date_ymd] => 2025-01-28 12:17:05 [RateCDR] => 1 ) [2025-01-28 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:17:05' and `end` < '2025-01-28 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:17:25] Production.INFO: count ==5099 [2025-01-28 12:17:28] Production.ERROR: pbx CDR StartTime 2025-01-28 09:17:05 - End Time 2025-01-28 12:17:05 [2025-01-28 12:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348933', 'tblTempUsageDetail_20' ) start [2025-01-28 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348933', 'tblTempUsageDetail_20' ) end [2025-01-28 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348933', 'tblTempVendorCDR_20' ) start [2025-01-28 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348933', 'tblTempVendorCDR_20' ) end [2025-01-28 12:17:28] Production.INFO: ProcessCDR(1,14348933,1,1,2) [2025-01-28 12:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348933', 'tblTempUsageDetail_20' ) start [2025-01-28 12:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348933', 'tblTempUsageDetail_20' ) end [2025-01-28 12:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:17:33] Production.INFO: ==2950== Releasing lock... [2025-01-28 12:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:17:33] Production.INFO: 66.25 MB #Memory Used# [2025-01-28 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:18:06 [end_date_ymd] => 2025-01-28 12:18:06 [RateCDR] => 1 ) [2025-01-28 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:18:06' and `end` < '2025-01-28 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:18:28] Production.INFO: count ==5098 [2025-01-28 12:18:30] Production.ERROR: pbx CDR StartTime 2025-01-28 09:18:06 - End Time 2025-01-28 12:18:06 [2025-01-28 12:18:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348938', 'tblTempUsageDetail_20' ) start [2025-01-28 12:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348938', 'tblTempUsageDetail_20' ) end [2025-01-28 12:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348938', 'tblTempVendorCDR_20' ) start [2025-01-28 12:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348938', 'tblTempVendorCDR_20' ) end [2025-01-28 12:18:30] Production.INFO: ProcessCDR(1,14348938,1,1,2) [2025-01-28 12:18:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:18:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348938', 'tblTempUsageDetail_20' ) start [2025-01-28 12:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348938', 'tblTempUsageDetail_20' ) end [2025-01-28 12:18:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:18:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:18:35] Production.INFO: ==3030== Releasing lock... [2025-01-28 12:18:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:18:35] Production.INFO: 66.25 MB #Memory Used# [2025-01-28 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:19:05 [end_date_ymd] => 2025-01-28 12:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:19:05' and `end` < '2025-01-28 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-28 12:19:28] Production.INFO: count ==5104 [2025-01-28 12:19:30] Production.ERROR: pbx CDR StartTime 2025-01-28 09:19:05 - End Time 2025-01-28 12:19:05 [2025-01-28 12:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348943', 'tblTempUsageDetail_20' ) start [2025-01-28 12:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348943', 'tblTempUsageDetail_20' ) end [2025-01-28 12:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348943', 'tblTempVendorCDR_20' ) start [2025-01-28 12:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348943', 'tblTempVendorCDR_20' ) end [2025-01-28 12:19:31] Production.INFO: ProcessCDR(1,14348943,1,1,2) [2025-01-28 12:19:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:19:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:19:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348943', 'tblTempUsageDetail_20' ) start [2025-01-28 12:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348943', 'tblTempUsageDetail_20' ) end [2025-01-28 12:19:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:19:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:19:36] Production.INFO: ==3104== Releasing lock... [2025-01-28 12:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:19:36] Production.INFO: 66.25 MB #Memory Used# [2025-01-28 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:20:06 [end_date_ymd] => 2025-01-28 12:20:06 [RateCDR] => 1 ) [2025-01-28 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-28 09:20:06' and `end` < '2025-01-28 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-28 12:20:28] Production.INFO: count ==5105 [2025-01-28 12:20:30] Production.ERROR: pbx CDR StartTime 2025-01-28 09:20:06 - End Time 2025-01-28 12:20:06 [2025-01-28 12:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348948', 'tblTempUsageDetail_20' ) start [2025-01-28 12:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348948', 'tblTempUsageDetail_20' ) end [2025-01-28 12:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348948', 'tblTempVendorCDR_20' ) start [2025-01-28 12:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348948', 'tblTempVendorCDR_20' ) end [2025-01-28 12:20:30] Production.INFO: ProcessCDR(1,14348948,1,1,2) [2025-01-28 12:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348948', 'tblTempUsageDetail_20' ) start [2025-01-28 12:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348948', 'tblTempUsageDetail_20' ) end [2025-01-28 12:20:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:20:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:20:35] Production.INFO: ==3179== Releasing lock... [2025-01-28 12:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:20:35] Production.INFO: 66.25 MB #Memory Used# [2025-01-28 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:21:05 [end_date_ymd] => 2025-01-28 12:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:21:05' and `end` < '2025-01-28 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-28 12:21:25] Production.INFO: count ==5168 [2025-01-28 12:21:27] Production.ERROR: pbx CDR StartTime 2025-01-28 09:21:05 - End Time 2025-01-28 12:21:05 [2025-01-28 12:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348954', 'tblTempUsageDetail_20' ) start [2025-01-28 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348954', 'tblTempUsageDetail_20' ) end [2025-01-28 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348954', 'tblTempVendorCDR_20' ) start [2025-01-28 12:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348954', 'tblTempVendorCDR_20' ) end [2025-01-28 12:21:27] Production.INFO: ProcessCDR(1,14348954,1,1,2) [2025-01-28 12:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348954', 'tblTempUsageDetail_20' ) start [2025-01-28 12:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348954', 'tblTempUsageDetail_20' ) end [2025-01-28 12:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:21:32] Production.INFO: ==3291== Releasing lock... [2025-01-28 12:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:21:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-28 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:22:05 [end_date_ymd] => 2025-01-28 12:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:22:05' and `end` < '2025-01-28 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-28 12:22:36] Production.INFO: count ==5170 [2025-01-28 12:22:39] Production.ERROR: pbx CDR StartTime 2025-01-28 09:22:05 - End Time 2025-01-28 12:22:05 [2025-01-28 12:22:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:22:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348959', 'tblTempUsageDetail_20' ) start [2025-01-28 12:22:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348959', 'tblTempUsageDetail_20' ) end [2025-01-28 12:22:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348959', 'tblTempVendorCDR_20' ) start [2025-01-28 12:22:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348959', 'tblTempVendorCDR_20' ) end [2025-01-28 12:22:39] Production.INFO: ProcessCDR(1,14348959,1,1,2) [2025-01-28 12:22:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:22:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:22:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:22:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:22:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348959', 'tblTempUsageDetail_20' ) start [2025-01-28 12:22:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348959', 'tblTempUsageDetail_20' ) end [2025-01-28 12:22:44] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:22:44] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:22:44] Production.INFO: ==3373== Releasing lock... [2025-01-28 12:22:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:22:44] Production.INFO: 66.75 MB #Memory Used# [2025-01-28 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:23:05 [end_date_ymd] => 2025-01-28 12:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:23:05' and `end` < '2025-01-28 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-28 12:23:27] Production.INFO: count ==5180 [2025-01-28 12:23:29] Production.ERROR: pbx CDR StartTime 2025-01-28 09:23:05 - End Time 2025-01-28 12:23:05 [2025-01-28 12:23:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348964', 'tblTempUsageDetail_20' ) start [2025-01-28 12:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348964', 'tblTempUsageDetail_20' ) end [2025-01-28 12:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348964', 'tblTempVendorCDR_20' ) start [2025-01-28 12:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348964', 'tblTempVendorCDR_20' ) end [2025-01-28 12:23:29] Production.INFO: ProcessCDR(1,14348964,1,1,2) [2025-01-28 12:23:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348964', 'tblTempUsageDetail_20' ) start [2025-01-28 12:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348964', 'tblTempUsageDetail_20' ) end [2025-01-28 12:23:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:23:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:23:34] Production.INFO: ==3459== Releasing lock... [2025-01-28 12:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:23:34] Production.INFO: 66.75 MB #Memory Used# [2025-01-28 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:24:06 [end_date_ymd] => 2025-01-28 12:24:06 [RateCDR] => 1 ) [2025-01-28 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:24:06' and `end` < '2025-01-28 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:24:26] Production.INFO: count ==5188 [2025-01-28 12:24:28] Production.ERROR: pbx CDR StartTime 2025-01-28 09:24:06 - End Time 2025-01-28 12:24:06 [2025-01-28 12:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348969', 'tblTempUsageDetail_20' ) start [2025-01-28 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348969', 'tblTempUsageDetail_20' ) end [2025-01-28 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348969', 'tblTempVendorCDR_20' ) start [2025-01-28 12:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348969', 'tblTempVendorCDR_20' ) end [2025-01-28 12:24:29] Production.INFO: ProcessCDR(1,14348969,1,1,2) [2025-01-28 12:24:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348969', 'tblTempUsageDetail_20' ) start [2025-01-28 12:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348969', 'tblTempUsageDetail_20' ) end [2025-01-28 12:24:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:24:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:24:34] Production.INFO: ==3533== Releasing lock... [2025-01-28 12:24:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:24:34] Production.INFO: 67 MB #Memory Used# [2025-01-28 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:25:05 [end_date_ymd] => 2025-01-28 12:25:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:25:05' and `end` < '2025-01-28 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-28 12:25:24] Production.INFO: count ==5211 [2025-01-28 12:25:26] Production.ERROR: pbx CDR StartTime 2025-01-28 09:25:05 - End Time 2025-01-28 12:25:05 [2025-01-28 12:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348974', 'tblTempUsageDetail_20' ) start [2025-01-28 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348974', 'tblTempUsageDetail_20' ) end [2025-01-28 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348974', 'tblTempVendorCDR_20' ) start [2025-01-28 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348974', 'tblTempVendorCDR_20' ) end [2025-01-28 12:25:26] Production.INFO: ProcessCDR(1,14348974,1,1,2) [2025-01-28 12:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348974', 'tblTempUsageDetail_20' ) start [2025-01-28 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348974', 'tblTempUsageDetail_20' ) end [2025-01-28 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:25:31] Production.INFO: ==3606== Releasing lock... [2025-01-28 12:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:25:31] Production.INFO: 67 MB #Memory Used# [2025-01-28 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:26:05 [end_date_ymd] => 2025-01-28 12:26:05 [RateCDR] => 1 ) [2025-01-28 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:26:05' and `end` < '2025-01-28 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:26:30] Production.INFO: count ==5214 [2025-01-28 12:26:32] Production.ERROR: pbx CDR StartTime 2025-01-28 09:26:05 - End Time 2025-01-28 12:26:05 [2025-01-28 12:26:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348979', 'tblTempUsageDetail_20' ) start [2025-01-28 12:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348979', 'tblTempUsageDetail_20' ) end [2025-01-28 12:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348979', 'tblTempVendorCDR_20' ) start [2025-01-28 12:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348979', 'tblTempVendorCDR_20' ) end [2025-01-28 12:26:33] Production.INFO: ProcessCDR(1,14348979,1,1,2) [2025-01-28 12:26:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:26:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:26:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:26:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348979', 'tblTempUsageDetail_20' ) start [2025-01-28 12:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348979', 'tblTempUsageDetail_20' ) end [2025-01-28 12:26:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:26:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:26:37] Production.INFO: ==3680== Releasing lock... [2025-01-28 12:26:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:26:37] Production.INFO: 67 MB #Memory Used# [2025-01-28 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:27:05 [end_date_ymd] => 2025-01-28 12:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:27:05' and `end` < '2025-01-28 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-28 12:27:26] Production.INFO: count ==5214 [2025-01-28 12:27:29] Production.ERROR: pbx CDR StartTime 2025-01-28 09:27:05 - End Time 2025-01-28 12:27:05 [2025-01-28 12:27:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348984', 'tblTempUsageDetail_20' ) start [2025-01-28 12:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348984', 'tblTempUsageDetail_20' ) end [2025-01-28 12:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348984', 'tblTempVendorCDR_20' ) start [2025-01-28 12:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348984', 'tblTempVendorCDR_20' ) end [2025-01-28 12:27:29] Production.INFO: ProcessCDR(1,14348984,1,1,2) [2025-01-28 12:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:27:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348984', 'tblTempUsageDetail_20' ) start [2025-01-28 12:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348984', 'tblTempUsageDetail_20' ) end [2025-01-28 12:27:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:27:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:27:34] Production.INFO: ==3756== Releasing lock... [2025-01-28 12:27:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:27:34] Production.INFO: 67 MB #Memory Used# [2025-01-28 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:28:06 [end_date_ymd] => 2025-01-28 12:28:06 [RateCDR] => 1 ) [2025-01-28 12: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-28 09:28:06' and `end` < '2025-01-28 12: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-28 12:28:26] Production.INFO: count ==5202 [2025-01-28 12:28:28] Production.ERROR: pbx CDR StartTime 2025-01-28 09:28:06 - End Time 2025-01-28 12:28:06 [2025-01-28 12:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348989', 'tblTempUsageDetail_20' ) start [2025-01-28 12:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348989', 'tblTempUsageDetail_20' ) end [2025-01-28 12:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348989', 'tblTempVendorCDR_20' ) start [2025-01-28 12:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348989', 'tblTempVendorCDR_20' ) end [2025-01-28 12:28:28] Production.INFO: ProcessCDR(1,14348989,1,1,2) [2025-01-28 12:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:28:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:28:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:28:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348989', 'tblTempUsageDetail_20' ) start [2025-01-28 12:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348989', 'tblTempUsageDetail_20' ) end [2025-01-28 12:28:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:28:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:28:34] Production.INFO: ==3827== Releasing lock... [2025-01-28 12:28:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:28:34] Production.INFO: 67 MB #Memory Used# [2025-01-28 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:29:05 [end_date_ymd] => 2025-01-28 12:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:29:05' and `end` < '2025-01-28 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-28 12:29:24] Production.INFO: count ==5215 [2025-01-28 12:29:27] Production.ERROR: pbx CDR StartTime 2025-01-28 09:29:05 - End Time 2025-01-28 12:29:05 [2025-01-28 12:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348994', 'tblTempUsageDetail_20' ) start [2025-01-28 12:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14348994', 'tblTempUsageDetail_20' ) end [2025-01-28 12:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348994', 'tblTempVendorCDR_20' ) start [2025-01-28 12:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14348994', 'tblTempVendorCDR_20' ) end [2025-01-28 12:29:27] Production.INFO: ProcessCDR(1,14348994,1,1,2) [2025-01-28 12:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14348994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14348994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14348994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14348994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348994', 'tblTempUsageDetail_20' ) start [2025-01-28 12:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14348994', 'tblTempUsageDetail_20' ) end [2025-01-28 12:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:29:32] Production.INFO: ==3899== Releasing lock... [2025-01-28 12:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:29:32] Production.INFO: 67 MB #Memory Used# [2025-01-28 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:30:07 [end_date_ymd] => 2025-01-28 12:30:07 [RateCDR] => 1 ) [2025-01-28 12:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:30:07' and `end` < '2025-01-28 12:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:30:27] Production.INFO: count ==5213 [2025-01-28 12:30:29] Production.ERROR: pbx CDR StartTime 2025-01-28 09:30:07 - End Time 2025-01-28 12:30:07 [2025-01-28 12:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349000', 'tblTempUsageDetail_20' ) start [2025-01-28 12:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349000', 'tblTempUsageDetail_20' ) end [2025-01-28 12:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349000', 'tblTempVendorCDR_20' ) start [2025-01-28 12:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349000', 'tblTempVendorCDR_20' ) end [2025-01-28 12:30:30] Production.INFO: ProcessCDR(1,14349000,1,1,2) [2025-01-28 12:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349000', 'tblTempUsageDetail_20' ) start [2025-01-28 12:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349000', 'tblTempUsageDetail_20' ) end [2025-01-28 12:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:30:35] Production.INFO: ==3977== Releasing lock... [2025-01-28 12:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:30:35] Production.INFO: 67 MB #Memory Used# [2025-01-28 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:31:06 [end_date_ymd] => 2025-01-28 12:31:06 [RateCDR] => 1 ) [2025-01-28 12:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:31:06' and `end` < '2025-01-28 12:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:31:28] Production.INFO: count ==5224 [2025-01-28 12:31:30] Production.ERROR: pbx CDR StartTime 2025-01-28 09:31:06 - End Time 2025-01-28 12:31:06 [2025-01-28 12:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349005', 'tblTempUsageDetail_20' ) start [2025-01-28 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349005', 'tblTempUsageDetail_20' ) end [2025-01-28 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349005', 'tblTempVendorCDR_20' ) start [2025-01-28 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349005', 'tblTempVendorCDR_20' ) end [2025-01-28 12:31:30] Production.INFO: ProcessCDR(1,14349005,1,1,2) [2025-01-28 12:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349005', 'tblTempUsageDetail_20' ) start [2025-01-28 12:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349005', 'tblTempUsageDetail_20' ) end [2025-01-28 12:31:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:31:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:31:34] Production.INFO: ==4051== Releasing lock... [2025-01-28 12:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:31:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-28 12:32:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:32:07 [end_date_ymd] => 2025-01-28 12:32:07 [RateCDR] => 1 ) [2025-01-28 12:32: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-28 09:32:07' and `end` < '2025-01-28 12:32: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-28 12:32:27] Production.INFO: count ==5223 [2025-01-28 12:32:29] Production.ERROR: pbx CDR StartTime 2025-01-28 09:32:07 - End Time 2025-01-28 12:32:07 [2025-01-28 12:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349010', 'tblTempUsageDetail_20' ) start [2025-01-28 12:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349010', 'tblTempUsageDetail_20' ) end [2025-01-28 12:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349010', 'tblTempVendorCDR_20' ) start [2025-01-28 12:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349010', 'tblTempVendorCDR_20' ) end [2025-01-28 12:32:30] Production.INFO: ProcessCDR(1,14349010,1,1,2) [2025-01-28 12:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349010', 'tblTempUsageDetail_20' ) start [2025-01-28 12:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349010', 'tblTempUsageDetail_20' ) end [2025-01-28 12:32:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:32:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:32:35] Production.INFO: ==4122== Releasing lock... [2025-01-28 12:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:32:35] Production.INFO: 67.25 MB #Memory Used# [2025-01-28 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:33:05 [end_date_ymd] => 2025-01-28 12:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:33:05' and `end` < '2025-01-28 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-28 12:33:27] Production.INFO: count ==5226 [2025-01-28 12:33:29] Production.ERROR: pbx CDR StartTime 2025-01-28 09:33:05 - End Time 2025-01-28 12:33:05 [2025-01-28 12:33:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349015', 'tblTempUsageDetail_20' ) start [2025-01-28 12:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349015', 'tblTempUsageDetail_20' ) end [2025-01-28 12:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349015', 'tblTempVendorCDR_20' ) start [2025-01-28 12:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349015', 'tblTempVendorCDR_20' ) end [2025-01-28 12:33:29] Production.INFO: ProcessCDR(1,14349015,1,1,2) [2025-01-28 12:33:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:33:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349015', 'tblTempUsageDetail_20' ) start [2025-01-28 12:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349015', 'tblTempUsageDetail_20' ) end [2025-01-28 12:33:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:33:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:33:35] Production.INFO: ==4191== Releasing lock... [2025-01-28 12:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:33:35] Production.INFO: 67.25 MB #Memory Used# [2025-01-28 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:34:06 [end_date_ymd] => 2025-01-28 12:34:06 [RateCDR] => 1 ) [2025-01-28 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:34:06' and `end` < '2025-01-28 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:34:26] Production.INFO: count ==5229 [2025-01-28 12:34:28] Production.ERROR: pbx CDR StartTime 2025-01-28 09:34:06 - End Time 2025-01-28 12:34:06 [2025-01-28 12:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349020', 'tblTempUsageDetail_20' ) start [2025-01-28 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349020', 'tblTempUsageDetail_20' ) end [2025-01-28 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349020', 'tblTempVendorCDR_20' ) start [2025-01-28 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349020', 'tblTempVendorCDR_20' ) end [2025-01-28 12:34:28] Production.INFO: ProcessCDR(1,14349020,1,1,2) [2025-01-28 12:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349020', 'tblTempUsageDetail_20' ) start [2025-01-28 12:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349020', 'tblTempUsageDetail_20' ) end [2025-01-28 12:34:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:34:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:34:33] Production.INFO: ==4266== Releasing lock... [2025-01-28 12:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:34:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-28 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:35:05 [end_date_ymd] => 2025-01-28 12:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:35:05' and `end` < '2025-01-28 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-28 12:35:22] Production.INFO: count ==5247 [2025-01-28 12:35:25] Production.ERROR: pbx CDR StartTime 2025-01-28 09:35:05 - End Time 2025-01-28 12:35:05 [2025-01-28 12:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349025', 'tblTempUsageDetail_20' ) start [2025-01-28 12:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349025', 'tblTempUsageDetail_20' ) end [2025-01-28 12:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349025', 'tblTempVendorCDR_20' ) start [2025-01-28 12:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349025', 'tblTempVendorCDR_20' ) end [2025-01-28 12:35:25] Production.INFO: ProcessCDR(1,14349025,1,1,2) [2025-01-28 12:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349025', 'tblTempUsageDetail_20' ) start [2025-01-28 12:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349025', 'tblTempUsageDetail_20' ) end [2025-01-28 12:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:35:30] Production.INFO: ==4340== Releasing lock... [2025-01-28 12:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:35:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-28 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:36:05 [end_date_ymd] => 2025-01-28 12:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:36:05' and `end` < '2025-01-28 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-28 12:36:26] Production.INFO: count ==5244 [2025-01-28 12:36:29] Production.ERROR: pbx CDR StartTime 2025-01-28 09:36:05 - End Time 2025-01-28 12:36:05 [2025-01-28 12:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349030', 'tblTempUsageDetail_20' ) start [2025-01-28 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349030', 'tblTempUsageDetail_20' ) end [2025-01-28 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349030', 'tblTempVendorCDR_20' ) start [2025-01-28 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349030', 'tblTempVendorCDR_20' ) end [2025-01-28 12:36:29] Production.INFO: ProcessCDR(1,14349030,1,1,2) [2025-01-28 12:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349030', 'tblTempUsageDetail_20' ) start [2025-01-28 12:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349030', 'tblTempUsageDetail_20' ) end [2025-01-28 12:36:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:36:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:36:34] Production.INFO: ==4412== Releasing lock... [2025-01-28 12:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:36:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-28 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:37:05 [end_date_ymd] => 2025-01-28 12:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:37:05' and `end` < '2025-01-28 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-28 12:37:28] Production.INFO: count ==5254 [2025-01-28 12:37:30] Production.ERROR: pbx CDR StartTime 2025-01-28 09:37:05 - End Time 2025-01-28 12:37:05 [2025-01-28 12:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349035', 'tblTempUsageDetail_20' ) start [2025-01-28 12:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349035', 'tblTempUsageDetail_20' ) end [2025-01-28 12:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349035', 'tblTempVendorCDR_20' ) start [2025-01-28 12:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349035', 'tblTempVendorCDR_20' ) end [2025-01-28 12:37:30] Production.INFO: ProcessCDR(1,14349035,1,1,2) [2025-01-28 12:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349035', 'tblTempUsageDetail_20' ) start [2025-01-28 12:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349035', 'tblTempUsageDetail_20' ) end [2025-01-28 12:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:37:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:37:36] Production.INFO: ==4525== Releasing lock... [2025-01-28 12:37:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:37:36] Production.INFO: 67.5 MB #Memory Used# [2025-01-28 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:38:06 [end_date_ymd] => 2025-01-28 12:38:06 [RateCDR] => 1 ) [2025-01-28 12: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-28 09:38:06' and `end` < '2025-01-28 12: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-28 12:38:24] Production.INFO: count ==5245 [2025-01-28 12:38:26] Production.ERROR: pbx CDR StartTime 2025-01-28 09:38:06 - End Time 2025-01-28 12:38:06 [2025-01-28 12:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349040', 'tblTempUsageDetail_20' ) start [2025-01-28 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349040', 'tblTempUsageDetail_20' ) end [2025-01-28 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349040', 'tblTempVendorCDR_20' ) start [2025-01-28 12:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349040', 'tblTempVendorCDR_20' ) end [2025-01-28 12:38:27] Production.INFO: ProcessCDR(1,14349040,1,1,2) [2025-01-28 12:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349040', 'tblTempUsageDetail_20' ) start [2025-01-28 12:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349040', 'tblTempUsageDetail_20' ) end [2025-01-28 12:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:38:32] Production.INFO: ==4604== Releasing lock... [2025-01-28 12:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:38:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-28 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:39:05 [end_date_ymd] => 2025-01-28 12:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:39:05' and `end` < '2025-01-28 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-28 12:39:28] Production.INFO: count ==5244 [2025-01-28 12:39:30] Production.ERROR: pbx CDR StartTime 2025-01-28 09:39:05 - End Time 2025-01-28 12:39:05 [2025-01-28 12:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349045', 'tblTempUsageDetail_20' ) start [2025-01-28 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349045', 'tblTempUsageDetail_20' ) end [2025-01-28 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349045', 'tblTempVendorCDR_20' ) start [2025-01-28 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349045', 'tblTempVendorCDR_20' ) end [2025-01-28 12:39:30] Production.INFO: ProcessCDR(1,14349045,1,1,2) [2025-01-28 12:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349045', 'tblTempUsageDetail_20' ) start [2025-01-28 12:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349045', 'tblTempUsageDetail_20' ) end [2025-01-28 12:39:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:39:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:39:36] Production.INFO: ==4679== Releasing lock... [2025-01-28 12:39:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:39:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-28 12:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:40:07 [end_date_ymd] => 2025-01-28 12:40:07 [RateCDR] => 1 ) [2025-01-28 12:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:40:07' and `end` < '2025-01-28 12:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:40:38] Production.INFO: count ==5257 [2025-01-28 12:40:40] Production.ERROR: pbx CDR StartTime 2025-01-28 09:40:07 - End Time 2025-01-28 12:40:07 [2025-01-28 12:40:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:40:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349051', 'tblTempUsageDetail_20' ) start [2025-01-28 12:40:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349051', 'tblTempUsageDetail_20' ) end [2025-01-28 12:40:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349051', 'tblTempVendorCDR_20' ) start [2025-01-28 12:40:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349051', 'tblTempVendorCDR_20' ) end [2025-01-28 12:40:40] Production.INFO: ProcessCDR(1,14349051,1,1,2) [2025-01-28 12:40:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:40:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:40:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:40:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:40:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349051', 'tblTempUsageDetail_20' ) start [2025-01-28 12:40:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349051', 'tblTempUsageDetail_20' ) end [2025-01-28 12:40:45] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:40:45] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:40:45] Production.INFO: ==4754== Releasing lock... [2025-01-28 12:40:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:40:45] Production.INFO: 67.5 MB #Memory Used# [2025-01-28 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:41:05 [end_date_ymd] => 2025-01-28 12:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:41:05' and `end` < '2025-01-28 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-28 12:41:27] Production.INFO: count ==5270 [2025-01-28 12:41:29] Production.ERROR: pbx CDR StartTime 2025-01-28 09:41:05 - End Time 2025-01-28 12:41:05 [2025-01-28 12:41:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349056', 'tblTempUsageDetail_20' ) start [2025-01-28 12:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349056', 'tblTempUsageDetail_20' ) end [2025-01-28 12:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349056', 'tblTempVendorCDR_20' ) start [2025-01-28 12:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349056', 'tblTempVendorCDR_20' ) end [2025-01-28 12:41:29] Production.INFO: ProcessCDR(1,14349056,1,1,2) [2025-01-28 12:41:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349056', 'tblTempUsageDetail_20' ) start [2025-01-28 12:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349056', 'tblTempUsageDetail_20' ) end [2025-01-28 12:41:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:41:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:41:35] Production.INFO: ==4832== Releasing lock... [2025-01-28 12:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:41:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-28 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:42:05 [end_date_ymd] => 2025-01-28 12:42:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:42:05' and `end` < '2025-01-28 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-28 12:42:30] Production.INFO: count ==5288 [2025-01-28 12:42:32] Production.ERROR: pbx CDR StartTime 2025-01-28 09:42:05 - End Time 2025-01-28 12:42:05 [2025-01-28 12:42:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349061', 'tblTempUsageDetail_20' ) start [2025-01-28 12:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349061', 'tblTempUsageDetail_20' ) end [2025-01-28 12:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349061', 'tblTempVendorCDR_20' ) start [2025-01-28 12:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349061', 'tblTempVendorCDR_20' ) end [2025-01-28 12:42:32] Production.INFO: ProcessCDR(1,14349061,1,1,2) [2025-01-28 12:42:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:42:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:42:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:42:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:42:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349061', 'tblTempUsageDetail_20' ) start [2025-01-28 12:42:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349061', 'tblTempUsageDetail_20' ) end [2025-01-28 12:42:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:42:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:42:38] Production.INFO: ==4907== Releasing lock... [2025-01-28 12:42:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:42:38] Production.INFO: 67.75 MB #Memory Used# [2025-01-28 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:43:05 [end_date_ymd] => 2025-01-28 12:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:43:05' and `end` < '2025-01-28 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-28 12:43:27] Production.INFO: count ==5306 [2025-01-28 12:43:29] Production.ERROR: pbx CDR StartTime 2025-01-28 09:43:05 - End Time 2025-01-28 12:43:05 [2025-01-28 12:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349066', 'tblTempUsageDetail_20' ) start [2025-01-28 12:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349066', 'tblTempUsageDetail_20' ) end [2025-01-28 12:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349066', 'tblTempVendorCDR_20' ) start [2025-01-28 12:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349066', 'tblTempVendorCDR_20' ) end [2025-01-28 12:43:30] Production.INFO: ProcessCDR(1,14349066,1,1,2) [2025-01-28 12:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349066', 'tblTempUsageDetail_20' ) start [2025-01-28 12:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349066', 'tblTempUsageDetail_20' ) end [2025-01-28 12:43:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:43:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:43:34] Production.INFO: ==4977== Releasing lock... [2025-01-28 12:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:43:34] Production.INFO: 67.75 MB #Memory Used# [2025-01-28 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:44:06 [end_date_ymd] => 2025-01-28 12:44:06 [RateCDR] => 1 ) [2025-01-28 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:44:06' and `end` < '2025-01-28 12:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:44:25] Production.INFO: count ==5316 [2025-01-28 12:44:27] Production.ERROR: pbx CDR StartTime 2025-01-28 09:44:06 - End Time 2025-01-28 12:44:06 [2025-01-28 12:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349071', 'tblTempUsageDetail_20' ) start [2025-01-28 12:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349071', 'tblTempUsageDetail_20' ) end [2025-01-28 12:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349071', 'tblTempVendorCDR_20' ) start [2025-01-28 12:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349071', 'tblTempVendorCDR_20' ) end [2025-01-28 12:44:27] Production.INFO: ProcessCDR(1,14349071,1,1,2) [2025-01-28 12:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349071', 'tblTempUsageDetail_20' ) start [2025-01-28 12:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349071', 'tblTempUsageDetail_20' ) end [2025-01-28 12:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:44:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:44:32] Production.INFO: ==5050== Releasing lock... [2025-01-28 12:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:44:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-28 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:45:05 [end_date_ymd] => 2025-01-28 12:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:45:05' and `end` < '2025-01-28 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-28 12:45:24] Production.INFO: count ==5313 [2025-01-28 12:45:26] Production.ERROR: pbx CDR StartTime 2025-01-28 09:45:05 - End Time 2025-01-28 12:45:05 [2025-01-28 12:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349076', 'tblTempUsageDetail_20' ) start [2025-01-28 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349076', 'tblTempUsageDetail_20' ) end [2025-01-28 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349076', 'tblTempVendorCDR_20' ) start [2025-01-28 12:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349076', 'tblTempVendorCDR_20' ) end [2025-01-28 12:45:26] Production.INFO: ProcessCDR(1,14349076,1,1,2) [2025-01-28 12:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349076', 'tblTempUsageDetail_20' ) start [2025-01-28 12:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349076', 'tblTempUsageDetail_20' ) end [2025-01-28 12:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:45:30] Production.INFO: ==5126== Releasing lock... [2025-01-28 12:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:45:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-28 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:46:05 [end_date_ymd] => 2025-01-28 12:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:46:05' and `end` < '2025-01-28 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-28 12:46:24] Production.INFO: count ==5327 [2025-01-28 12:46:26] Production.ERROR: pbx CDR StartTime 2025-01-28 09:46:05 - End Time 2025-01-28 12:46:05 [2025-01-28 12:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349078', 'tblTempUsageDetail_20' ) start [2025-01-28 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349078', 'tblTempUsageDetail_20' ) end [2025-01-28 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349078', 'tblTempVendorCDR_20' ) start [2025-01-28 12:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349078', 'tblTempVendorCDR_20' ) end [2025-01-28 12:46:26] Production.INFO: ProcessCDR(1,14349078,1,1,2) [2025-01-28 12:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349078', 'tblTempUsageDetail_20' ) start [2025-01-28 12:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349078', 'tblTempUsageDetail_20' ) end [2025-01-28 12:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:46:31] Production.INFO: ==5201== Releasing lock... [2025-01-28 12:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:46:31] Production.INFO: 68 MB #Memory Used# [2025-01-28 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:47:04 [end_date_ymd] => 2025-01-28 12:47:04 [RateCDR] => 1 ) [2025-01-28 12:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:47:04' and `end` < '2025-01-28 12:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:47:26] Production.INFO: count ==5357 [2025-01-28 12:47:28] Production.ERROR: pbx CDR StartTime 2025-01-28 09:47:04 - End Time 2025-01-28 12:47:04 [2025-01-28 12:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349086', 'tblTempUsageDetail_20' ) start [2025-01-28 12:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349086', 'tblTempUsageDetail_20' ) end [2025-01-28 12:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349086', 'tblTempVendorCDR_20' ) start [2025-01-28 12:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349086', 'tblTempVendorCDR_20' ) end [2025-01-28 12:47:29] Production.INFO: ProcessCDR(1,14349086,1,1,2) [2025-01-28 12:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349086', 'tblTempUsageDetail_20' ) start [2025-01-28 12:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349086', 'tblTempUsageDetail_20' ) end [2025-01-28 12:47:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:47:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:47:34] Production.INFO: ==5272== Releasing lock... [2025-01-28 12:47:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:47:34] Production.INFO: 68.25 MB #Memory Used# [2025-01-28 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:48:05 [end_date_ymd] => 2025-01-28 12:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:48:05' and `end` < '2025-01-28 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-28 12:48:33] Production.INFO: count ==5369 [2025-01-28 12:48:35] Production.ERROR: pbx CDR StartTime 2025-01-28 09:48:05 - End Time 2025-01-28 12:48:05 [2025-01-28 12:48:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349091', 'tblTempUsageDetail_20' ) start [2025-01-28 12:48:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349091', 'tblTempUsageDetail_20' ) end [2025-01-28 12:48:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349091', 'tblTempVendorCDR_20' ) start [2025-01-28 12:48:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349091', 'tblTempVendorCDR_20' ) end [2025-01-28 12:48:36] Production.INFO: ProcessCDR(1,14349091,1,1,2) [2025-01-28 12:48:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:48:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:48:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:48:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:48:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349091', 'tblTempUsageDetail_20' ) start [2025-01-28 12:48:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349091', 'tblTempUsageDetail_20' ) end [2025-01-28 12:48:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:48:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:48:41] Production.INFO: ==5343== Releasing lock... [2025-01-28 12:48:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:48:41] Production.INFO: 68.25 MB #Memory Used# [2025-01-28 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:49:05 [end_date_ymd] => 2025-01-28 12:49:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:49:05' and `end` < '2025-01-28 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-28 12:49:27] Production.INFO: count ==5371 [2025-01-28 12:49:29] Production.ERROR: pbx CDR StartTime 2025-01-28 09:49:05 - End Time 2025-01-28 12:49:05 [2025-01-28 12:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349096', 'tblTempUsageDetail_20' ) start [2025-01-28 12:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349096', 'tblTempUsageDetail_20' ) end [2025-01-28 12:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349096', 'tblTempVendorCDR_20' ) start [2025-01-28 12:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349096', 'tblTempVendorCDR_20' ) end [2025-01-28 12:49:29] Production.INFO: ProcessCDR(1,14349096,1,1,2) [2025-01-28 12:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:49:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349096', 'tblTempUsageDetail_20' ) start [2025-01-28 12:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349096', 'tblTempUsageDetail_20' ) end [2025-01-28 12:49:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:49:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:49:33] Production.INFO: ==5413== Releasing lock... [2025-01-28 12:49:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:49:33] Production.INFO: 68.25 MB #Memory Used# [2025-01-28 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:50:06 [end_date_ymd] => 2025-01-28 12:50:06 [RateCDR] => 1 ) [2025-01-28 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-28 09:50:06' and `end` < '2025-01-28 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-28 12:50:28] Production.INFO: count ==5391 [2025-01-28 12:50:30] Production.ERROR: pbx CDR StartTime 2025-01-28 09:50:06 - End Time 2025-01-28 12:50:06 [2025-01-28 12:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349102', 'tblTempUsageDetail_20' ) start [2025-01-28 12:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349102', 'tblTempUsageDetail_20' ) end [2025-01-28 12:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349102', 'tblTempVendorCDR_20' ) start [2025-01-28 12:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349102', 'tblTempVendorCDR_20' ) end [2025-01-28 12:50:30] Production.INFO: ProcessCDR(1,14349102,1,1,2) [2025-01-28 12:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349102', 'tblTempUsageDetail_20' ) start [2025-01-28 12:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349102', 'tblTempUsageDetail_20' ) end [2025-01-28 12:50:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:50:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:50:35] Production.INFO: ==5490== Releasing lock... [2025-01-28 12:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:50:35] Production.INFO: 68.5 MB #Memory Used# [2025-01-28 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:51:05 [end_date_ymd] => 2025-01-28 12:51:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:51:05' and `end` < '2025-01-28 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-28 12:51:28] Production.INFO: count ==5438 [2025-01-28 12:51:30] Production.ERROR: pbx CDR StartTime 2025-01-28 09:51:05 - End Time 2025-01-28 12:51:05 [2025-01-28 12:51:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349107', 'tblTempUsageDetail_20' ) start [2025-01-28 12:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349107', 'tblTempUsageDetail_20' ) end [2025-01-28 12:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349107', 'tblTempVendorCDR_20' ) start [2025-01-28 12:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349107', 'tblTempVendorCDR_20' ) end [2025-01-28 12:51:30] Production.INFO: ProcessCDR(1,14349107,1,1,2) [2025-01-28 12:51:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:51:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349107', 'tblTempUsageDetail_20' ) start [2025-01-28 12:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349107', 'tblTempUsageDetail_20' ) end [2025-01-28 12:51:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:51:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:51:35] Production.INFO: ==5567== Releasing lock... [2025-01-28 12:51:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:51:35] Production.INFO: 68.75 MB #Memory Used# [2025-01-28 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:52:05 [end_date_ymd] => 2025-01-28 12:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:52:05' and `end` < '2025-01-28 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-28 12:52:25] Production.INFO: count ==5445 [2025-01-28 12:52:27] Production.ERROR: pbx CDR StartTime 2025-01-28 09:52:05 - End Time 2025-01-28 12:52:05 [2025-01-28 12:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349112', 'tblTempUsageDetail_20' ) start [2025-01-28 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349112', 'tblTempUsageDetail_20' ) end [2025-01-28 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349112', 'tblTempVendorCDR_20' ) start [2025-01-28 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349112', 'tblTempVendorCDR_20' ) end [2025-01-28 12:52:28] Production.INFO: ProcessCDR(1,14349112,1,1,2) [2025-01-28 12:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349112', 'tblTempUsageDetail_20' ) start [2025-01-28 12:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349112', 'tblTempUsageDetail_20' ) end [2025-01-28 12:52:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:52:32] Production.INFO: ==5677== Releasing lock... [2025-01-28 12:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:52:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-28 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:53:06 [end_date_ymd] => 2025-01-28 12:53:06 [RateCDR] => 1 ) [2025-01-28 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-28 09:53:06' and `end` < '2025-01-28 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-28 12:53:23] Production.INFO: count ==5453 [2025-01-28 12:53:25] Production.ERROR: pbx CDR StartTime 2025-01-28 09:53:06 - End Time 2025-01-28 12:53:06 [2025-01-28 12:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349117', 'tblTempUsageDetail_20' ) start [2025-01-28 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349117', 'tblTempUsageDetail_20' ) end [2025-01-28 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349117', 'tblTempVendorCDR_20' ) start [2025-01-28 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349117', 'tblTempVendorCDR_20' ) end [2025-01-28 12:53:25] Production.INFO: ProcessCDR(1,14349117,1,1,2) [2025-01-28 12:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349117', 'tblTempUsageDetail_20' ) start [2025-01-28 12:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349117', 'tblTempUsageDetail_20' ) end [2025-01-28 12:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:53:31] Production.INFO: ==5750== Releasing lock... [2025-01-28 12:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:53:31] Production.INFO: 69 MB #Memory Used# [2025-01-28 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:54:05 [end_date_ymd] => 2025-01-28 12:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 09:54:05' and `end` < '2025-01-28 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-28 12:54:26] Production.INFO: count ==5474 [2025-01-28 12:54:28] Production.ERROR: pbx CDR StartTime 2025-01-28 09:54:05 - End Time 2025-01-28 12:54:05 [2025-01-28 12:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349122', 'tblTempUsageDetail_20' ) start [2025-01-28 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349122', 'tblTempUsageDetail_20' ) end [2025-01-28 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349122', 'tblTempVendorCDR_20' ) start [2025-01-28 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349122', 'tblTempVendorCDR_20' ) end [2025-01-28 12:54:28] Production.INFO: ProcessCDR(1,14349122,1,1,2) [2025-01-28 12:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349122', 'tblTempUsageDetail_20' ) start [2025-01-28 12:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349122', 'tblTempUsageDetail_20' ) end [2025-01-28 12:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:54:33] Production.INFO: ==5838== Releasing lock... [2025-01-28 12:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:54:33] Production.INFO: 69 MB #Memory Used# [2025-01-28 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:55:06 [end_date_ymd] => 2025-01-28 12:55:06 [RateCDR] => 1 ) [2025-01-28 12: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-28 09:55:06' and `end` < '2025-01-28 12: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-28 12:55:24] Production.INFO: count ==5480 [2025-01-28 12:55:26] Production.ERROR: pbx CDR StartTime 2025-01-28 09:55:06 - End Time 2025-01-28 12:55:06 [2025-01-28 12:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349127', 'tblTempUsageDetail_20' ) start [2025-01-28 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349127', 'tblTempUsageDetail_20' ) end [2025-01-28 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349127', 'tblTempVendorCDR_20' ) start [2025-01-28 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349127', 'tblTempVendorCDR_20' ) end [2025-01-28 12:55:26] Production.INFO: ProcessCDR(1,14349127,1,1,2) [2025-01-28 12:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349127', 'tblTempUsageDetail_20' ) start [2025-01-28 12:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349127', 'tblTempUsageDetail_20' ) end [2025-01-28 12:55:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:55:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:55:32] Production.INFO: ==5916== Releasing lock... [2025-01-28 12:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:55:32] Production.INFO: 69 MB #Memory Used# [2025-01-28 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:56:05 [end_date_ymd] => 2025-01-28 12:56:05 [RateCDR] => 1 ) [2025-01-28 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:56:05' and `end` < '2025-01-28 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:56:31] Production.INFO: count ==5482 [2025-01-28 12:56:33] Production.ERROR: pbx CDR StartTime 2025-01-28 09:56:05 - End Time 2025-01-28 12:56:05 [2025-01-28 12:56:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349132', 'tblTempUsageDetail_20' ) start [2025-01-28 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349132', 'tblTempUsageDetail_20' ) end [2025-01-28 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349132', 'tblTempVendorCDR_20' ) start [2025-01-28 12:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349132', 'tblTempVendorCDR_20' ) end [2025-01-28 12:56:33] Production.INFO: ProcessCDR(1,14349132,1,1,2) [2025-01-28 12:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:56:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:56:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:56:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349132', 'tblTempUsageDetail_20' ) start [2025-01-28 12:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349132', 'tblTempUsageDetail_20' ) end [2025-01-28 12:56:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:56:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:56:39] Production.INFO: ==5988== Releasing lock... [2025-01-28 12:56:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:56:39] Production.INFO: 69 MB #Memory Used# [2025-01-28 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:57:04 [end_date_ymd] => 2025-01-28 12:57:04 [RateCDR] => 1 ) [2025-01-28 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-28 09:57:04' and `end` < '2025-01-28 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-28 12:57:23] Production.INFO: count ==5488 [2025-01-28 12:57:26] Production.ERROR: pbx CDR StartTime 2025-01-28 09:57:04 - End Time 2025-01-28 12:57:04 [2025-01-28 12:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349137', 'tblTempUsageDetail_20' ) start [2025-01-28 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349137', 'tblTempUsageDetail_20' ) end [2025-01-28 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349137', 'tblTempVendorCDR_20' ) start [2025-01-28 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349137', 'tblTempVendorCDR_20' ) end [2025-01-28 12:57:26] Production.INFO: ProcessCDR(1,14349137,1,1,2) [2025-01-28 12:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349137', 'tblTempUsageDetail_20' ) start [2025-01-28 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349137', 'tblTempUsageDetail_20' ) end [2025-01-28 12:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:57:31] Production.INFO: ==6058== Releasing lock... [2025-01-28 12:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:57:31] Production.INFO: 69.25 MB #Memory Used# [2025-01-28 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:58:06 [end_date_ymd] => 2025-01-28 12:58:06 [RateCDR] => 1 ) [2025-01-28 12: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-28 09:58:06' and `end` < '2025-01-28 12: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-28 12:58:26] Production.INFO: count ==5487 [2025-01-28 12:58:28] Production.ERROR: pbx CDR StartTime 2025-01-28 09:58:06 - End Time 2025-01-28 12:58:06 [2025-01-28 12:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349142', 'tblTempUsageDetail_20' ) start [2025-01-28 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349142', 'tblTempUsageDetail_20' ) end [2025-01-28 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349142', 'tblTempVendorCDR_20' ) start [2025-01-28 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349142', 'tblTempVendorCDR_20' ) end [2025-01-28 12:58:28] Production.INFO: ProcessCDR(1,14349142,1,1,2) [2025-01-28 12:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349142', 'tblTempUsageDetail_20' ) start [2025-01-28 12:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349142', 'tblTempUsageDetail_20' ) end [2025-01-28 12:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:58:33] Production.INFO: ==6130== Releasing lock... [2025-01-28 12:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:58:33] Production.INFO: 69.25 MB #Memory Used# [2025-01-28 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 09:59:04 [end_date_ymd] => 2025-01-28 12:59:04 [RateCDR] => 1 ) [2025-01-28 12:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 09:59:04' and `end` < '2025-01-28 12:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 12:59:21] Production.INFO: count ==5489 [2025-01-28 12:59:24] Production.ERROR: pbx CDR StartTime 2025-01-28 09:59:04 - End Time 2025-01-28 12:59:04 [2025-01-28 12:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 12:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349147', 'tblTempUsageDetail_20' ) start [2025-01-28 12:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349147', 'tblTempUsageDetail_20' ) end [2025-01-28 12:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349147', 'tblTempVendorCDR_20' ) start [2025-01-28 12:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349147', 'tblTempVendorCDR_20' ) end [2025-01-28 12:59:24] Production.INFO: ProcessCDR(1,14349147,1,1,2) [2025-01-28 12:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 12:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349147', 'tblTempUsageDetail_20' ) start [2025-01-28 12:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349147', 'tblTempUsageDetail_20' ) end [2025-01-28 12:59:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 12:59:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 12:59:29] Production.INFO: ==6200== Releasing lock... [2025-01-28 12:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 12:59:29] Production.INFO: 69.25 MB #Memory Used# [2025-01-28 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:00:06 [end_date_ymd] => 2025-01-28 13:00:06 [RateCDR] => 1 ) [2025-01-28 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:00:06' and `end` < '2025-01-28 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:00:25] Production.INFO: count ==5488 [2025-01-28 13:00:27] Production.ERROR: pbx CDR StartTime 2025-01-28 10:00:06 - End Time 2025-01-28 13:00:06 [2025-01-28 13:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349153', 'tblTempUsageDetail_20' ) start [2025-01-28 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349153', 'tblTempUsageDetail_20' ) end [2025-01-28 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349153', 'tblTempVendorCDR_20' ) start [2025-01-28 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349153', 'tblTempVendorCDR_20' ) end [2025-01-28 13:00:27] Production.INFO: ProcessCDR(1,14349153,1,1,2) [2025-01-28 13:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349153', 'tblTempUsageDetail_20' ) start [2025-01-28 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349153', 'tblTempUsageDetail_20' ) end [2025-01-28 13:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:00:32] Production.INFO: ==6280== Releasing lock... [2025-01-28 13:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:00:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-28 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:01:05 [end_date_ymd] => 2025-01-28 13:01:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:01:05' and `end` < '2025-01-28 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-28 13:01:27] Production.INFO: count ==5517 [2025-01-28 13:01:29] Production.ERROR: pbx CDR StartTime 2025-01-28 10:01:05 - End Time 2025-01-28 13:01:05 [2025-01-28 13:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349158', 'tblTempUsageDetail_20' ) start [2025-01-28 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349158', 'tblTempUsageDetail_20' ) end [2025-01-28 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349158', 'tblTempVendorCDR_20' ) start [2025-01-28 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349158', 'tblTempVendorCDR_20' ) end [2025-01-28 13:01:29] Production.INFO: ProcessCDR(1,14349158,1,1,2) [2025-01-28 13:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349158', 'tblTempUsageDetail_20' ) start [2025-01-28 13:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349158', 'tblTempUsageDetail_20' ) end [2025-01-28 13:01:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:01:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:01:34] Production.INFO: ==6365== Releasing lock... [2025-01-28 13:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:01:34] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:02:05 [end_date_ymd] => 2025-01-28 13:02:05 [RateCDR] => 1 ) [2025-01-28 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:02:05' and `end` < '2025-01-28 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:02:30] Production.INFO: count ==5513 [2025-01-28 13:02:32] Production.ERROR: pbx CDR StartTime 2025-01-28 10:02:05 - End Time 2025-01-28 13:02:05 [2025-01-28 13:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349163', 'tblTempUsageDetail_20' ) start [2025-01-28 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349163', 'tblTempUsageDetail_20' ) end [2025-01-28 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349163', 'tblTempVendorCDR_20' ) start [2025-01-28 13:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349163', 'tblTempVendorCDR_20' ) end [2025-01-28 13:02:32] Production.INFO: ProcessCDR(1,14349163,1,1,2) [2025-01-28 13:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:02:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:02:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349163', 'tblTempUsageDetail_20' ) start [2025-01-28 13:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349163', 'tblTempUsageDetail_20' ) end [2025-01-28 13:02:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:02:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:02:37] Production.INFO: ==6441== Releasing lock... [2025-01-28 13:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:02:37] Production.INFO: 69.25 MB #Memory Used# [2025-01-28 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:03:05 [end_date_ymd] => 2025-01-28 13:03:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:03:05' and `end` < '2025-01-28 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-28 13:03:26] Production.INFO: count ==5526 [2025-01-28 13:03:29] Production.ERROR: pbx CDR StartTime 2025-01-28 10:03:05 - End Time 2025-01-28 13:03:05 [2025-01-28 13:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349168', 'tblTempUsageDetail_20' ) start [2025-01-28 13:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349168', 'tblTempUsageDetail_20' ) end [2025-01-28 13:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349168', 'tblTempVendorCDR_20' ) start [2025-01-28 13:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349168', 'tblTempVendorCDR_20' ) end [2025-01-28 13:03:29] Production.INFO: ProcessCDR(1,14349168,1,1,2) [2025-01-28 13:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349168', 'tblTempUsageDetail_20' ) start [2025-01-28 13:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349168', 'tblTempUsageDetail_20' ) end [2025-01-28 13:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:03:34] Production.INFO: ==6514== Releasing lock... [2025-01-28 13:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:03:34] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:04:06 [end_date_ymd] => 2025-01-28 13:04:06 [RateCDR] => 1 ) [2025-01-28 13: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-28 10:04:06' and `end` < '2025-01-28 13: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-28 13:04:24] Production.INFO: count ==5536 [2025-01-28 13:04:27] Production.ERROR: pbx CDR StartTime 2025-01-28 10:04:06 - End Time 2025-01-28 13:04:06 [2025-01-28 13:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349173', 'tblTempUsageDetail_20' ) start [2025-01-28 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349173', 'tblTempUsageDetail_20' ) end [2025-01-28 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349173', 'tblTempVendorCDR_20' ) start [2025-01-28 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349173', 'tblTempVendorCDR_20' ) end [2025-01-28 13:04:27] Production.INFO: ProcessCDR(1,14349173,1,1,2) [2025-01-28 13:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349173', 'tblTempUsageDetail_20' ) start [2025-01-28 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349173', 'tblTempUsageDetail_20' ) end [2025-01-28 13:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:04:32] Production.INFO: ==6593== Releasing lock... [2025-01-28 13:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:04:32] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:05:05 [end_date_ymd] => 2025-01-28 13:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:05:05' and `end` < '2025-01-28 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-28 13:05:35] Production.INFO: count ==5537 [2025-01-28 13:05:38] Production.ERROR: pbx CDR StartTime 2025-01-28 10:05:05 - End Time 2025-01-28 13:05:05 [2025-01-28 13:05:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349178', 'tblTempUsageDetail_20' ) start [2025-01-28 13:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349178', 'tblTempUsageDetail_20' ) end [2025-01-28 13:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349178', 'tblTempVendorCDR_20' ) start [2025-01-28 13:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349178', 'tblTempVendorCDR_20' ) end [2025-01-28 13:05:38] Production.INFO: ProcessCDR(1,14349178,1,1,2) [2025-01-28 13:05:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:05:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:05:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:05:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349178', 'tblTempUsageDetail_20' ) start [2025-01-28 13:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349178', 'tblTempUsageDetail_20' ) end [2025-01-28 13:05:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:05:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:05:43] Production.INFO: ==6668== Releasing lock... [2025-01-28 13:05:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:05:43] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:06:05 [end_date_ymd] => 2025-01-28 13:06:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:06:05' and `end` < '2025-01-28 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-28 13:06:31] Production.INFO: count ==5551 [2025-01-28 13:06:34] Production.ERROR: pbx CDR StartTime 2025-01-28 10:06:05 - End Time 2025-01-28 13:06:05 [2025-01-28 13:06:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349183', 'tblTempUsageDetail_20' ) start [2025-01-28 13:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349183', 'tblTempUsageDetail_20' ) end [2025-01-28 13:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349183', 'tblTempVendorCDR_20' ) start [2025-01-28 13:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349183', 'tblTempVendorCDR_20' ) end [2025-01-28 13:06:34] Production.INFO: ProcessCDR(1,14349183,1,1,2) [2025-01-28 13:06:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:06:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:06:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349183', 'tblTempUsageDetail_20' ) start [2025-01-28 13:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349183', 'tblTempUsageDetail_20' ) end [2025-01-28 13:06:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:06:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:06:39] Production.INFO: ==6740== Releasing lock... [2025-01-28 13:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:06:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:07:05 [end_date_ymd] => 2025-01-28 13:07:05 [RateCDR] => 1 ) [2025-01-28 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:07:05' and `end` < '2025-01-28 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:07:27] Production.INFO: count ==5546 [2025-01-28 13:07:29] Production.ERROR: pbx CDR StartTime 2025-01-28 10:07:05 - End Time 2025-01-28 13:07:05 [2025-01-28 13:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349188', 'tblTempUsageDetail_20' ) start [2025-01-28 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349188', 'tblTempUsageDetail_20' ) end [2025-01-28 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349188', 'tblTempVendorCDR_20' ) start [2025-01-28 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349188', 'tblTempVendorCDR_20' ) end [2025-01-28 13:07:29] Production.INFO: ProcessCDR(1,14349188,1,1,2) [2025-01-28 13:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349188', 'tblTempUsageDetail_20' ) start [2025-01-28 13:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349188', 'tblTempUsageDetail_20' ) end [2025-01-28 13:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:07:34] Production.INFO: ==6852== Releasing lock... [2025-01-28 13:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:07:34] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:08:05 [end_date_ymd] => 2025-01-28 13:08:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:08:05' and `end` < '2025-01-28 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-28 13:08:27] Production.INFO: count ==5542 [2025-01-28 13:08:29] Production.ERROR: pbx CDR StartTime 2025-01-28 10:08:05 - End Time 2025-01-28 13:08:05 [2025-01-28 13:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349193', 'tblTempUsageDetail_20' ) start [2025-01-28 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349193', 'tblTempUsageDetail_20' ) end [2025-01-28 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349193', 'tblTempVendorCDR_20' ) start [2025-01-28 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349193', 'tblTempVendorCDR_20' ) end [2025-01-28 13:08:29] Production.INFO: ProcessCDR(1,14349193,1,1,2) [2025-01-28 13:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:08:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:08:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:08:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349193', 'tblTempUsageDetail_20' ) start [2025-01-28 13:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349193', 'tblTempUsageDetail_20' ) end [2025-01-28 13:08:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:08:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:08:34] Production.INFO: ==6929== Releasing lock... [2025-01-28 13:08:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:08:34] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:09:06 [end_date_ymd] => 2025-01-28 13:09:06 [RateCDR] => 1 ) [2025-01-28 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:09:06' and `end` < '2025-01-28 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:09:25] Production.INFO: count ==5541 [2025-01-28 13:09:27] Production.ERROR: pbx CDR StartTime 2025-01-28 10:09:06 - End Time 2025-01-28 13:09:06 [2025-01-28 13:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349198', 'tblTempUsageDetail_20' ) start [2025-01-28 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349198', 'tblTempUsageDetail_20' ) end [2025-01-28 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349198', 'tblTempVendorCDR_20' ) start [2025-01-28 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349198', 'tblTempVendorCDR_20' ) end [2025-01-28 13:09:27] Production.INFO: ProcessCDR(1,14349198,1,1,2) [2025-01-28 13:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349198', 'tblTempUsageDetail_20' ) start [2025-01-28 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349198', 'tblTempUsageDetail_20' ) end [2025-01-28 13:09:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:09:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:09:32] Production.INFO: ==7002== Releasing lock... [2025-01-28 13:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:09:32] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:10:06 [end_date_ymd] => 2025-01-28 13:10:06 [RateCDR] => 1 ) [2025-01-28 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-28 10:10:06' and `end` < '2025-01-28 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-28 13:10:26] Production.INFO: count ==5550 [2025-01-28 13:10:28] Production.ERROR: pbx CDR StartTime 2025-01-28 10:10:06 - End Time 2025-01-28 13:10:06 [2025-01-28 13:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349204', 'tblTempUsageDetail_20' ) start [2025-01-28 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349204', 'tblTempUsageDetail_20' ) end [2025-01-28 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349204', 'tblTempVendorCDR_20' ) start [2025-01-28 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349204', 'tblTempVendorCDR_20' ) end [2025-01-28 13:10:28] Production.INFO: ProcessCDR(1,14349204,1,1,2) [2025-01-28 13:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349204', 'tblTempUsageDetail_20' ) start [2025-01-28 13:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349204', 'tblTempUsageDetail_20' ) end [2025-01-28 13:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:10:33] Production.INFO: ==7078== Releasing lock... [2025-01-28 13:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:10:33] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:11:06 [end_date_ymd] => 2025-01-28 13:11:06 [RateCDR] => 1 ) [2025-01-28 13: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-28 10:11:06' and `end` < '2025-01-28 13: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-28 13:11:26] Production.INFO: count ==5524 [2025-01-28 13:11:28] Production.ERROR: pbx CDR StartTime 2025-01-28 10:11:06 - End Time 2025-01-28 13:11:06 [2025-01-28 13:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349209', 'tblTempUsageDetail_20' ) start [2025-01-28 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349209', 'tblTempUsageDetail_20' ) end [2025-01-28 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349209', 'tblTempVendorCDR_20' ) start [2025-01-28 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349209', 'tblTempVendorCDR_20' ) end [2025-01-28 13:11:28] Production.INFO: ProcessCDR(1,14349209,1,1,2) [2025-01-28 13:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349209', 'tblTempUsageDetail_20' ) start [2025-01-28 13:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349209', 'tblTempUsageDetail_20' ) end [2025-01-28 13:11:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:11:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:11:33] Production.INFO: ==7155== Releasing lock... [2025-01-28 13:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:11:33] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:12:05 [end_date_ymd] => 2025-01-28 13:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:12:05' and `end` < '2025-01-28 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-28 13:12:20] Production.INFO: count ==5537 [2025-01-28 13:12:22] Production.ERROR: pbx CDR StartTime 2025-01-28 10:12:05 - End Time 2025-01-28 13:12:05 [2025-01-28 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349214', 'tblTempUsageDetail_20' ) start [2025-01-28 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349214', 'tblTempUsageDetail_20' ) end [2025-01-28 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349214', 'tblTempVendorCDR_20' ) start [2025-01-28 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349214', 'tblTempVendorCDR_20' ) end [2025-01-28 13:12:23] Production.INFO: ProcessCDR(1,14349214,1,1,2) [2025-01-28 13:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349214', 'tblTempUsageDetail_20' ) start [2025-01-28 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349214', 'tblTempUsageDetail_20' ) end [2025-01-28 13:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:12:28] Production.INFO: ==7227== Releasing lock... [2025-01-28 13:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:12:28] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:13:05 [end_date_ymd] => 2025-01-28 13:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:13:05' and `end` < '2025-01-28 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-28 13:13:30] Production.INFO: count ==5550 [2025-01-28 13:13:32] Production.ERROR: pbx CDR StartTime 2025-01-28 10:13:05 - End Time 2025-01-28 13:13:05 [2025-01-28 13:13:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349219', 'tblTempUsageDetail_20' ) start [2025-01-28 13:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349219', 'tblTempUsageDetail_20' ) end [2025-01-28 13:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349219', 'tblTempVendorCDR_20' ) start [2025-01-28 13:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349219', 'tblTempVendorCDR_20' ) end [2025-01-28 13:13:33] Production.INFO: ProcessCDR(1,14349219,1,1,2) [2025-01-28 13:13:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:13:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:13:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:13:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349219', 'tblTempUsageDetail_20' ) start [2025-01-28 13:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349219', 'tblTempUsageDetail_20' ) end [2025-01-28 13:13:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:13:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:13:38] Production.INFO: ==7302== Releasing lock... [2025-01-28 13:13:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:13:38] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:14:05 [end_date_ymd] => 2025-01-28 13:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:14:05' and `end` < '2025-01-28 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-28 13:14:25] Production.INFO: count ==5565 [2025-01-28 13:14:27] Production.ERROR: pbx CDR StartTime 2025-01-28 10:14:05 - End Time 2025-01-28 13:14:05 [2025-01-28 13:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349224', 'tblTempUsageDetail_20' ) start [2025-01-28 13:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349224', 'tblTempUsageDetail_20' ) end [2025-01-28 13:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349224', 'tblTempVendorCDR_20' ) start [2025-01-28 13:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349224', 'tblTempVendorCDR_20' ) end [2025-01-28 13:14:28] Production.INFO: ProcessCDR(1,14349224,1,1,2) [2025-01-28 13:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349224', 'tblTempUsageDetail_20' ) start [2025-01-28 13:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349224', 'tblTempUsageDetail_20' ) end [2025-01-28 13:14:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:14:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:14:33] Production.INFO: ==7373== Releasing lock... [2025-01-28 13:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:14:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:15:06 [end_date_ymd] => 2025-01-28 13:15:06 [RateCDR] => 1 ) [2025-01-28 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-28 10:15:06' and `end` < '2025-01-28 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-28 13:15:28] Production.INFO: count ==5574 [2025-01-28 13:15:30] Production.ERROR: pbx CDR StartTime 2025-01-28 10:15:06 - End Time 2025-01-28 13:15:06 [2025-01-28 13:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349229', 'tblTempUsageDetail_20' ) start [2025-01-28 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349229', 'tblTempUsageDetail_20' ) end [2025-01-28 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349229', 'tblTempVendorCDR_20' ) start [2025-01-28 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349229', 'tblTempVendorCDR_20' ) end [2025-01-28 13:15:30] Production.INFO: ProcessCDR(1,14349229,1,1,2) [2025-01-28 13:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349229', 'tblTempUsageDetail_20' ) start [2025-01-28 13:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349229', 'tblTempUsageDetail_20' ) end [2025-01-28 13:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:15:35] Production.INFO: ==7449== Releasing lock... [2025-01-28 13:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:15:35] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:16:05 [end_date_ymd] => 2025-01-28 13:16:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:16:05' and `end` < '2025-01-28 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-28 13:16:26] Production.INFO: count ==5574 [2025-01-28 13:16:28] Production.ERROR: pbx CDR StartTime 2025-01-28 10:16:05 - End Time 2025-01-28 13:16:05 [2025-01-28 13:16:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349234', 'tblTempUsageDetail_20' ) start [2025-01-28 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349234', 'tblTempUsageDetail_20' ) end [2025-01-28 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349234', 'tblTempVendorCDR_20' ) start [2025-01-28 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349234', 'tblTempVendorCDR_20' ) end [2025-01-28 13:16:28] Production.INFO: ProcessCDR(1,14349234,1,1,2) [2025-01-28 13:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:16:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:16:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:16:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349234', 'tblTempUsageDetail_20' ) start [2025-01-28 13:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349234', 'tblTempUsageDetail_20' ) end [2025-01-28 13:16:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:16:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:16:33] Production.INFO: ==7524== Releasing lock... [2025-01-28 13:16:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:16:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:17:05 [end_date_ymd] => 2025-01-28 13:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:17:05' and `end` < '2025-01-28 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-28 13:17:28] Production.INFO: count ==5570 [2025-01-28 13:17:31] Production.ERROR: pbx CDR StartTime 2025-01-28 10:17:05 - End Time 2025-01-28 13:17:05 [2025-01-28 13:17:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349239', 'tblTempUsageDetail_20' ) start [2025-01-28 13:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349239', 'tblTempUsageDetail_20' ) end [2025-01-28 13:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349239', 'tblTempVendorCDR_20' ) start [2025-01-28 13:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349239', 'tblTempVendorCDR_20' ) end [2025-01-28 13:17:31] Production.INFO: ProcessCDR(1,14349239,1,1,2) [2025-01-28 13:17:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:17:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:17:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:17:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349239', 'tblTempUsageDetail_20' ) start [2025-01-28 13:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349239', 'tblTempUsageDetail_20' ) end [2025-01-28 13:17:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:17:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:17:36] Production.INFO: ==7602== Releasing lock... [2025-01-28 13:17:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:17:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:18:05 [end_date_ymd] => 2025-01-28 13:18:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:18:05' and `end` < '2025-01-28 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-28 13:18:26] Production.INFO: count ==5582 [2025-01-28 13:18:29] Production.ERROR: pbx CDR StartTime 2025-01-28 10:18:05 - End Time 2025-01-28 13:18:05 [2025-01-28 13:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349244', 'tblTempUsageDetail_20' ) start [2025-01-28 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349244', 'tblTempUsageDetail_20' ) end [2025-01-28 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349244', 'tblTempVendorCDR_20' ) start [2025-01-28 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349244', 'tblTempVendorCDR_20' ) end [2025-01-28 13:18:29] Production.INFO: ProcessCDR(1,14349244,1,1,2) [2025-01-28 13:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349244', 'tblTempUsageDetail_20' ) start [2025-01-28 13:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349244', 'tblTempUsageDetail_20' ) end [2025-01-28 13:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:18:34] Production.INFO: ==7675== Releasing lock... [2025-01-28 13:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:18:34] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:19:06 [end_date_ymd] => 2025-01-28 13:19:06 [RateCDR] => 1 ) [2025-01-28 13: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-28 10:19:06' and `end` < '2025-01-28 13: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-28 13:19:21] Production.INFO: count ==5583 [2025-01-28 13:19:23] Production.ERROR: pbx CDR StartTime 2025-01-28 10:19:06 - End Time 2025-01-28 13:19:06 [2025-01-28 13:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349249', 'tblTempUsageDetail_20' ) start [2025-01-28 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349249', 'tblTempUsageDetail_20' ) end [2025-01-28 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349249', 'tblTempVendorCDR_20' ) start [2025-01-28 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349249', 'tblTempVendorCDR_20' ) end [2025-01-28 13:19:23] Production.INFO: ProcessCDR(1,14349249,1,1,2) [2025-01-28 13:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349249', 'tblTempUsageDetail_20' ) start [2025-01-28 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349249', 'tblTempUsageDetail_20' ) end [2025-01-28 13:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:19:28] Production.INFO: ==7751== Releasing lock... [2025-01-28 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:19:28] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:20:05 [end_date_ymd] => 2025-01-28 13:20:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:20:05' and `end` < '2025-01-28 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-28 13:20:32] Production.INFO: count ==5576 [2025-01-28 13:20:35] Production.ERROR: pbx CDR StartTime 2025-01-28 10:20:05 - End Time 2025-01-28 13:20:05 [2025-01-28 13:20:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349254', 'tblTempUsageDetail_20' ) start [2025-01-28 13:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349254', 'tblTempUsageDetail_20' ) end [2025-01-28 13:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349254', 'tblTempVendorCDR_20' ) start [2025-01-28 13:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349254', 'tblTempVendorCDR_20' ) end [2025-01-28 13:20:35] Production.INFO: ProcessCDR(1,14349254,1,1,2) [2025-01-28 13:20:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:20:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:20:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:20:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:20:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349254', 'tblTempUsageDetail_20' ) start [2025-01-28 13:20:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349254', 'tblTempUsageDetail_20' ) end [2025-01-28 13:20:40] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:20:40] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:20:40] Production.INFO: ==7832== Releasing lock... [2025-01-28 13:20:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:20:40] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:21:05 [end_date_ymd] => 2025-01-28 13:21:05 [RateCDR] => 1 ) [2025-01-28 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:21:05' and `end` < '2025-01-28 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:21:29] Production.INFO: count ==5638 [2025-01-28 13:21:31] Production.ERROR: pbx CDR StartTime 2025-01-28 10:21:05 - End Time 2025-01-28 13:21:05 [2025-01-28 13:21:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349260', 'tblTempUsageDetail_20' ) start [2025-01-28 13:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349260', 'tblTempUsageDetail_20' ) end [2025-01-28 13:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349260', 'tblTempVendorCDR_20' ) start [2025-01-28 13:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349260', 'tblTempVendorCDR_20' ) end [2025-01-28 13:21:31] Production.INFO: ProcessCDR(1,14349260,1,1,2) [2025-01-28 13:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:21:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:21:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:21:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349260', 'tblTempUsageDetail_20' ) start [2025-01-28 13:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349260', 'tblTempUsageDetail_20' ) end [2025-01-28 13:21:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:21:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:21:36] Production.INFO: ==7909== Releasing lock... [2025-01-28 13:21:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:21:36] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:22:05 [end_date_ymd] => 2025-01-28 13:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:22:05' and `end` < '2025-01-28 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-28 13:22:31] Production.INFO: count ==5641 [2025-01-28 13:22:33] Production.ERROR: pbx CDR StartTime 2025-01-28 10:22:05 - End Time 2025-01-28 13:22:05 [2025-01-28 13:22:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349265', 'tblTempUsageDetail_20' ) start [2025-01-28 13:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349265', 'tblTempUsageDetail_20' ) end [2025-01-28 13:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349265', 'tblTempVendorCDR_20' ) start [2025-01-28 13:22:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349265', 'tblTempVendorCDR_20' ) end [2025-01-28 13:22:33] Production.INFO: ProcessCDR(1,14349265,1,1,2) [2025-01-28 13:22:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:22:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:22:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:22:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349265', 'tblTempUsageDetail_20' ) start [2025-01-28 13:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349265', 'tblTempUsageDetail_20' ) end [2025-01-28 13:22:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:22:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:22:39] Production.INFO: ==7983== Releasing lock... [2025-01-28 13:22:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:22:39] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:23:05 [end_date_ymd] => 2025-01-28 13:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:23:05' and `end` < '2025-01-28 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-28 13:23:30] Production.INFO: count ==5637 [2025-01-28 13:23:33] Production.ERROR: pbx CDR StartTime 2025-01-28 10:23:05 - End Time 2025-01-28 13:23:05 [2025-01-28 13:23:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349270', 'tblTempUsageDetail_20' ) start [2025-01-28 13:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349270', 'tblTempUsageDetail_20' ) end [2025-01-28 13:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349270', 'tblTempVendorCDR_20' ) start [2025-01-28 13:23:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349270', 'tblTempVendorCDR_20' ) end [2025-01-28 13:23:33] Production.INFO: ProcessCDR(1,14349270,1,1,2) [2025-01-28 13:23:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:23:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:23:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:23:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349270', 'tblTempUsageDetail_20' ) start [2025-01-28 13:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349270', 'tblTempUsageDetail_20' ) end [2025-01-28 13:23:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:23:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:23:37] Production.INFO: ==8104== Releasing lock... [2025-01-28 13:23:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:23:37] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:24:05 [end_date_ymd] => 2025-01-28 13:24:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:24:05' and `end` < '2025-01-28 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-28 13:24:27] Production.INFO: count ==5612 [2025-01-28 13:24:30] Production.ERROR: pbx CDR StartTime 2025-01-28 10:24:05 - End Time 2025-01-28 13:24:05 [2025-01-28 13:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349275', 'tblTempUsageDetail_20' ) start [2025-01-28 13:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349275', 'tblTempUsageDetail_20' ) end [2025-01-28 13:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349275', 'tblTempVendorCDR_20' ) start [2025-01-28 13:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349275', 'tblTempVendorCDR_20' ) end [2025-01-28 13:24:30] Production.INFO: ProcessCDR(1,14349275,1,1,2) [2025-01-28 13:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:24:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:24:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:24:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349275', 'tblTempUsageDetail_20' ) start [2025-01-28 13:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349275', 'tblTempUsageDetail_20' ) end [2025-01-28 13:24:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:24:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:24:35] Production.INFO: ==8179== Releasing lock... [2025-01-28 13:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:24:35] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:25:05 [end_date_ymd] => 2025-01-28 13:25:05 [RateCDR] => 1 ) [2025-01-28 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:25:05' and `end` < '2025-01-28 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:25:32] Production.INFO: count ==5626 [2025-01-28 13:25:34] Production.ERROR: pbx CDR StartTime 2025-01-28 10:25:05 - End Time 2025-01-28 13:25:05 [2025-01-28 13:25:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349280', 'tblTempUsageDetail_20' ) start [2025-01-28 13:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349280', 'tblTempUsageDetail_20' ) end [2025-01-28 13:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349280', 'tblTempVendorCDR_20' ) start [2025-01-28 13:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349280', 'tblTempVendorCDR_20' ) end [2025-01-28 13:25:34] Production.INFO: ProcessCDR(1,14349280,1,1,2) [2025-01-28 13:25:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:25:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:25:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:25:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349280', 'tblTempUsageDetail_20' ) start [2025-01-28 13:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349280', 'tblTempUsageDetail_20' ) end [2025-01-28 13:25:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:25:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:25:39] Production.INFO: ==8249== Releasing lock... [2025-01-28 13:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:25:39] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:26:06 [end_date_ymd] => 2025-01-28 13:26:06 [RateCDR] => 1 ) [2025-01-28 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:26:06' and `end` < '2025-01-28 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:26:28] Production.INFO: count ==5626 [2025-01-28 13:26:30] Production.ERROR: pbx CDR StartTime 2025-01-28 10:26:06 - End Time 2025-01-28 13:26:06 [2025-01-28 13:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349285', 'tblTempUsageDetail_20' ) start [2025-01-28 13:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349285', 'tblTempUsageDetail_20' ) end [2025-01-28 13:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349285', 'tblTempVendorCDR_20' ) start [2025-01-28 13:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349285', 'tblTempVendorCDR_20' ) end [2025-01-28 13:26:30] Production.INFO: ProcessCDR(1,14349285,1,1,2) [2025-01-28 13:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349285', 'tblTempUsageDetail_20' ) start [2025-01-28 13:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349285', 'tblTempUsageDetail_20' ) end [2025-01-28 13:26:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:26:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:26:35] Production.INFO: ==8327== Releasing lock... [2025-01-28 13:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:26:35] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:27:05 [end_date_ymd] => 2025-01-28 13:27:05 [RateCDR] => 1 ) [2025-01-28 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:27:05' and `end` < '2025-01-28 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:27:26] Production.INFO: count ==5618 [2025-01-28 13:27:28] Production.ERROR: pbx CDR StartTime 2025-01-28 10:27:05 - End Time 2025-01-28 13:27:05 [2025-01-28 13:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349290', 'tblTempUsageDetail_20' ) start [2025-01-28 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349290', 'tblTempUsageDetail_20' ) end [2025-01-28 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349290', 'tblTempVendorCDR_20' ) start [2025-01-28 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349290', 'tblTempVendorCDR_20' ) end [2025-01-28 13:27:28] Production.INFO: ProcessCDR(1,14349290,1,1,2) [2025-01-28 13:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349290', 'tblTempUsageDetail_20' ) start [2025-01-28 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349290', 'tblTempUsageDetail_20' ) end [2025-01-28 13:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:27:32] Production.INFO: ==8402== Releasing lock... [2025-01-28 13:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:27:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:28:05 [end_date_ymd] => 2025-01-28 13:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:28:05' and `end` < '2025-01-28 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-28 13:28:35] Production.INFO: count ==5637 [2025-01-28 13:28:37] Production.ERROR: pbx CDR StartTime 2025-01-28 10:28:05 - End Time 2025-01-28 13:28:05 [2025-01-28 13:28:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349295', 'tblTempUsageDetail_20' ) start [2025-01-28 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349295', 'tblTempUsageDetail_20' ) end [2025-01-28 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349295', 'tblTempVendorCDR_20' ) start [2025-01-28 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349295', 'tblTempVendorCDR_20' ) end [2025-01-28 13:28:37] Production.INFO: ProcessCDR(1,14349295,1,1,2) [2025-01-28 13:28:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:28:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:28:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:28:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:28:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349295', 'tblTempUsageDetail_20' ) start [2025-01-28 13:28:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349295', 'tblTempUsageDetail_20' ) end [2025-01-28 13:28:42] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:28:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:28:42] Production.INFO: ==8474== Releasing lock... [2025-01-28 13:28:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:28:42] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:29:05 [end_date_ymd] => 2025-01-28 13:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:29:05' and `end` < '2025-01-28 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-28 13:29:28] Production.INFO: count ==5624 [2025-01-28 13:29:30] Production.ERROR: pbx CDR StartTime 2025-01-28 10:29:05 - End Time 2025-01-28 13:29:05 [2025-01-28 13:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349300', 'tblTempUsageDetail_20' ) start [2025-01-28 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349300', 'tblTempUsageDetail_20' ) end [2025-01-28 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349300', 'tblTempVendorCDR_20' ) start [2025-01-28 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349300', 'tblTempVendorCDR_20' ) end [2025-01-28 13:29:30] Production.INFO: ProcessCDR(1,14349300,1,1,2) [2025-01-28 13:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349300', 'tblTempUsageDetail_20' ) start [2025-01-28 13:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349300', 'tblTempUsageDetail_20' ) end [2025-01-28 13:29:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:29:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:29:35] Production.INFO: ==8554== Releasing lock... [2025-01-28 13:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:29:35] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:30:06 [end_date_ymd] => 2025-01-28 13:30:06 [RateCDR] => 1 ) [2025-01-28 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:30:06' and `end` < '2025-01-28 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:30:26] Production.INFO: count ==5612 [2025-01-28 13:30:29] Production.ERROR: pbx CDR StartTime 2025-01-28 10:30:06 - End Time 2025-01-28 13:30:06 [2025-01-28 13:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349305', 'tblTempUsageDetail_20' ) start [2025-01-28 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349305', 'tblTempUsageDetail_20' ) end [2025-01-28 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349305', 'tblTempVendorCDR_20' ) start [2025-01-28 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349305', 'tblTempVendorCDR_20' ) end [2025-01-28 13:30:29] Production.INFO: ProcessCDR(1,14349305,1,1,2) [2025-01-28 13:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349305', 'tblTempUsageDetail_20' ) start [2025-01-28 13:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349305', 'tblTempUsageDetail_20' ) end [2025-01-28 13:30:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:30:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:30:34] Production.INFO: ==8631== Releasing lock... [2025-01-28 13:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:30:34] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:31:05 [end_date_ymd] => 2025-01-28 13:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:31:05' and `end` < '2025-01-28 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-28 13:31:28] Production.INFO: count ==5612 [2025-01-28 13:31:30] Production.ERROR: pbx CDR StartTime 2025-01-28 10:31:05 - End Time 2025-01-28 13:31:05 [2025-01-28 13:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349311', 'tblTempUsageDetail_20' ) start [2025-01-28 13:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349311', 'tblTempUsageDetail_20' ) end [2025-01-28 13:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349311', 'tblTempVendorCDR_20' ) start [2025-01-28 13:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349311', 'tblTempVendorCDR_20' ) end [2025-01-28 13:31:31] Production.INFO: ProcessCDR(1,14349311,1,1,2) [2025-01-28 13:31:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:31:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:31:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:31:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349311', 'tblTempUsageDetail_20' ) start [2025-01-28 13:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349311', 'tblTempUsageDetail_20' ) end [2025-01-28 13:31:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:31:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:31:36] Production.INFO: ==8709== Releasing lock... [2025-01-28 13:31:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:31:36] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:32:05 [end_date_ymd] => 2025-01-28 13:32:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:32:05' and `end` < '2025-01-28 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-28 13:32:30] Production.INFO: count ==5618 [2025-01-28 13:32:32] Production.ERROR: pbx CDR StartTime 2025-01-28 10:32:05 - End Time 2025-01-28 13:32:05 [2025-01-28 13:32:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:32:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349316', 'tblTempUsageDetail_20' ) start [2025-01-28 13:32:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349316', 'tblTempUsageDetail_20' ) end [2025-01-28 13:32:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349316', 'tblTempVendorCDR_20' ) start [2025-01-28 13:32:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349316', 'tblTempVendorCDR_20' ) end [2025-01-28 13:32:32] Production.INFO: ProcessCDR(1,14349316,1,1,2) [2025-01-28 13:32:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:32:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:32:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:32:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:32:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349316', 'tblTempUsageDetail_20' ) start [2025-01-28 13:32:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349316', 'tblTempUsageDetail_20' ) end [2025-01-28 13:32:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:32:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:32:38] Production.INFO: ==8786== Releasing lock... [2025-01-28 13:32:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:32:38] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:33:05 [end_date_ymd] => 2025-01-28 13:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:33:05' and `end` < '2025-01-28 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-28 13:33:29] Production.INFO: count ==5610 [2025-01-28 13:33:32] Production.ERROR: pbx CDR StartTime 2025-01-28 10:33:05 - End Time 2025-01-28 13:33:05 [2025-01-28 13:33:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349321', 'tblTempUsageDetail_20' ) start [2025-01-28 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349321', 'tblTempUsageDetail_20' ) end [2025-01-28 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349321', 'tblTempVendorCDR_20' ) start [2025-01-28 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349321', 'tblTempVendorCDR_20' ) end [2025-01-28 13:33:32] Production.INFO: ProcessCDR(1,14349321,1,1,2) [2025-01-28 13:33:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:33:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:33:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:33:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349321', 'tblTempUsageDetail_20' ) start [2025-01-28 13:33:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349321', 'tblTempUsageDetail_20' ) end [2025-01-28 13:33:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:33:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:33:37] Production.INFO: ==8860== Releasing lock... [2025-01-28 13:33:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:33:37] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:34:05 [end_date_ymd] => 2025-01-28 13:34:05 [RateCDR] => 1 ) [2025-01-28 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:34:05' and `end` < '2025-01-28 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:34:25] Production.INFO: count ==5614 [2025-01-28 13:34:27] Production.ERROR: pbx CDR StartTime 2025-01-28 10:34:05 - End Time 2025-01-28 13:34:05 [2025-01-28 13:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349326', 'tblTempUsageDetail_20' ) start [2025-01-28 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349326', 'tblTempUsageDetail_20' ) end [2025-01-28 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349326', 'tblTempVendorCDR_20' ) start [2025-01-28 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349326', 'tblTempVendorCDR_20' ) end [2025-01-28 13:34:27] Production.INFO: ProcessCDR(1,14349326,1,1,2) [2025-01-28 13:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349326', 'tblTempUsageDetail_20' ) start [2025-01-28 13:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349326', 'tblTempUsageDetail_20' ) end [2025-01-28 13:34:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:34:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:34:32] Production.INFO: ==8939== Releasing lock... [2025-01-28 13:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:34:32] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:35:05 [end_date_ymd] => 2025-01-28 13:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:35:05' and `end` < '2025-01-28 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-28 13:35:19] Production.INFO: count ==5607 [2025-01-28 13:35:21] Production.ERROR: pbx CDR StartTime 2025-01-28 10:35:05 - End Time 2025-01-28 13:35:05 [2025-01-28 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349331', 'tblTempUsageDetail_20' ) start [2025-01-28 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349331', 'tblTempUsageDetail_20' ) end [2025-01-28 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349331', 'tblTempVendorCDR_20' ) start [2025-01-28 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349331', 'tblTempVendorCDR_20' ) end [2025-01-28 13:35:21] Production.INFO: ProcessCDR(1,14349331,1,1,2) [2025-01-28 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349331', 'tblTempUsageDetail_20' ) start [2025-01-28 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349331', 'tblTempUsageDetail_20' ) end [2025-01-28 13:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:35:26] Production.INFO: ==9013== Releasing lock... [2025-01-28 13:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:35:26] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:36:05 [end_date_ymd] => 2025-01-28 13:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:36:05' and `end` < '2025-01-28 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-28 13:36:20] Production.INFO: count ==5614 [2025-01-28 13:36:22] Production.ERROR: pbx CDR StartTime 2025-01-28 10:36:05 - End Time 2025-01-28 13:36:05 [2025-01-28 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349336', 'tblTempUsageDetail_20' ) start [2025-01-28 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349336', 'tblTempUsageDetail_20' ) end [2025-01-28 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349336', 'tblTempVendorCDR_20' ) start [2025-01-28 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349336', 'tblTempVendorCDR_20' ) end [2025-01-28 13:36:23] Production.INFO: ProcessCDR(1,14349336,1,1,2) [2025-01-28 13:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349336', 'tblTempUsageDetail_20' ) start [2025-01-28 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349336', 'tblTempUsageDetail_20' ) end [2025-01-28 13:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:36:28] Production.INFO: ==9088== Releasing lock... [2025-01-28 13:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:36:28] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:37:05 [end_date_ymd] => 2025-01-28 13:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:37:05' and `end` < '2025-01-28 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-28 13:37:24] Production.INFO: count ==5618 [2025-01-28 13:37:27] Production.ERROR: pbx CDR StartTime 2025-01-28 10:37:05 - End Time 2025-01-28 13:37:05 [2025-01-28 13:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349341', 'tblTempUsageDetail_20' ) start [2025-01-28 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349341', 'tblTempUsageDetail_20' ) end [2025-01-28 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349341', 'tblTempVendorCDR_20' ) start [2025-01-28 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349341', 'tblTempVendorCDR_20' ) end [2025-01-28 13:37:27] Production.INFO: ProcessCDR(1,14349341,1,1,2) [2025-01-28 13:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349341', 'tblTempUsageDetail_20' ) start [2025-01-28 13:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349341', 'tblTempUsageDetail_20' ) end [2025-01-28 13:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:37:31] Production.INFO: ==9162== Releasing lock... [2025-01-28 13:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:37:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:38:05 [end_date_ymd] => 2025-01-28 13:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:38:05' and `end` < '2025-01-28 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-28 13:38:27] Production.INFO: count ==5630 [2025-01-28 13:38:29] Production.ERROR: pbx CDR StartTime 2025-01-28 10:38:05 - End Time 2025-01-28 13:38:05 [2025-01-28 13:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349346', 'tblTempUsageDetail_20' ) start [2025-01-28 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349346', 'tblTempUsageDetail_20' ) end [2025-01-28 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349346', 'tblTempVendorCDR_20' ) start [2025-01-28 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349346', 'tblTempVendorCDR_20' ) end [2025-01-28 13:38:29] Production.INFO: ProcessCDR(1,14349346,1,1,2) [2025-01-28 13:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349346', 'tblTempUsageDetail_20' ) start [2025-01-28 13:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349346', 'tblTempUsageDetail_20' ) end [2025-01-28 13:38:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:38:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:38:34] Production.INFO: ==9280== Releasing lock... [2025-01-28 13:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:38:34] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:39:05 [end_date_ymd] => 2025-01-28 13:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:39:05' and `end` < '2025-01-28 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-28 13:39:33] Production.INFO: count ==5651 [2025-01-28 13:39:35] Production.ERROR: pbx CDR StartTime 2025-01-28 10:39:05 - End Time 2025-01-28 13:39:05 [2025-01-28 13:39:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349351', 'tblTempUsageDetail_20' ) start [2025-01-28 13:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349351', 'tblTempUsageDetail_20' ) end [2025-01-28 13:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349351', 'tblTempVendorCDR_20' ) start [2025-01-28 13:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349351', 'tblTempVendorCDR_20' ) end [2025-01-28 13:39:35] Production.INFO: ProcessCDR(1,14349351,1,1,2) [2025-01-28 13:39:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:39:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:39:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:39:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:39:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349351', 'tblTempUsageDetail_20' ) start [2025-01-28 13:39:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349351', 'tblTempUsageDetail_20' ) end [2025-01-28 13:39:40] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:39:40] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:39:40] Production.INFO: ==9365== Releasing lock... [2025-01-28 13:39:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:39:40] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:40:05 [end_date_ymd] => 2025-01-28 13:40:05 [RateCDR] => 1 ) [2025-01-28 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:40:05' and `end` < '2025-01-28 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:40:28] Production.INFO: count ==5643 [2025-01-28 13:40:30] Production.ERROR: pbx CDR StartTime 2025-01-28 10:40:05 - End Time 2025-01-28 13:40:05 [2025-01-28 13:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349357', 'tblTempUsageDetail_20' ) start [2025-01-28 13:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349357', 'tblTempUsageDetail_20' ) end [2025-01-28 13:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349357', 'tblTempVendorCDR_20' ) start [2025-01-28 13:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349357', 'tblTempVendorCDR_20' ) end [2025-01-28 13:40:30] Production.INFO: ProcessCDR(1,14349357,1,1,2) [2025-01-28 13:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349357', 'tblTempUsageDetail_20' ) start [2025-01-28 13:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349357', 'tblTempUsageDetail_20' ) end [2025-01-28 13:40:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:40:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:40:35] Production.INFO: ==9440== Releasing lock... [2025-01-28 13:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:40:35] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:41:05 [end_date_ymd] => 2025-01-28 13:41:05 [RateCDR] => 1 ) [2025-01-28 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:41:05' and `end` < '2025-01-28 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:41:26] Production.INFO: count ==5626 [2025-01-28 13:41:28] Production.ERROR: pbx CDR StartTime 2025-01-28 10:41:05 - End Time 2025-01-28 13:41:05 [2025-01-28 13:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349362', 'tblTempUsageDetail_20' ) start [2025-01-28 13:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349362', 'tblTempUsageDetail_20' ) end [2025-01-28 13:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349362', 'tblTempVendorCDR_20' ) start [2025-01-28 13:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349362', 'tblTempVendorCDR_20' ) end [2025-01-28 13:41:28] Production.INFO: ProcessCDR(1,14349362,1,1,2) [2025-01-28 13:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:41:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:41:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349362', 'tblTempUsageDetail_20' ) start [2025-01-28 13:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349362', 'tblTempUsageDetail_20' ) end [2025-01-28 13:41:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:41:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:41:33] Production.INFO: ==9516== Releasing lock... [2025-01-28 13:41:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:41:33] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:42:05 [end_date_ymd] => 2025-01-28 13:42:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:42:05' and `end` < '2025-01-28 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-28 13:42:24] Production.INFO: count ==5628 [2025-01-28 13:42:27] Production.ERROR: pbx CDR StartTime 2025-01-28 10:42:05 - End Time 2025-01-28 13:42:05 [2025-01-28 13:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349367', 'tblTempUsageDetail_20' ) start [2025-01-28 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349367', 'tblTempUsageDetail_20' ) end [2025-01-28 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349367', 'tblTempVendorCDR_20' ) start [2025-01-28 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349367', 'tblTempVendorCDR_20' ) end [2025-01-28 13:42:27] Production.INFO: ProcessCDR(1,14349367,1,1,2) [2025-01-28 13:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349367', 'tblTempUsageDetail_20' ) start [2025-01-28 13:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349367', 'tblTempUsageDetail_20' ) end [2025-01-28 13:42:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:42:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:42:32] Production.INFO: ==9595== Releasing lock... [2025-01-28 13:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:42:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:43:05 [end_date_ymd] => 2025-01-28 13:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:43:05' and `end` < '2025-01-28 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-28 13:43:20] Production.INFO: count ==5613 [2025-01-28 13:43:22] Production.ERROR: pbx CDR StartTime 2025-01-28 10:43:05 - End Time 2025-01-28 13:43:05 [2025-01-28 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349372', 'tblTempUsageDetail_20' ) start [2025-01-28 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349372', 'tblTempUsageDetail_20' ) end [2025-01-28 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349372', 'tblTempVendorCDR_20' ) start [2025-01-28 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349372', 'tblTempVendorCDR_20' ) end [2025-01-28 13:43:22] Production.INFO: ProcessCDR(1,14349372,1,1,2) [2025-01-28 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349372', 'tblTempUsageDetail_20' ) start [2025-01-28 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349372', 'tblTempUsageDetail_20' ) end [2025-01-28 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:43:27] Production.INFO: ==9676== Releasing lock... [2025-01-28 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:43:27] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:44:06 [end_date_ymd] => 2025-01-28 13:44:06 [RateCDR] => 1 ) [2025-01-28 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:44:06' and `end` < '2025-01-28 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:44:26] Production.INFO: count ==5619 [2025-01-28 13:44:28] Production.ERROR: pbx CDR StartTime 2025-01-28 10:44:06 - End Time 2025-01-28 13:44:06 [2025-01-28 13:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349377', 'tblTempUsageDetail_20' ) start [2025-01-28 13:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349377', 'tblTempUsageDetail_20' ) end [2025-01-28 13:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349377', 'tblTempVendorCDR_20' ) start [2025-01-28 13:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349377', 'tblTempVendorCDR_20' ) end [2025-01-28 13:44:28] Production.INFO: ProcessCDR(1,14349377,1,1,2) [2025-01-28 13:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349377', 'tblTempUsageDetail_20' ) start [2025-01-28 13:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349377', 'tblTempUsageDetail_20' ) end [2025-01-28 13:44:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:44:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:44:33] Production.INFO: ==9762== Releasing lock... [2025-01-28 13:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:44:33] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:45:05 [end_date_ymd] => 2025-01-28 13:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:45:05' and `end` < '2025-01-28 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-28 13:45:26] Production.INFO: count ==5619 [2025-01-28 13:45:28] Production.ERROR: pbx CDR StartTime 2025-01-28 10:45:05 - End Time 2025-01-28 13:45:05 [2025-01-28 13:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349382', 'tblTempUsageDetail_20' ) start [2025-01-28 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349382', 'tblTempUsageDetail_20' ) end [2025-01-28 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349382', 'tblTempVendorCDR_20' ) start [2025-01-28 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349382', 'tblTempVendorCDR_20' ) end [2025-01-28 13:45:28] Production.INFO: ProcessCDR(1,14349382,1,1,2) [2025-01-28 13:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349382', 'tblTempUsageDetail_20' ) start [2025-01-28 13:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349382', 'tblTempUsageDetail_20' ) end [2025-01-28 13:45:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:45:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:45:33] Production.INFO: ==9851== Releasing lock... [2025-01-28 13:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:45:33] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:46:05 [end_date_ymd] => 2025-01-28 13:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:46:05' and `end` < '2025-01-28 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-28 13:46:28] Production.INFO: count ==5608 [2025-01-28 13:46:30] Production.ERROR: pbx CDR StartTime 2025-01-28 10:46:05 - End Time 2025-01-28 13:46:05 [2025-01-28 13:46:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349387', 'tblTempUsageDetail_20' ) start [2025-01-28 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349387', 'tblTempUsageDetail_20' ) end [2025-01-28 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349387', 'tblTempVendorCDR_20' ) start [2025-01-28 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349387', 'tblTempVendorCDR_20' ) end [2025-01-28 13:46:30] Production.INFO: ProcessCDR(1,14349387,1,1,2) [2025-01-28 13:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:46:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:46:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349387', 'tblTempUsageDetail_20' ) start [2025-01-28 13:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349387', 'tblTempUsageDetail_20' ) end [2025-01-28 13:46:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:46:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:46:35] Production.INFO: ==9937== Releasing lock... [2025-01-28 13:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:46:35] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:47:05 [end_date_ymd] => 2025-01-28 13:47:05 [RateCDR] => 1 ) [2025-01-28 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:47:05' and `end` < '2025-01-28 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:47:26] Production.INFO: count ==5607 [2025-01-28 13:47:28] Production.ERROR: pbx CDR StartTime 2025-01-28 10:47:05 - End Time 2025-01-28 13:47:05 [2025-01-28 13:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349392', 'tblTempUsageDetail_20' ) start [2025-01-28 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349392', 'tblTempUsageDetail_20' ) end [2025-01-28 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349392', 'tblTempVendorCDR_20' ) start [2025-01-28 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349392', 'tblTempVendorCDR_20' ) end [2025-01-28 13:47:28] Production.INFO: ProcessCDR(1,14349392,1,1,2) [2025-01-28 13:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349392', 'tblTempUsageDetail_20' ) start [2025-01-28 13:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349392', 'tblTempUsageDetail_20' ) end [2025-01-28 13:47:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:47:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:47:33] Production.INFO: ==10027== Releasing lock... [2025-01-28 13:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:47:33] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:48:05 [end_date_ymd] => 2025-01-28 13:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:48:05' and `end` < '2025-01-28 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-28 13:48:30] Production.INFO: count ==5622 [2025-01-28 13:48:33] Production.ERROR: pbx CDR StartTime 2025-01-28 10:48:05 - End Time 2025-01-28 13:48:05 [2025-01-28 13:48:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349397', 'tblTempUsageDetail_20' ) start [2025-01-28 13:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349397', 'tblTempUsageDetail_20' ) end [2025-01-28 13:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349397', 'tblTempVendorCDR_20' ) start [2025-01-28 13:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349397', 'tblTempVendorCDR_20' ) end [2025-01-28 13:48:33] Production.INFO: ProcessCDR(1,14349397,1,1,2) [2025-01-28 13:48:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:48:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:48:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:48:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:48:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349397', 'tblTempUsageDetail_20' ) start [2025-01-28 13:48:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349397', 'tblTempUsageDetail_20' ) end [2025-01-28 13:48:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:48:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:48:38] Production.INFO: ==10114== Releasing lock... [2025-01-28 13:48:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:48:38] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:49:05 [end_date_ymd] => 2025-01-28 13:49:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:49:05' and `end` < '2025-01-28 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-28 13:49:25] Production.INFO: count ==5617 [2025-01-28 13:49:27] Production.ERROR: pbx CDR StartTime 2025-01-28 10:49:05 - End Time 2025-01-28 13:49:05 [2025-01-28 13:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349402', 'tblTempUsageDetail_20' ) start [2025-01-28 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349402', 'tblTempUsageDetail_20' ) end [2025-01-28 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349402', 'tblTempVendorCDR_20' ) start [2025-01-28 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349402', 'tblTempVendorCDR_20' ) end [2025-01-28 13:49:27] Production.INFO: ProcessCDR(1,14349402,1,1,2) [2025-01-28 13:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349402', 'tblTempUsageDetail_20' ) start [2025-01-28 13:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349402', 'tblTempUsageDetail_20' ) end [2025-01-28 13:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:49:32] Production.INFO: ==10200== Releasing lock... [2025-01-28 13:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:49:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:50:06 [end_date_ymd] => 2025-01-28 13:50:06 [RateCDR] => 1 ) [2025-01-28 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-28 10:50:06' and `end` < '2025-01-28 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-28 13:50:34] Production.INFO: count ==5639 [2025-01-28 13:50:36] Production.ERROR: pbx CDR StartTime 2025-01-28 10:50:06 - End Time 2025-01-28 13:50:06 [2025-01-28 13:50:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349408', 'tblTempUsageDetail_20' ) start [2025-01-28 13:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349408', 'tblTempUsageDetail_20' ) end [2025-01-28 13:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349408', 'tblTempVendorCDR_20' ) start [2025-01-28 13:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349408', 'tblTempVendorCDR_20' ) end [2025-01-28 13:50:36] Production.INFO: ProcessCDR(1,14349408,1,1,2) [2025-01-28 13:50:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:50:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:50:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:50:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349408', 'tblTempUsageDetail_20' ) start [2025-01-28 13:50:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349408', 'tblTempUsageDetail_20' ) end [2025-01-28 13:50:42] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:50:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:50:42] Production.INFO: ==10282== Releasing lock... [2025-01-28 13:50:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:50:42] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:51:04 [end_date_ymd] => 2025-01-28 13:51:04 [RateCDR] => 1 ) [2025-01-28 13: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-28 10:51:04' and `end` < '2025-01-28 13: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-28 13:51:27] Production.INFO: count ==5613 [2025-01-28 13:51:29] Production.ERROR: pbx CDR StartTime 2025-01-28 10:51:04 - End Time 2025-01-28 13:51:04 [2025-01-28 13:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349413', 'tblTempUsageDetail_20' ) start [2025-01-28 13:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349413', 'tblTempUsageDetail_20' ) end [2025-01-28 13:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349413', 'tblTempVendorCDR_20' ) start [2025-01-28 13:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349413', 'tblTempVendorCDR_20' ) end [2025-01-28 13:51:29] Production.INFO: ProcessCDR(1,14349413,1,1,2) [2025-01-28 13:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:51:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:51:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:51:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349413', 'tblTempUsageDetail_20' ) start [2025-01-28 13:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349413', 'tblTempUsageDetail_20' ) end [2025-01-28 13:51:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:51:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:51:35] Production.INFO: ==10370== Releasing lock... [2025-01-28 13:51:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:51:35] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:52:05 [end_date_ymd] => 2025-01-28 13:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:52:05' and `end` < '2025-01-28 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-28 13:52:33] Production.INFO: count ==5610 [2025-01-28 13:52:35] Production.ERROR: pbx CDR StartTime 2025-01-28 10:52:05 - End Time 2025-01-28 13:52:05 [2025-01-28 13:52:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349418', 'tblTempUsageDetail_20' ) start [2025-01-28 13:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349418', 'tblTempUsageDetail_20' ) end [2025-01-28 13:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349418', 'tblTempVendorCDR_20' ) start [2025-01-28 13:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349418', 'tblTempVendorCDR_20' ) end [2025-01-28 13:52:35] Production.INFO: ProcessCDR(1,14349418,1,1,2) [2025-01-28 13:52:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:52:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:52:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:52:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:52:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349418', 'tblTempUsageDetail_20' ) start [2025-01-28 13:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349418', 'tblTempUsageDetail_20' ) end [2025-01-28 13:52:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:52:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:52:41] Production.INFO: ==10468== Releasing lock... [2025-01-28 13:52:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:52:41] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:53:06 [end_date_ymd] => 2025-01-28 13:53:06 [RateCDR] => 1 ) [2025-01-28 13:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 10:53:06' and `end` < '2025-01-28 13:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 13:53:26] Production.INFO: count ==5624 [2025-01-28 13:53:29] Production.ERROR: pbx CDR StartTime 2025-01-28 10:53:06 - End Time 2025-01-28 13:53:06 [2025-01-28 13:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349423', 'tblTempUsageDetail_20' ) start [2025-01-28 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349423', 'tblTempUsageDetail_20' ) end [2025-01-28 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349423', 'tblTempVendorCDR_20' ) start [2025-01-28 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349423', 'tblTempVendorCDR_20' ) end [2025-01-28 13:53:29] Production.INFO: ProcessCDR(1,14349423,1,1,2) [2025-01-28 13:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349423', 'tblTempUsageDetail_20' ) start [2025-01-28 13:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349423', 'tblTempUsageDetail_20' ) end [2025-01-28 13:53:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:53:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:53:34] Production.INFO: ==10599== Releasing lock... [2025-01-28 13:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:53:34] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:54:04 [end_date_ymd] => 2025-01-28 13:54:04 [RateCDR] => 1 ) [2025-01-28 13: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-28 10:54:04' and `end` < '2025-01-28 13: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-28 13:54:28] Production.INFO: count ==5625 [2025-01-28 13:54:31] Production.ERROR: pbx CDR StartTime 2025-01-28 10:54:04 - End Time 2025-01-28 13:54:04 [2025-01-28 13:54:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349428', 'tblTempUsageDetail_20' ) start [2025-01-28 13:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349428', 'tblTempUsageDetail_20' ) end [2025-01-28 13:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349428', 'tblTempVendorCDR_20' ) start [2025-01-28 13:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349428', 'tblTempVendorCDR_20' ) end [2025-01-28 13:54:31] Production.INFO: ProcessCDR(1,14349428,1,1,2) [2025-01-28 13:54:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:54:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:54:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:54:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349428', 'tblTempUsageDetail_20' ) start [2025-01-28 13:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349428', 'tblTempUsageDetail_20' ) end [2025-01-28 13:54:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:54:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:54:36] Production.INFO: ==10756== Releasing lock... [2025-01-28 13:54:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:54:36] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:55:05 [end_date_ymd] => 2025-01-28 13:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:55:05' and `end` < '2025-01-28 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-28 13:55:26] Production.INFO: count ==5609 [2025-01-28 13:55:28] Production.ERROR: pbx CDR StartTime 2025-01-28 10:55:05 - End Time 2025-01-28 13:55:05 [2025-01-28 13:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349433', 'tblTempUsageDetail_20' ) start [2025-01-28 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349433', 'tblTempUsageDetail_20' ) end [2025-01-28 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349433', 'tblTempVendorCDR_20' ) start [2025-01-28 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349433', 'tblTempVendorCDR_20' ) end [2025-01-28 13:55:28] Production.INFO: ProcessCDR(1,14349433,1,1,2) [2025-01-28 13:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349433', 'tblTempUsageDetail_20' ) start [2025-01-28 13:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349433', 'tblTempUsageDetail_20' ) end [2025-01-28 13:55:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:55:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:55:33] Production.INFO: ==10843== Releasing lock... [2025-01-28 13:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:55:33] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:56:05 [end_date_ymd] => 2025-01-28 13:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:56:05' and `end` < '2025-01-28 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-28 13:56:24] Production.INFO: count ==5611 [2025-01-28 13:56:26] Production.ERROR: pbx CDR StartTime 2025-01-28 10:56:05 - End Time 2025-01-28 13:56:05 [2025-01-28 13:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349438', 'tblTempUsageDetail_20' ) start [2025-01-28 13:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349438', 'tblTempUsageDetail_20' ) end [2025-01-28 13:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349438', 'tblTempVendorCDR_20' ) start [2025-01-28 13:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349438', 'tblTempVendorCDR_20' ) end [2025-01-28 13:56:27] Production.INFO: ProcessCDR(1,14349438,1,1,2) [2025-01-28 13:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349438', 'tblTempUsageDetail_20' ) start [2025-01-28 13:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349438', 'tblTempUsageDetail_20' ) end [2025-01-28 13:56:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:56:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:56:32] Production.INFO: ==10927== Releasing lock... [2025-01-28 13:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:56:32] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:57:06 [end_date_ymd] => 2025-01-28 13:57:06 [RateCDR] => 1 ) [2025-01-28 13: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-28 10:57:06' and `end` < '2025-01-28 13: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-28 13:57:25] Production.INFO: count ==5603 [2025-01-28 13:57:27] Production.ERROR: pbx CDR StartTime 2025-01-28 10:57:06 - End Time 2025-01-28 13:57:06 [2025-01-28 13:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349443', 'tblTempUsageDetail_20' ) start [2025-01-28 13:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349443', 'tblTempUsageDetail_20' ) end [2025-01-28 13:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349443', 'tblTempVendorCDR_20' ) start [2025-01-28 13:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349443', 'tblTempVendorCDR_20' ) end [2025-01-28 13:57:28] Production.INFO: ProcessCDR(1,14349443,1,1,2) [2025-01-28 13:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349443', 'tblTempUsageDetail_20' ) start [2025-01-28 13:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349443', 'tblTempUsageDetail_20' ) end [2025-01-28 13:57:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:57:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:57:32] Production.INFO: ==11007== Releasing lock... [2025-01-28 13:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:57:32] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:58:05 [end_date_ymd] => 2025-01-28 13:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:58:05' and `end` < '2025-01-28 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-28 13:58:26] Production.INFO: count ==5602 [2025-01-28 13:58:29] Production.ERROR: pbx CDR StartTime 2025-01-28 10:58:05 - End Time 2025-01-28 13:58:05 [2025-01-28 13:58:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349448', 'tblTempUsageDetail_20' ) start [2025-01-28 13:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349448', 'tblTempUsageDetail_20' ) end [2025-01-28 13:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349448', 'tblTempVendorCDR_20' ) start [2025-01-28 13:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349448', 'tblTempVendorCDR_20' ) end [2025-01-28 13:58:29] Production.INFO: ProcessCDR(1,14349448,1,1,2) [2025-01-28 13:58:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:58:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349448', 'tblTempUsageDetail_20' ) start [2025-01-28 13:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349448', 'tblTempUsageDetail_20' ) end [2025-01-28 13:58:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:58:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:58:34] Production.INFO: ==11088== Releasing lock... [2025-01-28 13:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:58:34] Production.INFO: 70 MB #Memory Used# [2025-01-28 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 10:59:05 [end_date_ymd] => 2025-01-28 13:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 10:59:05' and `end` < '2025-01-28 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-28 13:59:28] Production.INFO: count ==5602 [2025-01-28 13:59:31] Production.ERROR: pbx CDR StartTime 2025-01-28 10:59:05 - End Time 2025-01-28 13:59:05 [2025-01-28 13:59:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 13:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349453', 'tblTempUsageDetail_20' ) start [2025-01-28 13:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349453', 'tblTempUsageDetail_20' ) end [2025-01-28 13:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349453', 'tblTempVendorCDR_20' ) start [2025-01-28 13:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349453', 'tblTempVendorCDR_20' ) end [2025-01-28 13:59:31] Production.INFO: ProcessCDR(1,14349453,1,1,2) [2025-01-28 13:59:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:59:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 13:59:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 13:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349453', 'tblTempUsageDetail_20' ) start [2025-01-28 13:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349453', 'tblTempUsageDetail_20' ) end [2025-01-28 13:59:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 13:59:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 13:59:36] Production.INFO: ==11165== Releasing lock... [2025-01-28 13:59:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 13:59:36] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:00:05 [end_date_ymd] => 2025-01-28 14:00:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:00:05' and `end` < '2025-01-28 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-28 14:00:23] Production.INFO: count ==5623 [2025-01-28 14:00:26] Production.ERROR: pbx CDR StartTime 2025-01-28 11:00:05 - End Time 2025-01-28 14:00:05 [2025-01-28 14:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349458', 'tblTempUsageDetail_20' ) start [2025-01-28 14:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349458', 'tblTempUsageDetail_20' ) end [2025-01-28 14:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349458', 'tblTempVendorCDR_20' ) start [2025-01-28 14:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349458', 'tblTempVendorCDR_20' ) end [2025-01-28 14:00:26] Production.INFO: ProcessCDR(1,14349458,1,1,2) [2025-01-28 14:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349458', 'tblTempUsageDetail_20' ) start [2025-01-28 14:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349458', 'tblTempUsageDetail_20' ) end [2025-01-28 14:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:00:32] Production.INFO: ==11255== Releasing lock... [2025-01-28 14:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:00:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:01:06 [end_date_ymd] => 2025-01-28 14:01:06 [RateCDR] => 1 ) [2025-01-28 14:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:01:06' and `end` < '2025-01-28 14:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:01:25] Production.INFO: count ==5607 [2025-01-28 14:01:28] Production.ERROR: pbx CDR StartTime 2025-01-28 11:01:06 - End Time 2025-01-28 14:01:06 [2025-01-28 14:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349464', 'tblTempUsageDetail_20' ) start [2025-01-28 14:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349464', 'tblTempUsageDetail_20' ) end [2025-01-28 14:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349464', 'tblTempVendorCDR_20' ) start [2025-01-28 14:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349464', 'tblTempVendorCDR_20' ) end [2025-01-28 14:01:28] Production.INFO: ProcessCDR(1,14349464,1,1,2) [2025-01-28 14:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349464', 'tblTempUsageDetail_20' ) start [2025-01-28 14:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349464', 'tblTempUsageDetail_20' ) end [2025-01-28 14:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:01:33] Production.INFO: ==11350== Releasing lock... [2025-01-28 14:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:01:33] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:02:05 [end_date_ymd] => 2025-01-28 14:02:05 [RateCDR] => 1 ) [2025-01-28 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:02:05' and `end` < '2025-01-28 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:02:30] Production.INFO: count ==5622 [2025-01-28 14:02:33] Production.ERROR: pbx CDR StartTime 2025-01-28 11:02:05 - End Time 2025-01-28 14:02:05 [2025-01-28 14:02:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349469', 'tblTempUsageDetail_20' ) start [2025-01-28 14:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349469', 'tblTempUsageDetail_20' ) end [2025-01-28 14:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349469', 'tblTempVendorCDR_20' ) start [2025-01-28 14:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349469', 'tblTempVendorCDR_20' ) end [2025-01-28 14:02:33] Production.INFO: ProcessCDR(1,14349469,1,1,2) [2025-01-28 14:02:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:02:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:02:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349469', 'tblTempUsageDetail_20' ) start [2025-01-28 14:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349469', 'tblTempUsageDetail_20' ) end [2025-01-28 14:02:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:02:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:02:39] Production.INFO: ==11428== Releasing lock... [2025-01-28 14:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:02:39] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:03:06 [end_date_ymd] => 2025-01-28 14:03:06 [RateCDR] => 1 ) [2025-01-28 14:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:03:06' and `end` < '2025-01-28 14:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:03:30] Production.INFO: count ==5622 [2025-01-28 14:03:33] Production.ERROR: pbx CDR StartTime 2025-01-28 11:03:06 - End Time 2025-01-28 14:03:06 [2025-01-28 14:03:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349474', 'tblTempUsageDetail_20' ) start [2025-01-28 14:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349474', 'tblTempUsageDetail_20' ) end [2025-01-28 14:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349474', 'tblTempVendorCDR_20' ) start [2025-01-28 14:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349474', 'tblTempVendorCDR_20' ) end [2025-01-28 14:03:33] Production.INFO: ProcessCDR(1,14349474,1,1,2) [2025-01-28 14:03:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:03:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349474', 'tblTempUsageDetail_20' ) start [2025-01-28 14:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349474', 'tblTempUsageDetail_20' ) end [2025-01-28 14:03:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:03:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:03:38] Production.INFO: ==11504== Releasing lock... [2025-01-28 14:03:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:03:38] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:04:06 [end_date_ymd] => 2025-01-28 14:04:06 [RateCDR] => 1 ) [2025-01-28 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:04:06' and `end` < '2025-01-28 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:04:33] Production.INFO: count ==5616 [2025-01-28 14:04:36] Production.ERROR: pbx CDR StartTime 2025-01-28 11:04:06 - End Time 2025-01-28 14:04:06 [2025-01-28 14:04:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349479', 'tblTempUsageDetail_20' ) start [2025-01-28 14:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349479', 'tblTempUsageDetail_20' ) end [2025-01-28 14:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349479', 'tblTempVendorCDR_20' ) start [2025-01-28 14:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349479', 'tblTempVendorCDR_20' ) end [2025-01-28 14:04:36] Production.INFO: ProcessCDR(1,14349479,1,1,2) [2025-01-28 14:04:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:04:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:04:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:04:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:04:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349479', 'tblTempUsageDetail_20' ) start [2025-01-28 14:04:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349479', 'tblTempUsageDetail_20' ) end [2025-01-28 14:04:42] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:04:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:04:42] Production.INFO: ==11577== Releasing lock... [2025-01-28 14:04:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:04:42] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:05:06 [end_date_ymd] => 2025-01-28 14:05:06 [RateCDR] => 1 ) [2025-01-28 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:05:06' and `end` < '2025-01-28 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:05:35] Production.INFO: count ==5612 [2025-01-28 14:05:38] Production.ERROR: pbx CDR StartTime 2025-01-28 11:05:06 - End Time 2025-01-28 14:05:06 [2025-01-28 14:05:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349484', 'tblTempUsageDetail_20' ) start [2025-01-28 14:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349484', 'tblTempUsageDetail_20' ) end [2025-01-28 14:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349484', 'tblTempVendorCDR_20' ) start [2025-01-28 14:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349484', 'tblTempVendorCDR_20' ) end [2025-01-28 14:05:38] Production.INFO: ProcessCDR(1,14349484,1,1,2) [2025-01-28 14:05:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:05:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:05:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:05:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349484', 'tblTempUsageDetail_20' ) start [2025-01-28 14:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349484', 'tblTempUsageDetail_20' ) end [2025-01-28 14:05:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:05:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:05:43] Production.INFO: ==11650== Releasing lock... [2025-01-28 14:05:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:05:43] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:06:06 [end_date_ymd] => 2025-01-28 14:06:06 [RateCDR] => 1 ) [2025-01-28 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:06:06' and `end` < '2025-01-28 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:06:36] Production.INFO: count ==5603 [2025-01-28 14:06:38] Production.ERROR: pbx CDR StartTime 2025-01-28 11:06:06 - End Time 2025-01-28 14:06:06 [2025-01-28 14:06:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:06:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349489', 'tblTempUsageDetail_20' ) start [2025-01-28 14:06:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349489', 'tblTempUsageDetail_20' ) end [2025-01-28 14:06:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349489', 'tblTempVendorCDR_20' ) start [2025-01-28 14:06:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349489', 'tblTempVendorCDR_20' ) end [2025-01-28 14:06:39] Production.INFO: ProcessCDR(1,14349489,1,1,2) [2025-01-28 14:06:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:06:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:06:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:06:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:06:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349489', 'tblTempUsageDetail_20' ) start [2025-01-28 14:06:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349489', 'tblTempUsageDetail_20' ) end [2025-01-28 14:06:44] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:06:44] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:06:44] Production.INFO: ==11721== Releasing lock... [2025-01-28 14:06:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:06:44] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:07:06 [end_date_ymd] => 2025-01-28 14:07:06 [RateCDR] => 1 ) [2025-01-28 14:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:07:06' and `end` < '2025-01-28 14:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:07:35] Production.INFO: count ==5609 [2025-01-28 14:07:37] Production.ERROR: pbx CDR StartTime 2025-01-28 11:07:06 - End Time 2025-01-28 14:07:06 [2025-01-28 14:07:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:07:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349494', 'tblTempUsageDetail_20' ) start [2025-01-28 14:07:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349494', 'tblTempUsageDetail_20' ) end [2025-01-28 14:07:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349494', 'tblTempVendorCDR_20' ) start [2025-01-28 14:07:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349494', 'tblTempVendorCDR_20' ) end [2025-01-28 14:07:37] Production.INFO: ProcessCDR(1,14349494,1,1,2) [2025-01-28 14:07:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:07:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:07:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:07:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:07:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349494', 'tblTempUsageDetail_20' ) start [2025-01-28 14:07:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349494', 'tblTempUsageDetail_20' ) end [2025-01-28 14:07:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:07:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:07:43] Production.INFO: ==11795== Releasing lock... [2025-01-28 14:07:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:07:43] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:08:05 [end_date_ymd] => 2025-01-28 14:08:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:08:05' and `end` < '2025-01-28 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-28 14:08:27] Production.INFO: count ==5627 [2025-01-28 14:08:30] Production.ERROR: pbx CDR StartTime 2025-01-28 11:08:05 - End Time 2025-01-28 14:08:05 [2025-01-28 14:08:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349499', 'tblTempUsageDetail_20' ) start [2025-01-28 14:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349499', 'tblTempUsageDetail_20' ) end [2025-01-28 14:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349499', 'tblTempVendorCDR_20' ) start [2025-01-28 14:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349499', 'tblTempVendorCDR_20' ) end [2025-01-28 14:08:30] Production.INFO: ProcessCDR(1,14349499,1,1,2) [2025-01-28 14:08:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:08:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:08:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:08:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:08:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349499', 'tblTempUsageDetail_20' ) start [2025-01-28 14:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349499', 'tblTempUsageDetail_20' ) end [2025-01-28 14:08:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:08:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:08:36] Production.INFO: ==11870== Releasing lock... [2025-01-28 14:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:08:36] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:09:06 [end_date_ymd] => 2025-01-28 14:09:06 [RateCDR] => 1 ) [2025-01-28 14:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:09:06' and `end` < '2025-01-28 14:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:09:27] Production.INFO: count ==5658 [2025-01-28 14:09:29] Production.ERROR: pbx CDR StartTime 2025-01-28 11:09:06 - End Time 2025-01-28 14:09:06 [2025-01-28 14:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349504', 'tblTempUsageDetail_20' ) start [2025-01-28 14:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349504', 'tblTempUsageDetail_20' ) end [2025-01-28 14:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349504', 'tblTempVendorCDR_20' ) start [2025-01-28 14:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349504', 'tblTempVendorCDR_20' ) end [2025-01-28 14:09:29] Production.INFO: ProcessCDR(1,14349504,1,1,2) [2025-01-28 14:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349504', 'tblTempUsageDetail_20' ) start [2025-01-28 14:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349504', 'tblTempUsageDetail_20' ) end [2025-01-28 14:09:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:09:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:09:35] Production.INFO: ==11980== Releasing lock... [2025-01-28 14:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:09:35] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:10:06 [end_date_ymd] => 2025-01-28 14:10:06 [RateCDR] => 1 ) [2025-01-28 14:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:10:06' and `end` < '2025-01-28 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:10:21] Production.INFO: count ==5658 [2025-01-28 14:10:24] Production.ERROR: pbx CDR StartTime 2025-01-28 11:10:06 - End Time 2025-01-28 14:10:06 [2025-01-28 14:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349510', 'tblTempUsageDetail_20' ) start [2025-01-28 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349510', 'tblTempUsageDetail_20' ) end [2025-01-28 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349510', 'tblTempVendorCDR_20' ) start [2025-01-28 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349510', 'tblTempVendorCDR_20' ) end [2025-01-28 14:10:24] Production.INFO: ProcessCDR(1,14349510,1,1,2) [2025-01-28 14:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349510', 'tblTempUsageDetail_20' ) start [2025-01-28 14:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349510', 'tblTempUsageDetail_20' ) end [2025-01-28 14:10:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:10:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:10:30] Production.INFO: ==12055== Releasing lock... [2025-01-28 14:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:10:30] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:11:06 [end_date_ymd] => 2025-01-28 14:11:06 [RateCDR] => 1 ) [2025-01-28 14:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:11:06' and `end` < '2025-01-28 14:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:11:23] Production.INFO: count ==5655 [2025-01-28 14:11:26] Production.ERROR: pbx CDR StartTime 2025-01-28 11:11:06 - End Time 2025-01-28 14:11:06 [2025-01-28 14:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349515', 'tblTempUsageDetail_20' ) start [2025-01-28 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349515', 'tblTempUsageDetail_20' ) end [2025-01-28 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349515', 'tblTempVendorCDR_20' ) start [2025-01-28 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349515', 'tblTempVendorCDR_20' ) end [2025-01-28 14:11:26] Production.INFO: ProcessCDR(1,14349515,1,1,2) [2025-01-28 14:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349515', 'tblTempUsageDetail_20' ) start [2025-01-28 14:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349515', 'tblTempUsageDetail_20' ) end [2025-01-28 14:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:11:32] Production.INFO: ==12132== Releasing lock... [2025-01-28 14:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:11:32] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:12:05 [end_date_ymd] => 2025-01-28 14:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:12:05' and `end` < '2025-01-28 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-28 14:12:23] Production.INFO: count ==5663 [2025-01-28 14:12:25] Production.ERROR: pbx CDR StartTime 2025-01-28 11:12:05 - End Time 2025-01-28 14:12:05 [2025-01-28 14:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349520', 'tblTempUsageDetail_20' ) start [2025-01-28 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349520', 'tblTempUsageDetail_20' ) end [2025-01-28 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349520', 'tblTempVendorCDR_20' ) start [2025-01-28 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349520', 'tblTempVendorCDR_20' ) end [2025-01-28 14:12:25] Production.INFO: ProcessCDR(1,14349520,1,1,2) [2025-01-28 14:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349520', 'tblTempUsageDetail_20' ) start [2025-01-28 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349520', 'tblTempUsageDetail_20' ) end [2025-01-28 14:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:12:31] Production.INFO: ==12202== Releasing lock... [2025-01-28 14:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:12:31] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:13:05 [end_date_ymd] => 2025-01-28 14:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:13:05' and `end` < '2025-01-28 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-28 14:13:27] Production.INFO: count ==5664 [2025-01-28 14:13:29] Production.ERROR: pbx CDR StartTime 2025-01-28 11:13:05 - End Time 2025-01-28 14:13:05 [2025-01-28 14:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349525', 'tblTempUsageDetail_20' ) start [2025-01-28 14:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349525', 'tblTempUsageDetail_20' ) end [2025-01-28 14:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349525', 'tblTempVendorCDR_20' ) start [2025-01-28 14:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349525', 'tblTempVendorCDR_20' ) end [2025-01-28 14:13:30] Production.INFO: ProcessCDR(1,14349525,1,1,2) [2025-01-28 14:13:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:13:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:13:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:13:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349525', 'tblTempUsageDetail_20' ) start [2025-01-28 14:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349525', 'tblTempUsageDetail_20' ) end [2025-01-28 14:13:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:13:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:13:35] Production.INFO: ==12272== Releasing lock... [2025-01-28 14:13:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:13:35] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:14:05 [end_date_ymd] => 2025-01-28 14:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:14:05' and `end` < '2025-01-28 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-28 14:14:25] Production.INFO: count ==5648 [2025-01-28 14:14:27] Production.ERROR: pbx CDR StartTime 2025-01-28 11:14:05 - End Time 2025-01-28 14:14:05 [2025-01-28 14:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349530', 'tblTempUsageDetail_20' ) start [2025-01-28 14:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349530', 'tblTempUsageDetail_20' ) end [2025-01-28 14:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349530', 'tblTempVendorCDR_20' ) start [2025-01-28 14:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349530', 'tblTempVendorCDR_20' ) end [2025-01-28 14:14:27] Production.INFO: ProcessCDR(1,14349530,1,1,2) [2025-01-28 14:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349530', 'tblTempUsageDetail_20' ) start [2025-01-28 14:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349530', 'tblTempUsageDetail_20' ) end [2025-01-28 14:14:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:14:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:14:32] Production.INFO: ==12344== Releasing lock... [2025-01-28 14:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:14:32] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:15:06 [end_date_ymd] => 2025-01-28 14:15:06 [RateCDR] => 1 ) [2025-01-28 14: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-28 11:15:06' and `end` < '2025-01-28 14: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-28 14:15:26] Production.INFO: count ==5649 [2025-01-28 14:15:28] Production.ERROR: pbx CDR StartTime 2025-01-28 11:15:06 - End Time 2025-01-28 14:15:06 [2025-01-28 14:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349535', 'tblTempUsageDetail_20' ) start [2025-01-28 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349535', 'tblTempUsageDetail_20' ) end [2025-01-28 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349535', 'tblTempVendorCDR_20' ) start [2025-01-28 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349535', 'tblTempVendorCDR_20' ) end [2025-01-28 14:15:29] Production.INFO: ProcessCDR(1,14349535,1,1,2) [2025-01-28 14:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349535', 'tblTempUsageDetail_20' ) start [2025-01-28 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349535', 'tblTempUsageDetail_20' ) end [2025-01-28 14:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:15:34] Production.INFO: ==12417== Releasing lock... [2025-01-28 14:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:15:34] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:16:05 [end_date_ymd] => 2025-01-28 14:16:05 [RateCDR] => 1 ) [2025-01-28 14: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-28 11:16:05' and `end` < '2025-01-28 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:16:31] Production.INFO: count ==5629 [2025-01-28 14:16:34] Production.ERROR: pbx CDR StartTime 2025-01-28 11:16:05 - End Time 2025-01-28 14:16:05 [2025-01-28 14:16:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349540', 'tblTempUsageDetail_20' ) start [2025-01-28 14:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349540', 'tblTempUsageDetail_20' ) end [2025-01-28 14:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349540', 'tblTempVendorCDR_20' ) start [2025-01-28 14:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349540', 'tblTempVendorCDR_20' ) end [2025-01-28 14:16:34] Production.INFO: ProcessCDR(1,14349540,1,1,2) [2025-01-28 14:16:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:16:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:16:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:16:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349540', 'tblTempUsageDetail_20' ) start [2025-01-28 14:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349540', 'tblTempUsageDetail_20' ) end [2025-01-28 14:16:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:16:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:16:39] Production.INFO: ==12490== Releasing lock... [2025-01-28 14:16:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:16:39] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:17:06 [end_date_ymd] => 2025-01-28 14:17:06 [RateCDR] => 1 ) [2025-01-28 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:17:06' and `end` < '2025-01-28 14: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-28 14:17:26] Production.INFO: count ==5609 [2025-01-28 14:17:28] Production.ERROR: pbx CDR StartTime 2025-01-28 11:17:06 - End Time 2025-01-28 14:17:06 [2025-01-28 14:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349545', 'tblTempUsageDetail_20' ) start [2025-01-28 14:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349545', 'tblTempUsageDetail_20' ) end [2025-01-28 14:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349545', 'tblTempVendorCDR_20' ) start [2025-01-28 14:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349545', 'tblTempVendorCDR_20' ) end [2025-01-28 14:17:29] Production.INFO: ProcessCDR(1,14349545,1,1,2) [2025-01-28 14:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349545', 'tblTempUsageDetail_20' ) start [2025-01-28 14:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349545', 'tblTempUsageDetail_20' ) end [2025-01-28 14:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:17:32] Production.INFO: ==12560== Releasing lock... [2025-01-28 14:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:17:32] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:18:05 [end_date_ymd] => 2025-01-28 14:18:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:18:05' and `end` < '2025-01-28 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-28 14:18:20] Production.INFO: count ==5605 [2025-01-28 14:18:23] Production.ERROR: pbx CDR StartTime 2025-01-28 11:18:05 - End Time 2025-01-28 14:18:05 [2025-01-28 14:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349550', 'tblTempUsageDetail_20' ) start [2025-01-28 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349550', 'tblTempUsageDetail_20' ) end [2025-01-28 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349550', 'tblTempVendorCDR_20' ) start [2025-01-28 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349550', 'tblTempVendorCDR_20' ) end [2025-01-28 14:18:23] Production.INFO: ProcessCDR(1,14349550,1,1,2) [2025-01-28 14:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349550', 'tblTempUsageDetail_20' ) start [2025-01-28 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349550', 'tblTempUsageDetail_20' ) end [2025-01-28 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:18:27] Production.INFO: ==12635== Releasing lock... [2025-01-28 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:18:27] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:19:06 [end_date_ymd] => 2025-01-28 14:19:06 [RateCDR] => 1 ) [2025-01-28 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-28 11:19:06' and `end` < '2025-01-28 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-28 14:19:21] Production.INFO: count ==5601 [2025-01-28 14:19:23] Production.ERROR: pbx CDR StartTime 2025-01-28 11:19:06 - End Time 2025-01-28 14:19:06 [2025-01-28 14:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349555', 'tblTempUsageDetail_20' ) start [2025-01-28 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349555', 'tblTempUsageDetail_20' ) end [2025-01-28 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349555', 'tblTempVendorCDR_20' ) start [2025-01-28 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349555', 'tblTempVendorCDR_20' ) end [2025-01-28 14:19:23] Production.INFO: ProcessCDR(1,14349555,1,1,2) [2025-01-28 14:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349555', 'tblTempUsageDetail_20' ) start [2025-01-28 14:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349555', 'tblTempUsageDetail_20' ) end [2025-01-28 14:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:19:29] Production.INFO: ==12707== Releasing lock... [2025-01-28 14:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:19:29] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:20:06 [end_date_ymd] => 2025-01-28 14:20:06 [RateCDR] => 1 ) [2025-01-28 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-28 11:20:06' and `end` < '2025-01-28 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-28 14:20:34] Production.INFO: count ==5615 [2025-01-28 14:20:36] Production.ERROR: pbx CDR StartTime 2025-01-28 11:20:06 - End Time 2025-01-28 14:20:06 [2025-01-28 14:20:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349560', 'tblTempUsageDetail_20' ) start [2025-01-28 14:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349560', 'tblTempUsageDetail_20' ) end [2025-01-28 14:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349560', 'tblTempVendorCDR_20' ) start [2025-01-28 14:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349560', 'tblTempVendorCDR_20' ) end [2025-01-28 14:20:36] Production.INFO: ProcessCDR(1,14349560,1,1,2) [2025-01-28 14:20:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:20:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:20:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:20:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349560', 'tblTempUsageDetail_20' ) start [2025-01-28 14:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349560', 'tblTempUsageDetail_20' ) end [2025-01-28 14:20:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:20:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:20:42] Production.INFO: ==12780== Releasing lock... [2025-01-28 14:20:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:20:42] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:21:05 [end_date_ymd] => 2025-01-28 14:21:05 [RateCDR] => 1 ) [2025-01-28 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:21:05' and `end` < '2025-01-28 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:21:36] Production.INFO: count ==5632 [2025-01-28 14:21:38] Production.ERROR: pbx CDR StartTime 2025-01-28 11:21:05 - End Time 2025-01-28 14:21:05 [2025-01-28 14:21:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:21:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349566', 'tblTempUsageDetail_20' ) start [2025-01-28 14:21:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349566', 'tblTempUsageDetail_20' ) end [2025-01-28 14:21:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349566', 'tblTempVendorCDR_20' ) start [2025-01-28 14:21:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349566', 'tblTempVendorCDR_20' ) end [2025-01-28 14:21:39] Production.INFO: ProcessCDR(1,14349566,1,1,2) [2025-01-28 14:21:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:21:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:21:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:21:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:21:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349566', 'tblTempUsageDetail_20' ) start [2025-01-28 14:21:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349566', 'tblTempUsageDetail_20' ) end [2025-01-28 14:21:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:21:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:21:43] Production.INFO: ==12855== Releasing lock... [2025-01-28 14:21:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:21:43] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:22:05 [end_date_ymd] => 2025-01-28 14:22:05 [RateCDR] => 1 ) [2025-01-28 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:22:05' and `end` < '2025-01-28 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:22:34] Production.INFO: count ==5650 [2025-01-28 14:22:37] Production.ERROR: pbx CDR StartTime 2025-01-28 11:22:05 - End Time 2025-01-28 14:22:05 [2025-01-28 14:22:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:22:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349571', 'tblTempUsageDetail_20' ) start [2025-01-28 14:22:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349571', 'tblTempUsageDetail_20' ) end [2025-01-28 14:22:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349571', 'tblTempVendorCDR_20' ) start [2025-01-28 14:22:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349571', 'tblTempVendorCDR_20' ) end [2025-01-28 14:22:37] Production.INFO: ProcessCDR(1,14349571,1,1,2) [2025-01-28 14:22:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:22:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:22:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:22:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:22:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349571', 'tblTempUsageDetail_20' ) start [2025-01-28 14:22:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349571', 'tblTempUsageDetail_20' ) end [2025-01-28 14:22:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:22:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:22:42] Production.INFO: ==12927== Releasing lock... [2025-01-28 14:22:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:22:42] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:23:05 [end_date_ymd] => 2025-01-28 14:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:23:05' and `end` < '2025-01-28 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-28 14:23:32] Production.INFO: count ==5667 [2025-01-28 14:23:35] Production.ERROR: pbx CDR StartTime 2025-01-28 11:23:05 - End Time 2025-01-28 14:23:05 [2025-01-28 14:23:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349576', 'tblTempUsageDetail_20' ) start [2025-01-28 14:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349576', 'tblTempUsageDetail_20' ) end [2025-01-28 14:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349576', 'tblTempVendorCDR_20' ) start [2025-01-28 14:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349576', 'tblTempVendorCDR_20' ) end [2025-01-28 14:23:35] Production.INFO: ProcessCDR(1,14349576,1,1,2) [2025-01-28 14:23:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:23:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:23:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:23:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:23:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349576', 'tblTempUsageDetail_20' ) start [2025-01-28 14:23:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349576', 'tblTempUsageDetail_20' ) end [2025-01-28 14:23:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:23:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:23:39] Production.INFO: ==13002== Releasing lock... [2025-01-28 14:23:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:23:39] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:24:05 [end_date_ymd] => 2025-01-28 14:24:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:24:05' and `end` < '2025-01-28 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-28 14:24:26] Production.INFO: count ==5682 [2025-01-28 14:24:28] Production.ERROR: pbx CDR StartTime 2025-01-28 11:24:05 - End Time 2025-01-28 14:24:05 [2025-01-28 14:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349581', 'tblTempUsageDetail_20' ) start [2025-01-28 14:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349581', 'tblTempUsageDetail_20' ) end [2025-01-28 14:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349581', 'tblTempVendorCDR_20' ) start [2025-01-28 14:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349581', 'tblTempVendorCDR_20' ) end [2025-01-28 14:24:28] Production.INFO: ProcessCDR(1,14349581,1,1,2) [2025-01-28 14:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349581', 'tblTempUsageDetail_20' ) start [2025-01-28 14:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349581', 'tblTempUsageDetail_20' ) end [2025-01-28 14:24:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:24:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:24:34] Production.INFO: ==13078== Releasing lock... [2025-01-28 14:24:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:24:34] Production.INFO: 70.75 MB #Memory Used# [2025-01-28 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:25:06 [end_date_ymd] => 2025-01-28 14:25:06 [RateCDR] => 1 ) [2025-01-28 14: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-28 11:25:06' and `end` < '2025-01-28 14: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-28 14:25:25] Production.INFO: count ==5671 [2025-01-28 14:25:27] Production.ERROR: pbx CDR StartTime 2025-01-28 11:25:06 - End Time 2025-01-28 14:25:06 [2025-01-28 14:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349586', 'tblTempUsageDetail_20' ) start [2025-01-28 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349586', 'tblTempUsageDetail_20' ) end [2025-01-28 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349586', 'tblTempVendorCDR_20' ) start [2025-01-28 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349586', 'tblTempVendorCDR_20' ) end [2025-01-28 14:25:27] Production.INFO: ProcessCDR(1,14349586,1,1,2) [2025-01-28 14:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349586', 'tblTempUsageDetail_20' ) start [2025-01-28 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349586', 'tblTempUsageDetail_20' ) end [2025-01-28 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:25:32] Production.INFO: ==13187== Releasing lock... [2025-01-28 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:25:32] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:26:05 [end_date_ymd] => 2025-01-28 14:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:26:05' and `end` < '2025-01-28 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-28 14:26:30] Production.INFO: count ==5671 [2025-01-28 14:26:33] Production.ERROR: pbx CDR StartTime 2025-01-28 11:26:05 - End Time 2025-01-28 14:26:05 [2025-01-28 14:26:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349591', 'tblTempUsageDetail_20' ) start [2025-01-28 14:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349591', 'tblTempUsageDetail_20' ) end [2025-01-28 14:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349591', 'tblTempVendorCDR_20' ) start [2025-01-28 14:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349591', 'tblTempVendorCDR_20' ) end [2025-01-28 14:26:33] Production.INFO: ProcessCDR(1,14349591,1,1,2) [2025-01-28 14:26:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:26:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:26:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:26:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:26:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349591', 'tblTempUsageDetail_20' ) start [2025-01-28 14:26:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349591', 'tblTempUsageDetail_20' ) end [2025-01-28 14:26:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:26:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:26:38] Production.INFO: ==13263== Releasing lock... [2025-01-28 14:26:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:26:38] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:27:05 [end_date_ymd] => 2025-01-28 14:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:27:05' and `end` < '2025-01-28 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-28 14:27:28] Production.INFO: count ==5652 [2025-01-28 14:27:30] Production.ERROR: pbx CDR StartTime 2025-01-28 11:27:05 - End Time 2025-01-28 14:27:05 [2025-01-28 14:27:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349596', 'tblTempUsageDetail_20' ) start [2025-01-28 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349596', 'tblTempUsageDetail_20' ) end [2025-01-28 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349596', 'tblTempVendorCDR_20' ) start [2025-01-28 14:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349596', 'tblTempVendorCDR_20' ) end [2025-01-28 14:27:30] Production.INFO: ProcessCDR(1,14349596,1,1,2) [2025-01-28 14:27:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:27:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:27:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:27:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349596', 'tblTempUsageDetail_20' ) start [2025-01-28 14:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349596', 'tblTempUsageDetail_20' ) end [2025-01-28 14:27:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:27:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:27:35] Production.INFO: ==13333== Releasing lock... [2025-01-28 14:27:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:27:35] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:28:05 [end_date_ymd] => 2025-01-28 14:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:28:05' and `end` < '2025-01-28 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-28 14:28:27] Production.INFO: count ==5643 [2025-01-28 14:28:29] Production.ERROR: pbx CDR StartTime 2025-01-28 11:28:05 - End Time 2025-01-28 14:28:05 [2025-01-28 14:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349601', 'tblTempUsageDetail_20' ) start [2025-01-28 14:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349601', 'tblTempUsageDetail_20' ) end [2025-01-28 14:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349601', 'tblTempVendorCDR_20' ) start [2025-01-28 14:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349601', 'tblTempVendorCDR_20' ) end [2025-01-28 14:28:29] Production.INFO: ProcessCDR(1,14349601,1,1,2) [2025-01-28 14:28:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:28:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:28:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:28:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349601', 'tblTempUsageDetail_20' ) start [2025-01-28 14:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349601', 'tblTempUsageDetail_20' ) end [2025-01-28 14:28:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:28:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:28:35] Production.INFO: ==13405== Releasing lock... [2025-01-28 14:28:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:28:35] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:29:05 [end_date_ymd] => 2025-01-28 14:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:29:05' and `end` < '2025-01-28 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-28 14:29:34] Production.INFO: count ==5666 [2025-01-28 14:29:36] Production.ERROR: pbx CDR StartTime 2025-01-28 11:29:05 - End Time 2025-01-28 14:29:05 [2025-01-28 14:29:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349606', 'tblTempUsageDetail_20' ) start [2025-01-28 14:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349606', 'tblTempUsageDetail_20' ) end [2025-01-28 14:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349606', 'tblTempVendorCDR_20' ) start [2025-01-28 14:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349606', 'tblTempVendorCDR_20' ) end [2025-01-28 14:29:36] Production.INFO: ProcessCDR(1,14349606,1,1,2) [2025-01-28 14:29:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:29:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:29:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:29:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:29:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349606', 'tblTempUsageDetail_20' ) start [2025-01-28 14:29:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349606', 'tblTempUsageDetail_20' ) end [2025-01-28 14:29:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:29:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:29:41] Production.INFO: ==13474== Releasing lock... [2025-01-28 14:29:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:29:41] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:30:07 [end_date_ymd] => 2025-01-28 14:30:07 [RateCDR] => 1 ) [2025-01-28 14:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:30:07' and `end` < '2025-01-28 14:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:30:30] Production.INFO: count ==5668 [2025-01-28 14:30:32] Production.ERROR: pbx CDR StartTime 2025-01-28 11:30:07 - End Time 2025-01-28 14:30:07 [2025-01-28 14:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349612', 'tblTempUsageDetail_20' ) start [2025-01-28 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349612', 'tblTempUsageDetail_20' ) end [2025-01-28 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349612', 'tblTempVendorCDR_20' ) start [2025-01-28 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349612', 'tblTempVendorCDR_20' ) end [2025-01-28 14:30:32] Production.INFO: ProcessCDR(1,14349612,1,1,2) [2025-01-28 14:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349612', 'tblTempUsageDetail_20' ) start [2025-01-28 14:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349612', 'tblTempUsageDetail_20' ) end [2025-01-28 14:30:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:30:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:30:38] Production.INFO: ==13550== Releasing lock... [2025-01-28 14:30:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:30:38] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:31:05 [end_date_ymd] => 2025-01-28 14:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:31:05' and `end` < '2025-01-28 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-28 14:31:25] Production.INFO: count ==5634 [2025-01-28 14:31:27] Production.ERROR: pbx CDR StartTime 2025-01-28 11:31:05 - End Time 2025-01-28 14:31:05 [2025-01-28 14:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349617', 'tblTempUsageDetail_20' ) start [2025-01-28 14:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349617', 'tblTempUsageDetail_20' ) end [2025-01-28 14:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349617', 'tblTempVendorCDR_20' ) start [2025-01-28 14:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349617', 'tblTempVendorCDR_20' ) end [2025-01-28 14:31:27] Production.INFO: ProcessCDR(1,14349617,1,1,2) [2025-01-28 14:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:31:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:31:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349617', 'tblTempUsageDetail_20' ) start [2025-01-28 14:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349617', 'tblTempUsageDetail_20' ) end [2025-01-28 14:31:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:31:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:31:32] Production.INFO: ==13623== Releasing lock... [2025-01-28 14:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:31:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:32:06 [end_date_ymd] => 2025-01-28 14:32:06 [RateCDR] => 1 ) [2025-01-28 14: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-28 11:32:06' and `end` < '2025-01-28 14: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-28 14:32:31] Production.INFO: count ==5633 [2025-01-28 14:32:34] Production.ERROR: pbx CDR StartTime 2025-01-28 11:32:06 - End Time 2025-01-28 14:32:06 [2025-01-28 14:32:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349622', 'tblTempUsageDetail_20' ) start [2025-01-28 14:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349622', 'tblTempUsageDetail_20' ) end [2025-01-28 14:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349622', 'tblTempVendorCDR_20' ) start [2025-01-28 14:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349622', 'tblTempVendorCDR_20' ) end [2025-01-28 14:32:34] Production.INFO: ProcessCDR(1,14349622,1,1,2) [2025-01-28 14:32:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:32:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:32:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:32:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349622', 'tblTempUsageDetail_20' ) start [2025-01-28 14:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349622', 'tblTempUsageDetail_20' ) end [2025-01-28 14:32:40] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:32:40] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:32:40] Production.INFO: ==13695== Releasing lock... [2025-01-28 14:32:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:32:40] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:33:06 [end_date_ymd] => 2025-01-28 14:33:06 [RateCDR] => 1 ) [2025-01-28 14: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-28 11:33:06' and `end` < '2025-01-28 14: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-28 14:33:26] Production.INFO: count ==5643 [2025-01-28 14:33:28] Production.ERROR: pbx CDR StartTime 2025-01-28 11:33:06 - End Time 2025-01-28 14:33:06 [2025-01-28 14:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349627', 'tblTempUsageDetail_20' ) start [2025-01-28 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349627', 'tblTempUsageDetail_20' ) end [2025-01-28 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349627', 'tblTempVendorCDR_20' ) start [2025-01-28 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349627', 'tblTempVendorCDR_20' ) end [2025-01-28 14:33:28] Production.INFO: ProcessCDR(1,14349627,1,1,2) [2025-01-28 14:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349627', 'tblTempUsageDetail_20' ) start [2025-01-28 14:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349627', 'tblTempUsageDetail_20' ) end [2025-01-28 14:33:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:33:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:33:34] Production.INFO: ==13765== Releasing lock... [2025-01-28 14:33:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:33:34] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:34:05 [end_date_ymd] => 2025-01-28 14:34:05 [RateCDR] => 1 ) [2025-01-28 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:34:05' and `end` < '2025-01-28 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:34:36] Production.INFO: count ==5633 [2025-01-28 14:34:38] Production.ERROR: pbx CDR StartTime 2025-01-28 11:34:05 - End Time 2025-01-28 14:34:05 [2025-01-28 14:34:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:34:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349632', 'tblTempUsageDetail_20' ) start [2025-01-28 14:34:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349632', 'tblTempUsageDetail_20' ) end [2025-01-28 14:34:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349632', 'tblTempVendorCDR_20' ) start [2025-01-28 14:34:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349632', 'tblTempVendorCDR_20' ) end [2025-01-28 14:34:38] Production.INFO: ProcessCDR(1,14349632,1,1,2) [2025-01-28 14:34:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:34:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:34:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:34:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:34:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349632', 'tblTempUsageDetail_20' ) start [2025-01-28 14:34:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349632', 'tblTempUsageDetail_20' ) end [2025-01-28 14:34:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:34:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:34:43] Production.INFO: ==13836== Releasing lock... [2025-01-28 14:34:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:34:43] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:35:05 [end_date_ymd] => 2025-01-28 14:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:35:05' and `end` < '2025-01-28 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-28 14:35:36] Production.INFO: count ==5627 [2025-01-28 14:35:38] Production.ERROR: pbx CDR StartTime 2025-01-28 11:35:05 - End Time 2025-01-28 14:35:05 [2025-01-28 14:35:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349637', 'tblTempUsageDetail_20' ) start [2025-01-28 14:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349637', 'tblTempUsageDetail_20' ) end [2025-01-28 14:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349637', 'tblTempVendorCDR_20' ) start [2025-01-28 14:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349637', 'tblTempVendorCDR_20' ) end [2025-01-28 14:35:38] Production.INFO: ProcessCDR(1,14349637,1,1,2) [2025-01-28 14:35:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:35:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:35:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:35:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:35:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349637', 'tblTempUsageDetail_20' ) start [2025-01-28 14:35:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349637', 'tblTempUsageDetail_20' ) end [2025-01-28 14:35:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:35:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:35:43] Production.INFO: ==13918== Releasing lock... [2025-01-28 14:35:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:35:43] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:36:05 [end_date_ymd] => 2025-01-28 14:36:05 [RateCDR] => 1 ) [2025-01-28 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:36:05' and `end` < '2025-01-28 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:36:29] Production.INFO: count ==5617 [2025-01-28 14:36:31] Production.ERROR: pbx CDR StartTime 2025-01-28 11:36:05 - End Time 2025-01-28 14:36:05 [2025-01-28 14:36:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:36:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349642', 'tblTempUsageDetail_20' ) start [2025-01-28 14:36:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349642', 'tblTempUsageDetail_20' ) end [2025-01-28 14:36:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349642', 'tblTempVendorCDR_20' ) start [2025-01-28 14:36:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349642', 'tblTempVendorCDR_20' ) end [2025-01-28 14:36:31] Production.INFO: ProcessCDR(1,14349642,1,1,2) [2025-01-28 14:36:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:36:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:36:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:36:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:36:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349642', 'tblTempUsageDetail_20' ) start [2025-01-28 14:36:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349642', 'tblTempUsageDetail_20' ) end [2025-01-28 14:36:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:36:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:36:36] Production.INFO: ==13989== Releasing lock... [2025-01-28 14:36:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:36:36] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:37:05 [end_date_ymd] => 2025-01-28 14:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:37:05' and `end` < '2025-01-28 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-28 14:37:24] Production.INFO: count ==5597 [2025-01-28 14:37:26] Production.ERROR: pbx CDR StartTime 2025-01-28 11:37:05 - End Time 2025-01-28 14:37:05 [2025-01-28 14:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349647', 'tblTempUsageDetail_20' ) start [2025-01-28 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349647', 'tblTempUsageDetail_20' ) end [2025-01-28 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349647', 'tblTempVendorCDR_20' ) start [2025-01-28 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349647', 'tblTempVendorCDR_20' ) end [2025-01-28 14:37:26] Production.INFO: ProcessCDR(1,14349647,1,1,2) [2025-01-28 14:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349647', 'tblTempUsageDetail_20' ) start [2025-01-28 14:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349647', 'tblTempUsageDetail_20' ) end [2025-01-28 14:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:37:31] Production.INFO: ==14070== Releasing lock... [2025-01-28 14:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:37:31] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:38:06 [end_date_ymd] => 2025-01-28 14:38:06 [RateCDR] => 1 ) [2025-01-28 14:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:38:06' and `end` < '2025-01-28 14:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:38:25] Production.INFO: count ==5591 [2025-01-28 14:38:27] Production.ERROR: pbx CDR StartTime 2025-01-28 11:38:06 - End Time 2025-01-28 14:38:06 [2025-01-28 14:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349652', 'tblTempUsageDetail_20' ) start [2025-01-28 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349652', 'tblTempUsageDetail_20' ) end [2025-01-28 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349652', 'tblTempVendorCDR_20' ) start [2025-01-28 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349652', 'tblTempVendorCDR_20' ) end [2025-01-28 14:38:27] Production.INFO: ProcessCDR(1,14349652,1,1,2) [2025-01-28 14:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349652', 'tblTempUsageDetail_20' ) start [2025-01-28 14:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349652', 'tblTempUsageDetail_20' ) end [2025-01-28 14:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:38:32] Production.INFO: ==14145== Releasing lock... [2025-01-28 14:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:38:32] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:39:05 [end_date_ymd] => 2025-01-28 14:39:05 [RateCDR] => 1 ) [2025-01-28 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:39:05' and `end` < '2025-01-28 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:39:24] Production.INFO: count ==5587 [2025-01-28 14:39:26] Production.ERROR: pbx CDR StartTime 2025-01-28 11:39:05 - End Time 2025-01-28 14:39:05 [2025-01-28 14:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349657', 'tblTempUsageDetail_20' ) start [2025-01-28 14:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349657', 'tblTempUsageDetail_20' ) end [2025-01-28 14:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349657', 'tblTempVendorCDR_20' ) start [2025-01-28 14:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349657', 'tblTempVendorCDR_20' ) end [2025-01-28 14:39:27] Production.INFO: ProcessCDR(1,14349657,1,1,2) [2025-01-28 14:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349657', 'tblTempUsageDetail_20' ) start [2025-01-28 14:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349657', 'tblTempUsageDetail_20' ) end [2025-01-28 14:39:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:39:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:39:32] Production.INFO: ==14219== Releasing lock... [2025-01-28 14:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:39:32] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:40:06 [end_date_ymd] => 2025-01-28 14:40:06 [RateCDR] => 1 ) [2025-01-28 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-28 11:40:06' and `end` < '2025-01-28 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-28 14:40:31] Production.INFO: count ==5616 [2025-01-28 14:40:33] Production.ERROR: pbx CDR StartTime 2025-01-28 11:40:06 - End Time 2025-01-28 14:40:06 [2025-01-28 14:40:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349663', 'tblTempUsageDetail_20' ) start [2025-01-28 14:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349663', 'tblTempUsageDetail_20' ) end [2025-01-28 14:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349663', 'tblTempVendorCDR_20' ) start [2025-01-28 14:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349663', 'tblTempVendorCDR_20' ) end [2025-01-28 14:40:34] Production.INFO: ProcessCDR(1,14349663,1,1,2) [2025-01-28 14:40:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:40:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:40:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:40:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349663', 'tblTempUsageDetail_20' ) start [2025-01-28 14:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349663', 'tblTempUsageDetail_20' ) end [2025-01-28 14:40:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:40:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:40:39] Production.INFO: ==14331== Releasing lock... [2025-01-28 14:40:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:40:39] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:41:05 [end_date_ymd] => 2025-01-28 14:41:05 [RateCDR] => 1 ) [2025-01-28 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:41:05' and `end` < '2025-01-28 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:41:23] Production.INFO: count ==5581 [2025-01-28 14:41:26] Production.ERROR: pbx CDR StartTime 2025-01-28 11:41:05 - End Time 2025-01-28 14:41:05 [2025-01-28 14:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349668', 'tblTempUsageDetail_20' ) start [2025-01-28 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349668', 'tblTempUsageDetail_20' ) end [2025-01-28 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349668', 'tblTempVendorCDR_20' ) start [2025-01-28 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349668', 'tblTempVendorCDR_20' ) end [2025-01-28 14:41:26] Production.INFO: ProcessCDR(1,14349668,1,1,2) [2025-01-28 14:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349668', 'tblTempUsageDetail_20' ) start [2025-01-28 14:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349668', 'tblTempUsageDetail_20' ) end [2025-01-28 14:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:41:31] Production.INFO: ==14404== Releasing lock... [2025-01-28 14:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:41:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:42:05 [end_date_ymd] => 2025-01-28 14:42:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:42:05' and `end` < '2025-01-28 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-28 14:42:24] Production.INFO: count ==5581 [2025-01-28 14:42:27] Production.ERROR: pbx CDR StartTime 2025-01-28 11:42:05 - End Time 2025-01-28 14:42:05 [2025-01-28 14:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349673', 'tblTempUsageDetail_20' ) start [2025-01-28 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349673', 'tblTempUsageDetail_20' ) end [2025-01-28 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349673', 'tblTempVendorCDR_20' ) start [2025-01-28 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349673', 'tblTempVendorCDR_20' ) end [2025-01-28 14:42:27] Production.INFO: ProcessCDR(1,14349673,1,1,2) [2025-01-28 14:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349673', 'tblTempUsageDetail_20' ) start [2025-01-28 14:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349673', 'tblTempUsageDetail_20' ) end [2025-01-28 14:42:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:42:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:42:32] Production.INFO: ==14476== Releasing lock... [2025-01-28 14:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:42:32] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:43:05 [end_date_ymd] => 2025-01-28 14:43:05 [RateCDR] => 1 ) [2025-01-28 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:43:05' and `end` < '2025-01-28 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:43:24] Production.INFO: count ==5577 [2025-01-28 14:43:26] Production.ERROR: pbx CDR StartTime 2025-01-28 11:43:05 - End Time 2025-01-28 14:43:05 [2025-01-28 14:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349678', 'tblTempUsageDetail_20' ) start [2025-01-28 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349678', 'tblTempUsageDetail_20' ) end [2025-01-28 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349678', 'tblTempVendorCDR_20' ) start [2025-01-28 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349678', 'tblTempVendorCDR_20' ) end [2025-01-28 14:43:26] Production.INFO: ProcessCDR(1,14349678,1,1,2) [2025-01-28 14:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349678', 'tblTempUsageDetail_20' ) start [2025-01-28 14:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349678', 'tblTempUsageDetail_20' ) end [2025-01-28 14:43:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:43:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:43:32] Production.INFO: ==14547== Releasing lock... [2025-01-28 14:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:43:32] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:44:05 [end_date_ymd] => 2025-01-28 14:44:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:44:05' and `end` < '2025-01-28 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-28 14:44:31] Production.INFO: count ==5614 [2025-01-28 14:44:33] Production.ERROR: pbx CDR StartTime 2025-01-28 11:44:05 - End Time 2025-01-28 14:44:05 [2025-01-28 14:44:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349683', 'tblTempUsageDetail_20' ) start [2025-01-28 14:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349683', 'tblTempUsageDetail_20' ) end [2025-01-28 14:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349683', 'tblTempVendorCDR_20' ) start [2025-01-28 14:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349683', 'tblTempVendorCDR_20' ) end [2025-01-28 14:44:33] Production.INFO: ProcessCDR(1,14349683,1,1,2) [2025-01-28 14:44:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:44:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:44:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:44:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:44:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349683', 'tblTempUsageDetail_20' ) start [2025-01-28 14:44:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349683', 'tblTempUsageDetail_20' ) end [2025-01-28 14:44:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:44:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:44:38] Production.INFO: ==14616== Releasing lock... [2025-01-28 14:44:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:44:38] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:45:05 [end_date_ymd] => 2025-01-28 14:45:05 [RateCDR] => 1 ) [2025-01-28 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:45:05' and `end` < '2025-01-28 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:45:28] Production.INFO: count ==5612 [2025-01-28 14:45:31] Production.ERROR: pbx CDR StartTime 2025-01-28 11:45:05 - End Time 2025-01-28 14:45:05 [2025-01-28 14:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349688', 'tblTempUsageDetail_20' ) start [2025-01-28 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349688', 'tblTempUsageDetail_20' ) end [2025-01-28 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349688', 'tblTempVendorCDR_20' ) start [2025-01-28 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349688', 'tblTempVendorCDR_20' ) end [2025-01-28 14:45:31] Production.INFO: ProcessCDR(1,14349688,1,1,2) [2025-01-28 14:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349688', 'tblTempUsageDetail_20' ) start [2025-01-28 14:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349688', 'tblTempUsageDetail_20' ) end [2025-01-28 14:45:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:45:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:45:36] Production.INFO: ==14688== Releasing lock... [2025-01-28 14:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:45:36] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:46:05 [end_date_ymd] => 2025-01-28 14:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:46:05' and `end` < '2025-01-28 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-28 14:46:24] Production.INFO: count ==5617 [2025-01-28 14:46:26] Production.ERROR: pbx CDR StartTime 2025-01-28 11:46:05 - End Time 2025-01-28 14:46:05 [2025-01-28 14:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349693', 'tblTempUsageDetail_20' ) start [2025-01-28 14:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349693', 'tblTempUsageDetail_20' ) end [2025-01-28 14:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349693', 'tblTempVendorCDR_20' ) start [2025-01-28 14:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349693', 'tblTempVendorCDR_20' ) end [2025-01-28 14:46:26] Production.INFO: ProcessCDR(1,14349693,1,1,2) [2025-01-28 14:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349693', 'tblTempUsageDetail_20' ) start [2025-01-28 14:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349693', 'tblTempUsageDetail_20' ) end [2025-01-28 14:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:46:31] Production.INFO: ==14763== Releasing lock... [2025-01-28 14:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:46:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:47:06 [end_date_ymd] => 2025-01-28 14:47:06 [RateCDR] => 1 ) [2025-01-28 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:47:06' and `end` < '2025-01-28 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:47:34] Production.INFO: count ==5654 [2025-01-28 14:47:36] Production.ERROR: pbx CDR StartTime 2025-01-28 11:47:06 - End Time 2025-01-28 14:47:06 [2025-01-28 14:47:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:47:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349698', 'tblTempUsageDetail_20' ) start [2025-01-28 14:47:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349698', 'tblTempUsageDetail_20' ) end [2025-01-28 14:47:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349698', 'tblTempVendorCDR_20' ) start [2025-01-28 14:47:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349698', 'tblTempVendorCDR_20' ) end [2025-01-28 14:47:36] Production.INFO: ProcessCDR(1,14349698,1,1,2) [2025-01-28 14:47:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:47:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:47:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:47:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:47:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349698', 'tblTempUsageDetail_20' ) start [2025-01-28 14:47:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349698', 'tblTempUsageDetail_20' ) end [2025-01-28 14:47:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:47:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:47:43] Production.INFO: ==14835== Releasing lock... [2025-01-28 14:47:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:47:43] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:48:05 [end_date_ymd] => 2025-01-28 14:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:48:05' and `end` < '2025-01-28 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-28 14:48:38] Production.INFO: count ==5665 [2025-01-28 14:48:40] Production.ERROR: pbx CDR StartTime 2025-01-28 11:48:05 - End Time 2025-01-28 14:48:05 [2025-01-28 14:48:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:48:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349703', 'tblTempUsageDetail_20' ) start [2025-01-28 14:48:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349703', 'tblTempUsageDetail_20' ) end [2025-01-28 14:48:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349703', 'tblTempVendorCDR_20' ) start [2025-01-28 14:48:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349703', 'tblTempVendorCDR_20' ) end [2025-01-28 14:48:41] Production.INFO: ProcessCDR(1,14349703,1,1,2) [2025-01-28 14:48:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:48:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:48:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:48:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:48:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349703', 'tblTempUsageDetail_20' ) start [2025-01-28 14:48:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349703', 'tblTempUsageDetail_20' ) end [2025-01-28 14:48:46] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:48:46] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:48:46] Production.INFO: ==14907== Releasing lock... [2025-01-28 14:48:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:48:46] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:49:06 [end_date_ymd] => 2025-01-28 14:49:06 [RateCDR] => 1 ) [2025-01-28 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-28 11:49:06' and `end` < '2025-01-28 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-28 14:49:36] Production.INFO: count ==5664 [2025-01-28 14:49:39] Production.ERROR: pbx CDR StartTime 2025-01-28 11:49:06 - End Time 2025-01-28 14:49:06 [2025-01-28 14:49:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349708', 'tblTempUsageDetail_20' ) start [2025-01-28 14:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349708', 'tblTempUsageDetail_20' ) end [2025-01-28 14:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349708', 'tblTempVendorCDR_20' ) start [2025-01-28 14:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349708', 'tblTempVendorCDR_20' ) end [2025-01-28 14:49:39] Production.INFO: ProcessCDR(1,14349708,1,1,2) [2025-01-28 14:49:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:49:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:49:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:49:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:49:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349708', 'tblTempUsageDetail_20' ) start [2025-01-28 14:49:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349708', 'tblTempUsageDetail_20' ) end [2025-01-28 14:49:44] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:49:45] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:49:45] Production.INFO: ==14979== Releasing lock... [2025-01-28 14:49:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:49:45] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:50:06 [end_date_ymd] => 2025-01-28 14:50:06 [RateCDR] => 1 ) [2025-01-28 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:50:06' and `end` < '2025-01-28 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:50:34] Production.INFO: count ==5669 [2025-01-28 14:50:37] Production.ERROR: pbx CDR StartTime 2025-01-28 11:50:06 - End Time 2025-01-28 14:50:06 [2025-01-28 14:50:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349714', 'tblTempUsageDetail_20' ) start [2025-01-28 14:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349714', 'tblTempUsageDetail_20' ) end [2025-01-28 14:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349714', 'tblTempVendorCDR_20' ) start [2025-01-28 14:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349714', 'tblTempVendorCDR_20' ) end [2025-01-28 14:50:38] Production.INFO: ProcessCDR(1,14349714,1,1,2) [2025-01-28 14:50:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:50:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:50:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:50:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:50:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349714', 'tblTempUsageDetail_20' ) start [2025-01-28 14:50:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349714', 'tblTempUsageDetail_20' ) end [2025-01-28 14:50:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:50:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:50:43] Production.INFO: ==15050== Releasing lock... [2025-01-28 14:50:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:50:43] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:51:06 [end_date_ymd] => 2025-01-28 14:51:06 [RateCDR] => 1 ) [2025-01-28 14:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:51:06' and `end` < '2025-01-28 14:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:51:30] Production.INFO: count ==5662 [2025-01-28 14:51:32] Production.ERROR: pbx CDR StartTime 2025-01-28 11:51:06 - End Time 2025-01-28 14:51:06 [2025-01-28 14:51:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349719', 'tblTempUsageDetail_20' ) start [2025-01-28 14:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349719', 'tblTempUsageDetail_20' ) end [2025-01-28 14:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349719', 'tblTempVendorCDR_20' ) start [2025-01-28 14:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349719', 'tblTempVendorCDR_20' ) end [2025-01-28 14:51:33] Production.INFO: ProcessCDR(1,14349719,1,1,2) [2025-01-28 14:51:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:51:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:51:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:51:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:51:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349719', 'tblTempUsageDetail_20' ) start [2025-01-28 14:51:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349719', 'tblTempUsageDetail_20' ) end [2025-01-28 14:51:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:51:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:51:38] Production.INFO: ==15131== Releasing lock... [2025-01-28 14:51:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:51:38] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:52:06 [end_date_ymd] => 2025-01-28 14:52:06 [RateCDR] => 1 ) [2025-01-28 14: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-28 11:52:06' and `end` < '2025-01-28 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:52:26] Production.INFO: count ==5654 [2025-01-28 14:52:28] Production.ERROR: pbx CDR StartTime 2025-01-28 11:52:06 - End Time 2025-01-28 14:52:06 [2025-01-28 14:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349724', 'tblTempUsageDetail_20' ) start [2025-01-28 14:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349724', 'tblTempUsageDetail_20' ) end [2025-01-28 14:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349724', 'tblTempVendorCDR_20' ) start [2025-01-28 14:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349724', 'tblTempVendorCDR_20' ) end [2025-01-28 14:52:28] Production.INFO: ProcessCDR(1,14349724,1,1,2) [2025-01-28 14:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349724', 'tblTempUsageDetail_20' ) start [2025-01-28 14:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349724', 'tblTempUsageDetail_20' ) end [2025-01-28 14:52:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:52:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:52:34] Production.INFO: ==15201== Releasing lock... [2025-01-28 14:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:52:34] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:53:06 [end_date_ymd] => 2025-01-28 14:53:06 [RateCDR] => 1 ) [2025-01-28 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-28 11:53:06' and `end` < '2025-01-28 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-28 14:53:25] Production.INFO: count ==5616 [2025-01-28 14:53:27] Production.ERROR: pbx CDR StartTime 2025-01-28 11:53:06 - End Time 2025-01-28 14:53:06 [2025-01-28 14:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349729', 'tblTempUsageDetail_20' ) start [2025-01-28 14:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349729', 'tblTempUsageDetail_20' ) end [2025-01-28 14:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349729', 'tblTempVendorCDR_20' ) start [2025-01-28 14:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349729', 'tblTempVendorCDR_20' ) end [2025-01-28 14:53:27] Production.INFO: ProcessCDR(1,14349729,1,1,2) [2025-01-28 14:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349729', 'tblTempUsageDetail_20' ) start [2025-01-28 14:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349729', 'tblTempUsageDetail_20' ) end [2025-01-28 14:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:53:32] Production.INFO: ==15280== Releasing lock... [2025-01-28 14:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:53:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:54:05 [end_date_ymd] => 2025-01-28 14:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:54:05' and `end` < '2025-01-28 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-28 14:54:19] Production.INFO: count ==5601 [2025-01-28 14:54:21] Production.ERROR: pbx CDR StartTime 2025-01-28 11:54:05 - End Time 2025-01-28 14:54:05 [2025-01-28 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349734', 'tblTempUsageDetail_20' ) start [2025-01-28 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349734', 'tblTempUsageDetail_20' ) end [2025-01-28 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349734', 'tblTempVendorCDR_20' ) start [2025-01-28 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349734', 'tblTempVendorCDR_20' ) end [2025-01-28 14:54:21] Production.INFO: ProcessCDR(1,14349734,1,1,2) [2025-01-28 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349734', 'tblTempUsageDetail_20' ) start [2025-01-28 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349734', 'tblTempUsageDetail_20' ) end [2025-01-28 14:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:54:25] Production.INFO: ==15349== Releasing lock... [2025-01-28 14:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:54:25] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:55:05 [end_date_ymd] => 2025-01-28 14:55:05 [RateCDR] => 1 ) [2025-01-28 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:55:05' and `end` < '2025-01-28 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:55:25] Production.INFO: count ==5591 [2025-01-28 14:55:28] Production.ERROR: pbx CDR StartTime 2025-01-28 11:55:05 - End Time 2025-01-28 14:55:05 [2025-01-28 14:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349739', 'tblTempUsageDetail_20' ) start [2025-01-28 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349739', 'tblTempUsageDetail_20' ) end [2025-01-28 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349739', 'tblTempVendorCDR_20' ) start [2025-01-28 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349739', 'tblTempVendorCDR_20' ) end [2025-01-28 14:55:28] Production.INFO: ProcessCDR(1,14349739,1,1,2) [2025-01-28 14:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349739', 'tblTempUsageDetail_20' ) start [2025-01-28 14:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349739', 'tblTempUsageDetail_20' ) end [2025-01-28 14:55:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:55:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:55:33] Production.INFO: ==15458== Releasing lock... [2025-01-28 14:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:55:33] Production.INFO: 70 MB #Memory Used# [2025-01-28 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:56:05 [end_date_ymd] => 2025-01-28 14:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:56:05' and `end` < '2025-01-28 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-28 14:56:29] Production.INFO: count ==5569 [2025-01-28 14:56:31] Production.ERROR: pbx CDR StartTime 2025-01-28 11:56:05 - End Time 2025-01-28 14:56:05 [2025-01-28 14:56:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349744', 'tblTempUsageDetail_20' ) start [2025-01-28 14:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349744', 'tblTempUsageDetail_20' ) end [2025-01-28 14:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349744', 'tblTempVendorCDR_20' ) start [2025-01-28 14:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349744', 'tblTempVendorCDR_20' ) end [2025-01-28 14:56:32] Production.INFO: ProcessCDR(1,14349744,1,1,2) [2025-01-28 14:56:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:56:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:56:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:56:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349744', 'tblTempUsageDetail_20' ) start [2025-01-28 14:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349744', 'tblTempUsageDetail_20' ) end [2025-01-28 14:56:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:56:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:56:36] Production.INFO: ==15529== Releasing lock... [2025-01-28 14:56:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:56:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:57:05 [end_date_ymd] => 2025-01-28 14:57:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:57:05' and `end` < '2025-01-28 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-28 14:57:28] Production.INFO: count ==5547 [2025-01-28 14:57:30] Production.ERROR: pbx CDR StartTime 2025-01-28 11:57:05 - End Time 2025-01-28 14:57:05 [2025-01-28 14:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349749', 'tblTempUsageDetail_20' ) start [2025-01-28 14:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349749', 'tblTempUsageDetail_20' ) end [2025-01-28 14:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349749', 'tblTempVendorCDR_20' ) start [2025-01-28 14:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349749', 'tblTempVendorCDR_20' ) end [2025-01-28 14:57:30] Production.INFO: ProcessCDR(1,14349749,1,1,2) [2025-01-28 14:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:57:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349749', 'tblTempUsageDetail_20' ) start [2025-01-28 14:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349749', 'tblTempUsageDetail_20' ) end [2025-01-28 14:57:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:57:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:57:35] Production.INFO: ==15608== Releasing lock... [2025-01-28 14:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:57:35] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:58:05 [end_date_ymd] => 2025-01-28 14:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 11:58:05' and `end` < '2025-01-28 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-28 14:58:31] Production.INFO: count ==5531 [2025-01-28 14:58:33] Production.ERROR: pbx CDR StartTime 2025-01-28 11:58:05 - End Time 2025-01-28 14:58:05 [2025-01-28 14:58:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349754', 'tblTempUsageDetail_20' ) start [2025-01-28 14:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349754', 'tblTempUsageDetail_20' ) end [2025-01-28 14:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349754', 'tblTempVendorCDR_20' ) start [2025-01-28 14:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349754', 'tblTempVendorCDR_20' ) end [2025-01-28 14:58:33] Production.INFO: ProcessCDR(1,14349754,1,1,2) [2025-01-28 14:58:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:58:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:58:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:58:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:58:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349754', 'tblTempUsageDetail_20' ) start [2025-01-28 14:58:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349754', 'tblTempUsageDetail_20' ) end [2025-01-28 14:58:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:58:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:58:38] Production.INFO: ==15679== Releasing lock... [2025-01-28 14:58:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:58:38] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 11:59:06 [end_date_ymd] => 2025-01-28 14:59:06 [RateCDR] => 1 ) [2025-01-28 14:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 11:59:06' and `end` < '2025-01-28 14:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 14:59:27] Production.INFO: count ==5527 [2025-01-28 14:59:29] Production.ERROR: pbx CDR StartTime 2025-01-28 11:59:06 - End Time 2025-01-28 14:59:06 [2025-01-28 14:59:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 14:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349759', 'tblTempUsageDetail_20' ) start [2025-01-28 14:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349759', 'tblTempUsageDetail_20' ) end [2025-01-28 14:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349759', 'tblTempVendorCDR_20' ) start [2025-01-28 14:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349759', 'tblTempVendorCDR_20' ) end [2025-01-28 14:59:30] Production.INFO: ProcessCDR(1,14349759,1,1,2) [2025-01-28 14:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:59:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 14:59:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:59:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 14:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349759', 'tblTempUsageDetail_20' ) start [2025-01-28 14:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349759', 'tblTempUsageDetail_20' ) end [2025-01-28 14:59:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 14:59:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 14:59:35] Production.INFO: ==15752== Releasing lock... [2025-01-28 14:59:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 14:59:35] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:00:06 [end_date_ymd] => 2025-01-28 15:00:06 [RateCDR] => 1 ) [2025-01-28 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:00:06' and `end` < '2025-01-28 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:00:25] Production.INFO: count ==5548 [2025-01-28 15:00:28] Production.ERROR: pbx CDR StartTime 2025-01-28 12:00:06 - End Time 2025-01-28 15:00:06 [2025-01-28 15:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349764', 'tblTempUsageDetail_20' ) start [2025-01-28 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349764', 'tblTempUsageDetail_20' ) end [2025-01-28 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349764', 'tblTempVendorCDR_20' ) start [2025-01-28 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349764', 'tblTempVendorCDR_20' ) end [2025-01-28 15:00:28] Production.INFO: ProcessCDR(1,14349764,1,1,2) [2025-01-28 15:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349764', 'tblTempUsageDetail_20' ) start [2025-01-28 15:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349764', 'tblTempUsageDetail_20' ) end [2025-01-28 15:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:00:34] Production.INFO: ==15825== Releasing lock... [2025-01-28 15:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:00:34] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:01:06 [end_date_ymd] => 2025-01-28 15:01:06 [RateCDR] => 1 ) [2025-01-28 15: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-28 12:01:06' and `end` < '2025-01-28 15: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-28 15:01:24] Production.INFO: count ==5510 [2025-01-28 15:01:26] Production.ERROR: pbx CDR StartTime 2025-01-28 12:01:06 - End Time 2025-01-28 15:01:06 [2025-01-28 15:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349770', 'tblTempUsageDetail_20' ) start [2025-01-28 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349770', 'tblTempUsageDetail_20' ) end [2025-01-28 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349770', 'tblTempVendorCDR_20' ) start [2025-01-28 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349770', 'tblTempVendorCDR_20' ) end [2025-01-28 15:01:26] Production.INFO: ProcessCDR(1,14349770,1,1,2) [2025-01-28 15:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349770', 'tblTempUsageDetail_20' ) start [2025-01-28 15:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349770', 'tblTempUsageDetail_20' ) end [2025-01-28 15:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:01:31] Production.INFO: ==15947== Releasing lock... [2025-01-28 15:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:01:31] Production.INFO: 69.25 MB #Memory Used# [2025-01-28 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:02:05 [end_date_ymd] => 2025-01-28 15:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:02:05' and `end` < '2025-01-28 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-28 15:02:27] Production.INFO: count ==5513 [2025-01-28 15:02:30] Production.ERROR: pbx CDR StartTime 2025-01-28 12:02:05 - End Time 2025-01-28 15:02:05 [2025-01-28 15:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349775', 'tblTempUsageDetail_20' ) start [2025-01-28 15:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349775', 'tblTempUsageDetail_20' ) end [2025-01-28 15:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349775', 'tblTempVendorCDR_20' ) start [2025-01-28 15:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349775', 'tblTempVendorCDR_20' ) end [2025-01-28 15:02:30] Production.INFO: ProcessCDR(1,14349775,1,1,2) [2025-01-28 15:02:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:02:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:02:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:02:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349775', 'tblTempUsageDetail_20' ) start [2025-01-28 15:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349775', 'tblTempUsageDetail_20' ) end [2025-01-28 15:02:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:02:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:02:35] Production.INFO: ==16061== Releasing lock... [2025-01-28 15:02:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:02:35] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:03:06 [end_date_ymd] => 2025-01-28 15:03:06 [RateCDR] => 1 ) [2025-01-28 15: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-28 12:03:06' and `end` < '2025-01-28 15: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-28 15:03:26] Production.INFO: count ==5522 [2025-01-28 15:03:28] Production.ERROR: pbx CDR StartTime 2025-01-28 12:03:06 - End Time 2025-01-28 15:03:06 [2025-01-28 15:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349780', 'tblTempUsageDetail_20' ) start [2025-01-28 15:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349780', 'tblTempUsageDetail_20' ) end [2025-01-28 15:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349780', 'tblTempVendorCDR_20' ) start [2025-01-28 15:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349780', 'tblTempVendorCDR_20' ) end [2025-01-28 15:03:28] Production.INFO: ProcessCDR(1,14349780,1,1,2) [2025-01-28 15:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349780', 'tblTempUsageDetail_20' ) start [2025-01-28 15:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349780', 'tblTempUsageDetail_20' ) end [2025-01-28 15:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:03:34] Production.INFO: ==16134== Releasing lock... [2025-01-28 15:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:03:34] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:04:06 [end_date_ymd] => 2025-01-28 15:04:06 [RateCDR] => 1 ) [2025-01-28 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-28 12:04:06' and `end` < '2025-01-28 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-28 15:04:23] Production.INFO: count ==5530 [2025-01-28 15:04:25] Production.ERROR: pbx CDR StartTime 2025-01-28 12:04:06 - End Time 2025-01-28 15:04:06 [2025-01-28 15:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349785', 'tblTempUsageDetail_20' ) start [2025-01-28 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349785', 'tblTempUsageDetail_20' ) end [2025-01-28 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349785', 'tblTempVendorCDR_20' ) start [2025-01-28 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349785', 'tblTempVendorCDR_20' ) end [2025-01-28 15:04:26] Production.INFO: ProcessCDR(1,14349785,1,1,2) [2025-01-28 15:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349785', 'tblTempUsageDetail_20' ) start [2025-01-28 15:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349785', 'tblTempUsageDetail_20' ) end [2025-01-28 15:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:04:32] Production.INFO: ==16209== Releasing lock... [2025-01-28 15:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:04:32] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:05:06 [end_date_ymd] => 2025-01-28 15:05:06 [RateCDR] => 1 ) [2025-01-28 15: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-28 12:05:06' and `end` < '2025-01-28 15: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-28 15:05:33] Production.INFO: count ==5558 [2025-01-28 15:05:35] Production.ERROR: pbx CDR StartTime 2025-01-28 12:05:06 - End Time 2025-01-28 15:05:06 [2025-01-28 15:05:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349790', 'tblTempUsageDetail_20' ) start [2025-01-28 15:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349790', 'tblTempUsageDetail_20' ) end [2025-01-28 15:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349790', 'tblTempVendorCDR_20' ) start [2025-01-28 15:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349790', 'tblTempVendorCDR_20' ) end [2025-01-28 15:05:35] Production.INFO: ProcessCDR(1,14349790,1,1,2) [2025-01-28 15:05:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:05:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:05:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:05:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:05:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349790', 'tblTempUsageDetail_20' ) start [2025-01-28 15:05:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349790', 'tblTempUsageDetail_20' ) end [2025-01-28 15:05:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:05:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:05:41] Production.INFO: ==16359== Releasing lock... [2025-01-28 15:05:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:05:41] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:06:05 [end_date_ymd] => 2025-01-28 15:06:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:06:05' and `end` < '2025-01-28 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-28 15:06:31] Production.INFO: count ==5562 [2025-01-28 15:06:33] Production.ERROR: pbx CDR StartTime 2025-01-28 12:06:05 - End Time 2025-01-28 15:06:05 [2025-01-28 15:06:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349795', 'tblTempUsageDetail_20' ) start [2025-01-28 15:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349795', 'tblTempUsageDetail_20' ) end [2025-01-28 15:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349795', 'tblTempVendorCDR_20' ) start [2025-01-28 15:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349795', 'tblTempVendorCDR_20' ) end [2025-01-28 15:06:33] Production.INFO: ProcessCDR(1,14349795,1,1,2) [2025-01-28 15:06:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:06:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:06:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349795', 'tblTempUsageDetail_20' ) start [2025-01-28 15:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349795', 'tblTempUsageDetail_20' ) end [2025-01-28 15:06:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:06:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:06:39] Production.INFO: ==16432== Releasing lock... [2025-01-28 15:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:06:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:07:06 [end_date_ymd] => 2025-01-28 15:07:06 [RateCDR] => 1 ) [2025-01-28 15:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:07:06' and `end` < '2025-01-28 15:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:07:30] Production.INFO: count ==5557 [2025-01-28 15:07:33] Production.ERROR: pbx CDR StartTime 2025-01-28 12:07:06 - End Time 2025-01-28 15:07:06 [2025-01-28 15:07:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349800', 'tblTempUsageDetail_20' ) start [2025-01-28 15:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349800', 'tblTempUsageDetail_20' ) end [2025-01-28 15:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349800', 'tblTempVendorCDR_20' ) start [2025-01-28 15:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349800', 'tblTempVendorCDR_20' ) end [2025-01-28 15:07:33] Production.INFO: ProcessCDR(1,14349800,1,1,2) [2025-01-28 15:07:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:07:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:07:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:07:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349800', 'tblTempUsageDetail_20' ) start [2025-01-28 15:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349800', 'tblTempUsageDetail_20' ) end [2025-01-28 15:07:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:07:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:07:38] Production.INFO: ==16505== Releasing lock... [2025-01-28 15:07:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:07:38] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:08:05 [end_date_ymd] => 2025-01-28 15:08:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:08:05' and `end` < '2025-01-28 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-28 15:08:28] Production.INFO: count ==5554 [2025-01-28 15:08:30] Production.ERROR: pbx CDR StartTime 2025-01-28 12:08:05 - End Time 2025-01-28 15:08:05 [2025-01-28 15:08:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349805', 'tblTempUsageDetail_20' ) start [2025-01-28 15:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349805', 'tblTempUsageDetail_20' ) end [2025-01-28 15:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349805', 'tblTempVendorCDR_20' ) start [2025-01-28 15:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349805', 'tblTempVendorCDR_20' ) end [2025-01-28 15:08:31] Production.INFO: ProcessCDR(1,14349805,1,1,2) [2025-01-28 15:08:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:08:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:08:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:08:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:08:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349805', 'tblTempUsageDetail_20' ) start [2025-01-28 15:08:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349805', 'tblTempUsageDetail_20' ) end [2025-01-28 15:08:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:08:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:08:36] Production.INFO: ==16662== Releasing lock... [2025-01-28 15:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:08:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:09:06 [end_date_ymd] => 2025-01-28 15:09:06 [RateCDR] => 1 ) [2025-01-28 15:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:09:06' and `end` < '2025-01-28 15:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:09:28] Production.INFO: count ==5551 [2025-01-28 15:09:30] Production.ERROR: pbx CDR StartTime 2025-01-28 12:09:06 - End Time 2025-01-28 15:09:06 [2025-01-28 15:09:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349810', 'tblTempUsageDetail_20' ) start [2025-01-28 15:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349810', 'tblTempUsageDetail_20' ) end [2025-01-28 15:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349810', 'tblTempVendorCDR_20' ) start [2025-01-28 15:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349810', 'tblTempVendorCDR_20' ) end [2025-01-28 15:09:30] Production.INFO: ProcessCDR(1,14349810,1,1,2) [2025-01-28 15:09:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349810', 'tblTempUsageDetail_20' ) start [2025-01-28 15:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349810', 'tblTempUsageDetail_20' ) end [2025-01-28 15:09:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:09:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:09:36] Production.INFO: ==16733== Releasing lock... [2025-01-28 15:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:09:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:10:05 [end_date_ymd] => 2025-01-28 15:10:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:10:05' and `end` < '2025-01-28 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-28 15:10:41] Production.INFO: count ==5581 [2025-01-28 15:10:43] Production.ERROR: pbx CDR StartTime 2025-01-28 12:10:05 - End Time 2025-01-28 15:10:05 [2025-01-28 15:10:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:10:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349816', 'tblTempUsageDetail_20' ) start [2025-01-28 15:10:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349816', 'tblTempUsageDetail_20' ) end [2025-01-28 15:10:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349816', 'tblTempVendorCDR_20' ) start [2025-01-28 15:10:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349816', 'tblTempVendorCDR_20' ) end [2025-01-28 15:10:43] Production.INFO: ProcessCDR(1,14349816,1,1,2) [2025-01-28 15:10:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:10:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:10:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:10:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:10:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349816', 'tblTempUsageDetail_20' ) start [2025-01-28 15:10:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349816', 'tblTempUsageDetail_20' ) end [2025-01-28 15:10:48] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:10:49] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:10:49] Production.INFO: ==16805== Releasing lock... [2025-01-28 15:10:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:10:49] Production.INFO: 70 MB #Memory Used# [2025-01-28 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:11:05 [end_date_ymd] => 2025-01-28 15:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:11:05' and `end` < '2025-01-28 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-28 15:11:32] Production.INFO: count ==5630 [2025-01-28 15:11:34] Production.ERROR: pbx CDR StartTime 2025-01-28 12:11:05 - End Time 2025-01-28 15:11:05 [2025-01-28 15:11:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349821', 'tblTempUsageDetail_20' ) start [2025-01-28 15:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349821', 'tblTempUsageDetail_20' ) end [2025-01-28 15:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349821', 'tblTempVendorCDR_20' ) start [2025-01-28 15:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349821', 'tblTempVendorCDR_20' ) end [2025-01-28 15:11:34] Production.INFO: ProcessCDR(1,14349821,1,1,2) [2025-01-28 15:11:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:11:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:11:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:11:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349821', 'tblTempUsageDetail_20' ) start [2025-01-28 15:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349821', 'tblTempUsageDetail_20' ) end [2025-01-28 15:11:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:11:40] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:11:40] Production.INFO: ==16922== Releasing lock... [2025-01-28 15:11:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:11:40] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:12:05 [end_date_ymd] => 2025-01-28 15:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:12:05' and `end` < '2025-01-28 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-28 15:12:19] Production.INFO: count ==5622 [2025-01-28 15:12:21] Production.ERROR: pbx CDR StartTime 2025-01-28 12:12:05 - End Time 2025-01-28 15:12:05 [2025-01-28 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349826', 'tblTempUsageDetail_20' ) start [2025-01-28 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349826', 'tblTempUsageDetail_20' ) end [2025-01-28 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349826', 'tblTempVendorCDR_20' ) start [2025-01-28 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349826', 'tblTempVendorCDR_20' ) end [2025-01-28 15:12:22] Production.INFO: ProcessCDR(1,14349826,1,1,2) [2025-01-28 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349826', 'tblTempUsageDetail_20' ) start [2025-01-28 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349826', 'tblTempUsageDetail_20' ) end [2025-01-28 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:12:27] Production.INFO: ==17071== Releasing lock... [2025-01-28 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:12:27] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:13:06 [end_date_ymd] => 2025-01-28 15:13:06 [RateCDR] => 1 ) [2025-01-28 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:13:06' and `end` < '2025-01-28 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:13:21] Production.INFO: count ==5650 [2025-01-28 15:13:23] Production.ERROR: pbx CDR StartTime 2025-01-28 12:13:06 - End Time 2025-01-28 15:13:06 [2025-01-28 15:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349831', 'tblTempUsageDetail_20' ) start [2025-01-28 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349831', 'tblTempUsageDetail_20' ) end [2025-01-28 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349831', 'tblTempVendorCDR_20' ) start [2025-01-28 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349831', 'tblTempVendorCDR_20' ) end [2025-01-28 15:13:24] Production.INFO: ProcessCDR(1,14349831,1,1,2) [2025-01-28 15:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349831', 'tblTempUsageDetail_20' ) start [2025-01-28 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349831', 'tblTempUsageDetail_20' ) end [2025-01-28 15:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:13:29] Production.INFO: ==17148== Releasing lock... [2025-01-28 15:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:13:29] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:14:05 [end_date_ymd] => 2025-01-28 15:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:14:05' and `end` < '2025-01-28 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-28 15:14:28] Production.INFO: count ==5698 [2025-01-28 15:14:31] Production.ERROR: pbx CDR StartTime 2025-01-28 12:14:05 - End Time 2025-01-28 15:14:05 [2025-01-28 15:14:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349836', 'tblTempUsageDetail_20' ) start [2025-01-28 15:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349836', 'tblTempUsageDetail_20' ) end [2025-01-28 15:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349836', 'tblTempVendorCDR_20' ) start [2025-01-28 15:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349836', 'tblTempVendorCDR_20' ) end [2025-01-28 15:14:31] Production.INFO: ProcessCDR(1,14349836,1,1,2) [2025-01-28 15:14:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:14:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:14:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:14:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:14:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349836', 'tblTempUsageDetail_20' ) start [2025-01-28 15:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349836', 'tblTempUsageDetail_20' ) end [2025-01-28 15:14:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:14:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:14:37] Production.INFO: ==17228== Releasing lock... [2025-01-28 15:14:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:14:37] Production.INFO: 70.75 MB #Memory Used# [2025-01-28 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:15:06 [end_date_ymd] => 2025-01-28 15:15:06 [RateCDR] => 1 ) [2025-01-28 15: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-28 12:15:06' and `end` < '2025-01-28 15: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-28 15:15:23] Production.INFO: count ==5714 [2025-01-28 15:15:25] Production.ERROR: pbx CDR StartTime 2025-01-28 12:15:06 - End Time 2025-01-28 15:15:06 [2025-01-28 15:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349841', 'tblTempUsageDetail_20' ) start [2025-01-28 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349841', 'tblTempUsageDetail_20' ) end [2025-01-28 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349841', 'tblTempVendorCDR_20' ) start [2025-01-28 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349841', 'tblTempVendorCDR_20' ) end [2025-01-28 15:15:26] Production.INFO: ProcessCDR(1,14349841,1,1,2) [2025-01-28 15:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349841', 'tblTempUsageDetail_20' ) start [2025-01-28 15:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349841', 'tblTempUsageDetail_20' ) end [2025-01-28 15:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:15:31] Production.INFO: ==17386== Releasing lock... [2025-01-28 15:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:15:31] Production.INFO: 71 MB #Memory Used# [2025-01-28 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:16:05 [end_date_ymd] => 2025-01-28 15:16:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:16:05' and `end` < '2025-01-28 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-28 15:16:23] Production.INFO: count ==5705 [2025-01-28 15:16:25] Production.ERROR: pbx CDR StartTime 2025-01-28 12:16:05 - End Time 2025-01-28 15:16:05 [2025-01-28 15:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349842', 'tblTempUsageDetail_20' ) start [2025-01-28 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349842', 'tblTempUsageDetail_20' ) end [2025-01-28 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349842', 'tblTempVendorCDR_20' ) start [2025-01-28 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349842', 'tblTempVendorCDR_20' ) end [2025-01-28 15:16:25] Production.INFO: ProcessCDR(1,14349842,1,1,2) [2025-01-28 15:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349842', 'tblTempUsageDetail_20' ) start [2025-01-28 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349842', 'tblTempUsageDetail_20' ) end [2025-01-28 15:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:16:29] Production.INFO: ==17463== Releasing lock... [2025-01-28 15:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:16:29] Production.INFO: 70.75 MB #Memory Used# [2025-01-28 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:17:05 [end_date_ymd] => 2025-01-28 15:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:17:05' and `end` < '2025-01-28 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-28 15:17:19] Production.INFO: count ==5702 [2025-01-28 15:17:22] Production.ERROR: pbx CDR StartTime 2025-01-28 12:17:05 - End Time 2025-01-28 15:17:05 [2025-01-28 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349851', 'tblTempUsageDetail_20' ) start [2025-01-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349851', 'tblTempUsageDetail_20' ) end [2025-01-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349851', 'tblTempVendorCDR_20' ) start [2025-01-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349851', 'tblTempVendorCDR_20' ) end [2025-01-28 15:17:22] Production.INFO: ProcessCDR(1,14349851,1,1,2) [2025-01-28 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349851', 'tblTempUsageDetail_20' ) start [2025-01-28 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349851', 'tblTempUsageDetail_20' ) end [2025-01-28 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:17:26] Production.INFO: ==17538== Releasing lock... [2025-01-28 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:17:26] Production.INFO: 70.75 MB #Memory Used# [2025-01-28 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:18:05 [end_date_ymd] => 2025-01-28 15:18:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:18:05' and `end` < '2025-01-28 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-28 15:18:19] Production.INFO: count ==5699 [2025-01-28 15:18:21] Production.ERROR: pbx CDR StartTime 2025-01-28 12:18:05 - End Time 2025-01-28 15:18:05 [2025-01-28 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349856', 'tblTempUsageDetail_20' ) start [2025-01-28 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349856', 'tblTempUsageDetail_20' ) end [2025-01-28 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349856', 'tblTempVendorCDR_20' ) start [2025-01-28 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349856', 'tblTempVendorCDR_20' ) end [2025-01-28 15:18:21] Production.INFO: ProcessCDR(1,14349856,1,1,2) [2025-01-28 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349856', 'tblTempUsageDetail_20' ) start [2025-01-28 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349856', 'tblTempUsageDetail_20' ) end [2025-01-28 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:18:26] Production.INFO: ==17611== Releasing lock... [2025-01-28 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:18:26] Production.INFO: 70.75 MB #Memory Used# [2025-01-28 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:19:05 [end_date_ymd] => 2025-01-28 15:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:19:05' and `end` < '2025-01-28 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-28 15:19:19] Production.INFO: count ==5701 [2025-01-28 15:19:21] Production.ERROR: pbx CDR StartTime 2025-01-28 12:19:05 - End Time 2025-01-28 15:19:05 [2025-01-28 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349861', 'tblTempUsageDetail_20' ) start [2025-01-28 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349861', 'tblTempUsageDetail_20' ) end [2025-01-28 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349861', 'tblTempVendorCDR_20' ) start [2025-01-28 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349861', 'tblTempVendorCDR_20' ) end [2025-01-28 15:19:22] Production.INFO: ProcessCDR(1,14349861,1,1,2) [2025-01-28 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349861', 'tblTempUsageDetail_20' ) start [2025-01-28 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349861', 'tblTempUsageDetail_20' ) end [2025-01-28 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:19:26] Production.INFO: ==17683== Releasing lock... [2025-01-28 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:19:26] Production.INFO: 70.75 MB #Memory Used# [2025-01-28 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:20:06 [end_date_ymd] => 2025-01-28 15:20:06 [RateCDR] => 1 ) [2025-01-28 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:20:06' and `end` < '2025-01-28 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:20:20] Production.INFO: count ==5727 [2025-01-28 15:20:22] Production.ERROR: pbx CDR StartTime 2025-01-28 12:20:06 - End Time 2025-01-28 15:20:06 [2025-01-28 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349867', 'tblTempUsageDetail_20' ) start [2025-01-28 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349867', 'tblTempUsageDetail_20' ) end [2025-01-28 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349867', 'tblTempVendorCDR_20' ) start [2025-01-28 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349867', 'tblTempVendorCDR_20' ) end [2025-01-28 15:20:22] Production.INFO: ProcessCDR(1,14349867,1,1,2) [2025-01-28 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349867', 'tblTempUsageDetail_20' ) start [2025-01-28 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349867', 'tblTempUsageDetail_20' ) end [2025-01-28 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:20:28] Production.INFO: ==17763== Releasing lock... [2025-01-28 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:20:28] Production.INFO: 71 MB #Memory Used# [2025-01-28 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:21:05 [end_date_ymd] => 2025-01-28 15:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:21:05' and `end` < '2025-01-28 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-28 15:21:19] Production.INFO: count ==5695 [2025-01-28 15:21:21] Production.ERROR: pbx CDR StartTime 2025-01-28 12:21:05 - End Time 2025-01-28 15:21:05 [2025-01-28 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349872', 'tblTempUsageDetail_20' ) start [2025-01-28 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349872', 'tblTempUsageDetail_20' ) end [2025-01-28 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349872', 'tblTempVendorCDR_20' ) start [2025-01-28 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349872', 'tblTempVendorCDR_20' ) end [2025-01-28 15:21:22] Production.INFO: ProcessCDR(1,14349872,1,1,2) [2025-01-28 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349872', 'tblTempUsageDetail_20' ) start [2025-01-28 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349872', 'tblTempUsageDetail_20' ) end [2025-01-28 15:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:21:25] Production.INFO: ==17838== Releasing lock... [2025-01-28 15:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:21:25] Production.INFO: 70.75 MB #Memory Used# [2025-01-28 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:22:06 [end_date_ymd] => 2025-01-28 15:22:06 [RateCDR] => 1 ) [2025-01-28 15: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-28 12:22:06' and `end` < '2025-01-28 15: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-28 15:22:33] Production.INFO: count ==5717 [2025-01-28 15:22:35] Production.ERROR: pbx CDR StartTime 2025-01-28 12:22:06 - End Time 2025-01-28 15:22:06 [2025-01-28 15:22:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349877', 'tblTempUsageDetail_20' ) start [2025-01-28 15:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349877', 'tblTempUsageDetail_20' ) end [2025-01-28 15:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349877', 'tblTempVendorCDR_20' ) start [2025-01-28 15:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349877', 'tblTempVendorCDR_20' ) end [2025-01-28 15:22:35] Production.INFO: ProcessCDR(1,14349877,1,1,2) [2025-01-28 15:22:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:22:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:22:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:22:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:22:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349877', 'tblTempUsageDetail_20' ) start [2025-01-28 15:22:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349877', 'tblTempUsageDetail_20' ) end [2025-01-28 15:22:40] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:22:40] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:22:40] Production.INFO: ==17913== Releasing lock... [2025-01-28 15:22:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:22:40] Production.INFO: 71 MB #Memory Used# [2025-01-28 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:23:05 [end_date_ymd] => 2025-01-28 15:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:23:05' and `end` < '2025-01-28 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-28 15:23:34] Production.INFO: count ==5720 [2025-01-28 15:23:36] Production.ERROR: pbx CDR StartTime 2025-01-28 12:23:05 - End Time 2025-01-28 15:23:05 [2025-01-28 15:23:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349882', 'tblTempUsageDetail_20' ) start [2025-01-28 15:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349882', 'tblTempUsageDetail_20' ) end [2025-01-28 15:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349882', 'tblTempVendorCDR_20' ) start [2025-01-28 15:23:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349882', 'tblTempVendorCDR_20' ) end [2025-01-28 15:23:36] Production.INFO: ProcessCDR(1,14349882,1,1,2) [2025-01-28 15:23:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:23:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:23:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:23:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:23:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349882', 'tblTempUsageDetail_20' ) start [2025-01-28 15:23:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349882', 'tblTempUsageDetail_20' ) end [2025-01-28 15:23:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:23:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:23:41] Production.INFO: ==17990== Releasing lock... [2025-01-28 15:23:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:23:41] Production.INFO: 71 MB #Memory Used# [2025-01-28 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:24:05 [end_date_ymd] => 2025-01-28 15:24:05 [RateCDR] => 1 ) [2025-01-28 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:24:05' and `end` < '2025-01-28 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:24:25] Production.INFO: count ==5734 [2025-01-28 15:24:28] Production.ERROR: pbx CDR StartTime 2025-01-28 12:24:05 - End Time 2025-01-28 15:24:05 [2025-01-28 15:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349887', 'tblTempUsageDetail_20' ) start [2025-01-28 15:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349887', 'tblTempUsageDetail_20' ) end [2025-01-28 15:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349887', 'tblTempVendorCDR_20' ) start [2025-01-28 15:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349887', 'tblTempVendorCDR_20' ) end [2025-01-28 15:24:28] Production.INFO: ProcessCDR(1,14349887,1,1,2) [2025-01-28 15:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349887', 'tblTempUsageDetail_20' ) start [2025-01-28 15:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349887', 'tblTempUsageDetail_20' ) end [2025-01-28 15:24:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:24:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:24:33] Production.INFO: ==18063== Releasing lock... [2025-01-28 15:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:24:33] Production.INFO: 71 MB #Memory Used# [2025-01-28 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:25:05 [end_date_ymd] => 2025-01-28 15:25:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:25:05' and `end` < '2025-01-28 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-28 15:25:24] Production.INFO: count ==5717 [2025-01-28 15:25:27] Production.ERROR: pbx CDR StartTime 2025-01-28 12:25:05 - End Time 2025-01-28 15:25:05 [2025-01-28 15:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349892', 'tblTempUsageDetail_20' ) start [2025-01-28 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349892', 'tblTempUsageDetail_20' ) end [2025-01-28 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349892', 'tblTempVendorCDR_20' ) start [2025-01-28 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349892', 'tblTempVendorCDR_20' ) end [2025-01-28 15:25:27] Production.INFO: ProcessCDR(1,14349892,1,1,2) [2025-01-28 15:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349892', 'tblTempUsageDetail_20' ) start [2025-01-28 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349892', 'tblTempUsageDetail_20' ) end [2025-01-28 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:25:32] Production.INFO: ==18146== Releasing lock... [2025-01-28 15:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:25:32] Production.INFO: 71 MB #Memory Used# [2025-01-28 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:26:05 [end_date_ymd] => 2025-01-28 15:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:26:05' and `end` < '2025-01-28 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-28 15:26:31] Production.INFO: count ==5737 [2025-01-28 15:26:34] Production.ERROR: pbx CDR StartTime 2025-01-28 12:26:05 - End Time 2025-01-28 15:26:05 [2025-01-28 15:26:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349897', 'tblTempUsageDetail_20' ) start [2025-01-28 15:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349897', 'tblTempUsageDetail_20' ) end [2025-01-28 15:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349897', 'tblTempVendorCDR_20' ) start [2025-01-28 15:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349897', 'tblTempVendorCDR_20' ) end [2025-01-28 15:26:34] Production.INFO: ProcessCDR(1,14349897,1,1,2) [2025-01-28 15:26:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:26:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:26:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:26:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:26:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349897', 'tblTempUsageDetail_20' ) start [2025-01-28 15:26:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349897', 'tblTempUsageDetail_20' ) end [2025-01-28 15:26:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:26:40] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:26:40] Production.INFO: ==18283== Releasing lock... [2025-01-28 15:26:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:26:40] Production.INFO: 71 MB #Memory Used# [2025-01-28 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:27:05 [end_date_ymd] => 2025-01-28 15:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:27:05' and `end` < '2025-01-28 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-28 15:27:33] Production.INFO: count ==5736 [2025-01-28 15:27:35] Production.ERROR: pbx CDR StartTime 2025-01-28 12:27:05 - End Time 2025-01-28 15:27:05 [2025-01-28 15:27:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349902', 'tblTempUsageDetail_20' ) start [2025-01-28 15:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349902', 'tblTempUsageDetail_20' ) end [2025-01-28 15:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349902', 'tblTempVendorCDR_20' ) start [2025-01-28 15:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349902', 'tblTempVendorCDR_20' ) end [2025-01-28 15:27:35] Production.INFO: ProcessCDR(1,14349902,1,1,2) [2025-01-28 15:27:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:27:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:27:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:27:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:27:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349902', 'tblTempUsageDetail_20' ) start [2025-01-28 15:27:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349902', 'tblTempUsageDetail_20' ) end [2025-01-28 15:27:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:27:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:27:41] Production.INFO: ==18367== Releasing lock... [2025-01-28 15:27:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:27:41] Production.INFO: 71 MB #Memory Used# [2025-01-28 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:28:05 [end_date_ymd] => 2025-01-28 15:28:05 [RateCDR] => 1 ) [2025-01-28 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:28:05' and `end` < '2025-01-28 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:28:30] Production.INFO: count ==5722 [2025-01-28 15:28:33] Production.ERROR: pbx CDR StartTime 2025-01-28 12:28:05 - End Time 2025-01-28 15:28:05 [2025-01-28 15:28:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349907', 'tblTempUsageDetail_20' ) start [2025-01-28 15:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349907', 'tblTempUsageDetail_20' ) end [2025-01-28 15:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349907', 'tblTempVendorCDR_20' ) start [2025-01-28 15:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349907', 'tblTempVendorCDR_20' ) end [2025-01-28 15:28:33] Production.INFO: ProcessCDR(1,14349907,1,1,2) [2025-01-28 15:28:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:28:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:28:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:28:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:28:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349907', 'tblTempUsageDetail_20' ) start [2025-01-28 15:28:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349907', 'tblTempUsageDetail_20' ) end [2025-01-28 15:28:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:28:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:28:38] Production.INFO: ==18459== Releasing lock... [2025-01-28 15:28:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:28:38] Production.INFO: 71 MB #Memory Used# [2025-01-28 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:29:05 [end_date_ymd] => 2025-01-28 15:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:29:05' and `end` < '2025-01-28 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-28 15:29:33] Production.INFO: count ==5725 [2025-01-28 15:29:36] Production.ERROR: pbx CDR StartTime 2025-01-28 12:29:05 - End Time 2025-01-28 15:29:05 [2025-01-28 15:29:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349912', 'tblTempUsageDetail_20' ) start [2025-01-28 15:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349912', 'tblTempUsageDetail_20' ) end [2025-01-28 15:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349912', 'tblTempVendorCDR_20' ) start [2025-01-28 15:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349912', 'tblTempVendorCDR_20' ) end [2025-01-28 15:29:36] Production.INFO: ProcessCDR(1,14349912,1,1,2) [2025-01-28 15:29:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:29:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:29:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:29:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:29:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349912', 'tblTempUsageDetail_20' ) start [2025-01-28 15:29:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349912', 'tblTempUsageDetail_20' ) end [2025-01-28 15:29:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:29:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:29:41] Production.INFO: ==18539== Releasing lock... [2025-01-28 15:29:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:29:41] Production.INFO: 71 MB #Memory Used# [2025-01-28 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:30:06 [end_date_ymd] => 2025-01-28 15:30:06 [RateCDR] => 1 ) [2025-01-28 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-28 12:30:06' and `end` < '2025-01-28 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-28 15:30:31] Production.INFO: count ==5735 [2025-01-28 15:30:33] Production.ERROR: pbx CDR StartTime 2025-01-28 12:30:06 - End Time 2025-01-28 15:30:06 [2025-01-28 15:30:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349918', 'tblTempUsageDetail_20' ) start [2025-01-28 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349918', 'tblTempUsageDetail_20' ) end [2025-01-28 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349918', 'tblTempVendorCDR_20' ) start [2025-01-28 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349918', 'tblTempVendorCDR_20' ) end [2025-01-28 15:30:33] Production.INFO: ProcessCDR(1,14349918,1,1,2) [2025-01-28 15:30:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:30:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:30:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:30:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349918', 'tblTempUsageDetail_20' ) start [2025-01-28 15:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349918', 'tblTempUsageDetail_20' ) end [2025-01-28 15:30:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:30:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:30:38] Production.INFO: ==18630== Releasing lock... [2025-01-28 15:30:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:30:38] Production.INFO: 71 MB #Memory Used# [2025-01-28 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:31:05 [end_date_ymd] => 2025-01-28 15:31:05 [RateCDR] => 1 ) [2025-01-28 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:31:05' and `end` < '2025-01-28 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:31:34] Production.INFO: count ==5814 [2025-01-28 15:31:37] Production.ERROR: pbx CDR StartTime 2025-01-28 12:31:05 - End Time 2025-01-28 15:31:05 [2025-01-28 15:31:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:31:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349923', 'tblTempUsageDetail_20' ) start [2025-01-28 15:31:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349923', 'tblTempUsageDetail_20' ) end [2025-01-28 15:31:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349923', 'tblTempVendorCDR_20' ) start [2025-01-28 15:31:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349923', 'tblTempVendorCDR_20' ) end [2025-01-28 15:31:37] Production.INFO: ProcessCDR(1,14349923,1,1,2) [2025-01-28 15:31:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:31:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:31:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:31:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:31:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349923', 'tblTempUsageDetail_20' ) start [2025-01-28 15:31:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349923', 'tblTempUsageDetail_20' ) end [2025-01-28 15:31:42] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:31:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:31:42] Production.INFO: ==18712== Releasing lock... [2025-01-28 15:31:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:31:42] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:32:06 [end_date_ymd] => 2025-01-28 15:32:06 [RateCDR] => 1 ) [2025-01-28 15:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:32:06' and `end` < '2025-01-28 15:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:32:33] Production.INFO: count ==5813 [2025-01-28 15:32:35] Production.ERROR: pbx CDR StartTime 2025-01-28 12:32:06 - End Time 2025-01-28 15:32:06 [2025-01-28 15:32:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349928', 'tblTempUsageDetail_20' ) start [2025-01-28 15:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349928', 'tblTempUsageDetail_20' ) end [2025-01-28 15:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349928', 'tblTempVendorCDR_20' ) start [2025-01-28 15:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349928', 'tblTempVendorCDR_20' ) end [2025-01-28 15:32:35] Production.INFO: ProcessCDR(1,14349928,1,1,2) [2025-01-28 15:32:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:32:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:32:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:32:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349928', 'tblTempUsageDetail_20' ) start [2025-01-28 15:32:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349928', 'tblTempUsageDetail_20' ) end [2025-01-28 15:32:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:32:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:32:41] Production.INFO: ==18800== Releasing lock... [2025-01-28 15:32:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:32:41] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:33:05 [end_date_ymd] => 2025-01-28 15:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:33:05' and `end` < '2025-01-28 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-28 15:33:32] Production.INFO: count ==5815 [2025-01-28 15:33:35] Production.ERROR: pbx CDR StartTime 2025-01-28 12:33:05 - End Time 2025-01-28 15:33:05 [2025-01-28 15:33:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349933', 'tblTempUsageDetail_20' ) start [2025-01-28 15:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349933', 'tblTempUsageDetail_20' ) end [2025-01-28 15:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349933', 'tblTempVendorCDR_20' ) start [2025-01-28 15:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349933', 'tblTempVendorCDR_20' ) end [2025-01-28 15:33:35] Production.INFO: ProcessCDR(1,14349933,1,1,2) [2025-01-28 15:33:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:33:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:33:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:33:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:33:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349933', 'tblTempUsageDetail_20' ) start [2025-01-28 15:33:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349933', 'tblTempUsageDetail_20' ) end [2025-01-28 15:33:40] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:33:40] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:33:40] Production.INFO: ==18891== Releasing lock... [2025-01-28 15:33:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:33:40] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:34:05 [end_date_ymd] => 2025-01-28 15:34:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:34:05' and `end` < '2025-01-28 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-28 15:34:27] Production.INFO: count ==5820 [2025-01-28 15:34:29] Production.ERROR: pbx CDR StartTime 2025-01-28 12:34:05 - End Time 2025-01-28 15:34:05 [2025-01-28 15:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349938', 'tblTempUsageDetail_20' ) start [2025-01-28 15:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349938', 'tblTempUsageDetail_20' ) end [2025-01-28 15:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349938', 'tblTempVendorCDR_20' ) start [2025-01-28 15:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349938', 'tblTempVendorCDR_20' ) end [2025-01-28 15:34:30] Production.INFO: ProcessCDR(1,14349938,1,1,2) [2025-01-28 15:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349938', 'tblTempUsageDetail_20' ) start [2025-01-28 15:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349938', 'tblTempUsageDetail_20' ) end [2025-01-28 15:34:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:34:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:34:34] Production.INFO: ==18978== Releasing lock... [2025-01-28 15:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:34:34] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:35:05 [end_date_ymd] => 2025-01-28 15:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:35:05' and `end` < '2025-01-28 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-28 15:35:30] Production.INFO: count ==5806 [2025-01-28 15:35:33] Production.ERROR: pbx CDR StartTime 2025-01-28 12:35:05 - End Time 2025-01-28 15:35:05 [2025-01-28 15:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349943', 'tblTempUsageDetail_20' ) start [2025-01-28 15:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349943', 'tblTempUsageDetail_20' ) end [2025-01-28 15:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349943', 'tblTempVendorCDR_20' ) start [2025-01-28 15:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349943', 'tblTempVendorCDR_20' ) end [2025-01-28 15:35:33] Production.INFO: ProcessCDR(1,14349943,1,1,2) [2025-01-28 15:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349943', 'tblTempUsageDetail_20' ) start [2025-01-28 15:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349943', 'tblTempUsageDetail_20' ) end [2025-01-28 15:35:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:35:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:35:38] Production.INFO: ==19064== Releasing lock... [2025-01-28 15:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:35:38] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:36:05 [end_date_ymd] => 2025-01-28 15:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:36:05' and `end` < '2025-01-28 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-28 15:36:35] Production.INFO: count ==5797 [2025-01-28 15:36:37] Production.ERROR: pbx CDR StartTime 2025-01-28 12:36:05 - End Time 2025-01-28 15:36:05 [2025-01-28 15:36:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349948', 'tblTempUsageDetail_20' ) start [2025-01-28 15:36:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349948', 'tblTempUsageDetail_20' ) end [2025-01-28 15:36:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349948', 'tblTempVendorCDR_20' ) start [2025-01-28 15:36:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349948', 'tblTempVendorCDR_20' ) end [2025-01-28 15:36:38] Production.INFO: ProcessCDR(1,14349948,1,1,2) [2025-01-28 15:36:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:36:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:36:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:36:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:36:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349948', 'tblTempUsageDetail_20' ) start [2025-01-28 15:36:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349948', 'tblTempUsageDetail_20' ) end [2025-01-28 15:36:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:36:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:36:41] Production.INFO: ==19155== Releasing lock... [2025-01-28 15:36:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:36:41] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:37:05 [end_date_ymd] => 2025-01-28 15:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:37:05' and `end` < '2025-01-28 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-28 15:37:28] Production.INFO: count ==5791 [2025-01-28 15:37:30] Production.ERROR: pbx CDR StartTime 2025-01-28 12:37:05 - End Time 2025-01-28 15:37:05 [2025-01-28 15:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349953', 'tblTempUsageDetail_20' ) start [2025-01-28 15:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349953', 'tblTempUsageDetail_20' ) end [2025-01-28 15:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349953', 'tblTempVendorCDR_20' ) start [2025-01-28 15:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349953', 'tblTempVendorCDR_20' ) end [2025-01-28 15:37:31] Production.INFO: ProcessCDR(1,14349953,1,1,2) [2025-01-28 15:37:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349953', 'tblTempUsageDetail_20' ) start [2025-01-28 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349953', 'tblTempUsageDetail_20' ) end [2025-01-28 15:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:37:35] Production.INFO: ==19247== Releasing lock... [2025-01-28 15:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:37:35] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:38:05 [end_date_ymd] => 2025-01-28 15:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:38:05' and `end` < '2025-01-28 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-28 15:38:29] Production.INFO: count ==5787 [2025-01-28 15:38:32] Production.ERROR: pbx CDR StartTime 2025-01-28 12:38:05 - End Time 2025-01-28 15:38:05 [2025-01-28 15:38:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349958', 'tblTempUsageDetail_20' ) start [2025-01-28 15:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349958', 'tblTempUsageDetail_20' ) end [2025-01-28 15:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349958', 'tblTempVendorCDR_20' ) start [2025-01-28 15:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349958', 'tblTempVendorCDR_20' ) end [2025-01-28 15:38:32] Production.INFO: ProcessCDR(1,14349958,1,1,2) [2025-01-28 15:38:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:38:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:38:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:38:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:38:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349958', 'tblTempUsageDetail_20' ) start [2025-01-28 15:38:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349958', 'tblTempUsageDetail_20' ) end [2025-01-28 15:38:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:38:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:38:37] Production.INFO: ==19347== Releasing lock... [2025-01-28 15:38:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:38:37] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:39:06 [end_date_ymd] => 2025-01-28 15:39:06 [RateCDR] => 1 ) [2025-01-28 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:39:06' and `end` < '2025-01-28 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:39:33] Production.INFO: count ==5792 [2025-01-28 15:39:35] Production.ERROR: pbx CDR StartTime 2025-01-28 12:39:06 - End Time 2025-01-28 15:39:06 [2025-01-28 15:39:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349963', 'tblTempUsageDetail_20' ) start [2025-01-28 15:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349963', 'tblTempUsageDetail_20' ) end [2025-01-28 15:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349963', 'tblTempVendorCDR_20' ) start [2025-01-28 15:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349963', 'tblTempVendorCDR_20' ) end [2025-01-28 15:39:35] Production.INFO: ProcessCDR(1,14349963,1,1,2) [2025-01-28 15:39:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:39:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:39:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:39:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:39:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349963', 'tblTempUsageDetail_20' ) start [2025-01-28 15:39:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349963', 'tblTempUsageDetail_20' ) end [2025-01-28 15:39:40] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:39:40] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:39:40] Production.INFO: ==19443== Releasing lock... [2025-01-28 15:39:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:39:40] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:40:05 [end_date_ymd] => 2025-01-28 15:40:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:40:05' and `end` < '2025-01-28 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-28 15:40:29] Production.INFO: count ==5787 [2025-01-28 15:40:31] Production.ERROR: pbx CDR StartTime 2025-01-28 12:40:05 - End Time 2025-01-28 15:40:05 [2025-01-28 15:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349969', 'tblTempUsageDetail_20' ) start [2025-01-28 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349969', 'tblTempUsageDetail_20' ) end [2025-01-28 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349969', 'tblTempVendorCDR_20' ) start [2025-01-28 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349969', 'tblTempVendorCDR_20' ) end [2025-01-28 15:40:31] Production.INFO: ProcessCDR(1,14349969,1,1,2) [2025-01-28 15:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:40:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:40:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349969', 'tblTempUsageDetail_20' ) start [2025-01-28 15:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349969', 'tblTempUsageDetail_20' ) end [2025-01-28 15:40:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:40:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:40:36] Production.INFO: ==19550== Releasing lock... [2025-01-28 15:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:40:36] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:41:05 [end_date_ymd] => 2025-01-28 15:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:41:05' and `end` < '2025-01-28 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-28 15:41:27] Production.INFO: count ==5821 [2025-01-28 15:41:29] Production.ERROR: pbx CDR StartTime 2025-01-28 12:41:05 - End Time 2025-01-28 15:41:05 [2025-01-28 15:41:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349974', 'tblTempUsageDetail_20' ) start [2025-01-28 15:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349974', 'tblTempUsageDetail_20' ) end [2025-01-28 15:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349974', 'tblTempVendorCDR_20' ) start [2025-01-28 15:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349974', 'tblTempVendorCDR_20' ) end [2025-01-28 15:41:29] Production.INFO: ProcessCDR(1,14349974,1,1,2) [2025-01-28 15:41:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:41:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:41:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:41:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349974', 'tblTempUsageDetail_20' ) start [2025-01-28 15:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349974', 'tblTempUsageDetail_20' ) end [2025-01-28 15:41:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:41:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:41:34] Production.INFO: ==19658== Releasing lock... [2025-01-28 15:41:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:41:34] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:42:05 [end_date_ymd] => 2025-01-28 15:42:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:42:05' and `end` < '2025-01-28 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-28 15:42:25] Production.INFO: count ==5815 [2025-01-28 15:42:27] Production.ERROR: pbx CDR StartTime 2025-01-28 12:42:05 - End Time 2025-01-28 15:42:05 [2025-01-28 15:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349979', 'tblTempUsageDetail_20' ) start [2025-01-28 15:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349979', 'tblTempUsageDetail_20' ) end [2025-01-28 15:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349979', 'tblTempVendorCDR_20' ) start [2025-01-28 15:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349979', 'tblTempVendorCDR_20' ) end [2025-01-28 15:42:28] Production.INFO: ProcessCDR(1,14349979,1,1,2) [2025-01-28 15:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349979', 'tblTempUsageDetail_20' ) start [2025-01-28 15:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349979', 'tblTempUsageDetail_20' ) end [2025-01-28 15:42:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:42:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:42:33] Production.INFO: ==19802== Releasing lock... [2025-01-28 15:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:42:33] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:43:05 [end_date_ymd] => 2025-01-28 15:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:43:05' and `end` < '2025-01-28 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-28 15:43:24] Production.INFO: count ==5814 [2025-01-28 15:43:26] Production.ERROR: pbx CDR StartTime 2025-01-28 12:43:05 - End Time 2025-01-28 15:43:05 [2025-01-28 15:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349984', 'tblTempUsageDetail_20' ) start [2025-01-28 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349984', 'tblTempUsageDetail_20' ) end [2025-01-28 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349984', 'tblTempVendorCDR_20' ) start [2025-01-28 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349984', 'tblTempVendorCDR_20' ) end [2025-01-28 15:43:27] Production.INFO: ProcessCDR(1,14349984,1,1,2) [2025-01-28 15:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349984', 'tblTempUsageDetail_20' ) start [2025-01-28 15:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349984', 'tblTempUsageDetail_20' ) end [2025-01-28 15:43:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:43:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:43:31] Production.INFO: ==19909== Releasing lock... [2025-01-28 15:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:43:31] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:44:05 [end_date_ymd] => 2025-01-28 15:44:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:44:05' and `end` < '2025-01-28 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-28 15:44:30] Production.INFO: count ==5798 [2025-01-28 15:44:33] Production.ERROR: pbx CDR StartTime 2025-01-28 12:44:05 - End Time 2025-01-28 15:44:05 [2025-01-28 15:44:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349989', 'tblTempUsageDetail_20' ) start [2025-01-28 15:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349989', 'tblTempUsageDetail_20' ) end [2025-01-28 15:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349989', 'tblTempVendorCDR_20' ) start [2025-01-28 15:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349989', 'tblTempVendorCDR_20' ) end [2025-01-28 15:44:33] Production.INFO: ProcessCDR(1,14349989,1,1,2) [2025-01-28 15:44:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:44:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:44:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:44:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:44:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349989', 'tblTempUsageDetail_20' ) start [2025-01-28 15:44:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349989', 'tblTempUsageDetail_20' ) end [2025-01-28 15:44:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:44:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:44:38] Production.INFO: ==19999== Releasing lock... [2025-01-28 15:44:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:44:38] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:45:05 [end_date_ymd] => 2025-01-28 15:45:05 [RateCDR] => 1 ) [2025-01-28 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:45:05' and `end` < '2025-01-28 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:45:27] Production.INFO: count ==5808 [2025-01-28 15:45:29] Production.ERROR: pbx CDR StartTime 2025-01-28 12:45:05 - End Time 2025-01-28 15:45:05 [2025-01-28 15:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349994', 'tblTempUsageDetail_20' ) start [2025-01-28 15:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349994', 'tblTempUsageDetail_20' ) end [2025-01-28 15:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349994', 'tblTempVendorCDR_20' ) start [2025-01-28 15:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349994', 'tblTempVendorCDR_20' ) end [2025-01-28 15:45:29] Production.INFO: ProcessCDR(1,14349994,1,1,2) [2025-01-28 15:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349994', 'tblTempUsageDetail_20' ) start [2025-01-28 15:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349994', 'tblTempUsageDetail_20' ) end [2025-01-28 15:45:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:45:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:45:35] Production.INFO: ==20094== Releasing lock... [2025-01-28 15:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:45:35] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:46:04 [end_date_ymd] => 2025-01-28 15:46:04 [RateCDR] => 1 ) [2025-01-28 15: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-28 12:46:04' and `end` < '2025-01-28 15: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-28 15:46:21] Production.INFO: count ==5809 [2025-01-28 15:46:23] Production.ERROR: pbx CDR StartTime 2025-01-28 12:46:04 - End Time 2025-01-28 15:46:04 [2025-01-28 15:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349999', 'tblTempUsageDetail_20' ) start [2025-01-28 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14349999', 'tblTempUsageDetail_20' ) end [2025-01-28 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349999', 'tblTempVendorCDR_20' ) start [2025-01-28 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14349999', 'tblTempVendorCDR_20' ) end [2025-01-28 15:46:23] Production.INFO: ProcessCDR(1,14349999,1,1,2) [2025-01-28 15:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14349999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14349999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14349999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14349999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349999', 'tblTempUsageDetail_20' ) start [2025-01-28 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14349999', 'tblTempUsageDetail_20' ) end [2025-01-28 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:46:28] Production.INFO: ==20205== Releasing lock... [2025-01-28 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:46:28] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:47:05 [end_date_ymd] => 2025-01-28 15:47:05 [RateCDR] => 1 ) [2025-01-28 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:47:05' and `end` < '2025-01-28 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:47:31] Production.INFO: count ==5828 [2025-01-28 15:47:34] Production.ERROR: pbx CDR StartTime 2025-01-28 12:47:05 - End Time 2025-01-28 15:47:05 [2025-01-28 15:47:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350004', 'tblTempUsageDetail_20' ) start [2025-01-28 15:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350004', 'tblTempUsageDetail_20' ) end [2025-01-28 15:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350004', 'tblTempVendorCDR_20' ) start [2025-01-28 15:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350004', 'tblTempVendorCDR_20' ) end [2025-01-28 15:47:34] Production.INFO: ProcessCDR(1,14350004,1,1,2) [2025-01-28 15:47:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:47:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:47:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:47:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:47:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350004', 'tblTempUsageDetail_20' ) start [2025-01-28 15:47:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350004', 'tblTempUsageDetail_20' ) end [2025-01-28 15:47:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:47:40] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:47:40] Production.INFO: ==20339== Releasing lock... [2025-01-28 15:47:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:47:40] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:48:05 [end_date_ymd] => 2025-01-28 15:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:48:05' and `end` < '2025-01-28 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-28 15:48:31] Production.INFO: count ==5822 [2025-01-28 15:48:33] Production.ERROR: pbx CDR StartTime 2025-01-28 12:48:05 - End Time 2025-01-28 15:48:05 [2025-01-28 15:48:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350009', 'tblTempUsageDetail_20' ) start [2025-01-28 15:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350009', 'tblTempUsageDetail_20' ) end [2025-01-28 15:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350009', 'tblTempVendorCDR_20' ) start [2025-01-28 15:48:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350009', 'tblTempVendorCDR_20' ) end [2025-01-28 15:48:33] Production.INFO: ProcessCDR(1,14350009,1,1,2) [2025-01-28 15:48:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:48:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:48:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:48:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:48:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350009', 'tblTempUsageDetail_20' ) start [2025-01-28 15:48:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350009', 'tblTempUsageDetail_20' ) end [2025-01-28 15:48:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:48:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:48:38] Production.INFO: ==20448== Releasing lock... [2025-01-28 15:48:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:48:38] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:49:05 [end_date_ymd] => 2025-01-28 15:49:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:49:05' and `end` < '2025-01-28 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-28 15:49:36] Production.INFO: count ==5821 [2025-01-28 15:49:38] Production.ERROR: pbx CDR StartTime 2025-01-28 12:49:05 - End Time 2025-01-28 15:49:05 [2025-01-28 15:49:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350014', 'tblTempUsageDetail_20' ) start [2025-01-28 15:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350014', 'tblTempUsageDetail_20' ) end [2025-01-28 15:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350014', 'tblTempVendorCDR_20' ) start [2025-01-28 15:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350014', 'tblTempVendorCDR_20' ) end [2025-01-28 15:49:39] Production.INFO: ProcessCDR(1,14350014,1,1,2) [2025-01-28 15:49:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:49:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:49:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:49:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:49:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350014', 'tblTempUsageDetail_20' ) start [2025-01-28 15:49:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350014', 'tblTempUsageDetail_20' ) end [2025-01-28 15:49:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:49:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:49:43] Production.INFO: ==20538== Releasing lock... [2025-01-28 15:49:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:49:43] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:50:06 [end_date_ymd] => 2025-01-28 15:50:06 [RateCDR] => 1 ) [2025-01-28 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:50:06' and `end` < '2025-01-28 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:50:36] Production.INFO: count ==5811 [2025-01-28 15:50:38] Production.ERROR: pbx CDR StartTime 2025-01-28 12:50:06 - End Time 2025-01-28 15:50:06 [2025-01-28 15:50:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:50:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350020', 'tblTempUsageDetail_20' ) start [2025-01-28 15:50:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350020', 'tblTempUsageDetail_20' ) end [2025-01-28 15:50:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350020', 'tblTempVendorCDR_20' ) start [2025-01-28 15:50:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350020', 'tblTempVendorCDR_20' ) end [2025-01-28 15:50:39] Production.INFO: ProcessCDR(1,14350020,1,1,2) [2025-01-28 15:50:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:50:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:50:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:50:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:50:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350020', 'tblTempUsageDetail_20' ) start [2025-01-28 15:50:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350020', 'tblTempUsageDetail_20' ) end [2025-01-28 15:50:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:50:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:50:43] Production.INFO: ==20630== Releasing lock... [2025-01-28 15:50:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:50:43] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:51:05 [end_date_ymd] => 2025-01-28 15:51:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:51:05' and `end` < '2025-01-28 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-28 15:51:31] Production.INFO: count ==5856 [2025-01-28 15:51:33] Production.ERROR: pbx CDR StartTime 2025-01-28 12:51:05 - End Time 2025-01-28 15:51:05 [2025-01-28 15:51:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350025', 'tblTempUsageDetail_20' ) start [2025-01-28 15:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350025', 'tblTempUsageDetail_20' ) end [2025-01-28 15:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350025', 'tblTempVendorCDR_20' ) start [2025-01-28 15:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350025', 'tblTempVendorCDR_20' ) end [2025-01-28 15:51:33] Production.INFO: ProcessCDR(1,14350025,1,1,2) [2025-01-28 15:51:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:51:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:51:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:51:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350025', 'tblTempUsageDetail_20' ) start [2025-01-28 15:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350025', 'tblTempUsageDetail_20' ) end [2025-01-28 15:51:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:51:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:51:37] Production.INFO: ==20720== Releasing lock... [2025-01-28 15:51:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:51:37] Production.INFO: 72 MB #Memory Used# [2025-01-28 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:52:05 [end_date_ymd] => 2025-01-28 15:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:52:05' and `end` < '2025-01-28 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-28 15:52:29] Production.INFO: count ==5867 [2025-01-28 15:52:31] Production.ERROR: pbx CDR StartTime 2025-01-28 12:52:05 - End Time 2025-01-28 15:52:05 [2025-01-28 15:52:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350030', 'tblTempUsageDetail_20' ) start [2025-01-28 15:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350030', 'tblTempUsageDetail_20' ) end [2025-01-28 15:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350030', 'tblTempVendorCDR_20' ) start [2025-01-28 15:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350030', 'tblTempVendorCDR_20' ) end [2025-01-28 15:52:31] Production.INFO: ProcessCDR(1,14350030,1,1,2) [2025-01-28 15:52:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:52:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:52:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:52:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350030', 'tblTempUsageDetail_20' ) start [2025-01-28 15:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350030', 'tblTempUsageDetail_20' ) end [2025-01-28 15:52:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:52:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:52:37] Production.INFO: ==20814== Releasing lock... [2025-01-28 15:52:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:52:37] Production.INFO: 72 MB #Memory Used# [2025-01-28 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:53:05 [end_date_ymd] => 2025-01-28 15:53:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:53:05' and `end` < '2025-01-28 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-28 15:53:25] Production.INFO: count ==5860 [2025-01-28 15:53:28] Production.ERROR: pbx CDR StartTime 2025-01-28 12:53:05 - End Time 2025-01-28 15:53:05 [2025-01-28 15:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350035', 'tblTempUsageDetail_20' ) start [2025-01-28 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350035', 'tblTempUsageDetail_20' ) end [2025-01-28 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350035', 'tblTempVendorCDR_20' ) start [2025-01-28 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350035', 'tblTempVendorCDR_20' ) end [2025-01-28 15:53:28] Production.INFO: ProcessCDR(1,14350035,1,1,2) [2025-01-28 15:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350035', 'tblTempUsageDetail_20' ) start [2025-01-28 15:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350035', 'tblTempUsageDetail_20' ) end [2025-01-28 15:53:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:53:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:53:34] Production.INFO: ==20909== Releasing lock... [2025-01-28 15:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:53:34] Production.INFO: 72 MB #Memory Used# [2025-01-28 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:54:05 [end_date_ymd] => 2025-01-28 15:54:05 [RateCDR] => 1 ) [2025-01-28 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:54:05' and `end` < '2025-01-28 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:54:24] Production.INFO: count ==5844 [2025-01-28 15:54:27] Production.ERROR: pbx CDR StartTime 2025-01-28 12:54:05 - End Time 2025-01-28 15:54:05 [2025-01-28 15:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350039', 'tblTempUsageDetail_20' ) start [2025-01-28 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350039', 'tblTempUsageDetail_20' ) end [2025-01-28 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350039', 'tblTempVendorCDR_20' ) start [2025-01-28 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350039', 'tblTempVendorCDR_20' ) end [2025-01-28 15:54:27] Production.INFO: ProcessCDR(1,14350039,1,1,2) [2025-01-28 15:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350039', 'tblTempUsageDetail_20' ) start [2025-01-28 15:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350039', 'tblTempUsageDetail_20' ) end [2025-01-28 15:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:54:32] Production.INFO: ==20999== Releasing lock... [2025-01-28 15:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:54:32] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:55:05 [end_date_ymd] => 2025-01-28 15:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:55:05' and `end` < '2025-01-28 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-28 15:55:23] Production.INFO: count ==5833 [2025-01-28 15:55:26] Production.ERROR: pbx CDR StartTime 2025-01-28 12:55:05 - End Time 2025-01-28 15:55:05 [2025-01-28 15:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350045', 'tblTempUsageDetail_20' ) start [2025-01-28 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350045', 'tblTempUsageDetail_20' ) end [2025-01-28 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350045', 'tblTempVendorCDR_20' ) start [2025-01-28 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350045', 'tblTempVendorCDR_20' ) end [2025-01-28 15:55:26] Production.INFO: ProcessCDR(1,14350045,1,1,2) [2025-01-28 15:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350045', 'tblTempUsageDetail_20' ) start [2025-01-28 15:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350045', 'tblTempUsageDetail_20' ) end [2025-01-28 15:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:55:31] Production.INFO: ==21089== Releasing lock... [2025-01-28 15:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:55:31] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:56:05 [end_date_ymd] => 2025-01-28 15:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:56:05' and `end` < '2025-01-28 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-28 15:56:19] Production.INFO: count ==5828 [2025-01-28 15:56:22] Production.ERROR: pbx CDR StartTime 2025-01-28 12:56:05 - End Time 2025-01-28 15:56:05 [2025-01-28 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350050', 'tblTempUsageDetail_20' ) start [2025-01-28 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350050', 'tblTempUsageDetail_20' ) end [2025-01-28 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350050', 'tblTempVendorCDR_20' ) start [2025-01-28 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350050', 'tblTempVendorCDR_20' ) end [2025-01-28 15:56:22] Production.INFO: ProcessCDR(1,14350050,1,1,2) [2025-01-28 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350050', 'tblTempUsageDetail_20' ) start [2025-01-28 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350050', 'tblTempUsageDetail_20' ) end [2025-01-28 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:56:27] Production.INFO: ==21183== Releasing lock... [2025-01-28 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:56:27] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:57:05 [end_date_ymd] => 2025-01-28 15:57:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:57:05' and `end` < '2025-01-28 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-28 15:57:21] Production.INFO: count ==5822 [2025-01-28 15:57:23] Production.ERROR: pbx CDR StartTime 2025-01-28 12:57:05 - End Time 2025-01-28 15:57:05 [2025-01-28 15:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350055', 'tblTempUsageDetail_20' ) start [2025-01-28 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350055', 'tblTempUsageDetail_20' ) end [2025-01-28 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350055', 'tblTempVendorCDR_20' ) start [2025-01-28 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350055', 'tblTempVendorCDR_20' ) end [2025-01-28 15:57:23] Production.INFO: ProcessCDR(1,14350055,1,1,2) [2025-01-28 15:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350055', 'tblTempUsageDetail_20' ) start [2025-01-28 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350055', 'tblTempUsageDetail_20' ) end [2025-01-28 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:57:28] Production.INFO: ==21312== Releasing lock... [2025-01-28 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:57:28] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:58:05 [end_date_ymd] => 2025-01-28 15:58:05 [RateCDR] => 1 ) [2025-01-28 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 12:58:05' and `end` < '2025-01-28 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 15:58:26] Production.INFO: count ==5831 [2025-01-28 15:58:28] Production.ERROR: pbx CDR StartTime 2025-01-28 12:58:05 - End Time 2025-01-28 15:58:05 [2025-01-28 15:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350060', 'tblTempUsageDetail_20' ) start [2025-01-28 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350060', 'tblTempUsageDetail_20' ) end [2025-01-28 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350060', 'tblTempVendorCDR_20' ) start [2025-01-28 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350060', 'tblTempVendorCDR_20' ) end [2025-01-28 15:58:28] Production.INFO: ProcessCDR(1,14350060,1,1,2) [2025-01-28 15:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350060', 'tblTempUsageDetail_20' ) start [2025-01-28 15:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350060', 'tblTempUsageDetail_20' ) end [2025-01-28 15:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:58:32] Production.INFO: ==21403== Releasing lock... [2025-01-28 15:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:58:32] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 12:59:05 [end_date_ymd] => 2025-01-28 15:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 12:59:05' and `end` < '2025-01-28 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-28 15:59:28] Production.INFO: count ==5832 [2025-01-28 15:59:30] Production.ERROR: pbx CDR StartTime 2025-01-28 12:59:05 - End Time 2025-01-28 15:59:05 [2025-01-28 15:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 15:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350065', 'tblTempUsageDetail_20' ) start [2025-01-28 15:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350065', 'tblTempUsageDetail_20' ) end [2025-01-28 15:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350065', 'tblTempVendorCDR_20' ) start [2025-01-28 15:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350065', 'tblTempVendorCDR_20' ) end [2025-01-28 15:59:30] Production.INFO: ProcessCDR(1,14350065,1,1,2) [2025-01-28 15:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:59:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 15:59:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 15:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350065', 'tblTempUsageDetail_20' ) start [2025-01-28 15:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350065', 'tblTempUsageDetail_20' ) end [2025-01-28 15:59:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 15:59:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 15:59:35] Production.INFO: ==21490== Releasing lock... [2025-01-28 15:59:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 15:59:35] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:00:06 [end_date_ymd] => 2025-01-28 16:00:06 [RateCDR] => 1 ) [2025-01-28 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-28 13:00:06' and `end` < '2025-01-28 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-28 16:00:30] Production.INFO: count ==5828 [2025-01-28 16:00:32] Production.ERROR: pbx CDR StartTime 2025-01-28 13:00:06 - End Time 2025-01-28 16:00:06 [2025-01-28 16:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350071', 'tblTempUsageDetail_20' ) start [2025-01-28 16:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350071', 'tblTempUsageDetail_20' ) end [2025-01-28 16:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350071', 'tblTempVendorCDR_20' ) start [2025-01-28 16:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350071', 'tblTempVendorCDR_20' ) end [2025-01-28 16:00:33] Production.INFO: ProcessCDR(1,14350071,1,1,2) [2025-01-28 16:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350071', 'tblTempUsageDetail_20' ) start [2025-01-28 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350071', 'tblTempUsageDetail_20' ) end [2025-01-28 16:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:00:37] Production.INFO: ==21580== Releasing lock... [2025-01-28 16:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:00:37] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:01:06 [end_date_ymd] => 2025-01-28 16:01:06 [RateCDR] => 1 ) [2025-01-28 16: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-28 13:01:06' and `end` < '2025-01-28 16: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-28 16:01:27] Production.INFO: count ==5871 [2025-01-28 16:01:30] Production.ERROR: pbx CDR StartTime 2025-01-28 13:01:06 - End Time 2025-01-28 16:01:06 [2025-01-28 16:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350076', 'tblTempUsageDetail_20' ) start [2025-01-28 16:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350076', 'tblTempUsageDetail_20' ) end [2025-01-28 16:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350076', 'tblTempVendorCDR_20' ) start [2025-01-28 16:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350076', 'tblTempVendorCDR_20' ) end [2025-01-28 16:01:30] Production.INFO: ProcessCDR(1,14350076,1,1,2) [2025-01-28 16:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350076', 'tblTempUsageDetail_20' ) start [2025-01-28 16:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350076', 'tblTempUsageDetail_20' ) end [2025-01-28 16:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:01:33] Production.INFO: ==21686== Releasing lock... [2025-01-28 16:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:01:33] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:02:05 [end_date_ymd] => 2025-01-28 16:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:02:05' and `end` < '2025-01-28 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-28 16:02:28] Production.INFO: count ==5870 [2025-01-28 16:02:30] Production.ERROR: pbx CDR StartTime 2025-01-28 13:02:05 - End Time 2025-01-28 16:02:05 [2025-01-28 16:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350081', 'tblTempUsageDetail_20' ) start [2025-01-28 16:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350081', 'tblTempUsageDetail_20' ) end [2025-01-28 16:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350081', 'tblTempVendorCDR_20' ) start [2025-01-28 16:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350081', 'tblTempVendorCDR_20' ) end [2025-01-28 16:02:30] Production.INFO: ProcessCDR(1,14350081,1,1,2) [2025-01-28 16:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:02:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350081', 'tblTempUsageDetail_20' ) start [2025-01-28 16:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350081', 'tblTempUsageDetail_20' ) end [2025-01-28 16:02:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:02:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:02:35] Production.INFO: ==21778== Releasing lock... [2025-01-28 16:02:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:02:35] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:03:06 [end_date_ymd] => 2025-01-28 16:03:06 [RateCDR] => 1 ) [2025-01-28 16: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-28 13:03:06' and `end` < '2025-01-28 16: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-28 16:03:24] Production.INFO: count ==5852 [2025-01-28 16:03:27] Production.ERROR: pbx CDR StartTime 2025-01-28 13:03:06 - End Time 2025-01-28 16:03:06 [2025-01-28 16:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350086', 'tblTempUsageDetail_20' ) start [2025-01-28 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350086', 'tblTempUsageDetail_20' ) end [2025-01-28 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350086', 'tblTempVendorCDR_20' ) start [2025-01-28 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350086', 'tblTempVendorCDR_20' ) end [2025-01-28 16:03:27] Production.INFO: ProcessCDR(1,14350086,1,1,2) [2025-01-28 16:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350086', 'tblTempUsageDetail_20' ) start [2025-01-28 16:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350086', 'tblTempUsageDetail_20' ) end [2025-01-28 16:03:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:03:32] Production.INFO: ==21865== Releasing lock... [2025-01-28 16:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:03:32] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:04:05 [end_date_ymd] => 2025-01-28 16:04:05 [RateCDR] => 1 ) [2025-01-28 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:04:05' and `end` < '2025-01-28 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:04:19] Production.INFO: count ==5861 [2025-01-28 16:04:22] Production.ERROR: pbx CDR StartTime 2025-01-28 13:04:05 - End Time 2025-01-28 16:04:05 [2025-01-28 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350091', 'tblTempUsageDetail_20' ) start [2025-01-28 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350091', 'tblTempUsageDetail_20' ) end [2025-01-28 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350091', 'tblTempVendorCDR_20' ) start [2025-01-28 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350091', 'tblTempVendorCDR_20' ) end [2025-01-28 16:04:22] Production.INFO: ProcessCDR(1,14350091,1,1,2) [2025-01-28 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350091', 'tblTempUsageDetail_20' ) start [2025-01-28 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350091', 'tblTempUsageDetail_20' ) end [2025-01-28 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:04:27] Production.INFO: ==21958== Releasing lock... [2025-01-28 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:04:27] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:05:05 [end_date_ymd] => 2025-01-28 16:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:05:05' and `end` < '2025-01-28 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-28 16:05:28] Production.INFO: count ==5861 [2025-01-28 16:05:30] Production.ERROR: pbx CDR StartTime 2025-01-28 13:05:05 - End Time 2025-01-28 16:05:05 [2025-01-28 16:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350096', 'tblTempUsageDetail_20' ) start [2025-01-28 16:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350096', 'tblTempUsageDetail_20' ) end [2025-01-28 16:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350096', 'tblTempVendorCDR_20' ) start [2025-01-28 16:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350096', 'tblTempVendorCDR_20' ) end [2025-01-28 16:05:30] Production.INFO: ProcessCDR(1,14350096,1,1,2) [2025-01-28 16:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350096', 'tblTempUsageDetail_20' ) start [2025-01-28 16:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350096', 'tblTempUsageDetail_20' ) end [2025-01-28 16:05:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:05:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:05:35] Production.INFO: ==22045== Releasing lock... [2025-01-28 16:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:05:35] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:06:05 [end_date_ymd] => 2025-01-28 16:06:05 [RateCDR] => 1 ) [2025-01-28 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:06:05' and `end` < '2025-01-28 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:06:35] Production.INFO: count ==5850 [2025-01-28 16:06:37] Production.ERROR: pbx CDR StartTime 2025-01-28 13:06:05 - End Time 2025-01-28 16:06:05 [2025-01-28 16:06:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:06:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350101', 'tblTempUsageDetail_20' ) start [2025-01-28 16:06:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350101', 'tblTempUsageDetail_20' ) end [2025-01-28 16:06:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350101', 'tblTempVendorCDR_20' ) start [2025-01-28 16:06:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350101', 'tblTempVendorCDR_20' ) end [2025-01-28 16:06:38] Production.INFO: ProcessCDR(1,14350101,1,1,2) [2025-01-28 16:06:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:06:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:06:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:06:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:06:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350101', 'tblTempUsageDetail_20' ) start [2025-01-28 16:06:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350101', 'tblTempUsageDetail_20' ) end [2025-01-28 16:06:43] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:06:43] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:06:43] Production.INFO: ==22135== Releasing lock... [2025-01-28 16:06:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:06:43] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:07:06 [end_date_ymd] => 2025-01-28 16:07:06 [RateCDR] => 1 ) [2025-01-28 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:07:06' and `end` < '2025-01-28 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:07:34] Production.INFO: count ==5866 [2025-01-28 16:07:36] Production.ERROR: pbx CDR StartTime 2025-01-28 13:07:06 - End Time 2025-01-28 16:07:06 [2025-01-28 16:07:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350106', 'tblTempUsageDetail_20' ) start [2025-01-28 16:07:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350106', 'tblTempUsageDetail_20' ) end [2025-01-28 16:07:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350106', 'tblTempVendorCDR_20' ) start [2025-01-28 16:07:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350106', 'tblTempVendorCDR_20' ) end [2025-01-28 16:07:37] Production.INFO: ProcessCDR(1,14350106,1,1,2) [2025-01-28 16:07:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:07:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:07:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:07:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:07:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350106', 'tblTempUsageDetail_20' ) start [2025-01-28 16:07:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350106', 'tblTempUsageDetail_20' ) end [2025-01-28 16:07:42] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:07:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:07:42] Production.INFO: ==22223== Releasing lock... [2025-01-28 16:07:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:07:42] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:08:04 [end_date_ymd] => 2025-01-28 16:08:04 [RateCDR] => 1 ) [2025-01-28 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-28 13:08:04' and `end` < '2025-01-28 16:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:08:26] Production.INFO: count ==5851 [2025-01-28 16:08:29] Production.ERROR: pbx CDR StartTime 2025-01-28 13:08:04 - End Time 2025-01-28 16:08:04 [2025-01-28 16:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350111', 'tblTempUsageDetail_20' ) start [2025-01-28 16:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350111', 'tblTempUsageDetail_20' ) end [2025-01-28 16:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350111', 'tblTempVendorCDR_20' ) start [2025-01-28 16:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350111', 'tblTempVendorCDR_20' ) end [2025-01-28 16:08:29] Production.INFO: ProcessCDR(1,14350111,1,1,2) [2025-01-28 16:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:08:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350111', 'tblTempUsageDetail_20' ) start [2025-01-28 16:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350111', 'tblTempUsageDetail_20' ) end [2025-01-28 16:08:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:08:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:08:34] Production.INFO: ==22313== Releasing lock... [2025-01-28 16:08:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:08:34] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:09:05 [end_date_ymd] => 2025-01-28 16:09:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:09:05' and `end` < '2025-01-28 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-28 16:09:25] Production.INFO: count ==5840 [2025-01-28 16:09:27] Production.ERROR: pbx CDR StartTime 2025-01-28 13:09:05 - End Time 2025-01-28 16:09:05 [2025-01-28 16:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350116', 'tblTempUsageDetail_20' ) start [2025-01-28 16:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350116', 'tblTempUsageDetail_20' ) end [2025-01-28 16:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350116', 'tblTempVendorCDR_20' ) start [2025-01-28 16:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350116', 'tblTempVendorCDR_20' ) end [2025-01-28 16:09:27] Production.INFO: ProcessCDR(1,14350116,1,1,2) [2025-01-28 16:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350116', 'tblTempUsageDetail_20' ) start [2025-01-28 16:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350116', 'tblTempUsageDetail_20' ) end [2025-01-28 16:09:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:09:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:09:32] Production.INFO: ==22401== Releasing lock... [2025-01-28 16:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:09:32] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:10:05 [end_date_ymd] => 2025-01-28 16:10:05 [RateCDR] => 1 ) [2025-01-28 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:10:05' and `end` < '2025-01-28 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:10:30] Production.INFO: count ==5851 [2025-01-28 16:10:32] Production.ERROR: pbx CDR StartTime 2025-01-28 13:10:05 - End Time 2025-01-28 16:10:05 [2025-01-28 16:10:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350122', 'tblTempUsageDetail_20' ) start [2025-01-28 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350122', 'tblTempUsageDetail_20' ) end [2025-01-28 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350122', 'tblTempVendorCDR_20' ) start [2025-01-28 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350122', 'tblTempVendorCDR_20' ) end [2025-01-28 16:10:32] Production.INFO: ProcessCDR(1,14350122,1,1,2) [2025-01-28 16:10:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:10:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:10:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:10:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350122', 'tblTempUsageDetail_20' ) start [2025-01-28 16:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350122', 'tblTempUsageDetail_20' ) end [2025-01-28 16:10:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:10:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:10:37] Production.INFO: ==22498== Releasing lock... [2025-01-28 16:10:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:10:37] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:11:06 [end_date_ymd] => 2025-01-28 16:11:06 [RateCDR] => 1 ) [2025-01-28 16: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-28 13:11:06' and `end` < '2025-01-28 16: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-28 16:11:31] Production.INFO: count ==5915 [2025-01-28 16:11:33] Production.ERROR: pbx CDR StartTime 2025-01-28 13:11:06 - End Time 2025-01-28 16:11:06 [2025-01-28 16:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350127', 'tblTempUsageDetail_20' ) start [2025-01-28 16:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350127', 'tblTempUsageDetail_20' ) end [2025-01-28 16:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350127', 'tblTempVendorCDR_20' ) start [2025-01-28 16:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350127', 'tblTempVendorCDR_20' ) end [2025-01-28 16:11:33] Production.INFO: ProcessCDR(1,14350127,1,1,2) [2025-01-28 16:11:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:11:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:11:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:11:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350127', 'tblTempUsageDetail_20' ) start [2025-01-28 16:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350127', 'tblTempUsageDetail_20' ) end [2025-01-28 16:11:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:11:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:11:38] Production.INFO: ==22587== Releasing lock... [2025-01-28 16:11:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:11:38] Production.INFO: 72.25 MB #Memory Used# [2025-01-28 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:12:05 [end_date_ymd] => 2025-01-28 16:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:12:05' and `end` < '2025-01-28 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-28 16:12:28] Production.INFO: count ==5912 [2025-01-28 16:12:30] Production.ERROR: pbx CDR StartTime 2025-01-28 13:12:05 - End Time 2025-01-28 16:12:05 [2025-01-28 16:12:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350132', 'tblTempUsageDetail_20' ) start [2025-01-28 16:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350132', 'tblTempUsageDetail_20' ) end [2025-01-28 16:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350132', 'tblTempVendorCDR_20' ) start [2025-01-28 16:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350132', 'tblTempVendorCDR_20' ) end [2025-01-28 16:12:30] Production.INFO: ProcessCDR(1,14350132,1,1,2) [2025-01-28 16:12:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:12:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:12:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:12:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350132', 'tblTempUsageDetail_20' ) start [2025-01-28 16:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350132', 'tblTempUsageDetail_20' ) end [2025-01-28 16:12:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:12:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:12:35] Production.INFO: ==22670== Releasing lock... [2025-01-28 16:12:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:12:35] Production.INFO: 72.25 MB #Memory Used# [2025-01-28 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:13:05 [end_date_ymd] => 2025-01-28 16:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:13:05' and `end` < '2025-01-28 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-28 16:13:31] Production.INFO: count ==5896 [2025-01-28 16:13:33] Production.ERROR: pbx CDR StartTime 2025-01-28 13:13:05 - End Time 2025-01-28 16:13:05 [2025-01-28 16:13:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350137', 'tblTempUsageDetail_20' ) start [2025-01-28 16:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350137', 'tblTempUsageDetail_20' ) end [2025-01-28 16:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350137', 'tblTempVendorCDR_20' ) start [2025-01-28 16:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350137', 'tblTempVendorCDR_20' ) end [2025-01-28 16:13:33] Production.INFO: ProcessCDR(1,14350137,1,1,2) [2025-01-28 16:13:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:13:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:13:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:13:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350137', 'tblTempUsageDetail_20' ) start [2025-01-28 16:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350137', 'tblTempUsageDetail_20' ) end [2025-01-28 16:13:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:13:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:13:38] Production.INFO: ==22800== Releasing lock... [2025-01-28 16:13:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:13:38] Production.INFO: 72.25 MB #Memory Used# [2025-01-28 16:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:14:04 [end_date_ymd] => 2025-01-28 16:14:04 [RateCDR] => 1 ) [2025-01-28 16:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:14:04' and `end` < '2025-01-28 16:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:14:28] Production.INFO: count ==5879 [2025-01-28 16:14:30] Production.ERROR: pbx CDR StartTime 2025-01-28 13:14:04 - End Time 2025-01-28 16:14:04 [2025-01-28 16:14:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350142', 'tblTempUsageDetail_20' ) start [2025-01-28 16:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350142', 'tblTempUsageDetail_20' ) end [2025-01-28 16:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350142', 'tblTempVendorCDR_20' ) start [2025-01-28 16:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350142', 'tblTempVendorCDR_20' ) end [2025-01-28 16:14:31] Production.INFO: ProcessCDR(1,14350142,1,1,2) [2025-01-28 16:14:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:14:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:14:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:14:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:14:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350142', 'tblTempUsageDetail_20' ) start [2025-01-28 16:14:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350142', 'tblTempUsageDetail_20' ) end [2025-01-28 16:14:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:14:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:14:36] Production.INFO: ==22891== Releasing lock... [2025-01-28 16:14:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:14:36] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:15:05 [end_date_ymd] => 2025-01-28 16:15:05 [RateCDR] => 1 ) [2025-01-28 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:15:05' and `end` < '2025-01-28 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:15:27] Production.INFO: count ==5867 [2025-01-28 16:15:29] Production.ERROR: pbx CDR StartTime 2025-01-28 13:15:05 - End Time 2025-01-28 16:15:05 [2025-01-28 16:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350147', 'tblTempUsageDetail_20' ) start [2025-01-28 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350147', 'tblTempUsageDetail_20' ) end [2025-01-28 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350147', 'tblTempVendorCDR_20' ) start [2025-01-28 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350147', 'tblTempVendorCDR_20' ) end [2025-01-28 16:15:29] Production.INFO: ProcessCDR(1,14350147,1,1,2) [2025-01-28 16:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350147', 'tblTempUsageDetail_20' ) start [2025-01-28 16:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350147', 'tblTempUsageDetail_20' ) end [2025-01-28 16:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:15:35] Production.INFO: ==22976== Releasing lock... [2025-01-28 16:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:15:35] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:16:05 [end_date_ymd] => 2025-01-28 16:16:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:16:05' and `end` < '2025-01-28 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-28 16:16:25] Production.INFO: count ==5875 [2025-01-28 16:16:28] Production.ERROR: pbx CDR StartTime 2025-01-28 13:16:05 - End Time 2025-01-28 16:16:05 [2025-01-28 16:16:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350152', 'tblTempUsageDetail_20' ) start [2025-01-28 16:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350152', 'tblTempUsageDetail_20' ) end [2025-01-28 16:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350152', 'tblTempVendorCDR_20' ) start [2025-01-28 16:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350152', 'tblTempVendorCDR_20' ) end [2025-01-28 16:16:28] Production.INFO: ProcessCDR(1,14350152,1,1,2) [2025-01-28 16:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350152', 'tblTempUsageDetail_20' ) start [2025-01-28 16:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350152', 'tblTempUsageDetail_20' ) end [2025-01-28 16:16:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:16:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:16:33] Production.INFO: ==23059== Releasing lock... [2025-01-28 16:16:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:16:33] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:17:05 [end_date_ymd] => 2025-01-28 16:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:17:05' and `end` < '2025-01-28 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-28 16:17:28] Production.INFO: count ==5879 [2025-01-28 16:17:30] Production.ERROR: pbx CDR StartTime 2025-01-28 13:17:05 - End Time 2025-01-28 16:17:05 [2025-01-28 16:17:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350157', 'tblTempUsageDetail_20' ) start [2025-01-28 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350157', 'tblTempUsageDetail_20' ) end [2025-01-28 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350157', 'tblTempVendorCDR_20' ) start [2025-01-28 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350157', 'tblTempVendorCDR_20' ) end [2025-01-28 16:17:30] Production.INFO: ProcessCDR(1,14350157,1,1,2) [2025-01-28 16:17:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:17:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350157', 'tblTempUsageDetail_20' ) start [2025-01-28 16:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350157', 'tblTempUsageDetail_20' ) end [2025-01-28 16:17:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:17:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:17:35] Production.INFO: ==23146== Releasing lock... [2025-01-28 16:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:17:35] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:18:04 [end_date_ymd] => 2025-01-28 16:18:04 [RateCDR] => 1 ) [2025-01-28 16: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-28 13:18:04' and `end` < '2025-01-28 16: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-28 16:18:26] Production.INFO: count ==5876 [2025-01-28 16:18:28] Production.ERROR: pbx CDR StartTime 2025-01-28 13:18:04 - End Time 2025-01-28 16:18:04 [2025-01-28 16:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350162', 'tblTempUsageDetail_20' ) start [2025-01-28 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350162', 'tblTempUsageDetail_20' ) end [2025-01-28 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350162', 'tblTempVendorCDR_20' ) start [2025-01-28 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350162', 'tblTempVendorCDR_20' ) end [2025-01-28 16:18:29] Production.INFO: ProcessCDR(1,14350162,1,1,2) [2025-01-28 16:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350162', 'tblTempUsageDetail_20' ) start [2025-01-28 16:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350162', 'tblTempUsageDetail_20' ) end [2025-01-28 16:18:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:18:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:18:33] Production.INFO: ==23242== Releasing lock... [2025-01-28 16:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:18:33] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:19:05 [end_date_ymd] => 2025-01-28 16:19:05 [RateCDR] => 1 ) [2025-01-28 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:19:05' and `end` < '2025-01-28 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:19:25] Production.INFO: count ==5874 [2025-01-28 16:19:28] Production.ERROR: pbx CDR StartTime 2025-01-28 13:19:05 - End Time 2025-01-28 16:19:05 [2025-01-28 16:19:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350167', 'tblTempUsageDetail_20' ) start [2025-01-28 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350167', 'tblTempUsageDetail_20' ) end [2025-01-28 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350167', 'tblTempVendorCDR_20' ) start [2025-01-28 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350167', 'tblTempVendorCDR_20' ) end [2025-01-28 16:19:28] Production.INFO: ProcessCDR(1,14350167,1,1,2) [2025-01-28 16:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350167', 'tblTempUsageDetail_20' ) start [2025-01-28 16:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350167', 'tblTempUsageDetail_20' ) end [2025-01-28 16:19:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:19:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:19:33] Production.INFO: ==23321== Releasing lock... [2025-01-28 16:19:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:19:33] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:20:06 [end_date_ymd] => 2025-01-28 16:20:06 [RateCDR] => 1 ) [2025-01-28 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-28 13:20:06' and `end` < '2025-01-28 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-28 16:20:30] Production.INFO: count ==5867 [2025-01-28 16:20:32] Production.ERROR: pbx CDR StartTime 2025-01-28 13:20:06 - End Time 2025-01-28 16:20:06 [2025-01-28 16:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350172', 'tblTempUsageDetail_20' ) start [2025-01-28 16:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350172', 'tblTempUsageDetail_20' ) end [2025-01-28 16:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350172', 'tblTempVendorCDR_20' ) start [2025-01-28 16:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350172', 'tblTempVendorCDR_20' ) end [2025-01-28 16:20:32] Production.INFO: ProcessCDR(1,14350172,1,1,2) [2025-01-28 16:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:20:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:20:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350172', 'tblTempUsageDetail_20' ) start [2025-01-28 16:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350172', 'tblTempUsageDetail_20' ) end [2025-01-28 16:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:20:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:20:36] Production.INFO: ==23408== Releasing lock... [2025-01-28 16:20:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:20:36] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:21:05 [end_date_ymd] => 2025-01-28 16:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:21:05' and `end` < '2025-01-28 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-28 16:21:28] Production.INFO: count ==5868 [2025-01-28 16:21:31] Production.ERROR: pbx CDR StartTime 2025-01-28 13:21:05 - End Time 2025-01-28 16:21:05 [2025-01-28 16:21:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350178', 'tblTempUsageDetail_20' ) start [2025-01-28 16:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350178', 'tblTempUsageDetail_20' ) end [2025-01-28 16:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350178', 'tblTempVendorCDR_20' ) start [2025-01-28 16:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350178', 'tblTempVendorCDR_20' ) end [2025-01-28 16:21:31] Production.INFO: ProcessCDR(1,14350178,1,1,2) [2025-01-28 16:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:21:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:21:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:21:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350178', 'tblTempUsageDetail_20' ) start [2025-01-28 16:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350178', 'tblTempUsageDetail_20' ) end [2025-01-28 16:21:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:21:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:21:36] Production.INFO: ==23494== Releasing lock... [2025-01-28 16:21:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:21:36] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:22:06 [end_date_ymd] => 2025-01-28 16:22:06 [RateCDR] => 1 ) [2025-01-28 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:22:06' and `end` < '2025-01-28 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:22:34] Production.INFO: count ==5856 [2025-01-28 16:22:36] Production.ERROR: pbx CDR StartTime 2025-01-28 13:22:06 - End Time 2025-01-28 16:22:06 [2025-01-28 16:22:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350183', 'tblTempUsageDetail_20' ) start [2025-01-28 16:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350183', 'tblTempUsageDetail_20' ) end [2025-01-28 16:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350183', 'tblTempVendorCDR_20' ) start [2025-01-28 16:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350183', 'tblTempVendorCDR_20' ) end [2025-01-28 16:22:36] Production.INFO: ProcessCDR(1,14350183,1,1,2) [2025-01-28 16:22:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:22:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:22:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:22:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:22:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350183', 'tblTempUsageDetail_20' ) start [2025-01-28 16:22:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350183', 'tblTempUsageDetail_20' ) end [2025-01-28 16:22:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:22:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:22:41] Production.INFO: ==23571== Releasing lock... [2025-01-28 16:22:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:22:41] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:23:05 [end_date_ymd] => 2025-01-28 16:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:23:05' and `end` < '2025-01-28 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-28 16:23:30] Production.INFO: count ==5874 [2025-01-28 16:23:32] Production.ERROR: pbx CDR StartTime 2025-01-28 13:23:05 - End Time 2025-01-28 16:23:05 [2025-01-28 16:23:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350188', 'tblTempUsageDetail_20' ) start [2025-01-28 16:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350188', 'tblTempUsageDetail_20' ) end [2025-01-28 16:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350188', 'tblTempVendorCDR_20' ) start [2025-01-28 16:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350188', 'tblTempVendorCDR_20' ) end [2025-01-28 16:23:32] Production.INFO: ProcessCDR(1,14350188,1,1,2) [2025-01-28 16:23:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:23:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:23:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:23:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350188', 'tblTempUsageDetail_20' ) start [2025-01-28 16:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350188', 'tblTempUsageDetail_20' ) end [2025-01-28 16:23:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:23:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:23:37] Production.INFO: ==23653== Releasing lock... [2025-01-28 16:23:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:23:37] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:24:06 [end_date_ymd] => 2025-01-28 16:24:06 [RateCDR] => 1 ) [2025-01-28 16:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:24:06' and `end` < '2025-01-28 16:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:24:26] Production.INFO: count ==5869 [2025-01-28 16:24:29] Production.ERROR: pbx CDR StartTime 2025-01-28 13:24:06 - End Time 2025-01-28 16:24:06 [2025-01-28 16:24:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350193', 'tblTempUsageDetail_20' ) start [2025-01-28 16:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350193', 'tblTempUsageDetail_20' ) end [2025-01-28 16:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350193', 'tblTempVendorCDR_20' ) start [2025-01-28 16:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350193', 'tblTempVendorCDR_20' ) end [2025-01-28 16:24:29] Production.INFO: ProcessCDR(1,14350193,1,1,2) [2025-01-28 16:24:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:24:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350193', 'tblTempUsageDetail_20' ) start [2025-01-28 16:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350193', 'tblTempUsageDetail_20' ) end [2025-01-28 16:24:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:24:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:24:34] Production.INFO: ==23735== Releasing lock... [2025-01-28 16:24:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:24:34] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:25:05 [end_date_ymd] => 2025-01-28 16:25:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:25:05' and `end` < '2025-01-28 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-28 16:25:25] Production.INFO: count ==5849 [2025-01-28 16:25:28] Production.ERROR: pbx CDR StartTime 2025-01-28 13:25:05 - End Time 2025-01-28 16:25:05 [2025-01-28 16:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350198', 'tblTempUsageDetail_20' ) start [2025-01-28 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350198', 'tblTempUsageDetail_20' ) end [2025-01-28 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350198', 'tblTempVendorCDR_20' ) start [2025-01-28 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350198', 'tblTempVendorCDR_20' ) end [2025-01-28 16:25:28] Production.INFO: ProcessCDR(1,14350198,1,1,2) [2025-01-28 16:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350198', 'tblTempUsageDetail_20' ) start [2025-01-28 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350198', 'tblTempUsageDetail_20' ) end [2025-01-28 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:25:33] Production.INFO: ==23809== Releasing lock... [2025-01-28 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:25:33] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:26:05 [end_date_ymd] => 2025-01-28 16:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:26:05' and `end` < '2025-01-28 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-28 16:26:19] Production.INFO: count ==5859 [2025-01-28 16:26:21] Production.ERROR: pbx CDR StartTime 2025-01-28 13:26:05 - End Time 2025-01-28 16:26:05 [2025-01-28 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350203', 'tblTempUsageDetail_20' ) start [2025-01-28 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350203', 'tblTempUsageDetail_20' ) end [2025-01-28 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350203', 'tblTempVendorCDR_20' ) start [2025-01-28 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350203', 'tblTempVendorCDR_20' ) end [2025-01-28 16:26:21] Production.INFO: ProcessCDR(1,14350203,1,1,2) [2025-01-28 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350203', 'tblTempUsageDetail_20' ) start [2025-01-28 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350203', 'tblTempUsageDetail_20' ) end [2025-01-28 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:26:26] Production.INFO: ==23892== Releasing lock... [2025-01-28 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:26:26] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:27:04 [end_date_ymd] => 2025-01-28 16:27:04 [RateCDR] => 1 ) [2025-01-28 16:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:27:04' and `end` < '2025-01-28 16:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:27:19] Production.INFO: count ==5871 [2025-01-28 16:27:21] Production.ERROR: pbx CDR StartTime 2025-01-28 13:27:04 - End Time 2025-01-28 16:27:04 [2025-01-28 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350208', 'tblTempUsageDetail_20' ) start [2025-01-28 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350208', 'tblTempUsageDetail_20' ) end [2025-01-28 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350208', 'tblTempVendorCDR_20' ) start [2025-01-28 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350208', 'tblTempVendorCDR_20' ) end [2025-01-28 16:27:22] Production.INFO: ProcessCDR(1,14350208,1,1,2) [2025-01-28 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350208', 'tblTempUsageDetail_20' ) start [2025-01-28 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350208', 'tblTempUsageDetail_20' ) end [2025-01-28 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:27:27] Production.INFO: ==23968== Releasing lock... [2025-01-28 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:27:27] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:28:05 [end_date_ymd] => 2025-01-28 16:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:28:05' and `end` < '2025-01-28 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-28 16:28:23] Production.INFO: count ==5865 [2025-01-28 16:28:25] Production.ERROR: pbx CDR StartTime 2025-01-28 13:28:05 - End Time 2025-01-28 16:28:05 [2025-01-28 16:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350213', 'tblTempUsageDetail_20' ) start [2025-01-28 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350213', 'tblTempUsageDetail_20' ) end [2025-01-28 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350213', 'tblTempVendorCDR_20' ) start [2025-01-28 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350213', 'tblTempVendorCDR_20' ) end [2025-01-28 16:28:26] Production.INFO: ProcessCDR(1,14350213,1,1,2) [2025-01-28 16:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350213', 'tblTempUsageDetail_20' ) start [2025-01-28 16:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350213', 'tblTempUsageDetail_20' ) end [2025-01-28 16:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:28:30] Production.INFO: ==24088== Releasing lock... [2025-01-28 16:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:28:30] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:29:05 [end_date_ymd] => 2025-01-28 16:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:29:05' and `end` < '2025-01-28 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-28 16:29:27] Production.INFO: count ==5877 [2025-01-28 16:29:30] Production.ERROR: pbx CDR StartTime 2025-01-28 13:29:05 - End Time 2025-01-28 16:29:05 [2025-01-28 16:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350218', 'tblTempUsageDetail_20' ) start [2025-01-28 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350218', 'tblTempUsageDetail_20' ) end [2025-01-28 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350218', 'tblTempVendorCDR_20' ) start [2025-01-28 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350218', 'tblTempVendorCDR_20' ) end [2025-01-28 16:29:30] Production.INFO: ProcessCDR(1,14350218,1,1,2) [2025-01-28 16:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350218', 'tblTempUsageDetail_20' ) start [2025-01-28 16:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350218', 'tblTempUsageDetail_20' ) end [2025-01-28 16:29:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:29:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:29:35] Production.INFO: ==24172== Releasing lock... [2025-01-28 16:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:29:35] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:30:06 [end_date_ymd] => 2025-01-28 16:30:06 [RateCDR] => 1 ) [2025-01-28 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-28 13:30:06' and `end` < '2025-01-28 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-28 16:30:27] Production.INFO: count ==5879 [2025-01-28 16:30:29] Production.ERROR: pbx CDR StartTime 2025-01-28 13:30:06 - End Time 2025-01-28 16:30:06 [2025-01-28 16:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350224', 'tblTempUsageDetail_20' ) start [2025-01-28 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350224', 'tblTempUsageDetail_20' ) end [2025-01-28 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350224', 'tblTempVendorCDR_20' ) start [2025-01-28 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350224', 'tblTempVendorCDR_20' ) end [2025-01-28 16:30:29] Production.INFO: ProcessCDR(1,14350224,1,1,2) [2025-01-28 16:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350224', 'tblTempUsageDetail_20' ) start [2025-01-28 16:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350224', 'tblTempUsageDetail_20' ) end [2025-01-28 16:30:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:30:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:30:35] Production.INFO: ==24254== Releasing lock... [2025-01-28 16:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:30:35] Production.INFO: 72 MB #Memory Used# [2025-01-28 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:31:05 [end_date_ymd] => 2025-01-28 16:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:31:05' and `end` < '2025-01-28 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-28 16:31:25] Production.INFO: count ==5899 [2025-01-28 16:31:27] Production.ERROR: pbx CDR StartTime 2025-01-28 13:31:05 - End Time 2025-01-28 16:31:05 [2025-01-28 16:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350229', 'tblTempUsageDetail_20' ) start [2025-01-28 16:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350229', 'tblTempUsageDetail_20' ) end [2025-01-28 16:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350229', 'tblTempVendorCDR_20' ) start [2025-01-28 16:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350229', 'tblTempVendorCDR_20' ) end [2025-01-28 16:31:27] Production.INFO: ProcessCDR(1,14350229,1,1,2) [2025-01-28 16:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:31:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:31:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350229', 'tblTempUsageDetail_20' ) start [2025-01-28 16:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350229', 'tblTempUsageDetail_20' ) end [2025-01-28 16:31:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:31:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:31:32] Production.INFO: ==24335== Releasing lock... [2025-01-28 16:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:31:32] Production.INFO: 72.25 MB #Memory Used# [2025-01-28 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:32:05 [end_date_ymd] => 2025-01-28 16:32:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:32:05' and `end` < '2025-01-28 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-28 16:32:25] Production.INFO: count ==5887 [2025-01-28 16:32:27] Production.ERROR: pbx CDR StartTime 2025-01-28 13:32:05 - End Time 2025-01-28 16:32:05 [2025-01-28 16:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350234', 'tblTempUsageDetail_20' ) start [2025-01-28 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350234', 'tblTempUsageDetail_20' ) end [2025-01-28 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350234', 'tblTempVendorCDR_20' ) start [2025-01-28 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350234', 'tblTempVendorCDR_20' ) end [2025-01-28 16:32:27] Production.INFO: ProcessCDR(1,14350234,1,1,2) [2025-01-28 16:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350234', 'tblTempUsageDetail_20' ) start [2025-01-28 16:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350234', 'tblTempUsageDetail_20' ) end [2025-01-28 16:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:32:32] Production.INFO: ==24419== Releasing lock... [2025-01-28 16:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:32:32] Production.INFO: 72.25 MB #Memory Used# [2025-01-28 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:33:05 [end_date_ymd] => 2025-01-28 16:33:05 [RateCDR] => 1 ) [2025-01-28 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:33:05' and `end` < '2025-01-28 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:33:26] Production.INFO: count ==5884 [2025-01-28 16:33:28] Production.ERROR: pbx CDR StartTime 2025-01-28 13:33:05 - End Time 2025-01-28 16:33:05 [2025-01-28 16:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350239', 'tblTempUsageDetail_20' ) start [2025-01-28 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350239', 'tblTempUsageDetail_20' ) end [2025-01-28 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350239', 'tblTempVendorCDR_20' ) start [2025-01-28 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350239', 'tblTempVendorCDR_20' ) end [2025-01-28 16:33:28] Production.INFO: ProcessCDR(1,14350239,1,1,2) [2025-01-28 16:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350239', 'tblTempUsageDetail_20' ) start [2025-01-28 16:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350239', 'tblTempUsageDetail_20' ) end [2025-01-28 16:33:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:33:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:33:33] Production.INFO: ==24500== Releasing lock... [2025-01-28 16:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:33:33] Production.INFO: 72.25 MB #Memory Used# [2025-01-28 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:34:05 [end_date_ymd] => 2025-01-28 16:34:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:34:05' and `end` < '2025-01-28 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-28 16:34:30] Production.INFO: count ==5891 [2025-01-28 16:34:32] Production.ERROR: pbx CDR StartTime 2025-01-28 13:34:05 - End Time 2025-01-28 16:34:05 [2025-01-28 16:34:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350244', 'tblTempUsageDetail_20' ) start [2025-01-28 16:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350244', 'tblTempUsageDetail_20' ) end [2025-01-28 16:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350244', 'tblTempVendorCDR_20' ) start [2025-01-28 16:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350244', 'tblTempVendorCDR_20' ) end [2025-01-28 16:34:32] Production.INFO: ProcessCDR(1,14350244,1,1,2) [2025-01-28 16:34:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:34:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:34:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:34:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350244', 'tblTempUsageDetail_20' ) start [2025-01-28 16:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350244', 'tblTempUsageDetail_20' ) end [2025-01-28 16:34:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:34:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:34:37] Production.INFO: ==24584== Releasing lock... [2025-01-28 16:34:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:34:37] Production.INFO: 72.25 MB #Memory Used# [2025-01-28 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:35:05 [end_date_ymd] => 2025-01-28 16:35:05 [RateCDR] => 1 ) [2025-01-28 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:35:05' and `end` < '2025-01-28 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-28 16:35:27] Production.INFO: count ==5924 [2025-01-28 16:35:29] Production.ERROR: pbx CDR StartTime 2025-01-28 13:35:05 - End Time 2025-01-28 16:35:05 [2025-01-28 16:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350249', 'tblTempUsageDetail_20' ) start [2025-01-28 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350249', 'tblTempUsageDetail_20' ) end [2025-01-28 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350249', 'tblTempVendorCDR_20' ) start [2025-01-28 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350249', 'tblTempVendorCDR_20' ) end [2025-01-28 16:35:29] Production.INFO: ProcessCDR(1,14350249,1,1,2) [2025-01-28 16:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350249', 'tblTempUsageDetail_20' ) start [2025-01-28 16:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350249', 'tblTempUsageDetail_20' ) end [2025-01-28 16:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:35:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:35:34] Production.INFO: ==24668== Releasing lock... [2025-01-28 16:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:35:34] Production.INFO: 72.5 MB #Memory Used# [2025-01-28 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:36:05 [end_date_ymd] => 2025-01-28 16:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:36:05' and `end` < '2025-01-28 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-28 16:36:27] Production.INFO: count ==5928 [2025-01-28 16:36:29] Production.ERROR: pbx CDR StartTime 2025-01-28 13:36:05 - End Time 2025-01-28 16:36:05 [2025-01-28 16:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350254', 'tblTempUsageDetail_20' ) start [2025-01-28 16:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350254', 'tblTempUsageDetail_20' ) end [2025-01-28 16:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350254', 'tblTempVendorCDR_20' ) start [2025-01-28 16:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350254', 'tblTempVendorCDR_20' ) end [2025-01-28 16:36:29] Production.INFO: ProcessCDR(1,14350254,1,1,2) [2025-01-28 16:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350254', 'tblTempUsageDetail_20' ) start [2025-01-28 16:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350254', 'tblTempUsageDetail_20' ) end [2025-01-28 16:36:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:36:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:36:34] Production.INFO: ==24742== Releasing lock... [2025-01-28 16:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:36:34] Production.INFO: 72.5 MB #Memory Used# [2025-01-28 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:37:05 [end_date_ymd] => 2025-01-28 16:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:37:05' and `end` < '2025-01-28 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-28 16:37:31] Production.INFO: count ==5918 [2025-01-28 16:37:33] Production.ERROR: pbx CDR StartTime 2025-01-28 13:37:05 - End Time 2025-01-28 16:37:05 [2025-01-28 16:37:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350259', 'tblTempUsageDetail_20' ) start [2025-01-28 16:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350259', 'tblTempUsageDetail_20' ) end [2025-01-28 16:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350259', 'tblTempVendorCDR_20' ) start [2025-01-28 16:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350259', 'tblTempVendorCDR_20' ) end [2025-01-28 16:37:34] Production.INFO: ProcessCDR(1,14350259,1,1,2) [2025-01-28 16:37:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:37:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:37:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:37:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350259', 'tblTempUsageDetail_20' ) start [2025-01-28 16:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350259', 'tblTempUsageDetail_20' ) end [2025-01-28 16:37:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:37:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:37:39] Production.INFO: ==24828== Releasing lock... [2025-01-28 16:37:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:37:39] Production.INFO: 72.5 MB #Memory Used# [2025-01-28 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:38:05 [end_date_ymd] => 2025-01-28 16:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:38:05' and `end` < '2025-01-28 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-28 16:38:32] Production.INFO: count ==5909 [2025-01-28 16:38:34] Production.ERROR: pbx CDR StartTime 2025-01-28 13:38:05 - End Time 2025-01-28 16:38:05 [2025-01-28 16:38:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350264', 'tblTempUsageDetail_20' ) start [2025-01-28 16:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350264', 'tblTempUsageDetail_20' ) end [2025-01-28 16:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350264', 'tblTempVendorCDR_20' ) start [2025-01-28 16:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350264', 'tblTempVendorCDR_20' ) end [2025-01-28 16:38:34] Production.INFO: ProcessCDR(1,14350264,1,1,2) [2025-01-28 16:38:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:38:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:38:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:38:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:38:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350264', 'tblTempUsageDetail_20' ) start [2025-01-28 16:38:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350264', 'tblTempUsageDetail_20' ) end [2025-01-28 16:38:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:38:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:38:39] Production.INFO: ==24911== Releasing lock... [2025-01-28 16:38:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:38:39] Production.INFO: 72.25 MB #Memory Used# [2025-01-28 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:39:05 [end_date_ymd] => 2025-01-28 16:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:39:05' and `end` < '2025-01-28 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-28 16:39:28] Production.INFO: count ==5908 [2025-01-28 16:39:30] Production.ERROR: pbx CDR StartTime 2025-01-28 13:39:05 - End Time 2025-01-28 16:39:05 [2025-01-28 16:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350269', 'tblTempUsageDetail_20' ) start [2025-01-28 16:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350269', 'tblTempUsageDetail_20' ) end [2025-01-28 16:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350269', 'tblTempVendorCDR_20' ) start [2025-01-28 16:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350269', 'tblTempVendorCDR_20' ) end [2025-01-28 16:39:31] Production.INFO: ProcessCDR(1,14350269,1,1,2) [2025-01-28 16:39:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350269', 'tblTempUsageDetail_20' ) start [2025-01-28 16:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350269', 'tblTempUsageDetail_20' ) end [2025-01-28 16:39:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:39:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:39:35] Production.INFO: ==24995== Releasing lock... [2025-01-28 16:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:39:35] Production.INFO: 72.25 MB #Memory Used# [2025-01-28 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:40:05 [end_date_ymd] => 2025-01-28 16:40:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:40:05' and `end` < '2025-01-28 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-28 16:40:33] Production.INFO: count ==5914 [2025-01-28 16:40:36] Production.ERROR: pbx CDR StartTime 2025-01-28 13:40:05 - End Time 2025-01-28 16:40:05 [2025-01-28 16:40:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350275', 'tblTempUsageDetail_20' ) start [2025-01-28 16:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350275', 'tblTempUsageDetail_20' ) end [2025-01-28 16:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350275', 'tblTempVendorCDR_20' ) start [2025-01-28 16:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350275', 'tblTempVendorCDR_20' ) end [2025-01-28 16:40:36] Production.INFO: ProcessCDR(1,14350275,1,1,2) [2025-01-28 16:40:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:40:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:40:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:40:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350275', 'tblTempUsageDetail_20' ) start [2025-01-28 16:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350275', 'tblTempUsageDetail_20' ) end [2025-01-28 16:40:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:40:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:40:41] Production.INFO: ==25083== Releasing lock... [2025-01-28 16:40:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:40:41] Production.INFO: 72.25 MB #Memory Used# [2025-01-28 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:41:06 [end_date_ymd] => 2025-01-28 16:41:06 [RateCDR] => 1 ) [2025-01-28 16:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:41:06' and `end` < '2025-01-28 16:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:41:28] Production.INFO: count ==5993 [2025-01-28 16:41:31] Production.ERROR: pbx CDR StartTime 2025-01-28 13:41:06 - End Time 2025-01-28 16:41:06 [2025-01-28 16:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350280', 'tblTempUsageDetail_20' ) start [2025-01-28 16:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350280', 'tblTempUsageDetail_20' ) end [2025-01-28 16:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350280', 'tblTempVendorCDR_20' ) start [2025-01-28 16:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350280', 'tblTempVendorCDR_20' ) end [2025-01-28 16:41:31] Production.INFO: ProcessCDR(1,14350280,1,1,2) [2025-01-28 16:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:41:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350280', 'tblTempUsageDetail_20' ) start [2025-01-28 16:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350280', 'tblTempUsageDetail_20' ) end [2025-01-28 16:41:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:41:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:41:36] Production.INFO: ==25166== Releasing lock... [2025-01-28 16:41:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:41:36] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:42:05 [end_date_ymd] => 2025-01-28 16:42:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:42:05' and `end` < '2025-01-28 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-28 16:42:27] Production.INFO: count ==5989 [2025-01-28 16:42:29] Production.ERROR: pbx CDR StartTime 2025-01-28 13:42:05 - End Time 2025-01-28 16:42:05 [2025-01-28 16:42:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350285', 'tblTempUsageDetail_20' ) start [2025-01-28 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350285', 'tblTempUsageDetail_20' ) end [2025-01-28 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350285', 'tblTempVendorCDR_20' ) start [2025-01-28 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350285', 'tblTempVendorCDR_20' ) end [2025-01-28 16:42:29] Production.INFO: ProcessCDR(1,14350285,1,1,2) [2025-01-28 16:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:42:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:42:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350285', 'tblTempUsageDetail_20' ) start [2025-01-28 16:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350285', 'tblTempUsageDetail_20' ) end [2025-01-28 16:42:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:42:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:42:34] Production.INFO: ==25243== Releasing lock... [2025-01-28 16:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:42:34] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:43:05 [end_date_ymd] => 2025-01-28 16:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:43:05' and `end` < '2025-01-28 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-28 16:43:27] Production.INFO: count ==5991 [2025-01-28 16:43:29] Production.ERROR: pbx CDR StartTime 2025-01-28 13:43:05 - End Time 2025-01-28 16:43:05 [2025-01-28 16:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350290', 'tblTempUsageDetail_20' ) start [2025-01-28 16:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350290', 'tblTempUsageDetail_20' ) end [2025-01-28 16:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350290', 'tblTempVendorCDR_20' ) start [2025-01-28 16:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350290', 'tblTempVendorCDR_20' ) end [2025-01-28 16:43:30] Production.INFO: ProcessCDR(1,14350290,1,1,2) [2025-01-28 16:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350290', 'tblTempUsageDetail_20' ) start [2025-01-28 16:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350290', 'tblTempUsageDetail_20' ) end [2025-01-28 16:43:34] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:43:34] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:43:34] Production.INFO: ==25325== Releasing lock... [2025-01-28 16:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:43:34] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:44:06 [end_date_ymd] => 2025-01-28 16:44:06 [RateCDR] => 1 ) [2025-01-28 16:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:44:06' and `end` < '2025-01-28 16:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:44:27] Production.INFO: count ==5994 [2025-01-28 16:44:30] Production.ERROR: pbx CDR StartTime 2025-01-28 13:44:06 - End Time 2025-01-28 16:44:06 [2025-01-28 16:44:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350295', 'tblTempUsageDetail_20' ) start [2025-01-28 16:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350295', 'tblTempUsageDetail_20' ) end [2025-01-28 16:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350295', 'tblTempVendorCDR_20' ) start [2025-01-28 16:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350295', 'tblTempVendorCDR_20' ) end [2025-01-28 16:44:30] Production.INFO: ProcessCDR(1,14350295,1,1,2) [2025-01-28 16:44:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:44:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350295', 'tblTempUsageDetail_20' ) start [2025-01-28 16:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350295', 'tblTempUsageDetail_20' ) end [2025-01-28 16:44:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:44:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:44:35] Production.INFO: ==25448== Releasing lock... [2025-01-28 16:44:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:44:35] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:45:05 [end_date_ymd] => 2025-01-28 16:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:45:05' and `end` < '2025-01-28 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-28 16:45:30] Production.INFO: count ==6010 [2025-01-28 16:45:33] Production.ERROR: pbx CDR StartTime 2025-01-28 13:45:05 - End Time 2025-01-28 16:45:05 [2025-01-28 16:45:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350300', 'tblTempUsageDetail_20' ) start [2025-01-28 16:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350300', 'tblTempUsageDetail_20' ) end [2025-01-28 16:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350300', 'tblTempVendorCDR_20' ) start [2025-01-28 16:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350300', 'tblTempVendorCDR_20' ) end [2025-01-28 16:45:33] Production.INFO: ProcessCDR(1,14350300,1,1,2) [2025-01-28 16:45:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350300', 'tblTempUsageDetail_20' ) start [2025-01-28 16:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350300', 'tblTempUsageDetail_20' ) end [2025-01-28 16:45:38] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:45:38] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:45:38] Production.INFO: ==25530== Releasing lock... [2025-01-28 16:45:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:45:38] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:46:05 [end_date_ymd] => 2025-01-28 16:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:46:05' and `end` < '2025-01-28 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-28 16:46:26] Production.INFO: count ==6001 [2025-01-28 16:46:28] Production.ERROR: pbx CDR StartTime 2025-01-28 13:46:05 - End Time 2025-01-28 16:46:05 [2025-01-28 16:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350305', 'tblTempUsageDetail_20' ) start [2025-01-28 16:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350305', 'tblTempUsageDetail_20' ) end [2025-01-28 16:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350305', 'tblTempVendorCDR_20' ) start [2025-01-28 16:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350305', 'tblTempVendorCDR_20' ) end [2025-01-28 16:46:29] Production.INFO: ProcessCDR(1,14350305,1,1,2) [2025-01-28 16:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350305', 'tblTempUsageDetail_20' ) start [2025-01-28 16:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350305', 'tblTempUsageDetail_20' ) end [2025-01-28 16:46:32] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:46:32] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:46:32] Production.INFO: ==25609== Releasing lock... [2025-01-28 16:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:46:32] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:47:05 [end_date_ymd] => 2025-01-28 16:47:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:47:05' and `end` < '2025-01-28 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-28 16:47:23] Production.INFO: count ==5992 [2025-01-28 16:47:26] Production.ERROR: pbx CDR StartTime 2025-01-28 13:47:05 - End Time 2025-01-28 16:47:05 [2025-01-28 16:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350310', 'tblTempUsageDetail_20' ) start [2025-01-28 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350310', 'tblTempUsageDetail_20' ) end [2025-01-28 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350310', 'tblTempVendorCDR_20' ) start [2025-01-28 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350310', 'tblTempVendorCDR_20' ) end [2025-01-28 16:47:26] Production.INFO: ProcessCDR(1,14350310,1,1,2) [2025-01-28 16:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350310', 'tblTempUsageDetail_20' ) start [2025-01-28 16:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350310', 'tblTempUsageDetail_20' ) end [2025-01-28 16:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:47:30] Production.INFO: ==25692== Releasing lock... [2025-01-28 16:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:47:30] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:48:05 [end_date_ymd] => 2025-01-28 16:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:48:05' and `end` < '2025-01-28 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-28 16:48:34] Production.INFO: count ==5978 [2025-01-28 16:48:36] Production.ERROR: pbx CDR StartTime 2025-01-28 13:48:05 - End Time 2025-01-28 16:48:05 [2025-01-28 16:48:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:48:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350315', 'tblTempUsageDetail_20' ) start [2025-01-28 16:48:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350315', 'tblTempUsageDetail_20' ) end [2025-01-28 16:48:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350315', 'tblTempVendorCDR_20' ) start [2025-01-28 16:48:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350315', 'tblTempVendorCDR_20' ) end [2025-01-28 16:48:37] Production.INFO: ProcessCDR(1,14350315,1,1,2) [2025-01-28 16:48:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:48:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:48:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:48:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:48:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350315', 'tblTempUsageDetail_20' ) start [2025-01-28 16:48:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350315', 'tblTempUsageDetail_20' ) end [2025-01-28 16:48:42] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:48:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:48:42] Production.INFO: ==25778== Releasing lock... [2025-01-28 16:48:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:48:42] Production.INFO: 72.75 MB #Memory Used# [2025-01-28 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:49:05 [end_date_ymd] => 2025-01-28 16:49:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:49:05' and `end` < '2025-01-28 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-28 16:49:28] Production.INFO: count ==5974 [2025-01-28 16:49:31] Production.ERROR: pbx CDR StartTime 2025-01-28 13:49:05 - End Time 2025-01-28 16:49:05 [2025-01-28 16:49:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350320', 'tblTempUsageDetail_20' ) start [2025-01-28 16:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350320', 'tblTempUsageDetail_20' ) end [2025-01-28 16:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350320', 'tblTempVendorCDR_20' ) start [2025-01-28 16:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350320', 'tblTempVendorCDR_20' ) end [2025-01-28 16:49:31] Production.INFO: ProcessCDR(1,14350320,1,1,2) [2025-01-28 16:49:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:49:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:49:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:49:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:49:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350320', 'tblTempUsageDetail_20' ) start [2025-01-28 16:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350320', 'tblTempUsageDetail_20' ) end [2025-01-28 16:49:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:49:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:49:36] Production.INFO: ==25854== Releasing lock... [2025-01-28 16:49:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:49:36] Production.INFO: 72.75 MB #Memory Used# [2025-01-28 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:50:06 [end_date_ymd] => 2025-01-28 16:50:06 [RateCDR] => 1 ) [2025-01-28 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-28 13:50:06' and `end` < '2025-01-28 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-28 16:50:27] Production.INFO: count ==5963 [2025-01-28 16:50:29] Production.ERROR: pbx CDR StartTime 2025-01-28 13:50:06 - End Time 2025-01-28 16:50:06 [2025-01-28 16:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350326', 'tblTempUsageDetail_20' ) start [2025-01-28 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350326', 'tblTempUsageDetail_20' ) end [2025-01-28 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350326', 'tblTempVendorCDR_20' ) start [2025-01-28 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350326', 'tblTempVendorCDR_20' ) end [2025-01-28 16:50:29] Production.INFO: ProcessCDR(1,14350326,1,1,2) [2025-01-28 16:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350326', 'tblTempUsageDetail_20' ) start [2025-01-28 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350326', 'tblTempUsageDetail_20' ) end [2025-01-28 16:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:50:33] Production.INFO: ==25944== Releasing lock... [2025-01-28 16:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:50:33] Production.INFO: 72.75 MB #Memory Used# [2025-01-28 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:51:05 [end_date_ymd] => 2025-01-28 16:51:05 [RateCDR] => 1 ) [2025-01-28 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:51:05' and `end` < '2025-01-28 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:51:28] Production.INFO: count ==6011 [2025-01-28 16:51:31] Production.ERROR: pbx CDR StartTime 2025-01-28 13:51:05 - End Time 2025-01-28 16:51:05 [2025-01-28 16:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350331', 'tblTempUsageDetail_20' ) start [2025-01-28 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350331', 'tblTempUsageDetail_20' ) end [2025-01-28 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350331', 'tblTempVendorCDR_20' ) start [2025-01-28 16:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350331', 'tblTempVendorCDR_20' ) end [2025-01-28 16:51:31] Production.INFO: ProcessCDR(1,14350331,1,1,2) [2025-01-28 16:51:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:51:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350331', 'tblTempUsageDetail_20' ) start [2025-01-28 16:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350331', 'tblTempUsageDetail_20' ) end [2025-01-28 16:51:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:51:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:51:35] Production.INFO: ==26028== Releasing lock... [2025-01-28 16:51:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:51:35] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:52:05 [end_date_ymd] => 2025-01-28 16:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:52:05' and `end` < '2025-01-28 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-28 16:52:31] Production.INFO: count ==6000 [2025-01-28 16:52:34] Production.ERROR: pbx CDR StartTime 2025-01-28 13:52:05 - End Time 2025-01-28 16:52:05 [2025-01-28 16:52:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350336', 'tblTempUsageDetail_20' ) start [2025-01-28 16:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350336', 'tblTempUsageDetail_20' ) end [2025-01-28 16:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350336', 'tblTempVendorCDR_20' ) start [2025-01-28 16:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350336', 'tblTempVendorCDR_20' ) end [2025-01-28 16:52:34] Production.INFO: ProcessCDR(1,14350336,1,1,2) [2025-01-28 16:52:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:52:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:52:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:52:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:52:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350336', 'tblTempUsageDetail_20' ) start [2025-01-28 16:52:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350336', 'tblTempUsageDetail_20' ) end [2025-01-28 16:52:39] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:52:39] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:52:39] Production.INFO: ==26115== Releasing lock... [2025-01-28 16:52:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:52:39] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:53:05 [end_date_ymd] => 2025-01-28 16:53:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:53:05' and `end` < '2025-01-28 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-28 16:53:34] Production.INFO: count ==6000 [2025-01-28 16:53:37] Production.ERROR: pbx CDR StartTime 2025-01-28 13:53:05 - End Time 2025-01-28 16:53:05 [2025-01-28 16:53:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350341', 'tblTempUsageDetail_20' ) start [2025-01-28 16:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350341', 'tblTempUsageDetail_20' ) end [2025-01-28 16:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350341', 'tblTempVendorCDR_20' ) start [2025-01-28 16:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350341', 'tblTempVendorCDR_20' ) end [2025-01-28 16:53:37] Production.INFO: ProcessCDR(1,14350341,1,1,2) [2025-01-28 16:53:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:53:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:53:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:53:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:53:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350341', 'tblTempUsageDetail_20' ) start [2025-01-28 16:53:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350341', 'tblTempUsageDetail_20' ) end [2025-01-28 16:53:42] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:53:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:53:42] Production.INFO: ==26205== Releasing lock... [2025-01-28 16:53:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:53:42] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:54:05 [end_date_ymd] => 2025-01-28 16:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 13:54:05' and `end` < '2025-01-28 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-28 16:54:28] Production.INFO: count ==5997 [2025-01-28 16:54:30] Production.ERROR: pbx CDR StartTime 2025-01-28 13:54:05 - End Time 2025-01-28 16:54:05 [2025-01-28 16:54:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350346', 'tblTempUsageDetail_20' ) start [2025-01-28 16:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350346', 'tblTempUsageDetail_20' ) end [2025-01-28 16:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350346', 'tblTempVendorCDR_20' ) start [2025-01-28 16:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350346', 'tblTempVendorCDR_20' ) end [2025-01-28 16:54:30] Production.INFO: ProcessCDR(1,14350346,1,1,2) [2025-01-28 16:54:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:54:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:54:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:54:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350346', 'tblTempUsageDetail_20' ) start [2025-01-28 16:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350346', 'tblTempUsageDetail_20' ) end [2025-01-28 16:54:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:54:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:54:35] Production.INFO: ==26293== Releasing lock... [2025-01-28 16:54:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:54:35] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:55:05 [end_date_ymd] => 2025-01-28 16:55:05 [RateCDR] => 1 ) [2025-01-28 16: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-28 13:55:05' and `end` < '2025-01-28 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-28 16:55:34] Production.INFO: count ==5987 [2025-01-28 16:55:36] Production.ERROR: pbx CDR StartTime 2025-01-28 13:55:05 - End Time 2025-01-28 16:55:05 [2025-01-28 16:55:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350351', 'tblTempUsageDetail_20' ) start [2025-01-28 16:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350351', 'tblTempUsageDetail_20' ) end [2025-01-28 16:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350351', 'tblTempVendorCDR_20' ) start [2025-01-28 16:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350351', 'tblTempVendorCDR_20' ) end [2025-01-28 16:55:36] Production.INFO: ProcessCDR(1,14350351,1,1,2) [2025-01-28 16:55:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:55:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:55:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:55:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:55:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350351', 'tblTempUsageDetail_20' ) start [2025-01-28 16:55:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350351', 'tblTempUsageDetail_20' ) end [2025-01-28 16:55:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:55:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:55:41] Production.INFO: ==26374== Releasing lock... [2025-01-28 16:55:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:55:41] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:56:06 [end_date_ymd] => 2025-01-28 16:56:06 [RateCDR] => 1 ) [2025-01-28 16: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-28 13:56:06' and `end` < '2025-01-28 16: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-28 16:56:34] Production.INFO: count ==6007 [2025-01-28 16:56:36] Production.ERROR: pbx CDR StartTime 2025-01-28 13:56:06 - End Time 2025-01-28 16:56:06 [2025-01-28 16:56:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350356', 'tblTempUsageDetail_20' ) start [2025-01-28 16:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350356', 'tblTempUsageDetail_20' ) end [2025-01-28 16:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350356', 'tblTempVendorCDR_20' ) start [2025-01-28 16:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350356', 'tblTempVendorCDR_20' ) end [2025-01-28 16:56:36] Production.INFO: ProcessCDR(1,14350356,1,1,2) [2025-01-28 16:56:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:56:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:56:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:56:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:56:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350356', 'tblTempUsageDetail_20' ) start [2025-01-28 16:56:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350356', 'tblTempUsageDetail_20' ) end [2025-01-28 16:56:42] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:56:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:56:42] Production.INFO: ==26455== Releasing lock... [2025-01-28 16:56:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:56:42] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:57:06 [end_date_ymd] => 2025-01-28 16:57:06 [RateCDR] => 1 ) [2025-01-28 16: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-28 13:57:06' and `end` < '2025-01-28 16: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-28 16:57:30] Production.INFO: count ==5994 [2025-01-28 16:57:32] Production.ERROR: pbx CDR StartTime 2025-01-28 13:57:06 - End Time 2025-01-28 16:57:06 [2025-01-28 16:57:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350361', 'tblTempUsageDetail_20' ) start [2025-01-28 16:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350361', 'tblTempUsageDetail_20' ) end [2025-01-28 16:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350361', 'tblTempVendorCDR_20' ) start [2025-01-28 16:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350361', 'tblTempVendorCDR_20' ) end [2025-01-28 16:57:32] Production.INFO: ProcessCDR(1,14350361,1,1,2) [2025-01-28 16:57:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:57:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:57:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:57:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:57:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350361', 'tblTempUsageDetail_20' ) start [2025-01-28 16:57:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350361', 'tblTempUsageDetail_20' ) end [2025-01-28 16:57:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:57:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:57:37] Production.INFO: ==26535== Releasing lock... [2025-01-28 16:57:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:57:37] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:58:05 [end_date_ymd] => 2025-01-28 16:58:05 [RateCDR] => 1 ) [2025-01-28 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:58:05' and `end` < '2025-01-28 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:58:34] Production.INFO: count ==5986 [2025-01-28 16:58:36] Production.ERROR: pbx CDR StartTime 2025-01-28 13:58:05 - End Time 2025-01-28 16:58:05 [2025-01-28 16:58:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350366', 'tblTempUsageDetail_20' ) start [2025-01-28 16:58:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350366', 'tblTempUsageDetail_20' ) end [2025-01-28 16:58:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350366', 'tblTempVendorCDR_20' ) start [2025-01-28 16:58:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350366', 'tblTempVendorCDR_20' ) end [2025-01-28 16:58:37] Production.INFO: ProcessCDR(1,14350366,1,1,2) [2025-01-28 16:58:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:58:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:58:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:58:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350366', 'tblTempUsageDetail_20' ) start [2025-01-28 16:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350366', 'tblTempUsageDetail_20' ) end [2025-01-28 16:58:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:58:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:58:41] Production.INFO: ==26620== Releasing lock... [2025-01-28 16:58:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:58:41] Production.INFO: 73 MB #Memory Used# [2025-01-28 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 13:59:05 [end_date_ymd] => 2025-01-28 16:59:05 [RateCDR] => 1 ) [2025-01-28 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 13:59:05' and `end` < '2025-01-28 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 16:59:28] Production.INFO: count ==5986 [2025-01-28 16:59:30] Production.ERROR: pbx CDR StartTime 2025-01-28 13:59:05 - End Time 2025-01-28 16:59:05 [2025-01-28 16:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350371', 'tblTempUsageDetail_20' ) start [2025-01-28 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350371', 'tblTempUsageDetail_20' ) end [2025-01-28 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350371', 'tblTempVendorCDR_20' ) start [2025-01-28 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350371', 'tblTempVendorCDR_20' ) end [2025-01-28 16:59:30] Production.INFO: ProcessCDR(1,14350371,1,1,2) [2025-01-28 16:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:59:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 16:59:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 16:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350371', 'tblTempUsageDetail_20' ) start [2025-01-28 16:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350371', 'tblTempUsageDetail_20' ) end [2025-01-28 16:59:35] Production.ERROR: pbx prc_insertCDR start [2025-01-28 16:59:35] Production.ERROR: pbx prc_insertCDR end [2025-01-28 16:59:35] Production.INFO: ==26743== Releasing lock... [2025-01-28 16:59:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 16:59:35] Production.INFO: 73 MB #Memory Used# [2025-01-28 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:00:06 [end_date_ymd] => 2025-01-28 17:00:06 [RateCDR] => 1 ) [2025-01-28 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-28 14:00:06' and `end` < '2025-01-28 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-28 17:00:29] Production.INFO: count ==5972 [2025-01-28 17:00:32] Production.ERROR: pbx CDR StartTime 2025-01-28 14:00:06 - End Time 2025-01-28 17:00:06 [2025-01-28 17:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350377', 'tblTempUsageDetail_20' ) start [2025-01-28 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350377', 'tblTempUsageDetail_20' ) end [2025-01-28 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350377', 'tblTempVendorCDR_20' ) start [2025-01-28 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350377', 'tblTempVendorCDR_20' ) end [2025-01-28 17:00:32] Production.INFO: ProcessCDR(1,14350377,1,1,2) [2025-01-28 17:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350377', 'tblTempUsageDetail_20' ) start [2025-01-28 17:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350377', 'tblTempUsageDetail_20' ) end [2025-01-28 17:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:00:37] Production.INFO: ==26827== Releasing lock... [2025-01-28 17:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:00:37] Production.INFO: 72.75 MB #Memory Used# [2025-01-28 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:01:06 [end_date_ymd] => 2025-01-28 17:01:06 [RateCDR] => 1 ) [2025-01-28 17: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-28 14:01:06' and `end` < '2025-01-28 17: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-28 17:01:34] Production.INFO: count ==6008 [2025-01-28 17:01:36] Production.ERROR: pbx CDR StartTime 2025-01-28 14:01:06 - End Time 2025-01-28 17:01:06 [2025-01-28 17:01:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350382', 'tblTempUsageDetail_20' ) start [2025-01-28 17:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350382', 'tblTempUsageDetail_20' ) end [2025-01-28 17:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350382', 'tblTempVendorCDR_20' ) start [2025-01-28 17:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350382', 'tblTempVendorCDR_20' ) end [2025-01-28 17:01:36] Production.INFO: ProcessCDR(1,14350382,1,1,2) [2025-01-28 17:01:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:01:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:01:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:01:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350382', 'tblTempUsageDetail_20' ) start [2025-01-28 17:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350382', 'tblTempUsageDetail_20' ) end [2025-01-28 17:01:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:01:42] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:01:42] Production.INFO: ==26923== Releasing lock... [2025-01-28 17:01:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:01:42] Production.INFO: 73 MB #Memory Used# [2025-01-28 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:02:05 [end_date_ymd] => 2025-01-28 17:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:02:05' and `end` < '2025-01-28 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-28 17:02:37] Production.INFO: count ==5992 [2025-01-28 17:02:40] Production.ERROR: pbx CDR StartTime 2025-01-28 14:02:05 - End Time 2025-01-28 17:02:05 [2025-01-28 17:02:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350387', 'tblTempUsageDetail_20' ) start [2025-01-28 17:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350387', 'tblTempUsageDetail_20' ) end [2025-01-28 17:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350387', 'tblTempVendorCDR_20' ) start [2025-01-28 17:02:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350387', 'tblTempVendorCDR_20' ) end [2025-01-28 17:02:40] Production.INFO: ProcessCDR(1,14350387,1,1,2) [2025-01-28 17:02:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:02:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:02:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:02:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:02:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350387', 'tblTempUsageDetail_20' ) start [2025-01-28 17:02:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350387', 'tblTempUsageDetail_20' ) end [2025-01-28 17:02:44] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:02:44] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:02:44] Production.INFO: ==27004== Releasing lock... [2025-01-28 17:02:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:02:44] Production.INFO: 73 MB #Memory Used# [2025-01-28 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:03:05 [end_date_ymd] => 2025-01-28 17:03:05 [RateCDR] => 1 ) [2025-01-28 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:03:05' and `end` < '2025-01-28 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:03:34] Production.INFO: count ==5981 [2025-01-28 17:03:36] Production.ERROR: pbx CDR StartTime 2025-01-28 14:03:05 - End Time 2025-01-28 17:03:05 [2025-01-28 17:03:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350392', 'tblTempUsageDetail_20' ) start [2025-01-28 17:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350392', 'tblTempUsageDetail_20' ) end [2025-01-28 17:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350392', 'tblTempVendorCDR_20' ) start [2025-01-28 17:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350392', 'tblTempVendorCDR_20' ) end [2025-01-28 17:03:36] Production.INFO: ProcessCDR(1,14350392,1,1,2) [2025-01-28 17:03:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:03:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:03:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:03:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:03:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350392', 'tblTempUsageDetail_20' ) start [2025-01-28 17:03:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350392', 'tblTempUsageDetail_20' ) end [2025-01-28 17:03:41] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:03:41] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:03:41] Production.INFO: ==27085== Releasing lock... [2025-01-28 17:03:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:03:41] Production.INFO: 72.75 MB #Memory Used# [2025-01-28 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:04:05 [end_date_ymd] => 2025-01-28 17:04:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:04:05' and `end` < '2025-01-28 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-28 17:04:24] Production.INFO: count ==5991 [2025-01-28 17:04:26] Production.ERROR: pbx CDR StartTime 2025-01-28 14:04:05 - End Time 2025-01-28 17:04:05 [2025-01-28 17:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350397', 'tblTempUsageDetail_20' ) start [2025-01-28 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350397', 'tblTempUsageDetail_20' ) end [2025-01-28 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350397', 'tblTempVendorCDR_20' ) start [2025-01-28 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350397', 'tblTempVendorCDR_20' ) end [2025-01-28 17:04:26] Production.INFO: ProcessCDR(1,14350397,1,1,2) [2025-01-28 17:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350397', 'tblTempUsageDetail_20' ) start [2025-01-28 17:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350397', 'tblTempUsageDetail_20' ) end [2025-01-28 17:04:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:04:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:04:31] Production.INFO: ==27165== Releasing lock... [2025-01-28 17:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:04:31] Production.INFO: 73 MB #Memory Used# [2025-01-28 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:05:05 [end_date_ymd] => 2025-01-28 17:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:05:05' and `end` < '2025-01-28 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-28 17:05:22] Production.INFO: count ==5979 [2025-01-28 17:05:24] Production.ERROR: pbx CDR StartTime 2025-01-28 14:05:05 - End Time 2025-01-28 17:05:05 [2025-01-28 17:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350402', 'tblTempUsageDetail_20' ) start [2025-01-28 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350402', 'tblTempUsageDetail_20' ) end [2025-01-28 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350402', 'tblTempVendorCDR_20' ) start [2025-01-28 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350402', 'tblTempVendorCDR_20' ) end [2025-01-28 17:05:24] Production.INFO: ProcessCDR(1,14350402,1,1,2) [2025-01-28 17:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350402', 'tblTempUsageDetail_20' ) start [2025-01-28 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350402', 'tblTempUsageDetail_20' ) end [2025-01-28 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:05:27] Production.INFO: ==27247== Releasing lock... [2025-01-28 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:05:27] Production.INFO: 72.75 MB #Memory Used# [2025-01-28 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:06:04 [end_date_ymd] => 2025-01-28 17:06:04 [RateCDR] => 1 ) [2025-01-28 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-28 14:06:04' and `end` < '2025-01-28 17: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-28 17:06:29] Production.INFO: count ==5995 [2025-01-28 17:06:31] Production.ERROR: pbx CDR StartTime 2025-01-28 14:06:04 - End Time 2025-01-28 17:06:04 [2025-01-28 17:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350407', 'tblTempUsageDetail_20' ) start [2025-01-28 17:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350407', 'tblTempUsageDetail_20' ) end [2025-01-28 17:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350407', 'tblTempVendorCDR_20' ) start [2025-01-28 17:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350407', 'tblTempVendorCDR_20' ) end [2025-01-28 17:06:31] Production.INFO: ProcessCDR(1,14350407,1,1,2) [2025-01-28 17:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350407', 'tblTempUsageDetail_20' ) start [2025-01-28 17:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350407', 'tblTempUsageDetail_20' ) end [2025-01-28 17:06:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:06:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:06:36] Production.INFO: ==27325== Releasing lock... [2025-01-28 17:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:06:36] Production.INFO: 73 MB #Memory Used# [2025-01-28 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:07:05 [end_date_ymd] => 2025-01-28 17:07:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:07:05' and `end` < '2025-01-28 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-28 17:07:19] Production.INFO: count ==5989 [2025-01-28 17:07:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:07:05 - End Time 2025-01-28 17:07:05 [2025-01-28 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350412', 'tblTempUsageDetail_20' ) start [2025-01-28 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350412', 'tblTempUsageDetail_20' ) end [2025-01-28 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350412', 'tblTempVendorCDR_20' ) start [2025-01-28 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350412', 'tblTempVendorCDR_20' ) end [2025-01-28 17:07:22] Production.INFO: ProcessCDR(1,14350412,1,1,2) [2025-01-28 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350412', 'tblTempUsageDetail_20' ) start [2025-01-28 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350412', 'tblTempUsageDetail_20' ) end [2025-01-28 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:07:26] Production.INFO: ==27402== Releasing lock... [2025-01-28 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:07:26] Production.INFO: 73 MB #Memory Used# [2025-01-28 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:08:05 [end_date_ymd] => 2025-01-28 17:08:05 [RateCDR] => 1 ) [2025-01-28 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:08:05' and `end` < '2025-01-28 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:08:19] Production.INFO: count ==5995 [2025-01-28 17:08:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:08:05 - End Time 2025-01-28 17:08:05 [2025-01-28 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350417', 'tblTempUsageDetail_20' ) start [2025-01-28 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350417', 'tblTempUsageDetail_20' ) end [2025-01-28 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350417', 'tblTempVendorCDR_20' ) start [2025-01-28 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350417', 'tblTempVendorCDR_20' ) end [2025-01-28 17:08:21] Production.INFO: ProcessCDR(1,14350417,1,1,2) [2025-01-28 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350417', 'tblTempUsageDetail_20' ) start [2025-01-28 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350417', 'tblTempUsageDetail_20' ) end [2025-01-28 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:08:26] Production.INFO: ==27486== Releasing lock... [2025-01-28 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:08:26] Production.INFO: 73 MB #Memory Used# [2025-01-28 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:09:05 [end_date_ymd] => 2025-01-28 17:09:05 [RateCDR] => 1 ) [2025-01-28 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:09:05' and `end` < '2025-01-28 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:09:20] Production.INFO: count ==5969 [2025-01-28 17:09:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:09:05 - End Time 2025-01-28 17:09:05 [2025-01-28 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350422', 'tblTempUsageDetail_20' ) start [2025-01-28 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350422', 'tblTempUsageDetail_20' ) end [2025-01-28 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350422', 'tblTempVendorCDR_20' ) start [2025-01-28 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350422', 'tblTempVendorCDR_20' ) end [2025-01-28 17:09:22] Production.INFO: ProcessCDR(1,14350422,1,1,2) [2025-01-28 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350422', 'tblTempUsageDetail_20' ) start [2025-01-28 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350422', 'tblTempUsageDetail_20' ) end [2025-01-28 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:09:27] Production.INFO: ==27564== Releasing lock... [2025-01-28 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:09:27] Production.INFO: 72.75 MB #Memory Used# [2025-01-28 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:10:05 [end_date_ymd] => 2025-01-28 17:10:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:10:05' and `end` < '2025-01-28 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-28 17:10:19] Production.INFO: count ==5933 [2025-01-28 17:10:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:10:05 - End Time 2025-01-28 17:10:05 [2025-01-28 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350427', 'tblTempUsageDetail_20' ) start [2025-01-28 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350427', 'tblTempUsageDetail_20' ) end [2025-01-28 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350427', 'tblTempVendorCDR_20' ) start [2025-01-28 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350427', 'tblTempVendorCDR_20' ) end [2025-01-28 17:10:22] Production.INFO: ProcessCDR(1,14350427,1,1,2) [2025-01-28 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350427', 'tblTempUsageDetail_20' ) start [2025-01-28 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350427', 'tblTempUsageDetail_20' ) end [2025-01-28 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:10:27] Production.INFO: ==27647== Releasing lock... [2025-01-28 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:10:27] Production.INFO: 72.5 MB #Memory Used# [2025-01-28 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:11:05 [end_date_ymd] => 2025-01-28 17:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:11:05' and `end` < '2025-01-28 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-28 17:11:20] Production.INFO: count ==5851 [2025-01-28 17:11:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:11:05 - End Time 2025-01-28 17:11:05 [2025-01-28 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350433', 'tblTempUsageDetail_20' ) start [2025-01-28 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350433', 'tblTempUsageDetail_20' ) end [2025-01-28 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350433', 'tblTempVendorCDR_20' ) start [2025-01-28 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350433', 'tblTempVendorCDR_20' ) end [2025-01-28 17:11:22] Production.INFO: ProcessCDR(1,14350433,1,1,2) [2025-01-28 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350433', 'tblTempUsageDetail_20' ) start [2025-01-28 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350433', 'tblTempUsageDetail_20' ) end [2025-01-28 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:11:27] Production.INFO: ==27733== Releasing lock... [2025-01-28 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:11:27] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 17:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:12:04 [end_date_ymd] => 2025-01-28 17:12:04 [RateCDR] => 1 ) [2025-01-28 17: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-28 14:12:04' and `end` < '2025-01-28 17: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-28 17:12:19] Production.INFO: count ==5853 [2025-01-28 17:12:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:12:04 - End Time 2025-01-28 17:12:04 [2025-01-28 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350438', 'tblTempUsageDetail_20' ) start [2025-01-28 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350438', 'tblTempUsageDetail_20' ) end [2025-01-28 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350438', 'tblTempVendorCDR_20' ) start [2025-01-28 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350438', 'tblTempVendorCDR_20' ) end [2025-01-28 17:12:22] Production.INFO: ProcessCDR(1,14350438,1,1,2) [2025-01-28 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350438', 'tblTempUsageDetail_20' ) start [2025-01-28 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350438', 'tblTempUsageDetail_20' ) end [2025-01-28 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:12:26] Production.INFO: ==27810== Releasing lock... [2025-01-28 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:12:26] Production.INFO: 72 MB #Memory Used# [2025-01-28 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:13:05 [end_date_ymd] => 2025-01-28 17:13:05 [RateCDR] => 1 ) [2025-01-28 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:13:05' and `end` < '2025-01-28 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:13:20] Production.INFO: count ==5830 [2025-01-28 17:13:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:13:05 - End Time 2025-01-28 17:13:05 [2025-01-28 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350443', 'tblTempUsageDetail_20' ) start [2025-01-28 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350443', 'tblTempUsageDetail_20' ) end [2025-01-28 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350443', 'tblTempVendorCDR_20' ) start [2025-01-28 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350443', 'tblTempVendorCDR_20' ) end [2025-01-28 17:13:23] Production.INFO: ProcessCDR(1,14350443,1,1,2) [2025-01-28 17:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350443', 'tblTempUsageDetail_20' ) start [2025-01-28 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350443', 'tblTempUsageDetail_20' ) end [2025-01-28 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:13:27] Production.INFO: ==27890== Releasing lock... [2025-01-28 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:13:27] Production.INFO: 71.75 MB #Memory Used# [2025-01-28 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:14:05 [end_date_ymd] => 2025-01-28 17:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:14:05' and `end` < '2025-01-28 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-28 17:14:19] Production.INFO: count ==5810 [2025-01-28 17:14:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:14:05 - End Time 2025-01-28 17:14:05 [2025-01-28 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350448', 'tblTempUsageDetail_20' ) start [2025-01-28 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350448', 'tblTempUsageDetail_20' ) end [2025-01-28 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350448', 'tblTempVendorCDR_20' ) start [2025-01-28 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350448', 'tblTempVendorCDR_20' ) end [2025-01-28 17:14:21] Production.INFO: ProcessCDR(1,14350448,1,1,2) [2025-01-28 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350448', 'tblTempUsageDetail_20' ) start [2025-01-28 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350448', 'tblTempUsageDetail_20' ) end [2025-01-28 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:14:26] Production.INFO: ==28004== Releasing lock... [2025-01-28 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:14:26] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:15:06 [end_date_ymd] => 2025-01-28 17:15:06 [RateCDR] => 1 ) [2025-01-28 17: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-28 14:15:06' and `end` < '2025-01-28 17: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-28 17:15:23] Production.INFO: count ==5793 [2025-01-28 17:15:25] Production.ERROR: pbx CDR StartTime 2025-01-28 14:15:06 - End Time 2025-01-28 17:15:06 [2025-01-28 17:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350453', 'tblTempUsageDetail_20' ) start [2025-01-28 17:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350453', 'tblTempUsageDetail_20' ) end [2025-01-28 17:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350453', 'tblTempVendorCDR_20' ) start [2025-01-28 17:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350453', 'tblTempVendorCDR_20' ) end [2025-01-28 17:15:26] Production.INFO: ProcessCDR(1,14350453,1,1,2) [2025-01-28 17:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350453', 'tblTempUsageDetail_20' ) start [2025-01-28 17:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350453', 'tblTempUsageDetail_20' ) end [2025-01-28 17:15:30] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:15:30] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:15:30] Production.INFO: ==28079== Releasing lock... [2025-01-28 17:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:15:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:16:06 [end_date_ymd] => 2025-01-28 17:16:06 [RateCDR] => 1 ) [2025-01-28 17: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-28 14:16:06' and `end` < '2025-01-28 17: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-28 17:16:21] Production.INFO: count ==5787 [2025-01-28 17:16:23] Production.ERROR: pbx CDR StartTime 2025-01-28 14:16:06 - End Time 2025-01-28 17:16:06 [2025-01-28 17:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350458', 'tblTempUsageDetail_20' ) start [2025-01-28 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350458', 'tblTempUsageDetail_20' ) end [2025-01-28 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350458', 'tblTempVendorCDR_20' ) start [2025-01-28 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350458', 'tblTempVendorCDR_20' ) end [2025-01-28 17:16:23] Production.INFO: ProcessCDR(1,14350458,1,1,2) [2025-01-28 17:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350458', 'tblTempUsageDetail_20' ) start [2025-01-28 17:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350458', 'tblTempUsageDetail_20' ) end [2025-01-28 17:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:16:28] Production.INFO: ==28158== Releasing lock... [2025-01-28 17:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:16:28] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:17:05 [end_date_ymd] => 2025-01-28 17:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:17:05' and `end` < '2025-01-28 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-28 17:17:19] Production.INFO: count ==5790 [2025-01-28 17:17:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:17:05 - End Time 2025-01-28 17:17:05 [2025-01-28 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350463', 'tblTempUsageDetail_20' ) start [2025-01-28 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350463', 'tblTempUsageDetail_20' ) end [2025-01-28 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350463', 'tblTempVendorCDR_20' ) start [2025-01-28 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350463', 'tblTempVendorCDR_20' ) end [2025-01-28 17:17:21] Production.INFO: ProcessCDR(1,14350463,1,1,2) [2025-01-28 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350463', 'tblTempUsageDetail_20' ) start [2025-01-28 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350463', 'tblTempUsageDetail_20' ) end [2025-01-28 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:17:25] Production.INFO: ==28236== Releasing lock... [2025-01-28 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:17:25] Production.INFO: 71.5 MB #Memory Used# [2025-01-28 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:18:05 [end_date_ymd] => 2025-01-28 17:18:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:18:05' and `end` < '2025-01-28 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-28 17:18:24] Production.INFO: count ==5778 [2025-01-28 17:18:26] Production.ERROR: pbx CDR StartTime 2025-01-28 14:18:05 - End Time 2025-01-28 17:18:05 [2025-01-28 17:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350468', 'tblTempUsageDetail_20' ) start [2025-01-28 17:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350468', 'tblTempUsageDetail_20' ) end [2025-01-28 17:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350468', 'tblTempVendorCDR_20' ) start [2025-01-28 17:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350468', 'tblTempVendorCDR_20' ) end [2025-01-28 17:18:26] Production.INFO: ProcessCDR(1,14350468,1,1,2) [2025-01-28 17:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350468', 'tblTempUsageDetail_20' ) start [2025-01-28 17:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350468', 'tblTempUsageDetail_20' ) end [2025-01-28 17:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:18:31] Production.INFO: ==28313== Releasing lock... [2025-01-28 17:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:18:31] Production.INFO: 71.25 MB #Memory Used# [2025-01-28 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:19:05 [end_date_ymd] => 2025-01-28 17:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:19:05' and `end` < '2025-01-28 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-28 17:19:22] Production.INFO: count ==5783 [2025-01-28 17:19:24] Production.ERROR: pbx CDR StartTime 2025-01-28 14:19:05 - End Time 2025-01-28 17:19:05 [2025-01-28 17:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350473', 'tblTempUsageDetail_20' ) start [2025-01-28 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350473', 'tblTempUsageDetail_20' ) end [2025-01-28 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350473', 'tblTempVendorCDR_20' ) start [2025-01-28 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350473', 'tblTempVendorCDR_20' ) end [2025-01-28 17:19:24] Production.INFO: ProcessCDR(1,14350473,1,1,2) [2025-01-28 17:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350473', 'tblTempUsageDetail_20' ) start [2025-01-28 17:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350473', 'tblTempUsageDetail_20' ) end [2025-01-28 17:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:19:29] Production.INFO: ==28390== Releasing lock... [2025-01-28 17:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:19:29] Production.INFO: 71.25 MB #Memory Used# [2025-01-28 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:20:06 [end_date_ymd] => 2025-01-28 17:20:06 [RateCDR] => 1 ) [2025-01-28 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-28 14:20:06' and `end` < '2025-01-28 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-28 17:20:20] Production.INFO: count ==5757 [2025-01-28 17:20:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:20:06 - End Time 2025-01-28 17:20:06 [2025-01-28 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350478', 'tblTempUsageDetail_20' ) start [2025-01-28 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350478', 'tblTempUsageDetail_20' ) end [2025-01-28 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350478', 'tblTempVendorCDR_20' ) start [2025-01-28 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350478', 'tblTempVendorCDR_20' ) end [2025-01-28 17:20:22] Production.INFO: ProcessCDR(1,14350478,1,1,2) [2025-01-28 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350478', 'tblTempUsageDetail_20' ) start [2025-01-28 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350478', 'tblTempUsageDetail_20' ) end [2025-01-28 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:20:27] Production.INFO: ==28470== Releasing lock... [2025-01-28 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:20:27] Production.INFO: 71.25 MB #Memory Used# [2025-01-28 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:21:05 [end_date_ymd] => 2025-01-28 17:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:21:05' and `end` < '2025-01-28 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-28 17:21:19] Production.INFO: count ==5683 [2025-01-28 17:21:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:21:05 - End Time 2025-01-28 17:21:05 [2025-01-28 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350484', 'tblTempUsageDetail_20' ) start [2025-01-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350484', 'tblTempUsageDetail_20' ) end [2025-01-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350484', 'tblTempVendorCDR_20' ) start [2025-01-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350484', 'tblTempVendorCDR_20' ) end [2025-01-28 17:21:21] Production.INFO: ProcessCDR(1,14350484,1,1,2) [2025-01-28 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350484', 'tblTempUsageDetail_20' ) start [2025-01-28 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350484', 'tblTempUsageDetail_20' ) end [2025-01-28 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:21:25] Production.INFO: ==28543== Releasing lock... [2025-01-28 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:21:25] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:22:05 [end_date_ymd] => 2025-01-28 17:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:22:05' and `end` < '2025-01-28 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-28 17:22:19] Production.INFO: count ==5663 [2025-01-28 17:22:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:22:05 - End Time 2025-01-28 17:22:05 [2025-01-28 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350489', 'tblTempUsageDetail_20' ) start [2025-01-28 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350489', 'tblTempUsageDetail_20' ) end [2025-01-28 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350489', 'tblTempVendorCDR_20' ) start [2025-01-28 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350489', 'tblTempVendorCDR_20' ) end [2025-01-28 17:22:21] Production.INFO: ProcessCDR(1,14350489,1,1,2) [2025-01-28 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350489', 'tblTempUsageDetail_20' ) start [2025-01-28 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350489', 'tblTempUsageDetail_20' ) end [2025-01-28 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:22:25] Production.INFO: ==28619== Releasing lock... [2025-01-28 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:22:25] Production.INFO: 70.5 MB #Memory Used# [2025-01-28 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:23:05 [end_date_ymd] => 2025-01-28 17:23:05 [RateCDR] => 1 ) [2025-01-28 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:23:05' and `end` < '2025-01-28 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:23:18] Production.INFO: count ==5648 [2025-01-28 17:23:20] Production.ERROR: pbx CDR StartTime 2025-01-28 14:23:05 - End Time 2025-01-28 17:23:05 [2025-01-28 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350494', 'tblTempUsageDetail_20' ) start [2025-01-28 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350494', 'tblTempUsageDetail_20' ) end [2025-01-28 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350494', 'tblTempVendorCDR_20' ) start [2025-01-28 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350494', 'tblTempVendorCDR_20' ) end [2025-01-28 17:23:20] Production.INFO: ProcessCDR(1,14350494,1,1,2) [2025-01-28 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350494', 'tblTempUsageDetail_20' ) start [2025-01-28 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350494', 'tblTempUsageDetail_20' ) end [2025-01-28 17:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:23:24] Production.INFO: ==28693== Releasing lock... [2025-01-28 17:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:23:24] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:24:06 [end_date_ymd] => 2025-01-28 17:24:06 [RateCDR] => 1 ) [2025-01-28 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:24:06' and `end` < '2025-01-28 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:24:20] Production.INFO: count ==5627 [2025-01-28 17:24:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:24:06 - End Time 2025-01-28 17:24:06 [2025-01-28 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350499', 'tblTempUsageDetail_20' ) start [2025-01-28 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350499', 'tblTempUsageDetail_20' ) end [2025-01-28 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350499', 'tblTempVendorCDR_20' ) start [2025-01-28 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350499', 'tblTempVendorCDR_20' ) end [2025-01-28 17:24:22] Production.INFO: ProcessCDR(1,14350499,1,1,2) [2025-01-28 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350499', 'tblTempUsageDetail_20' ) start [2025-01-28 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350499', 'tblTempUsageDetail_20' ) end [2025-01-28 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:24:25] Production.INFO: ==28773== Releasing lock... [2025-01-28 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:24:25] Production.INFO: 70.25 MB #Memory Used# [2025-01-28 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:25:06 [end_date_ymd] => 2025-01-28 17:25:06 [RateCDR] => 1 ) [2025-01-28 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-28 14:25:06' and `end` < '2025-01-28 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-28 17:25:19] Production.INFO: count ==5611 [2025-01-28 17:25:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:25:06 - End Time 2025-01-28 17:25:06 [2025-01-28 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350504', 'tblTempUsageDetail_20' ) start [2025-01-28 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350504', 'tblTempUsageDetail_20' ) end [2025-01-28 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350504', 'tblTempVendorCDR_20' ) start [2025-01-28 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350504', 'tblTempVendorCDR_20' ) end [2025-01-28 17:25:22] Production.INFO: ProcessCDR(1,14350504,1,1,2) [2025-01-28 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350504', 'tblTempUsageDetail_20' ) start [2025-01-28 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350504', 'tblTempUsageDetail_20' ) end [2025-01-28 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:25:25] Production.INFO: ==28849== Releasing lock... [2025-01-28 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:25:25] Production.INFO: 70 MB #Memory Used# [2025-01-28 17:26:28] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:26:28 [end_date_ymd] => 2025-01-28 17:26:28 [RateCDR] => 1 ) [2025-01-28 17:26:28] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:26:28' and `end` < '2025-01-28 17:26:28' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:26:41] Production.INFO: count ==5581 [2025-01-28 17:27:52] Production.ERROR: pbx CDR StartTime 2025-01-28 14:26:28 - End Time 2025-01-28 17:26:28 [2025-01-28 17:27:52] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:27:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350509', 'tblTempUsageDetail_20' ) start [2025-01-28 17:27:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350509', 'tblTempUsageDetail_20' ) end [2025-01-28 17:27:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350509', 'tblTempVendorCDR_20' ) start [2025-01-28 17:28:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350509', 'tblTempVendorCDR_20' ) end [2025-01-28 17:28:01] Production.INFO: ProcessCDR(1,14350509,1,1,2) [2025-01-28 17:28:01] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:28:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:28:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350509', 'tblTempUsageDetail_20' ) start [2025-01-28 17:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350509', 'tblTempUsageDetail_20' ) end [2025-01-28 17:28:36] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:28:36] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:28:44] Production.INFO: ==28920== Releasing lock... [2025-01-28 17:28:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:28:44] Production.INFO: 69.75 MB #Memory Used# [2025-01-28 17:29:23] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:29:23 [end_date_ymd] => 2025-01-28 17:29:23 [RateCDR] => 1 ) [2025-01-28 17:29:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:29:23' and `end` < '2025-01-28 17:29:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:29:37] Production.INFO: count ==5537 [2025-01-28 17:30:45] Production.ERROR: pbx CDR StartTime 2025-01-28 14:29:23 - End Time 2025-01-28 17:29:23 [2025-01-28 17:30:45] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:30:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350519', 'tblTempUsageDetail_20' ) start [2025-01-28 17:30:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350519', 'tblTempUsageDetail_20' ) end [2025-01-28 17:30:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350519', 'tblTempVendorCDR_20' ) start [2025-01-28 17:30:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350519', 'tblTempVendorCDR_20' ) end [2025-01-28 17:30:53] Production.INFO: ProcessCDR(1,14350519,1,1,2) [2025-01-28 17:30:53] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:30:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:30:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:31:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350519', 'tblTempUsageDetail_20' ) start [2025-01-28 17:31:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350519', 'tblTempUsageDetail_20' ) end [2025-01-28 17:31:46] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:31:47] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:31:53] Production.INFO: ==29120== Releasing lock... [2025-01-28 17:31:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:31:53] Production.INFO: 69.5 MB #Memory Used# [2025-01-28 17:32:31] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:32:31 [end_date_ymd] => 2025-01-28 17:32:31 [RateCDR] => 1 ) [2025-01-28 17:32:31] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:32:31' and `end` < '2025-01-28 17:32:31' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:32:45] Production.INFO: count ==5511 [2025-01-28 17:33:20] Production.ERROR: pbx CDR StartTime 2025-01-28 14:32:31 - End Time 2025-01-28 17:32:31 [2025-01-28 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350531', 'tblTempUsageDetail_20' ) start [2025-01-28 17:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350531', 'tblTempUsageDetail_20' ) end [2025-01-28 17:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350531', 'tblTempVendorCDR_20' ) start [2025-01-28 17:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350531', 'tblTempVendorCDR_20' ) end [2025-01-28 17:33:27] Production.INFO: ProcessCDR(1,14350531,1,1,2) [2025-01-28 17:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:33:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:33:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:33:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:33:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350531', 'tblTempUsageDetail_20' ) start [2025-01-28 17:34:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350531', 'tblTempUsageDetail_20' ) end [2025-01-28 17:34:03] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:34:04] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:34:08] Production.INFO: ==29374== Releasing lock... [2025-01-28 17:34:08] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:34:08] Production.INFO: 69.25 MB #Memory Used# [2025-01-28 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:35:05 [end_date_ymd] => 2025-01-28 17:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:35:05' and `end` < '2025-01-28 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-28 17:35:22] Production.INFO: count ==5498 [2025-01-28 17:35:24] Production.ERROR: pbx CDR StartTime 2025-01-28 14:35:05 - End Time 2025-01-28 17:35:05 [2025-01-28 17:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350543', 'tblTempUsageDetail_20' ) start [2025-01-28 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350543', 'tblTempUsageDetail_20' ) end [2025-01-28 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350543', 'tblTempVendorCDR_20' ) start [2025-01-28 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350543', 'tblTempVendorCDR_20' ) end [2025-01-28 17:35:24] Production.INFO: ProcessCDR(1,14350543,1,1,2) [2025-01-28 17:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350543', 'tblTempUsageDetail_20' ) start [2025-01-28 17:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350543', 'tblTempUsageDetail_20' ) end [2025-01-28 17:35:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:35:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:35:29] Production.INFO: ==29580== Releasing lock... [2025-01-28 17:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:35:29] Production.INFO: 69.25 MB #Memory Used# [2025-01-28 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:36:05 [end_date_ymd] => 2025-01-28 17:36:05 [RateCDR] => 1 ) [2025-01-28 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:36:05' and `end` < '2025-01-28 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:36:18] Production.INFO: count ==5483 [2025-01-28 17:36:20] Production.ERROR: pbx CDR StartTime 2025-01-28 14:36:05 - End Time 2025-01-28 17:36:05 [2025-01-28 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350548', 'tblTempUsageDetail_20' ) start [2025-01-28 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350548', 'tblTempUsageDetail_20' ) end [2025-01-28 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350548', 'tblTempVendorCDR_20' ) start [2025-01-28 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350548', 'tblTempVendorCDR_20' ) end [2025-01-28 17:36:20] Production.INFO: ProcessCDR(1,14350548,1,1,2) [2025-01-28 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350548', 'tblTempUsageDetail_20' ) start [2025-01-28 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350548', 'tblTempUsageDetail_20' ) end [2025-01-28 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:36:25] Production.INFO: ==29651== Releasing lock... [2025-01-28 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:36:25] Production.INFO: 69 MB #Memory Used# [2025-01-28 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:37:05 [end_date_ymd] => 2025-01-28 17:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:37:05' and `end` < '2025-01-28 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-28 17:37:20] Production.INFO: count ==5482 [2025-01-28 17:37:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:37:05 - End Time 2025-01-28 17:37:05 [2025-01-28 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350553', 'tblTempUsageDetail_20' ) start [2025-01-28 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350553', 'tblTempUsageDetail_20' ) end [2025-01-28 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350553', 'tblTempVendorCDR_20' ) start [2025-01-28 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350553', 'tblTempVendorCDR_20' ) end [2025-01-28 17:37:22] Production.INFO: ProcessCDR(1,14350553,1,1,2) [2025-01-28 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350553', 'tblTempUsageDetail_20' ) start [2025-01-28 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350553', 'tblTempUsageDetail_20' ) end [2025-01-28 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:37:27] Production.INFO: ==29720== Releasing lock... [2025-01-28 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:37:27] Production.INFO: 69 MB #Memory Used# [2025-01-28 17:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:38:04 [end_date_ymd] => 2025-01-28 17:38:04 [RateCDR] => 1 ) [2025-01-28 17: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-28 14:38:04' and `end` < '2025-01-28 17: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-28 17:38:18] Production.INFO: count ==5470 [2025-01-28 17:38:20] Production.ERROR: pbx CDR StartTime 2025-01-28 14:38:04 - End Time 2025-01-28 17:38:04 [2025-01-28 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350556', 'tblTempUsageDetail_20' ) start [2025-01-28 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350556', 'tblTempUsageDetail_20' ) end [2025-01-28 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350556', 'tblTempVendorCDR_20' ) start [2025-01-28 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350556', 'tblTempVendorCDR_20' ) end [2025-01-28 17:38:20] Production.INFO: ProcessCDR(1,14350556,1,1,2) [2025-01-28 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350556', 'tblTempUsageDetail_20' ) start [2025-01-28 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350556', 'tblTempUsageDetail_20' ) end [2025-01-28 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:38:25] Production.INFO: ==29795== Releasing lock... [2025-01-28 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:38:25] Production.INFO: 69 MB #Memory Used# [2025-01-28 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:39:05 [end_date_ymd] => 2025-01-28 17:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:39:05' and `end` < '2025-01-28 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-28 17:39:19] Production.INFO: count ==5462 [2025-01-28 17:39:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:39:05 - End Time 2025-01-28 17:39:05 [2025-01-28 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350563', 'tblTempUsageDetail_20' ) start [2025-01-28 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350563', 'tblTempUsageDetail_20' ) end [2025-01-28 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350563', 'tblTempVendorCDR_20' ) start [2025-01-28 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350563', 'tblTempVendorCDR_20' ) end [2025-01-28 17:39:22] Production.INFO: ProcessCDR(1,14350563,1,1,2) [2025-01-28 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350563', 'tblTempUsageDetail_20' ) start [2025-01-28 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350563', 'tblTempUsageDetail_20' ) end [2025-01-28 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:39:26] Production.INFO: ==29871== Releasing lock... [2025-01-28 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:39:26] Production.INFO: 69 MB #Memory Used# [2025-01-28 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:40:07 [end_date_ymd] => 2025-01-28 17:40:07 [RateCDR] => 1 ) [2025-01-28 17:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:40:07' and `end` < '2025-01-28 17:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:40:20] Production.INFO: count ==5431 [2025-01-28 17:40:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:40:07 - End Time 2025-01-28 17:40:07 [2025-01-28 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350569', 'tblTempUsageDetail_20' ) start [2025-01-28 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350569', 'tblTempUsageDetail_20' ) end [2025-01-28 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350569', 'tblTempVendorCDR_20' ) start [2025-01-28 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350569', 'tblTempVendorCDR_20' ) end [2025-01-28 17:40:23] Production.INFO: ProcessCDR(1,14350569,1,1,2) [2025-01-28 17:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350569', 'tblTempUsageDetail_20' ) start [2025-01-28 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350569', 'tblTempUsageDetail_20' ) end [2025-01-28 17:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:40:28] Production.INFO: ==29945== Releasing lock... [2025-01-28 17:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:40:28] Production.INFO: 68.75 MB #Memory Used# [2025-01-28 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:41:05 [end_date_ymd] => 2025-01-28 17:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:41:05' and `end` < '2025-01-28 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-28 17:41:19] Production.INFO: count ==5411 [2025-01-28 17:41:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:41:05 - End Time 2025-01-28 17:41:05 [2025-01-28 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350574', 'tblTempUsageDetail_20' ) start [2025-01-28 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350574', 'tblTempUsageDetail_20' ) end [2025-01-28 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350574', 'tblTempVendorCDR_20' ) start [2025-01-28 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350574', 'tblTempVendorCDR_20' ) end [2025-01-28 17:41:22] Production.INFO: ProcessCDR(1,14350574,1,1,2) [2025-01-28 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350574', 'tblTempUsageDetail_20' ) start [2025-01-28 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350574', 'tblTempUsageDetail_20' ) end [2025-01-28 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:41:26] Production.INFO: ==30019== Releasing lock... [2025-01-28 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:41:26] Production.INFO: 68.5 MB #Memory Used# [2025-01-28 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:42:06 [end_date_ymd] => 2025-01-28 17:42:06 [RateCDR] => 1 ) [2025-01-28 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-28 14:42:06' and `end` < '2025-01-28 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-28 17:42:20] Production.INFO: count ==5396 [2025-01-28 17:42:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:42:06 - End Time 2025-01-28 17:42:06 [2025-01-28 17:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350579', 'tblTempUsageDetail_20' ) start [2025-01-28 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350579', 'tblTempUsageDetail_20' ) end [2025-01-28 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350579', 'tblTempVendorCDR_20' ) start [2025-01-28 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350579', 'tblTempVendorCDR_20' ) end [2025-01-28 17:42:22] Production.INFO: ProcessCDR(1,14350579,1,1,2) [2025-01-28 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350579', 'tblTempUsageDetail_20' ) start [2025-01-28 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350579', 'tblTempUsageDetail_20' ) end [2025-01-28 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:42:27] Production.INFO: ==30090== Releasing lock... [2025-01-28 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:42:27] Production.INFO: 68.5 MB #Memory Used# [2025-01-28 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:43:05 [end_date_ymd] => 2025-01-28 17:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:43:05' and `end` < '2025-01-28 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-28 17:43:19] Production.INFO: count ==5382 [2025-01-28 17:43:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:43:05 - End Time 2025-01-28 17:43:05 [2025-01-28 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350584', 'tblTempUsageDetail_20' ) start [2025-01-28 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350584', 'tblTempUsageDetail_20' ) end [2025-01-28 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350584', 'tblTempVendorCDR_20' ) start [2025-01-28 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350584', 'tblTempVendorCDR_20' ) end [2025-01-28 17:43:21] Production.INFO: ProcessCDR(1,14350584,1,1,2) [2025-01-28 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350584', 'tblTempUsageDetail_20' ) start [2025-01-28 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350584', 'tblTempUsageDetail_20' ) end [2025-01-28 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:43:24] Production.INFO: ==30165== Releasing lock... [2025-01-28 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:43:24] Production.INFO: 68.25 MB #Memory Used# [2025-01-28 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:44:05 [end_date_ymd] => 2025-01-28 17:44:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:44:05' and `end` < '2025-01-28 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-28 17:44:19] Production.INFO: count ==5356 [2025-01-28 17:44:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:44:05 - End Time 2025-01-28 17:44:05 [2025-01-28 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350589', 'tblTempUsageDetail_20' ) start [2025-01-28 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350589', 'tblTempUsageDetail_20' ) end [2025-01-28 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350589', 'tblTempVendorCDR_20' ) start [2025-01-28 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350589', 'tblTempVendorCDR_20' ) end [2025-01-28 17:44:21] Production.INFO: ProcessCDR(1,14350589,1,1,2) [2025-01-28 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350589', 'tblTempUsageDetail_20' ) start [2025-01-28 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350589', 'tblTempUsageDetail_20' ) end [2025-01-28 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:44:26] Production.INFO: ==30236== Releasing lock... [2025-01-28 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:44:26] Production.INFO: 68.25 MB #Memory Used# [2025-01-28 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:45:05 [end_date_ymd] => 2025-01-28 17:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:45:05' and `end` < '2025-01-28 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-28 17:45:18] Production.INFO: count ==5331 [2025-01-28 17:45:20] Production.ERROR: pbx CDR StartTime 2025-01-28 14:45:05 - End Time 2025-01-28 17:45:05 [2025-01-28 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350594', 'tblTempUsageDetail_20' ) start [2025-01-28 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350594', 'tblTempUsageDetail_20' ) end [2025-01-28 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350594', 'tblTempVendorCDR_20' ) start [2025-01-28 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350594', 'tblTempVendorCDR_20' ) end [2025-01-28 17:45:20] Production.INFO: ProcessCDR(1,14350594,1,1,2) [2025-01-28 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350594', 'tblTempUsageDetail_20' ) start [2025-01-28 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350594', 'tblTempUsageDetail_20' ) end [2025-01-28 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:45:25] Production.INFO: ==30349== Releasing lock... [2025-01-28 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:45:25] Production.INFO: 68 MB #Memory Used# [2025-01-28 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:46:06 [end_date_ymd] => 2025-01-28 17:46:06 [RateCDR] => 1 ) [2025-01-28 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:46:06' and `end` < '2025-01-28 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:46:26] Production.INFO: count ==5301 [2025-01-28 17:46:28] Production.ERROR: pbx CDR StartTime 2025-01-28 14:46:06 - End Time 2025-01-28 17:46:06 [2025-01-28 17:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350599', 'tblTempUsageDetail_20' ) start [2025-01-28 17:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350599', 'tblTempUsageDetail_20' ) end [2025-01-28 17:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350599', 'tblTempVendorCDR_20' ) start [2025-01-28 17:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350599', 'tblTempVendorCDR_20' ) end [2025-01-28 17:46:29] Production.INFO: ProcessCDR(1,14350599,1,1,2) [2025-01-28 17:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350599', 'tblTempUsageDetail_20' ) start [2025-01-28 17:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350599', 'tblTempUsageDetail_20' ) end [2025-01-28 17:46:33] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:46:33] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:46:33] Production.INFO: ==30423== Releasing lock... [2025-01-28 17:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:46:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-28 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:47:05 [end_date_ymd] => 2025-01-28 17:47:05 [RateCDR] => 1 ) [2025-01-28 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:47:05' and `end` < '2025-01-28 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:47:22] Production.INFO: count ==5272 [2025-01-28 17:47:24] Production.ERROR: pbx CDR StartTime 2025-01-28 14:47:05 - End Time 2025-01-28 17:47:05 [2025-01-28 17:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350604', 'tblTempUsageDetail_20' ) start [2025-01-28 17:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350604', 'tblTempUsageDetail_20' ) end [2025-01-28 17:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350604', 'tblTempVendorCDR_20' ) start [2025-01-28 17:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350604', 'tblTempVendorCDR_20' ) end [2025-01-28 17:47:25] Production.INFO: ProcessCDR(1,14350604,1,1,2) [2025-01-28 17:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350604', 'tblTempUsageDetail_20' ) start [2025-01-28 17:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350604', 'tblTempUsageDetail_20' ) end [2025-01-28 17:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:47:28] Production.INFO: ==30492== Releasing lock... [2025-01-28 17:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:47:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-28 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:48:05 [end_date_ymd] => 2025-01-28 17:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:48:05' and `end` < '2025-01-28 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-28 17:48:21] Production.INFO: count ==5254 [2025-01-28 17:48:23] Production.ERROR: pbx CDR StartTime 2025-01-28 14:48:05 - End Time 2025-01-28 17:48:05 [2025-01-28 17:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350609', 'tblTempUsageDetail_20' ) start [2025-01-28 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350609', 'tblTempUsageDetail_20' ) end [2025-01-28 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350609', 'tblTempVendorCDR_20' ) start [2025-01-28 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350609', 'tblTempVendorCDR_20' ) end [2025-01-28 17:48:23] Production.INFO: ProcessCDR(1,14350609,1,1,2) [2025-01-28 17:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350609', 'tblTempUsageDetail_20' ) start [2025-01-28 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350609', 'tblTempUsageDetail_20' ) end [2025-01-28 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:48:26] Production.INFO: ==30564== Releasing lock... [2025-01-28 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:48:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-28 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:49:05 [end_date_ymd] => 2025-01-28 17:49:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:49:05' and `end` < '2025-01-28 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-28 17:49:18] Production.INFO: count ==5237 [2025-01-28 17:49:20] Production.ERROR: pbx CDR StartTime 2025-01-28 14:49:05 - End Time 2025-01-28 17:49:05 [2025-01-28 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350614', 'tblTempUsageDetail_20' ) start [2025-01-28 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350614', 'tblTempUsageDetail_20' ) end [2025-01-28 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350614', 'tblTempVendorCDR_20' ) start [2025-01-28 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350614', 'tblTempVendorCDR_20' ) end [2025-01-28 17:49:20] Production.INFO: ProcessCDR(1,14350614,1,1,2) [2025-01-28 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350614', 'tblTempUsageDetail_20' ) start [2025-01-28 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350614', 'tblTempUsageDetail_20' ) end [2025-01-28 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:49:25] Production.INFO: ==30636== Releasing lock... [2025-01-28 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:49:25] Production.INFO: 67.25 MB #Memory Used# [2025-01-28 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:50:06 [end_date_ymd] => 2025-01-28 17:50:06 [RateCDR] => 1 ) [2025-01-28 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:50:06' and `end` < '2025-01-28 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:50:20] Production.INFO: count ==5203 [2025-01-28 17:50:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:50:06 - End Time 2025-01-28 17:50:06 [2025-01-28 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350620', 'tblTempUsageDetail_20' ) start [2025-01-28 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350620', 'tblTempUsageDetail_20' ) end [2025-01-28 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350620', 'tblTempVendorCDR_20' ) start [2025-01-28 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350620', 'tblTempVendorCDR_20' ) end [2025-01-28 17:50:22] Production.INFO: ProcessCDR(1,14350620,1,1,2) [2025-01-28 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350620', 'tblTempUsageDetail_20' ) start [2025-01-28 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350620', 'tblTempUsageDetail_20' ) end [2025-01-28 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:50:26] Production.INFO: ==30711== Releasing lock... [2025-01-28 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:50:26] Production.INFO: 67 MB #Memory Used# [2025-01-28 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:51:05 [end_date_ymd] => 2025-01-28 17:51:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:51:05' and `end` < '2025-01-28 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-28 17:51:19] Production.INFO: count ==5179 [2025-01-28 17:51:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:51:05 - End Time 2025-01-28 17:51:05 [2025-01-28 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350625', 'tblTempUsageDetail_20' ) start [2025-01-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350625', 'tblTempUsageDetail_20' ) end [2025-01-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350625', 'tblTempVendorCDR_20' ) start [2025-01-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350625', 'tblTempVendorCDR_20' ) end [2025-01-28 17:51:21] Production.INFO: ProcessCDR(1,14350625,1,1,2) [2025-01-28 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350625', 'tblTempUsageDetail_20' ) start [2025-01-28 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350625', 'tblTempUsageDetail_20' ) end [2025-01-28 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:51:26] Production.INFO: ==30789== Releasing lock... [2025-01-28 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:51:26] Production.INFO: 66.75 MB #Memory Used# [2025-01-28 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:52:05 [end_date_ymd] => 2025-01-28 17:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:52:05' and `end` < '2025-01-28 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-28 17:52:18] Production.INFO: count ==5157 [2025-01-28 17:52:20] Production.ERROR: pbx CDR StartTime 2025-01-28 14:52:05 - End Time 2025-01-28 17:52:05 [2025-01-28 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350630', 'tblTempUsageDetail_20' ) start [2025-01-28 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350630', 'tblTempUsageDetail_20' ) end [2025-01-28 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350630', 'tblTempVendorCDR_20' ) start [2025-01-28 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350630', 'tblTempVendorCDR_20' ) end [2025-01-28 17:52:20] Production.INFO: ProcessCDR(1,14350630,1,1,2) [2025-01-28 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350630', 'tblTempUsageDetail_20' ) start [2025-01-28 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350630', 'tblTempUsageDetail_20' ) end [2025-01-28 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:52:25] Production.INFO: ==30863== Releasing lock... [2025-01-28 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:52:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-28 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:53:05 [end_date_ymd] => 2025-01-28 17:53:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:53:05' and `end` < '2025-01-28 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-28 17:53:19] Production.INFO: count ==5134 [2025-01-28 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-28 14:53:05 - End Time 2025-01-28 17:53:05 [2025-01-28 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350635', 'tblTempUsageDetail_20' ) start [2025-01-28 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350635', 'tblTempUsageDetail_20' ) end [2025-01-28 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350635', 'tblTempVendorCDR_20' ) start [2025-01-28 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350635', 'tblTempVendorCDR_20' ) end [2025-01-28 17:53:20] Production.INFO: ProcessCDR(1,14350635,1,1,2) [2025-01-28 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350635', 'tblTempUsageDetail_20' ) start [2025-01-28 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350635', 'tblTempUsageDetail_20' ) end [2025-01-28 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:53:25] Production.INFO: ==30937== Releasing lock... [2025-01-28 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:53:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-28 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:54:05 [end_date_ymd] => 2025-01-28 17:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:54:05' and `end` < '2025-01-28 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-28 17:54:18] Production.INFO: count ==5135 [2025-01-28 17:54:20] Production.ERROR: pbx CDR StartTime 2025-01-28 14:54:05 - End Time 2025-01-28 17:54:05 [2025-01-28 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350640', 'tblTempUsageDetail_20' ) start [2025-01-28 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350640', 'tblTempUsageDetail_20' ) end [2025-01-28 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350640', 'tblTempVendorCDR_20' ) start [2025-01-28 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350640', 'tblTempVendorCDR_20' ) end [2025-01-28 17:54:20] Production.INFO: ProcessCDR(1,14350640,1,1,2) [2025-01-28 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350640', 'tblTempUsageDetail_20' ) start [2025-01-28 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350640', 'tblTempUsageDetail_20' ) end [2025-01-28 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:54:25] Production.INFO: ==31014== Releasing lock... [2025-01-28 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:54:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-28 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:55:05 [end_date_ymd] => 2025-01-28 17:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:55:05' and `end` < '2025-01-28 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-28 17:55:19] Production.INFO: count ==5118 [2025-01-28 17:55:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:55:05 - End Time 2025-01-28 17:55:05 [2025-01-28 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350645', 'tblTempUsageDetail_20' ) start [2025-01-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350645', 'tblTempUsageDetail_20' ) end [2025-01-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350645', 'tblTempVendorCDR_20' ) start [2025-01-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350645', 'tblTempVendorCDR_20' ) end [2025-01-28 17:55:21] Production.INFO: ProcessCDR(1,14350645,1,1,2) [2025-01-28 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350645', 'tblTempUsageDetail_20' ) start [2025-01-28 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350645', 'tblTempUsageDetail_20' ) end [2025-01-28 17:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:55:24] Production.INFO: ==31085== Releasing lock... [2025-01-28 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:55:24] Production.INFO: 66.25 MB #Memory Used# [2025-01-28 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:56:05 [end_date_ymd] => 2025-01-28 17:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:56:05' and `end` < '2025-01-28 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-28 17:56:19] Production.INFO: count ==5114 [2025-01-28 17:56:20] Production.ERROR: pbx CDR StartTime 2025-01-28 14:56:05 - End Time 2025-01-28 17:56:05 [2025-01-28 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350650', 'tblTempUsageDetail_20' ) start [2025-01-28 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350650', 'tblTempUsageDetail_20' ) end [2025-01-28 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350650', 'tblTempVendorCDR_20' ) start [2025-01-28 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350650', 'tblTempVendorCDR_20' ) end [2025-01-28 17:56:20] Production.INFO: ProcessCDR(1,14350650,1,1,2) [2025-01-28 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350650', 'tblTempUsageDetail_20' ) start [2025-01-28 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350650', 'tblTempUsageDetail_20' ) end [2025-01-28 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:56:25] Production.INFO: ==31157== Releasing lock... [2025-01-28 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:56:25] Production.INFO: 66.25 MB #Memory Used# [2025-01-28 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:57:05 [end_date_ymd] => 2025-01-28 17:57:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:57:05' and `end` < '2025-01-28 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-28 17:57:20] Production.INFO: count ==5097 [2025-01-28 17:57:22] Production.ERROR: pbx CDR StartTime 2025-01-28 14:57:05 - End Time 2025-01-28 17:57:05 [2025-01-28 17:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350655', 'tblTempUsageDetail_20' ) start [2025-01-28 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350655', 'tblTempUsageDetail_20' ) end [2025-01-28 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350655', 'tblTempVendorCDR_20' ) start [2025-01-28 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350655', 'tblTempVendorCDR_20' ) end [2025-01-28 17:57:22] Production.INFO: ProcessCDR(1,14350655,1,1,2) [2025-01-28 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350655', 'tblTempUsageDetail_20' ) start [2025-01-28 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350655', 'tblTempUsageDetail_20' ) end [2025-01-28 17:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:57:27] Production.INFO: ==31231== Releasing lock... [2025-01-28 17:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:57:27] Production.INFO: 66.25 MB #Memory Used# [2025-01-28 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:58:05 [end_date_ymd] => 2025-01-28 17:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 14:58:05' and `end` < '2025-01-28 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-28 17:58:19] Production.INFO: count ==5082 [2025-01-28 17:58:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:58:05 - End Time 2025-01-28 17:58:05 [2025-01-28 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350660', 'tblTempUsageDetail_20' ) start [2025-01-28 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350660', 'tblTempUsageDetail_20' ) end [2025-01-28 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350660', 'tblTempVendorCDR_20' ) start [2025-01-28 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350660', 'tblTempVendorCDR_20' ) end [2025-01-28 17:58:21] Production.INFO: ProcessCDR(1,14350660,1,1,2) [2025-01-28 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350660', 'tblTempUsageDetail_20' ) start [2025-01-28 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350660', 'tblTempUsageDetail_20' ) end [2025-01-28 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:58:26] Production.INFO: ==31303== Releasing lock... [2025-01-28 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:58:26] Production.INFO: 66 MB #Memory Used# [2025-01-28 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 14:59:05 [end_date_ymd] => 2025-01-28 17:59:05 [RateCDR] => 1 ) [2025-01-28 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 14:59:05' and `end` < '2025-01-28 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 17:59:19] Production.INFO: count ==5073 [2025-01-28 17:59:21] Production.ERROR: pbx CDR StartTime 2025-01-28 14:59:05 - End Time 2025-01-28 17:59:05 [2025-01-28 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350665', 'tblTempUsageDetail_20' ) start [2025-01-28 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350665', 'tblTempUsageDetail_20' ) end [2025-01-28 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350665', 'tblTempVendorCDR_20' ) start [2025-01-28 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350665', 'tblTempVendorCDR_20' ) end [2025-01-28 17:59:21] Production.INFO: ProcessCDR(1,14350665,1,1,2) [2025-01-28 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350665', 'tblTempUsageDetail_20' ) start [2025-01-28 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350665', 'tblTempUsageDetail_20' ) end [2025-01-28 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 17:59:25] Production.INFO: ==31375== Releasing lock... [2025-01-28 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 17:59:25] Production.INFO: 66 MB #Memory Used# [2025-01-28 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:00:06 [end_date_ymd] => 2025-01-28 18:00:06 [RateCDR] => 1 ) [2025-01-28 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-28 15:00:06' and `end` < '2025-01-28 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-28 18:00:20] Production.INFO: count ==5063 [2025-01-28 18:00:22] Production.ERROR: pbx CDR StartTime 2025-01-28 15:00:06 - End Time 2025-01-28 18:00:06 [2025-01-28 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350670', 'tblTempUsageDetail_20' ) start [2025-01-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350670', 'tblTempUsageDetail_20' ) end [2025-01-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350670', 'tblTempVendorCDR_20' ) start [2025-01-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350670', 'tblTempVendorCDR_20' ) end [2025-01-28 18:00:22] Production.INFO: ProcessCDR(1,14350670,1,1,2) [2025-01-28 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350670', 'tblTempUsageDetail_20' ) start [2025-01-28 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350670', 'tblTempUsageDetail_20' ) end [2025-01-28 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:00:27] Production.INFO: ==31451== Releasing lock... [2025-01-28 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:00:27] Production.INFO: 66 MB #Memory Used# [2025-01-28 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:01:05 [end_date_ymd] => 2025-01-28 18:01:05 [RateCDR] => 1 ) [2025-01-28 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:01:05' and `end` < '2025-01-28 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:01:21] Production.INFO: count ==5034 [2025-01-28 18:01:23] Production.ERROR: pbx CDR StartTime 2025-01-28 15:01:05 - End Time 2025-01-28 18:01:05 [2025-01-28 18:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350676', 'tblTempUsageDetail_20' ) start [2025-01-28 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350676', 'tblTempUsageDetail_20' ) end [2025-01-28 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350676', 'tblTempVendorCDR_20' ) start [2025-01-28 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350676', 'tblTempVendorCDR_20' ) end [2025-01-28 18:01:23] Production.INFO: ProcessCDR(1,14350676,1,1,2) [2025-01-28 18:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350676', 'tblTempUsageDetail_20' ) start [2025-01-28 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350676', 'tblTempUsageDetail_20' ) end [2025-01-28 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:01:27] Production.INFO: ==31572== Releasing lock... [2025-01-28 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:01:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-28 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:02:05 [end_date_ymd] => 2025-01-28 18:02:05 [RateCDR] => 1 ) [2025-01-28 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:02:05' and `end` < '2025-01-28 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-28 18:02:19] Production.INFO: count ==5014 [2025-01-28 18:02:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:02:05 - End Time 2025-01-28 18:02:05 [2025-01-28 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350681', 'tblTempUsageDetail_20' ) start [2025-01-28 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350681', 'tblTempUsageDetail_20' ) end [2025-01-28 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350681', 'tblTempVendorCDR_20' ) start [2025-01-28 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350681', 'tblTempVendorCDR_20' ) end [2025-01-28 18:02:21] Production.INFO: ProcessCDR(1,14350681,1,1,2) [2025-01-28 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350681', 'tblTempUsageDetail_20' ) start [2025-01-28 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350681', 'tblTempUsageDetail_20' ) end [2025-01-28 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:02:26] Production.INFO: ==31644== Releasing lock... [2025-01-28 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:02:26] Production.INFO: 65.5 MB #Memory Used# [2025-01-28 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:03:05 [end_date_ymd] => 2025-01-28 18:03:05 [RateCDR] => 1 ) [2025-01-28 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:03:05' and `end` < '2025-01-28 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:03:20] Production.INFO: count ==5024 [2025-01-28 18:03:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:03:05 - End Time 2025-01-28 18:03:05 [2025-01-28 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350686', 'tblTempUsageDetail_20' ) start [2025-01-28 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350686', 'tblTempUsageDetail_20' ) end [2025-01-28 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350686', 'tblTempVendorCDR_20' ) start [2025-01-28 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350686', 'tblTempVendorCDR_20' ) end [2025-01-28 18:03:21] Production.INFO: ProcessCDR(1,14350686,1,1,2) [2025-01-28 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350686', 'tblTempUsageDetail_20' ) start [2025-01-28 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350686', 'tblTempUsageDetail_20' ) end [2025-01-28 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:03:25] Production.INFO: ==31714== Releasing lock... [2025-01-28 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:03:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-28 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:04:06 [end_date_ymd] => 2025-01-28 18:04:06 [RateCDR] => 1 ) [2025-01-28 18: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-28 15:04:06' and `end` < '2025-01-28 18: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-28 18:04:19] Production.INFO: count ==4991 [2025-01-28 18:04:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:04:06 - End Time 2025-01-28 18:04:06 [2025-01-28 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350691', 'tblTempUsageDetail_20' ) start [2025-01-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350691', 'tblTempUsageDetail_20' ) end [2025-01-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350691', 'tblTempVendorCDR_20' ) start [2025-01-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350691', 'tblTempVendorCDR_20' ) end [2025-01-28 18:04:21] Production.INFO: ProcessCDR(1,14350691,1,1,2) [2025-01-28 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350691', 'tblTempUsageDetail_20' ) start [2025-01-28 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350691', 'tblTempUsageDetail_20' ) end [2025-01-28 18:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:04:26] Production.INFO: ==31792== Releasing lock... [2025-01-28 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:04:26] Production.INFO: 65.25 MB #Memory Used# [2025-01-28 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:05:05 [end_date_ymd] => 2025-01-28 18:05:05 [RateCDR] => 1 ) [2025-01-28 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:05:05' and `end` < '2025-01-28 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:05:20] Production.INFO: count ==4972 [2025-01-28 18:05:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:05:05 - End Time 2025-01-28 18:05:05 [2025-01-28 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350696', 'tblTempUsageDetail_20' ) start [2025-01-28 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350696', 'tblTempUsageDetail_20' ) end [2025-01-28 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350696', 'tblTempVendorCDR_20' ) start [2025-01-28 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350696', 'tblTempVendorCDR_20' ) end [2025-01-28 18:05:22] Production.INFO: ProcessCDR(1,14350696,1,1,2) [2025-01-28 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350696', 'tblTempUsageDetail_20' ) start [2025-01-28 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350696', 'tblTempUsageDetail_20' ) end [2025-01-28 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:05:25] Production.INFO: ==31863== Releasing lock... [2025-01-28 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:05:25] Production.INFO: 65.25 MB #Memory Used# [2025-01-28 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:06:05 [end_date_ymd] => 2025-01-28 18:06:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:06:05' and `end` < '2025-01-28 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-28 18:06:19] Production.INFO: count ==4953 [2025-01-28 18:06:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:06:05 - End Time 2025-01-28 18:06:05 [2025-01-28 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350701', 'tblTempUsageDetail_20' ) start [2025-01-28 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350701', 'tblTempUsageDetail_20' ) end [2025-01-28 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350701', 'tblTempVendorCDR_20' ) start [2025-01-28 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350701', 'tblTempVendorCDR_20' ) end [2025-01-28 18:06:21] Production.INFO: ProcessCDR(1,14350701,1,1,2) [2025-01-28 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350701', 'tblTempUsageDetail_20' ) start [2025-01-28 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350701', 'tblTempUsageDetail_20' ) end [2025-01-28 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:06:24] Production.INFO: ==31936== Releasing lock... [2025-01-28 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:06:24] Production.INFO: 65 MB #Memory Used# [2025-01-28 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:07:05 [end_date_ymd] => 2025-01-28 18:07:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:07:05' and `end` < '2025-01-28 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-28 18:07:19] Production.INFO: count ==4945 [2025-01-28 18:07:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:07:05 - End Time 2025-01-28 18:07:05 [2025-01-28 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350706', 'tblTempUsageDetail_20' ) start [2025-01-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350706', 'tblTempUsageDetail_20' ) end [2025-01-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350706', 'tblTempVendorCDR_20' ) start [2025-01-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350706', 'tblTempVendorCDR_20' ) end [2025-01-28 18:07:21] Production.INFO: ProcessCDR(1,14350706,1,1,2) [2025-01-28 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350706', 'tblTempUsageDetail_20' ) start [2025-01-28 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350706', 'tblTempUsageDetail_20' ) end [2025-01-28 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:07:24] Production.INFO: ==32006== Releasing lock... [2025-01-28 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:07:24] Production.INFO: 65 MB #Memory Used# [2025-01-28 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:08:06 [end_date_ymd] => 2025-01-28 18:08:06 [RateCDR] => 1 ) [2025-01-28 18: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-28 15:08:06' and `end` < '2025-01-28 18: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-28 18:08:19] Production.INFO: count ==4955 [2025-01-28 18:08:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:08:06 - End Time 2025-01-28 18:08:06 [2025-01-28 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350711', 'tblTempUsageDetail_20' ) start [2025-01-28 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350711', 'tblTempUsageDetail_20' ) end [2025-01-28 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350711', 'tblTempVendorCDR_20' ) start [2025-01-28 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350711', 'tblTempVendorCDR_20' ) end [2025-01-28 18:08:21] Production.INFO: ProcessCDR(1,14350711,1,1,2) [2025-01-28 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350711', 'tblTempUsageDetail_20' ) start [2025-01-28 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350711', 'tblTempUsageDetail_20' ) end [2025-01-28 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:08:26] Production.INFO: ==32083== Releasing lock... [2025-01-28 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:08:26] Production.INFO: 65 MB #Memory Used# [2025-01-28 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:09:05 [end_date_ymd] => 2025-01-28 18:09:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:09:05' and `end` < '2025-01-28 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-28 18:09:18] Production.INFO: count ==4969 [2025-01-28 18:09:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:09:05 - End Time 2025-01-28 18:09:05 [2025-01-28 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350716', 'tblTempUsageDetail_20' ) start [2025-01-28 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350716', 'tblTempUsageDetail_20' ) end [2025-01-28 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350716', 'tblTempVendorCDR_20' ) start [2025-01-28 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350716', 'tblTempVendorCDR_20' ) end [2025-01-28 18:09:20] Production.INFO: ProcessCDR(1,14350716,1,1,2) [2025-01-28 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350716', 'tblTempUsageDetail_20' ) start [2025-01-28 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350716', 'tblTempUsageDetail_20' ) end [2025-01-28 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:09:23] Production.INFO: ==32156== Releasing lock... [2025-01-28 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:09:23] Production.INFO: 65.25 MB #Memory Used# [2025-01-28 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:10:06 [end_date_ymd] => 2025-01-28 18:10:06 [RateCDR] => 1 ) [2025-01-28 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-28 15:10:06' and `end` < '2025-01-28 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-28 18:10:23] Production.INFO: count ==4938 [2025-01-28 18:10:24] Production.ERROR: pbx CDR StartTime 2025-01-28 15:10:06 - End Time 2025-01-28 18:10:06 [2025-01-28 18:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350722', 'tblTempUsageDetail_20' ) start [2025-01-28 18:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350722', 'tblTempUsageDetail_20' ) end [2025-01-28 18:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350722', 'tblTempVendorCDR_20' ) start [2025-01-28 18:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350722', 'tblTempVendorCDR_20' ) end [2025-01-28 18:10:25] Production.INFO: ProcessCDR(1,14350722,1,1,2) [2025-01-28 18:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350722', 'tblTempUsageDetail_20' ) start [2025-01-28 18:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350722', 'tblTempUsageDetail_20' ) end [2025-01-28 18:10:29] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:10:29] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:10:29] Production.INFO: ==32233== Releasing lock... [2025-01-28 18:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:10:29] Production.INFO: 65 MB #Memory Used# [2025-01-28 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:11:05 [end_date_ymd] => 2025-01-28 18:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:11:05' and `end` < '2025-01-28 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-28 18:11:21] Production.INFO: count ==4846 [2025-01-28 18:11:23] Production.ERROR: pbx CDR StartTime 2025-01-28 15:11:05 - End Time 2025-01-28 18:11:05 [2025-01-28 18:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350727', 'tblTempUsageDetail_20' ) start [2025-01-28 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350727', 'tblTempUsageDetail_20' ) end [2025-01-28 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350727', 'tblTempVendorCDR_20' ) start [2025-01-28 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350727', 'tblTempVendorCDR_20' ) end [2025-01-28 18:11:23] Production.INFO: ProcessCDR(1,14350727,1,1,2) [2025-01-28 18:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350727', 'tblTempUsageDetail_20' ) start [2025-01-28 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350727', 'tblTempUsageDetail_20' ) end [2025-01-28 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:11:26] Production.INFO: ==32310== Releasing lock... [2025-01-28 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:11:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-28 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:12:05 [end_date_ymd] => 2025-01-28 18:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:12:05' and `end` < '2025-01-28 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-28 18:12:18] Production.INFO: count ==4833 [2025-01-28 18:12:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:12:05 - End Time 2025-01-28 18:12:05 [2025-01-28 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350732', 'tblTempUsageDetail_20' ) start [2025-01-28 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350732', 'tblTempUsageDetail_20' ) end [2025-01-28 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350732', 'tblTempVendorCDR_20' ) start [2025-01-28 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350732', 'tblTempVendorCDR_20' ) end [2025-01-28 18:12:20] Production.INFO: ProcessCDR(1,14350732,1,1,2) [2025-01-28 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350732', 'tblTempUsageDetail_20' ) start [2025-01-28 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350732', 'tblTempUsageDetail_20' ) end [2025-01-28 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:12:25] Production.INFO: ==32382== Releasing lock... [2025-01-28 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:12:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-28 18:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:13:04 [end_date_ymd] => 2025-01-28 18:13:04 [RateCDR] => 1 ) [2025-01-28 18:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:13:04' and `end` < '2025-01-28 18:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:13:18] Production.INFO: count ==4794 [2025-01-28 18:13:19] Production.ERROR: pbx CDR StartTime 2025-01-28 15:13:04 - End Time 2025-01-28 18:13:04 [2025-01-28 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350737', 'tblTempUsageDetail_20' ) start [2025-01-28 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350737', 'tblTempUsageDetail_20' ) end [2025-01-28 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350737', 'tblTempVendorCDR_20' ) start [2025-01-28 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350737', 'tblTempVendorCDR_20' ) end [2025-01-28 18:13:20] Production.INFO: ProcessCDR(1,14350737,1,1,2) [2025-01-28 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350737', 'tblTempUsageDetail_20' ) start [2025-01-28 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350737', 'tblTempUsageDetail_20' ) end [2025-01-28 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:13:23] Production.INFO: ==32451== Releasing lock... [2025-01-28 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:13:23] Production.INFO: 64 MB #Memory Used# [2025-01-28 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:14:05 [end_date_ymd] => 2025-01-28 18:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:14:05' and `end` < '2025-01-28 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-28 18:14:19] Production.INFO: count ==4759 [2025-01-28 18:14:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:14:05 - End Time 2025-01-28 18:14:05 [2025-01-28 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350742', 'tblTempUsageDetail_20' ) start [2025-01-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350742', 'tblTempUsageDetail_20' ) end [2025-01-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350742', 'tblTempVendorCDR_20' ) start [2025-01-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350742', 'tblTempVendorCDR_20' ) end [2025-01-28 18:14:21] Production.INFO: ProcessCDR(1,14350742,1,1,2) [2025-01-28 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350742', 'tblTempUsageDetail_20' ) start [2025-01-28 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350742', 'tblTempUsageDetail_20' ) end [2025-01-28 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:14:24] Production.INFO: ==32522== Releasing lock... [2025-01-28 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:14:24] Production.INFO: 63.75 MB #Memory Used# [2025-01-28 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:15:05 [end_date_ymd] => 2025-01-28 18:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:15:05' and `end` < '2025-01-28 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-28 18:15:19] Production.INFO: count ==4736 [2025-01-28 18:15:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:15:05 - End Time 2025-01-28 18:15:05 [2025-01-28 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350747', 'tblTempUsageDetail_20' ) start [2025-01-28 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350747', 'tblTempUsageDetail_20' ) end [2025-01-28 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350747', 'tblTempVendorCDR_20' ) start [2025-01-28 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350747', 'tblTempVendorCDR_20' ) end [2025-01-28 18:15:20] Production.INFO: ProcessCDR(1,14350747,1,1,2) [2025-01-28 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350747', 'tblTempUsageDetail_20' ) start [2025-01-28 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350747', 'tblTempUsageDetail_20' ) end [2025-01-28 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:15:25] Production.INFO: ==32593== Releasing lock... [2025-01-28 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:15:25] Production.INFO: 63.5 MB #Memory Used# [2025-01-28 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:16:05 [end_date_ymd] => 2025-01-28 18:16:05 [RateCDR] => 1 ) [2025-01-28 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:16:05' and `end` < '2025-01-28 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:16:18] Production.INFO: count ==4712 [2025-01-28 18:16:19] Production.ERROR: pbx CDR StartTime 2025-01-28 15:16:05 - End Time 2025-01-28 18:16:05 [2025-01-28 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350752', 'tblTempUsageDetail_20' ) start [2025-01-28 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350752', 'tblTempUsageDetail_20' ) end [2025-01-28 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350752', 'tblTempVendorCDR_20' ) start [2025-01-28 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350752', 'tblTempVendorCDR_20' ) end [2025-01-28 18:16:20] Production.INFO: ProcessCDR(1,14350752,1,1,2) [2025-01-28 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350752', 'tblTempUsageDetail_20' ) start [2025-01-28 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350752', 'tblTempUsageDetail_20' ) end [2025-01-28 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:16:24] Production.INFO: ==32703== Releasing lock... [2025-01-28 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:16:24] Production.INFO: 63.25 MB #Memory Used# [2025-01-28 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:17:05 [end_date_ymd] => 2025-01-28 18:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:17:05' and `end` < '2025-01-28 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-28 18:17:18] Production.INFO: count ==4699 [2025-01-28 18:17:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:17:05 - End Time 2025-01-28 18:17:05 [2025-01-28 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350757', 'tblTempUsageDetail_20' ) start [2025-01-28 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350757', 'tblTempUsageDetail_20' ) end [2025-01-28 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350757', 'tblTempVendorCDR_20' ) start [2025-01-28 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350757', 'tblTempVendorCDR_20' ) end [2025-01-28 18:17:20] Production.INFO: ProcessCDR(1,14350757,1,1,2) [2025-01-28 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350757', 'tblTempUsageDetail_20' ) start [2025-01-28 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350757', 'tblTempUsageDetail_20' ) end [2025-01-28 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:17:25] Production.INFO: ==307== Releasing lock... [2025-01-28 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:17:25] Production.INFO: 63.25 MB #Memory Used# [2025-01-28 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:18:04 [end_date_ymd] => 2025-01-28 18:18:04 [RateCDR] => 1 ) [2025-01-28 18: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-28 15:18:04' and `end` < '2025-01-28 18: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-28 18:18:18] Production.INFO: count ==4689 [2025-01-28 18:18:19] Production.ERROR: pbx CDR StartTime 2025-01-28 15:18:04 - End Time 2025-01-28 18:18:04 [2025-01-28 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350762', 'tblTempUsageDetail_20' ) start [2025-01-28 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350762', 'tblTempUsageDetail_20' ) end [2025-01-28 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350762', 'tblTempVendorCDR_20' ) start [2025-01-28 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350762', 'tblTempVendorCDR_20' ) end [2025-01-28 18:18:20] Production.INFO: ProcessCDR(1,14350762,1,1,2) [2025-01-28 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350762', 'tblTempUsageDetail_20' ) start [2025-01-28 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350762', 'tblTempUsageDetail_20' ) end [2025-01-28 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:18:24] Production.INFO: ==396== Releasing lock... [2025-01-28 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:18:24] Production.INFO: 63 MB #Memory Used# [2025-01-28 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:19:06 [end_date_ymd] => 2025-01-28 18:19:06 [RateCDR] => 1 ) [2025-01-28 18: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-28 15:19:06' and `end` < '2025-01-28 18: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-28 18:19:19] Production.INFO: count ==4658 [2025-01-28 18:19:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:19:06 - End Time 2025-01-28 18:19:06 [2025-01-28 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350767', 'tblTempUsageDetail_20' ) start [2025-01-28 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350767', 'tblTempUsageDetail_20' ) end [2025-01-28 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350767', 'tblTempVendorCDR_20' ) start [2025-01-28 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350767', 'tblTempVendorCDR_20' ) end [2025-01-28 18:19:21] Production.INFO: ProcessCDR(1,14350767,1,1,2) [2025-01-28 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350767', 'tblTempUsageDetail_20' ) start [2025-01-28 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350767', 'tblTempUsageDetail_20' ) end [2025-01-28 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:19:25] Production.INFO: ==469== Releasing lock... [2025-01-28 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:19:25] Production.INFO: 62.75 MB #Memory Used# [2025-01-28 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:20:05 [end_date_ymd] => 2025-01-28 18:20:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:20:05' and `end` < '2025-01-28 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-28 18:20:19] Production.INFO: count ==4624 [2025-01-28 18:20:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:20:05 - End Time 2025-01-28 18:20:05 [2025-01-28 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350773', 'tblTempUsageDetail_20' ) start [2025-01-28 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350773', 'tblTempUsageDetail_20' ) end [2025-01-28 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350773', 'tblTempVendorCDR_20' ) start [2025-01-28 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350773', 'tblTempVendorCDR_20' ) end [2025-01-28 18:20:20] Production.INFO: ProcessCDR(1,14350773,1,1,2) [2025-01-28 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350773', 'tblTempUsageDetail_20' ) start [2025-01-28 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350773', 'tblTempUsageDetail_20' ) end [2025-01-28 18:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:20:24] Production.INFO: ==543== Releasing lock... [2025-01-28 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:20:24] Production.INFO: 62.5 MB #Memory Used# [2025-01-28 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:21:05 [end_date_ymd] => 2025-01-28 18:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:21:05' and `end` < '2025-01-28 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-28 18:21:19] Production.INFO: count ==4534 [2025-01-28 18:21:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:21:05 - End Time 2025-01-28 18:21:05 [2025-01-28 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350778', 'tblTempUsageDetail_20' ) start [2025-01-28 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350778', 'tblTempUsageDetail_20' ) end [2025-01-28 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350778', 'tblTempVendorCDR_20' ) start [2025-01-28 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350778', 'tblTempVendorCDR_20' ) end [2025-01-28 18:21:21] Production.INFO: ProcessCDR(1,14350778,1,1,2) [2025-01-28 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350778', 'tblTempUsageDetail_20' ) start [2025-01-28 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350778', 'tblTempUsageDetail_20' ) end [2025-01-28 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:21:25] Production.INFO: ==629== Releasing lock... [2025-01-28 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:21:25] Production.INFO: 62 MB #Memory Used# [2025-01-28 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:22:05 [end_date_ymd] => 2025-01-28 18:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:22:05' and `end` < '2025-01-28 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-28 18:22:19] Production.INFO: count ==4485 [2025-01-28 18:22:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:22:05 - End Time 2025-01-28 18:22:05 [2025-01-28 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350783', 'tblTempUsageDetail_20' ) start [2025-01-28 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350783', 'tblTempUsageDetail_20' ) end [2025-01-28 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350783', 'tblTempVendorCDR_20' ) start [2025-01-28 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350783', 'tblTempVendorCDR_20' ) end [2025-01-28 18:22:21] Production.INFO: ProcessCDR(1,14350783,1,1,2) [2025-01-28 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350783', 'tblTempUsageDetail_20' ) start [2025-01-28 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350783', 'tblTempUsageDetail_20' ) end [2025-01-28 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:22:25] Production.INFO: ==727== Releasing lock... [2025-01-28 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:22:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-28 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:23:05 [end_date_ymd] => 2025-01-28 18:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:23:05' and `end` < '2025-01-28 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-28 18:23:18] Production.INFO: count ==4452 [2025-01-28 18:23:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:23:05 - End Time 2025-01-28 18:23:05 [2025-01-28 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350788', 'tblTempUsageDetail_20' ) start [2025-01-28 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350788', 'tblTempUsageDetail_20' ) end [2025-01-28 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350788', 'tblTempVendorCDR_20' ) start [2025-01-28 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350788', 'tblTempVendorCDR_20' ) end [2025-01-28 18:23:20] Production.INFO: ProcessCDR(1,14350788,1,1,2) [2025-01-28 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350788', 'tblTempUsageDetail_20' ) start [2025-01-28 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350788', 'tblTempUsageDetail_20' ) end [2025-01-28 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:23:23] Production.INFO: ==809== Releasing lock... [2025-01-28 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:23:23] Production.INFO: 61.25 MB #Memory Used# [2025-01-28 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:24:05 [end_date_ymd] => 2025-01-28 18:24:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:24:05' and `end` < '2025-01-28 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-28 18:24:18] Production.INFO: count ==4437 [2025-01-28 18:24:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:24:05 - End Time 2025-01-28 18:24:05 [2025-01-28 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350793', 'tblTempUsageDetail_20' ) start [2025-01-28 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350793', 'tblTempUsageDetail_20' ) end [2025-01-28 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350793', 'tblTempVendorCDR_20' ) start [2025-01-28 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350793', 'tblTempVendorCDR_20' ) end [2025-01-28 18:24:20] Production.INFO: ProcessCDR(1,14350793,1,1,2) [2025-01-28 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350793', 'tblTempUsageDetail_20' ) start [2025-01-28 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350793', 'tblTempUsageDetail_20' ) end [2025-01-28 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:24:23] Production.INFO: ==881== Releasing lock... [2025-01-28 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:24:23] Production.INFO: 61.25 MB #Memory Used# [2025-01-28 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:25:05 [end_date_ymd] => 2025-01-28 18:25:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:25:05' and `end` < '2025-01-28 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-28 18:25:19] Production.INFO: count ==4436 [2025-01-28 18:25:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:25:05 - End Time 2025-01-28 18:25:05 [2025-01-28 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350798', 'tblTempUsageDetail_20' ) start [2025-01-28 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350798', 'tblTempUsageDetail_20' ) end [2025-01-28 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350798', 'tblTempVendorCDR_20' ) start [2025-01-28 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350798', 'tblTempVendorCDR_20' ) end [2025-01-28 18:25:20] Production.INFO: ProcessCDR(1,14350798,1,1,2) [2025-01-28 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350798', 'tblTempUsageDetail_20' ) start [2025-01-28 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350798', 'tblTempUsageDetail_20' ) end [2025-01-28 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:25:25] Production.INFO: ==951== Releasing lock... [2025-01-28 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:25:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-28 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:26:05 [end_date_ymd] => 2025-01-28 18:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:26:05' and `end` < '2025-01-28 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-28 18:26:19] Production.INFO: count ==4422 [2025-01-28 18:26:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:26:05 - End Time 2025-01-28 18:26:05 [2025-01-28 18:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350803', 'tblTempUsageDetail_20' ) start [2025-01-28 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350803', 'tblTempUsageDetail_20' ) end [2025-01-28 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350803', 'tblTempVendorCDR_20' ) start [2025-01-28 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350803', 'tblTempVendorCDR_20' ) end [2025-01-28 18:26:20] Production.INFO: ProcessCDR(1,14350803,1,1,2) [2025-01-28 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350803', 'tblTempUsageDetail_20' ) start [2025-01-28 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350803', 'tblTempUsageDetail_20' ) end [2025-01-28 18:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:26:25] Production.INFO: ==1024== Releasing lock... [2025-01-28 18:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:26:25] Production.INFO: 61 MB #Memory Used# [2025-01-28 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:27:05 [end_date_ymd] => 2025-01-28 18:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:27:05' and `end` < '2025-01-28 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-28 18:27:18] Production.INFO: count ==4407 [2025-01-28 18:27:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:27:05 - End Time 2025-01-28 18:27:05 [2025-01-28 18:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350808', 'tblTempUsageDetail_20' ) start [2025-01-28 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350808', 'tblTempUsageDetail_20' ) end [2025-01-28 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350808', 'tblTempVendorCDR_20' ) start [2025-01-28 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350808', 'tblTempVendorCDR_20' ) end [2025-01-28 18:27:20] Production.INFO: ProcessCDR(1,14350808,1,1,2) [2025-01-28 18:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350808', 'tblTempUsageDetail_20' ) start [2025-01-28 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350808', 'tblTempUsageDetail_20' ) end [2025-01-28 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:27:23] Production.INFO: ==1098== Releasing lock... [2025-01-28 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:27:23] Production.INFO: 61 MB #Memory Used# [2025-01-28 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:28:05 [end_date_ymd] => 2025-01-28 18:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:28:05' and `end` < '2025-01-28 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-28 18:28:18] Production.INFO: count ==4399 [2025-01-28 18:28:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:28:05 - End Time 2025-01-28 18:28:05 [2025-01-28 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350813', 'tblTempUsageDetail_20' ) start [2025-01-28 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350813', 'tblTempUsageDetail_20' ) end [2025-01-28 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350813', 'tblTempVendorCDR_20' ) start [2025-01-28 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350813', 'tblTempVendorCDR_20' ) end [2025-01-28 18:28:20] Production.INFO: ProcessCDR(1,14350813,1,1,2) [2025-01-28 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350813', 'tblTempUsageDetail_20' ) start [2025-01-28 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350813', 'tblTempUsageDetail_20' ) end [2025-01-28 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:28:24] Production.INFO: ==1177== Releasing lock... [2025-01-28 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:28:24] Production.INFO: 61 MB #Memory Used# [2025-01-28 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:29:05 [end_date_ymd] => 2025-01-28 18:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:29:05' and `end` < '2025-01-28 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-28 18:29:19] Production.INFO: count ==4364 [2025-01-28 18:29:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:29:05 - End Time 2025-01-28 18:29:05 [2025-01-28 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350818', 'tblTempUsageDetail_20' ) start [2025-01-28 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350818', 'tblTempUsageDetail_20' ) end [2025-01-28 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350818', 'tblTempVendorCDR_20' ) start [2025-01-28 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350818', 'tblTempVendorCDR_20' ) end [2025-01-28 18:29:20] Production.INFO: ProcessCDR(1,14350818,1,1,2) [2025-01-28 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350818', 'tblTempUsageDetail_20' ) start [2025-01-28 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350818', 'tblTempUsageDetail_20' ) end [2025-01-28 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:29:23] Production.INFO: ==1259== Releasing lock... [2025-01-28 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:29:23] Production.INFO: 60.75 MB #Memory Used# [2025-01-28 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:30:05 [end_date_ymd] => 2025-01-28 18:30:05 [RateCDR] => 1 ) [2025-01-28 18:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:30:05' and `end` < '2025-01-28 18:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:30:18] Production.INFO: count ==4348 [2025-01-28 18:30:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:30:05 - End Time 2025-01-28 18:30:05 [2025-01-28 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350823', 'tblTempUsageDetail_20' ) start [2025-01-28 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350823', 'tblTempUsageDetail_20' ) end [2025-01-28 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350823', 'tblTempVendorCDR_20' ) start [2025-01-28 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350823', 'tblTempVendorCDR_20' ) end [2025-01-28 18:30:20] Production.INFO: ProcessCDR(1,14350823,1,1,2) [2025-01-28 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350823', 'tblTempUsageDetail_20' ) start [2025-01-28 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350823', 'tblTempUsageDetail_20' ) end [2025-01-28 18:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:30:24] Production.INFO: ==1344== Releasing lock... [2025-01-28 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:30:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-28 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:31:05 [end_date_ymd] => 2025-01-28 18:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:31:05' and `end` < '2025-01-28 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-28 18:31:19] Production.INFO: count ==4246 [2025-01-28 18:31:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:31:05 - End Time 2025-01-28 18:31:05 [2025-01-28 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350829', 'tblTempUsageDetail_20' ) start [2025-01-28 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350829', 'tblTempUsageDetail_20' ) end [2025-01-28 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350829', 'tblTempVendorCDR_20' ) start [2025-01-28 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350829', 'tblTempVendorCDR_20' ) end [2025-01-28 18:31:20] Production.INFO: ProcessCDR(1,14350829,1,1,2) [2025-01-28 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350829', 'tblTempUsageDetail_20' ) start [2025-01-28 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350829', 'tblTempUsageDetail_20' ) end [2025-01-28 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:31:23] Production.INFO: ==1418== Releasing lock... [2025-01-28 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:31:23] Production.INFO: 59.75 MB #Memory Used# [2025-01-28 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:32:06 [end_date_ymd] => 2025-01-28 18:32:06 [RateCDR] => 1 ) [2025-01-28 18: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-28 15:32:06' and `end` < '2025-01-28 18: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-28 18:32:19] Production.INFO: count ==4238 [2025-01-28 18:32:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:32:06 - End Time 2025-01-28 18:32:06 [2025-01-28 18:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350834', 'tblTempUsageDetail_20' ) start [2025-01-28 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350834', 'tblTempUsageDetail_20' ) end [2025-01-28 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350834', 'tblTempVendorCDR_20' ) start [2025-01-28 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350834', 'tblTempVendorCDR_20' ) end [2025-01-28 18:32:21] Production.INFO: ProcessCDR(1,14350834,1,1,2) [2025-01-28 18:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350834', 'tblTempUsageDetail_20' ) start [2025-01-28 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350834', 'tblTempUsageDetail_20' ) end [2025-01-28 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:32:26] Production.INFO: ==1562== Releasing lock... [2025-01-28 18:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:32:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-28 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:33:05 [end_date_ymd] => 2025-01-28 18:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:33:05' and `end` < '2025-01-28 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-28 18:33:18] Production.INFO: count ==4221 [2025-01-28 18:33:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:33:05 - End Time 2025-01-28 18:33:05 [2025-01-28 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350839', 'tblTempUsageDetail_20' ) start [2025-01-28 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350839', 'tblTempUsageDetail_20' ) end [2025-01-28 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350839', 'tblTempVendorCDR_20' ) start [2025-01-28 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350839', 'tblTempVendorCDR_20' ) end [2025-01-28 18:33:20] Production.INFO: ProcessCDR(1,14350839,1,1,2) [2025-01-28 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350839', 'tblTempUsageDetail_20' ) start [2025-01-28 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350839', 'tblTempUsageDetail_20' ) end [2025-01-28 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:33:24] Production.INFO: ==1637== Releasing lock... [2025-01-28 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:33:24] Production.INFO: 59.5 MB #Memory Used# [2025-01-28 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:34:05 [end_date_ymd] => 2025-01-28 18:34:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:34:05' and `end` < '2025-01-28 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-28 18:34:18] Production.INFO: count ==4210 [2025-01-28 18:34:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:34:05 - End Time 2025-01-28 18:34:05 [2025-01-28 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350844', 'tblTempUsageDetail_20' ) start [2025-01-28 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350844', 'tblTempUsageDetail_20' ) end [2025-01-28 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350844', 'tblTempVendorCDR_20' ) start [2025-01-28 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350844', 'tblTempVendorCDR_20' ) end [2025-01-28 18:34:20] Production.INFO: ProcessCDR(1,14350844,1,1,2) [2025-01-28 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350844', 'tblTempUsageDetail_20' ) start [2025-01-28 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350844', 'tblTempUsageDetail_20' ) end [2025-01-28 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:34:23] Production.INFO: ==1708== Releasing lock... [2025-01-28 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:34:23] Production.INFO: 59.5 MB #Memory Used# [2025-01-28 18:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:35:04 [end_date_ymd] => 2025-01-28 18:35:04 [RateCDR] => 1 ) [2025-01-28 18: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-28 15:35:04' and `end` < '2025-01-28 18: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-28 18:35:18] Production.INFO: count ==4197 [2025-01-28 18:35:19] Production.ERROR: pbx CDR StartTime 2025-01-28 15:35:04 - End Time 2025-01-28 18:35:04 [2025-01-28 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350849', 'tblTempUsageDetail_20' ) start [2025-01-28 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350849', 'tblTempUsageDetail_20' ) end [2025-01-28 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350849', 'tblTempVendorCDR_20' ) start [2025-01-28 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350849', 'tblTempVendorCDR_20' ) end [2025-01-28 18:35:19] Production.INFO: ProcessCDR(1,14350849,1,1,2) [2025-01-28 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350849', 'tblTempUsageDetail_20' ) start [2025-01-28 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350849', 'tblTempUsageDetail_20' ) end [2025-01-28 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:35:24] Production.INFO: ==1778== Releasing lock... [2025-01-28 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:35:24] Production.INFO: 59.5 MB #Memory Used# [2025-01-28 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:36:05 [end_date_ymd] => 2025-01-28 18:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:36:05' and `end` < '2025-01-28 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-28 18:36:19] Production.INFO: count ==4185 [2025-01-28 18:36:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:36:05 - End Time 2025-01-28 18:36:05 [2025-01-28 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350854', 'tblTempUsageDetail_20' ) start [2025-01-28 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350854', 'tblTempUsageDetail_20' ) end [2025-01-28 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350854', 'tblTempVendorCDR_20' ) start [2025-01-28 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350854', 'tblTempVendorCDR_20' ) end [2025-01-28 18:36:20] Production.INFO: ProcessCDR(1,14350854,1,1,2) [2025-01-28 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350854', 'tblTempUsageDetail_20' ) start [2025-01-28 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350854', 'tblTempUsageDetail_20' ) end [2025-01-28 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:36:24] Production.INFO: ==1854== Releasing lock... [2025-01-28 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:36:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-28 18:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:37:04 [end_date_ymd] => 2025-01-28 18:37:04 [RateCDR] => 1 ) [2025-01-28 18:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:37:04' and `end` < '2025-01-28 18:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:37:18] Production.INFO: count ==4156 [2025-01-28 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-28 15:37:04 - End Time 2025-01-28 18:37:04 [2025-01-28 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350859', 'tblTempUsageDetail_20' ) start [2025-01-28 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350859', 'tblTempUsageDetail_20' ) end [2025-01-28 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350859', 'tblTempVendorCDR_20' ) start [2025-01-28 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350859', 'tblTempVendorCDR_20' ) end [2025-01-28 18:37:19] Production.INFO: ProcessCDR(1,14350859,1,1,2) [2025-01-28 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350859', 'tblTempUsageDetail_20' ) start [2025-01-28 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350859', 'tblTempUsageDetail_20' ) end [2025-01-28 18:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:37:22] Production.INFO: ==1927== Releasing lock... [2025-01-28 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:37:22] Production.INFO: 59 MB #Memory Used# [2025-01-28 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:38:05 [end_date_ymd] => 2025-01-28 18:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:38:05' and `end` < '2025-01-28 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-28 18:38:19] Production.INFO: count ==4143 [2025-01-28 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:38:05 - End Time 2025-01-28 18:38:05 [2025-01-28 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350864', 'tblTempUsageDetail_20' ) start [2025-01-28 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350864', 'tblTempUsageDetail_20' ) end [2025-01-28 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350864', 'tblTempVendorCDR_20' ) start [2025-01-28 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350864', 'tblTempVendorCDR_20' ) end [2025-01-28 18:38:20] Production.INFO: ProcessCDR(1,14350864,1,1,2) [2025-01-28 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350864', 'tblTempUsageDetail_20' ) start [2025-01-28 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350864', 'tblTempUsageDetail_20' ) end [2025-01-28 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:38:24] Production.INFO: ==2008== Releasing lock... [2025-01-28 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:38:24] Production.INFO: 59 MB #Memory Used# [2025-01-28 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:39:05 [end_date_ymd] => 2025-01-28 18:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:39:05' and `end` < '2025-01-28 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-28 18:39:18] Production.INFO: count ==4132 [2025-01-28 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-28 15:39:05 - End Time 2025-01-28 18:39:05 [2025-01-28 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350869', 'tblTempUsageDetail_20' ) start [2025-01-28 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350869', 'tblTempUsageDetail_20' ) end [2025-01-28 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350869', 'tblTempVendorCDR_20' ) start [2025-01-28 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350869', 'tblTempVendorCDR_20' ) end [2025-01-28 18:39:19] Production.INFO: ProcessCDR(1,14350869,1,1,2) [2025-01-28 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350869', 'tblTempUsageDetail_20' ) start [2025-01-28 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350869', 'tblTempUsageDetail_20' ) end [2025-01-28 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:39:23] Production.INFO: ==2078== Releasing lock... [2025-01-28 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:39:23] Production.INFO: 59 MB #Memory Used# [2025-01-28 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:40:06 [end_date_ymd] => 2025-01-28 18:40:06 [RateCDR] => 1 ) [2025-01-28 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-28 15:40:06' and `end` < '2025-01-28 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-28 18:40:19] Production.INFO: count ==4115 [2025-01-28 18:40:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:40:06 - End Time 2025-01-28 18:40:06 [2025-01-28 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350874', 'tblTempUsageDetail_20' ) start [2025-01-28 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350874', 'tblTempUsageDetail_20' ) end [2025-01-28 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350874', 'tblTempVendorCDR_20' ) start [2025-01-28 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350874', 'tblTempVendorCDR_20' ) end [2025-01-28 18:40:21] Production.INFO: ProcessCDR(1,14350874,1,1,2) [2025-01-28 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350874', 'tblTempUsageDetail_20' ) start [2025-01-28 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350874', 'tblTempUsageDetail_20' ) end [2025-01-28 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:40:26] Production.INFO: ==2156== Releasing lock... [2025-01-28 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:40:26] Production.INFO: 58.75 MB #Memory Used# [2025-01-28 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:41:05 [end_date_ymd] => 2025-01-28 18:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:41:05' and `end` < '2025-01-28 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-28 18:41:18] Production.INFO: count ==4023 [2025-01-28 18:41:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:41:05 - End Time 2025-01-28 18:41:05 [2025-01-28 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350880', 'tblTempUsageDetail_20' ) start [2025-01-28 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350880', 'tblTempUsageDetail_20' ) end [2025-01-28 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350880', 'tblTempVendorCDR_20' ) start [2025-01-28 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350880', 'tblTempVendorCDR_20' ) end [2025-01-28 18:41:20] Production.INFO: ProcessCDR(1,14350880,1,1,2) [2025-01-28 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350880', 'tblTempUsageDetail_20' ) start [2025-01-28 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350880', 'tblTempUsageDetail_20' ) end [2025-01-28 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:41:25] Production.INFO: ==2233== Releasing lock... [2025-01-28 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:41:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-28 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:42:05 [end_date_ymd] => 2025-01-28 18:42:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:42:05' and `end` < '2025-01-28 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-28 18:42:19] Production.INFO: count ==4016 [2025-01-28 18:42:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:42:05 - End Time 2025-01-28 18:42:05 [2025-01-28 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350885', 'tblTempUsageDetail_20' ) start [2025-01-28 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350885', 'tblTempUsageDetail_20' ) end [2025-01-28 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350885', 'tblTempVendorCDR_20' ) start [2025-01-28 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350885', 'tblTempVendorCDR_20' ) end [2025-01-28 18:42:20] Production.INFO: ProcessCDR(1,14350885,1,1,2) [2025-01-28 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350885', 'tblTempUsageDetail_20' ) start [2025-01-28 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350885', 'tblTempUsageDetail_20' ) end [2025-01-28 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:42:25] Production.INFO: ==2330== Releasing lock... [2025-01-28 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:42:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-28 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:43:05 [end_date_ymd] => 2025-01-28 18:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:43:05' and `end` < '2025-01-28 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-28 18:43:19] Production.INFO: count ==3996 [2025-01-28 18:43:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:43:05 - End Time 2025-01-28 18:43:05 [2025-01-28 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350890', 'tblTempUsageDetail_20' ) start [2025-01-28 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350890', 'tblTempUsageDetail_20' ) end [2025-01-28 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350890', 'tblTempVendorCDR_20' ) start [2025-01-28 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350890', 'tblTempVendorCDR_20' ) end [2025-01-28 18:43:20] Production.INFO: ProcessCDR(1,14350890,1,1,2) [2025-01-28 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350890', 'tblTempUsageDetail_20' ) start [2025-01-28 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350890', 'tblTempUsageDetail_20' ) end [2025-01-28 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:43:23] Production.INFO: ==2402== Releasing lock... [2025-01-28 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:43:23] Production.INFO: 57.75 MB #Memory Used# [2025-01-28 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:44:06 [end_date_ymd] => 2025-01-28 18:44:06 [RateCDR] => 1 ) [2025-01-28 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:44:06' and `end` < '2025-01-28 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:44:19] Production.INFO: count ==3971 [2025-01-28 18:44:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:44:06 - End Time 2025-01-28 18:44:06 [2025-01-28 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350895', 'tblTempUsageDetail_20' ) start [2025-01-28 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350895', 'tblTempUsageDetail_20' ) end [2025-01-28 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350895', 'tblTempVendorCDR_20' ) start [2025-01-28 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350895', 'tblTempVendorCDR_20' ) end [2025-01-28 18:44:20] Production.INFO: ProcessCDR(1,14350895,1,1,2) [2025-01-28 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350895', 'tblTempUsageDetail_20' ) start [2025-01-28 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350895', 'tblTempUsageDetail_20' ) end [2025-01-28 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:44:25] Production.INFO: ==2480== Releasing lock... [2025-01-28 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:44:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-28 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:45:05 [end_date_ymd] => 2025-01-28 18:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:45:05' and `end` < '2025-01-28 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-28 18:45:18] Production.INFO: count ==3953 [2025-01-28 18:45:19] Production.ERROR: pbx CDR StartTime 2025-01-28 15:45:05 - End Time 2025-01-28 18:45:05 [2025-01-28 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350900', 'tblTempUsageDetail_20' ) start [2025-01-28 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350900', 'tblTempUsageDetail_20' ) end [2025-01-28 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350900', 'tblTempVendorCDR_20' ) start [2025-01-28 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350900', 'tblTempVendorCDR_20' ) end [2025-01-28 18:45:19] Production.INFO: ProcessCDR(1,14350900,1,1,2) [2025-01-28 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350900', 'tblTempUsageDetail_20' ) start [2025-01-28 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350900', 'tblTempUsageDetail_20' ) end [2025-01-28 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:45:23] Production.INFO: ==2555== Releasing lock... [2025-01-28 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:45:23] Production.INFO: 57.5 MB #Memory Used# [2025-01-28 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:46:05 [end_date_ymd] => 2025-01-28 18:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:46:05' and `end` < '2025-01-28 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-28 18:46:19] Production.INFO: count ==3942 [2025-01-28 18:46:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:46:05 - End Time 2025-01-28 18:46:05 [2025-01-28 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350905', 'tblTempUsageDetail_20' ) start [2025-01-28 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350905', 'tblTempUsageDetail_20' ) end [2025-01-28 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350905', 'tblTempVendorCDR_20' ) start [2025-01-28 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350905', 'tblTempVendorCDR_20' ) end [2025-01-28 18:46:20] Production.INFO: ProcessCDR(1,14350905,1,1,2) [2025-01-28 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350905', 'tblTempUsageDetail_20' ) start [2025-01-28 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350905', 'tblTempUsageDetail_20' ) end [2025-01-28 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:46:23] Production.INFO: ==2628== Releasing lock... [2025-01-28 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:46:23] Production.INFO: 57.5 MB #Memory Used# [2025-01-28 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:47:05 [end_date_ymd] => 2025-01-28 18:47:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:47:05' and `end` < '2025-01-28 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-28 18:47:19] Production.INFO: count ==3920 [2025-01-28 18:47:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:47:05 - End Time 2025-01-28 18:47:05 [2025-01-28 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350910', 'tblTempUsageDetail_20' ) start [2025-01-28 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350910', 'tblTempUsageDetail_20' ) end [2025-01-28 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350910', 'tblTempVendorCDR_20' ) start [2025-01-28 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350910', 'tblTempVendorCDR_20' ) end [2025-01-28 18:47:20] Production.INFO: ProcessCDR(1,14350910,1,1,2) [2025-01-28 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350910', 'tblTempUsageDetail_20' ) start [2025-01-28 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350910', 'tblTempUsageDetail_20' ) end [2025-01-28 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:47:24] Production.INFO: ==2744== Releasing lock... [2025-01-28 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:47:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-28 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:48:05 [end_date_ymd] => 2025-01-28 18:48:05 [RateCDR] => 1 ) [2025-01-28 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:48:05' and `end` < '2025-01-28 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:48:19] Production.INFO: count ==3902 [2025-01-28 18:48:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:48:05 - End Time 2025-01-28 18:48:05 [2025-01-28 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350915', 'tblTempUsageDetail_20' ) start [2025-01-28 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350915', 'tblTempUsageDetail_20' ) end [2025-01-28 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350915', 'tblTempVendorCDR_20' ) start [2025-01-28 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350915', 'tblTempVendorCDR_20' ) end [2025-01-28 18:48:20] Production.INFO: ProcessCDR(1,14350915,1,1,2) [2025-01-28 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350915', 'tblTempUsageDetail_20' ) start [2025-01-28 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350915', 'tblTempUsageDetail_20' ) end [2025-01-28 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:48:24] Production.INFO: ==2817== Releasing lock... [2025-01-28 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:48:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-28 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:49:05 [end_date_ymd] => 2025-01-28 18:49:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:49:05' and `end` < '2025-01-28 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-28 18:49:20] Production.INFO: count ==3882 [2025-01-28 18:49:21] Production.ERROR: pbx CDR StartTime 2025-01-28 15:49:05 - End Time 2025-01-28 18:49:05 [2025-01-28 18:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350920', 'tblTempUsageDetail_20' ) start [2025-01-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350920', 'tblTempUsageDetail_20' ) end [2025-01-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350920', 'tblTempVendorCDR_20' ) start [2025-01-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350920', 'tblTempVendorCDR_20' ) end [2025-01-28 18:49:21] Production.INFO: ProcessCDR(1,14350920,1,1,2) [2025-01-28 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350920', 'tblTempUsageDetail_20' ) start [2025-01-28 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350920', 'tblTempUsageDetail_20' ) end [2025-01-28 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:49:24] Production.INFO: ==2897== Releasing lock... [2025-01-28 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:49:24] Production.INFO: 57 MB #Memory Used# [2025-01-28 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:50:06 [end_date_ymd] => 2025-01-28 18:50:06 [RateCDR] => 1 ) [2025-01-28 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:50:06' and `end` < '2025-01-28 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:50:19] Production.INFO: count ==3868 [2025-01-28 18:50:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:50:06 - End Time 2025-01-28 18:50:06 [2025-01-28 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350926', 'tblTempUsageDetail_20' ) start [2025-01-28 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350926', 'tblTempUsageDetail_20' ) end [2025-01-28 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350926', 'tblTempVendorCDR_20' ) start [2025-01-28 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350926', 'tblTempVendorCDR_20' ) end [2025-01-28 18:50:20] Production.INFO: ProcessCDR(1,14350926,1,1,2) [2025-01-28 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350926', 'tblTempUsageDetail_20' ) start [2025-01-28 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350926', 'tblTempUsageDetail_20' ) end [2025-01-28 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:50:24] Production.INFO: ==2975== Releasing lock... [2025-01-28 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:50:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-28 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:51:05 [end_date_ymd] => 2025-01-28 18:51:05 [RateCDR] => 1 ) [2025-01-28 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:51:05' and `end` < '2025-01-28 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:51:19] Production.INFO: count ==3783 [2025-01-28 18:51:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:51:05 - End Time 2025-01-28 18:51:05 [2025-01-28 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350931', 'tblTempUsageDetail_20' ) start [2025-01-28 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350931', 'tblTempUsageDetail_20' ) end [2025-01-28 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350931', 'tblTempVendorCDR_20' ) start [2025-01-28 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350931', 'tblTempVendorCDR_20' ) end [2025-01-28 18:51:20] Production.INFO: ProcessCDR(1,14350931,1,1,2) [2025-01-28 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350931', 'tblTempUsageDetail_20' ) start [2025-01-28 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350931', 'tblTempUsageDetail_20' ) end [2025-01-28 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:51:24] Production.INFO: ==3055== Releasing lock... [2025-01-28 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:51:24] Production.INFO: 56.75 MB #Memory Used# [2025-01-28 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:52:05 [end_date_ymd] => 2025-01-28 18:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:52:05' and `end` < '2025-01-28 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-28 18:52:19] Production.INFO: count ==3751 [2025-01-28 18:52:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:52:05 - End Time 2025-01-28 18:52:05 [2025-01-28 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350936', 'tblTempUsageDetail_20' ) start [2025-01-28 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350936', 'tblTempUsageDetail_20' ) end [2025-01-28 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350936', 'tblTempVendorCDR_20' ) start [2025-01-28 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350936', 'tblTempVendorCDR_20' ) end [2025-01-28 18:52:20] Production.INFO: ProcessCDR(1,14350936,1,1,2) [2025-01-28 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350936', 'tblTempUsageDetail_20' ) start [2025-01-28 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350936', 'tblTempUsageDetail_20' ) end [2025-01-28 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:52:24] Production.INFO: ==3133== Releasing lock... [2025-01-28 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:52:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-28 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:53:05 [end_date_ymd] => 2025-01-28 18:53:05 [RateCDR] => 1 ) [2025-01-28 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:53:05' and `end` < '2025-01-28 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:53:18] Production.INFO: count ==3729 [2025-01-28 18:53:19] Production.ERROR: pbx CDR StartTime 2025-01-28 15:53:05 - End Time 2025-01-28 18:53:05 [2025-01-28 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350941', 'tblTempUsageDetail_20' ) start [2025-01-28 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350941', 'tblTempUsageDetail_20' ) end [2025-01-28 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350941', 'tblTempVendorCDR_20' ) start [2025-01-28 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350941', 'tblTempVendorCDR_20' ) end [2025-01-28 18:53:19] Production.INFO: ProcessCDR(1,14350941,1,1,2) [2025-01-28 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350941', 'tblTempUsageDetail_20' ) start [2025-01-28 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350941', 'tblTempUsageDetail_20' ) end [2025-01-28 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:53:24] Production.INFO: ==3213== Releasing lock... [2025-01-28 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:53:24] Production.INFO: 56 MB #Memory Used# [2025-01-28 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:54:05 [end_date_ymd] => 2025-01-28 18:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:54:05' and `end` < '2025-01-28 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-28 18:54:18] Production.INFO: count ==3725 [2025-01-28 18:54:19] Production.ERROR: pbx CDR StartTime 2025-01-28 15:54:05 - End Time 2025-01-28 18:54:05 [2025-01-28 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350946', 'tblTempUsageDetail_20' ) start [2025-01-28 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350946', 'tblTempUsageDetail_20' ) end [2025-01-28 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350946', 'tblTempVendorCDR_20' ) start [2025-01-28 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350946', 'tblTempVendorCDR_20' ) end [2025-01-28 18:54:19] Production.INFO: ProcessCDR(1,14350946,1,1,2) [2025-01-28 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350946', 'tblTempUsageDetail_20' ) start [2025-01-28 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350946', 'tblTempUsageDetail_20' ) end [2025-01-28 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:54:24] Production.INFO: ==3288== Releasing lock... [2025-01-28 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:54:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-28 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:55:06 [end_date_ymd] => 2025-01-28 18:55:06 [RateCDR] => 1 ) [2025-01-28 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 15:55:06' and `end` < '2025-01-28 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 18:55:19] Production.INFO: count ==3720 [2025-01-28 18:55:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:55:06 - End Time 2025-01-28 18:55:06 [2025-01-28 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350951', 'tblTempUsageDetail_20' ) start [2025-01-28 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350951', 'tblTempUsageDetail_20' ) end [2025-01-28 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350951', 'tblTempVendorCDR_20' ) start [2025-01-28 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350951', 'tblTempVendorCDR_20' ) end [2025-01-28 18:55:20] Production.INFO: ProcessCDR(1,14350951,1,1,2) [2025-01-28 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350951', 'tblTempUsageDetail_20' ) start [2025-01-28 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350951', 'tblTempUsageDetail_20' ) end [2025-01-28 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:55:23] Production.INFO: ==3363== Releasing lock... [2025-01-28 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:55:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-28 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:56:05 [end_date_ymd] => 2025-01-28 18:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:56:05' and `end` < '2025-01-28 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-28 18:56:18] Production.INFO: count ==3712 [2025-01-28 18:56:19] Production.ERROR: pbx CDR StartTime 2025-01-28 15:56:05 - End Time 2025-01-28 18:56:05 [2025-01-28 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350956', 'tblTempUsageDetail_20' ) start [2025-01-28 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350956', 'tblTempUsageDetail_20' ) end [2025-01-28 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350956', 'tblTempVendorCDR_20' ) start [2025-01-28 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350956', 'tblTempVendorCDR_20' ) end [2025-01-28 18:56:20] Production.INFO: ProcessCDR(1,14350956,1,1,2) [2025-01-28 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350956', 'tblTempUsageDetail_20' ) start [2025-01-28 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350956', 'tblTempUsageDetail_20' ) end [2025-01-28 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:56:24] Production.INFO: ==3438== Releasing lock... [2025-01-28 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:56:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-28 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:57:06 [end_date_ymd] => 2025-01-28 18:57:06 [RateCDR] => 1 ) [2025-01-28 18: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-28 15:57:06' and `end` < '2025-01-28 18: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-28 18:57:19] Production.INFO: count ==3703 [2025-01-28 18:57:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:57:06 - End Time 2025-01-28 18:57:06 [2025-01-28 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350961', 'tblTempUsageDetail_20' ) start [2025-01-28 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350961', 'tblTempUsageDetail_20' ) end [2025-01-28 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350961', 'tblTempVendorCDR_20' ) start [2025-01-28 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350961', 'tblTempVendorCDR_20' ) end [2025-01-28 18:57:20] Production.INFO: ProcessCDR(1,14350961,1,1,2) [2025-01-28 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350961', 'tblTempUsageDetail_20' ) start [2025-01-28 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350961', 'tblTempUsageDetail_20' ) end [2025-01-28 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:57:25] Production.INFO: ==3513== Releasing lock... [2025-01-28 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:57:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-28 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:58:05 [end_date_ymd] => 2025-01-28 18:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:58:05' and `end` < '2025-01-28 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-28 18:58:19] Production.INFO: count ==3699 [2025-01-28 18:58:20] Production.ERROR: pbx CDR StartTime 2025-01-28 15:58:05 - End Time 2025-01-28 18:58:05 [2025-01-28 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350966', 'tblTempUsageDetail_20' ) start [2025-01-28 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350966', 'tblTempUsageDetail_20' ) end [2025-01-28 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350966', 'tblTempVendorCDR_20' ) start [2025-01-28 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350966', 'tblTempVendorCDR_20' ) end [2025-01-28 18:58:20] Production.INFO: ProcessCDR(1,14350966,1,1,2) [2025-01-28 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350966', 'tblTempUsageDetail_20' ) start [2025-01-28 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350966', 'tblTempUsageDetail_20' ) end [2025-01-28 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:58:23] Production.INFO: ==3589== Releasing lock... [2025-01-28 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:58:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-28 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 15:59:05 [end_date_ymd] => 2025-01-28 18:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 15:59:05' and `end` < '2025-01-28 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-28 18:59:18] Production.INFO: count ==3699 [2025-01-28 18:59:19] Production.ERROR: pbx CDR StartTime 2025-01-28 15:59:05 - End Time 2025-01-28 18:59:05 [2025-01-28 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350971', 'tblTempUsageDetail_20' ) start [2025-01-28 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350971', 'tblTempUsageDetail_20' ) end [2025-01-28 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350971', 'tblTempVendorCDR_20' ) start [2025-01-28 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350971', 'tblTempVendorCDR_20' ) end [2025-01-28 18:59:19] Production.INFO: ProcessCDR(1,14350971,1,1,2) [2025-01-28 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350971', 'tblTempUsageDetail_20' ) start [2025-01-28 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350971', 'tblTempUsageDetail_20' ) end [2025-01-28 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 18:59:24] Production.INFO: ==3666== Releasing lock... [2025-01-28 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 18:59:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-28 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:00:06 [end_date_ymd] => 2025-01-28 19:00:06 [RateCDR] => 1 ) [2025-01-28 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:00:06' and `end` < '2025-01-28 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:00:19] Production.INFO: count ==3681 [2025-01-28 19:00:20] Production.ERROR: pbx CDR StartTime 2025-01-28 16:00:06 - End Time 2025-01-28 19:00:06 [2025-01-28 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350977', 'tblTempUsageDetail_20' ) start [2025-01-28 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350977', 'tblTempUsageDetail_20' ) end [2025-01-28 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350977', 'tblTempVendorCDR_20' ) start [2025-01-28 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350977', 'tblTempVendorCDR_20' ) end [2025-01-28 19:00:20] Production.INFO: ProcessCDR(1,14350977,1,1,2) [2025-01-28 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350977', 'tblTempUsageDetail_20' ) start [2025-01-28 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350977', 'tblTempUsageDetail_20' ) end [2025-01-28 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:00:23] Production.INFO: ==3744== Releasing lock... [2025-01-28 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:00:23] Production.INFO: 56 MB #Memory Used# [2025-01-28 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:01:05 [end_date_ymd] => 2025-01-28 19:01:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:01:05' and `end` < '2025-01-28 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-28 19:01:18] Production.INFO: count ==3578 [2025-01-28 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:01:05 - End Time 2025-01-28 19:01:05 [2025-01-28 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350982', 'tblTempUsageDetail_20' ) start [2025-01-28 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350982', 'tblTempUsageDetail_20' ) end [2025-01-28 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350982', 'tblTempVendorCDR_20' ) start [2025-01-28 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350982', 'tblTempVendorCDR_20' ) end [2025-01-28 19:01:19] Production.INFO: ProcessCDR(1,14350982,1,1,2) [2025-01-28 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350982', 'tblTempUsageDetail_20' ) start [2025-01-28 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350982', 'tblTempUsageDetail_20' ) end [2025-01-28 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:01:22] Production.INFO: ==3908== Releasing lock... [2025-01-28 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:01:22] Production.INFO: 55.25 MB #Memory Used# [2025-01-28 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:02:05 [end_date_ymd] => 2025-01-28 19:02:05 [RateCDR] => 1 ) [2025-01-28 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:02:05' and `end` < '2025-01-28 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:02:19] Production.INFO: count ==3562 [2025-01-28 19:02:20] Production.ERROR: pbx CDR StartTime 2025-01-28 16:02:05 - End Time 2025-01-28 19:02:05 [2025-01-28 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350987', 'tblTempUsageDetail_20' ) start [2025-01-28 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350987', 'tblTempUsageDetail_20' ) end [2025-01-28 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350987', 'tblTempVendorCDR_20' ) start [2025-01-28 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350987', 'tblTempVendorCDR_20' ) end [2025-01-28 19:02:20] Production.INFO: ProcessCDR(1,14350987,1,1,2) [2025-01-28 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350987', 'tblTempUsageDetail_20' ) start [2025-01-28 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350987', 'tblTempUsageDetail_20' ) end [2025-01-28 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:02:23] Production.INFO: ==4024== Releasing lock... [2025-01-28 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:02:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-28 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:03:05 [end_date_ymd] => 2025-01-28 19:03:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:03:05' and `end` < '2025-01-28 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-28 19:03:18] Production.INFO: count ==3554 [2025-01-28 19:03:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:03:05 - End Time 2025-01-28 19:03:05 [2025-01-28 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350992', 'tblTempUsageDetail_20' ) start [2025-01-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350992', 'tblTempUsageDetail_20' ) end [2025-01-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350992', 'tblTempVendorCDR_20' ) start [2025-01-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350992', 'tblTempVendorCDR_20' ) end [2025-01-28 19:03:19] Production.INFO: ProcessCDR(1,14350992,1,1,2) [2025-01-28 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350992', 'tblTempUsageDetail_20' ) start [2025-01-28 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350992', 'tblTempUsageDetail_20' ) end [2025-01-28 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:03:24] Production.INFO: ==4098== Releasing lock... [2025-01-28 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:03:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-28 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:04:06 [end_date_ymd] => 2025-01-28 19:04:06 [RateCDR] => 1 ) [2025-01-28 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:04:06' and `end` < '2025-01-28 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:04:20] Production.INFO: count ==3532 [2025-01-28 19:04:21] Production.ERROR: pbx CDR StartTime 2025-01-28 16:04:06 - End Time 2025-01-28 19:04:06 [2025-01-28 19:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350997', 'tblTempUsageDetail_20' ) start [2025-01-28 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14350997', 'tblTempUsageDetail_20' ) end [2025-01-28 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350997', 'tblTempVendorCDR_20' ) start [2025-01-28 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14350997', 'tblTempVendorCDR_20' ) end [2025-01-28 19:04:21] Production.INFO: ProcessCDR(1,14350997,1,1,2) [2025-01-28 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14350997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14350997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14350997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14350997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350997', 'tblTempUsageDetail_20' ) start [2025-01-28 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14350997', 'tblTempUsageDetail_20' ) end [2025-01-28 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:04:25] Production.INFO: ==4176== Releasing lock... [2025-01-28 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:04:25] Production.INFO: 54.5 MB #Memory Used# [2025-01-28 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:05:05 [end_date_ymd] => 2025-01-28 19:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:05:05' and `end` < '2025-01-28 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-28 19:05:26] Production.INFO: count ==3515 [2025-01-28 19:05:27] Production.ERROR: pbx CDR StartTime 2025-01-28 16:05:05 - End Time 2025-01-28 19:05:05 [2025-01-28 19:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351002', 'tblTempUsageDetail_20' ) start [2025-01-28 19:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351002', 'tblTempUsageDetail_20' ) end [2025-01-28 19:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351002', 'tblTempVendorCDR_20' ) start [2025-01-28 19:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351002', 'tblTempVendorCDR_20' ) end [2025-01-28 19:05:27] Production.INFO: ProcessCDR(1,14351002,1,1,2) [2025-01-28 19:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351002', 'tblTempUsageDetail_20' ) start [2025-01-28 19:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351002', 'tblTempUsageDetail_20' ) end [2025-01-28 19:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:05:31] Production.INFO: ==4331== Releasing lock... [2025-01-28 19:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:05:31] Production.INFO: 54.25 MB #Memory Used# [2025-01-28 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:06:06 [end_date_ymd] => 2025-01-28 19:06:06 [RateCDR] => 1 ) [2025-01-28 19: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-28 16:06:06' and `end` < '2025-01-28 19: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-28 19:06:19] Production.INFO: count ==3501 [2025-01-28 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-28 16:06:06 - End Time 2025-01-28 19:06:06 [2025-01-28 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351007', 'tblTempUsageDetail_20' ) start [2025-01-28 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351007', 'tblTempUsageDetail_20' ) end [2025-01-28 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351007', 'tblTempVendorCDR_20' ) start [2025-01-28 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351007', 'tblTempVendorCDR_20' ) end [2025-01-28 19:06:20] Production.INFO: ProcessCDR(1,14351007,1,1,2) [2025-01-28 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351007', 'tblTempUsageDetail_20' ) start [2025-01-28 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351007', 'tblTempUsageDetail_20' ) end [2025-01-28 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:06:23] Production.INFO: ==4406== Releasing lock... [2025-01-28 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:06:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-28 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:07:05 [end_date_ymd] => 2025-01-28 19:07:05 [RateCDR] => 1 ) [2025-01-28 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:07:05' and `end` < '2025-01-28 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:07:18] Production.INFO: count ==3464 [2025-01-28 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:07:05 - End Time 2025-01-28 19:07:05 [2025-01-28 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351012', 'tblTempUsageDetail_20' ) start [2025-01-28 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351012', 'tblTempUsageDetail_20' ) end [2025-01-28 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351012', 'tblTempVendorCDR_20' ) start [2025-01-28 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351012', 'tblTempVendorCDR_20' ) end [2025-01-28 19:07:19] Production.INFO: ProcessCDR(1,14351012,1,1,2) [2025-01-28 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351012', 'tblTempUsageDetail_20' ) start [2025-01-28 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351012', 'tblTempUsageDetail_20' ) end [2025-01-28 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:07:23] Production.INFO: ==4483== Releasing lock... [2025-01-28 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:07:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-28 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:08:06 [end_date_ymd] => 2025-01-28 19:08:06 [RateCDR] => 1 ) [2025-01-28 19: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-28 16:08:06' and `end` < '2025-01-28 19: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-28 19:08:19] Production.INFO: count ==3458 [2025-01-28 19:08:20] Production.ERROR: pbx CDR StartTime 2025-01-28 16:08:06 - End Time 2025-01-28 19:08:06 [2025-01-28 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351017', 'tblTempUsageDetail_20' ) start [2025-01-28 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351017', 'tblTempUsageDetail_20' ) end [2025-01-28 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351017', 'tblTempVendorCDR_20' ) start [2025-01-28 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351017', 'tblTempVendorCDR_20' ) end [2025-01-28 19:08:20] Production.INFO: ProcessCDR(1,14351017,1,1,2) [2025-01-28 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351017', 'tblTempUsageDetail_20' ) start [2025-01-28 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351017', 'tblTempUsageDetail_20' ) end [2025-01-28 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:08:25] Production.INFO: ==4652== Releasing lock... [2025-01-28 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:08:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-28 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:09:05 [end_date_ymd] => 2025-01-28 19:09:05 [RateCDR] => 1 ) [2025-01-28 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:09:05' and `end` < '2025-01-28 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:09:20] Production.INFO: count ==3453 [2025-01-28 19:09:21] Production.ERROR: pbx CDR StartTime 2025-01-28 16:09:05 - End Time 2025-01-28 19:09:05 [2025-01-28 19:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351022', 'tblTempUsageDetail_20' ) start [2025-01-28 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351022', 'tblTempUsageDetail_20' ) end [2025-01-28 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351022', 'tblTempVendorCDR_20' ) start [2025-01-28 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351022', 'tblTempVendorCDR_20' ) end [2025-01-28 19:09:21] Production.INFO: ProcessCDR(1,14351022,1,1,2) [2025-01-28 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351022', 'tblTempUsageDetail_20' ) start [2025-01-28 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351022', 'tblTempUsageDetail_20' ) end [2025-01-28 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:09:24] Production.INFO: ==4724== Releasing lock... [2025-01-28 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:09:24] Production.INFO: 54 MB #Memory Used# [2025-01-28 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:10:06 [end_date_ymd] => 2025-01-28 19:10:06 [RateCDR] => 1 ) [2025-01-28 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:10:06' and `end` < '2025-01-28 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:10:19] Production.INFO: count ==3433 [2025-01-28 19:10:20] Production.ERROR: pbx CDR StartTime 2025-01-28 16:10:06 - End Time 2025-01-28 19:10:06 [2025-01-28 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351027', 'tblTempUsageDetail_20' ) start [2025-01-28 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351027', 'tblTempUsageDetail_20' ) end [2025-01-28 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351027', 'tblTempVendorCDR_20' ) start [2025-01-28 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351027', 'tblTempVendorCDR_20' ) end [2025-01-28 19:10:20] Production.INFO: ProcessCDR(1,14351027,1,1,2) [2025-01-28 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351027', 'tblTempUsageDetail_20' ) start [2025-01-28 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351027', 'tblTempUsageDetail_20' ) end [2025-01-28 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:10:23] Production.INFO: ==4801== Releasing lock... [2025-01-28 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:10:23] Production.INFO: 53.5 MB #Memory Used# [2025-01-28 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:11:05 [end_date_ymd] => 2025-01-28 19:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:11:05' and `end` < '2025-01-28 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-28 19:11:18] Production.INFO: count ==3307 [2025-01-28 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:11:05 - End Time 2025-01-28 19:11:05 [2025-01-28 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351033', 'tblTempUsageDetail_20' ) start [2025-01-28 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351033', 'tblTempUsageDetail_20' ) end [2025-01-28 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351033', 'tblTempVendorCDR_20' ) start [2025-01-28 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351033', 'tblTempVendorCDR_20' ) end [2025-01-28 19:11:19] Production.INFO: ProcessCDR(1,14351033,1,1,2) [2025-01-28 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351033', 'tblTempUsageDetail_20' ) start [2025-01-28 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351033', 'tblTempUsageDetail_20' ) end [2025-01-28 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:11:23] Production.INFO: ==4881== Releasing lock... [2025-01-28 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:11:23] Production.INFO: 53 MB #Memory Used# [2025-01-28 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:12:05 [end_date_ymd] => 2025-01-28 19:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:12:05' and `end` < '2025-01-28 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-28 19:12:19] Production.INFO: count ==3299 [2025-01-28 19:12:20] Production.ERROR: pbx CDR StartTime 2025-01-28 16:12:05 - End Time 2025-01-28 19:12:05 [2025-01-28 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351038', 'tblTempUsageDetail_20' ) start [2025-01-28 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351038', 'tblTempUsageDetail_20' ) end [2025-01-28 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351038', 'tblTempVendorCDR_20' ) start [2025-01-28 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351038', 'tblTempVendorCDR_20' ) end [2025-01-28 19:12:20] Production.INFO: ProcessCDR(1,14351038,1,1,2) [2025-01-28 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351038', 'tblTempUsageDetail_20' ) start [2025-01-28 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351038', 'tblTempUsageDetail_20' ) end [2025-01-28 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:12:24] Production.INFO: ==5035== Releasing lock... [2025-01-28 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:12:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-28 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:13:05 [end_date_ymd] => 2025-01-28 19:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:13:05' and `end` < '2025-01-28 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-28 19:13:18] Production.INFO: count ==3292 [2025-01-28 19:13:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:13:05 - End Time 2025-01-28 19:13:05 [2025-01-28 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351043', 'tblTempUsageDetail_20' ) start [2025-01-28 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351043', 'tblTempUsageDetail_20' ) end [2025-01-28 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351043', 'tblTempVendorCDR_20' ) start [2025-01-28 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351043', 'tblTempVendorCDR_20' ) end [2025-01-28 19:13:19] Production.INFO: ProcessCDR(1,14351043,1,1,2) [2025-01-28 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351043', 'tblTempUsageDetail_20' ) start [2025-01-28 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351043', 'tblTempUsageDetail_20' ) end [2025-01-28 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:13:22] Production.INFO: ==5108== Releasing lock... [2025-01-28 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:13:22] Production.INFO: 53 MB #Memory Used# [2025-01-28 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:14:05 [end_date_ymd] => 2025-01-28 19:14:05 [RateCDR] => 1 ) [2025-01-28 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:14:05' and `end` < '2025-01-28 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:14:18] Production.INFO: count ==3285 [2025-01-28 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:14:05 - End Time 2025-01-28 19:14:05 [2025-01-28 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351048', 'tblTempUsageDetail_20' ) start [2025-01-28 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351048', 'tblTempUsageDetail_20' ) end [2025-01-28 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351048', 'tblTempVendorCDR_20' ) start [2025-01-28 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351048', 'tblTempVendorCDR_20' ) end [2025-01-28 19:14:19] Production.INFO: ProcessCDR(1,14351048,1,1,2) [2025-01-28 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351048', 'tblTempUsageDetail_20' ) start [2025-01-28 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351048', 'tblTempUsageDetail_20' ) end [2025-01-28 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:14:22] Production.INFO: ==5183== Releasing lock... [2025-01-28 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:14:22] Production.INFO: 53.5 MB #Memory Used# [2025-01-28 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:15:06 [end_date_ymd] => 2025-01-28 19:15:06 [RateCDR] => 1 ) [2025-01-28 19: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-28 16:15:06' and `end` < '2025-01-28 19: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-28 19:15:19] Production.INFO: count ==3270 [2025-01-28 19:15:20] Production.ERROR: pbx CDR StartTime 2025-01-28 16:15:06 - End Time 2025-01-28 19:15:06 [2025-01-28 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351053', 'tblTempUsageDetail_20' ) start [2025-01-28 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351053', 'tblTempUsageDetail_20' ) end [2025-01-28 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351053', 'tblTempVendorCDR_20' ) start [2025-01-28 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351053', 'tblTempVendorCDR_20' ) end [2025-01-28 19:15:20] Production.INFO: ProcessCDR(1,14351053,1,1,2) [2025-01-28 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351053', 'tblTempUsageDetail_20' ) start [2025-01-28 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351053', 'tblTempUsageDetail_20' ) end [2025-01-28 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:15:24] Production.INFO: ==5338== Releasing lock... [2025-01-28 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:15:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-28 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:16:05 [end_date_ymd] => 2025-01-28 19:16:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:16:05' and `end` < '2025-01-28 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-28 19:16:18] Production.INFO: count ==3259 [2025-01-28 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:16:05 - End Time 2025-01-28 19:16:05 [2025-01-28 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351058', 'tblTempUsageDetail_20' ) start [2025-01-28 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351058', 'tblTempUsageDetail_20' ) end [2025-01-28 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351058', 'tblTempVendorCDR_20' ) start [2025-01-28 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351058', 'tblTempVendorCDR_20' ) end [2025-01-28 19:16:19] Production.INFO: ProcessCDR(1,14351058,1,1,2) [2025-01-28 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351058', 'tblTempUsageDetail_20' ) start [2025-01-28 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351058', 'tblTempUsageDetail_20' ) end [2025-01-28 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:16:22] Production.INFO: ==5413== Releasing lock... [2025-01-28 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:16:22] Production.INFO: 52.25 MB #Memory Used# [2025-01-28 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:17:05 [end_date_ymd] => 2025-01-28 19:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:17:05' and `end` < '2025-01-28 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-28 19:17:18] Production.INFO: count ==3233 [2025-01-28 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:17:05 - End Time 2025-01-28 19:17:05 [2025-01-28 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351063', 'tblTempUsageDetail_20' ) start [2025-01-28 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351063', 'tblTempUsageDetail_20' ) end [2025-01-28 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351063', 'tblTempVendorCDR_20' ) start [2025-01-28 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351063', 'tblTempVendorCDR_20' ) end [2025-01-28 19:17:19] Production.INFO: ProcessCDR(1,14351063,1,1,2) [2025-01-28 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351063', 'tblTempUsageDetail_20' ) start [2025-01-28 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351063', 'tblTempUsageDetail_20' ) end [2025-01-28 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:17:22] Production.INFO: ==5489== Releasing lock... [2025-01-28 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:17:22] Production.INFO: 52 MB #Memory Used# [2025-01-28 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:18:05 [end_date_ymd] => 2025-01-28 19:18:05 [RateCDR] => 1 ) [2025-01-28 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:18:05' and `end` < '2025-01-28 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:18:19] Production.INFO: count ==3222 [2025-01-28 19:18:20] Production.ERROR: pbx CDR StartTime 2025-01-28 16:18:05 - End Time 2025-01-28 19:18:05 [2025-01-28 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351068', 'tblTempUsageDetail_20' ) start [2025-01-28 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351068', 'tblTempUsageDetail_20' ) end [2025-01-28 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351068', 'tblTempVendorCDR_20' ) start [2025-01-28 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351068', 'tblTempVendorCDR_20' ) end [2025-01-28 19:18:20] Production.INFO: ProcessCDR(1,14351068,1,1,2) [2025-01-28 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351068', 'tblTempUsageDetail_20' ) start [2025-01-28 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351068', 'tblTempUsageDetail_20' ) end [2025-01-28 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:18:25] Production.INFO: ==5605== Releasing lock... [2025-01-28 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:18:25] Production.INFO: 52 MB #Memory Used# [2025-01-28 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:19:05 [end_date_ymd] => 2025-01-28 19:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:19:05' and `end` < '2025-01-28 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-28 19:19:18] Production.INFO: count ==3202 [2025-01-28 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:19:05 - End Time 2025-01-28 19:19:05 [2025-01-28 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351073', 'tblTempUsageDetail_20' ) start [2025-01-28 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351073', 'tblTempUsageDetail_20' ) end [2025-01-28 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351073', 'tblTempVendorCDR_20' ) start [2025-01-28 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351073', 'tblTempVendorCDR_20' ) end [2025-01-28 19:19:19] Production.INFO: ProcessCDR(1,14351073,1,1,2) [2025-01-28 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351073', 'tblTempUsageDetail_20' ) start [2025-01-28 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351073', 'tblTempUsageDetail_20' ) end [2025-01-28 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:19:24] Production.INFO: ==5676== Releasing lock... [2025-01-28 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:19:24] Production.INFO: 52.75 MB #Memory Used# [2025-01-28 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:20:06 [end_date_ymd] => 2025-01-28 19:20:06 [RateCDR] => 1 ) [2025-01-28 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-28 16:20:06' and `end` < '2025-01-28 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-28 19:20:19] Production.INFO: count ==3177 [2025-01-28 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-28 16:20:06 - End Time 2025-01-28 19:20:06 [2025-01-28 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351079', 'tblTempUsageDetail_20' ) start [2025-01-28 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351079', 'tblTempUsageDetail_20' ) end [2025-01-28 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351079', 'tblTempVendorCDR_20' ) start [2025-01-28 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351079', 'tblTempVendorCDR_20' ) end [2025-01-28 19:20:20] Production.INFO: ProcessCDR(1,14351079,1,1,2) [2025-01-28 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351079', 'tblTempUsageDetail_20' ) start [2025-01-28 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351079', 'tblTempUsageDetail_20' ) end [2025-01-28 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:20:24] Production.INFO: ==5755== Releasing lock... [2025-01-28 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:20:24] Production.INFO: 52 MB #Memory Used# [2025-01-28 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:21:05 [end_date_ymd] => 2025-01-28 19:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:21:05' and `end` < '2025-01-28 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-28 19:21:18] Production.INFO: count ==3071 [2025-01-28 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:21:05 - End Time 2025-01-28 19:21:05 [2025-01-28 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351084', 'tblTempUsageDetail_20' ) start [2025-01-28 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351084', 'tblTempUsageDetail_20' ) end [2025-01-28 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351084', 'tblTempVendorCDR_20' ) start [2025-01-28 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351084', 'tblTempVendorCDR_20' ) end [2025-01-28 19:21:19] Production.INFO: ProcessCDR(1,14351084,1,1,2) [2025-01-28 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351084', 'tblTempUsageDetail_20' ) start [2025-01-28 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351084', 'tblTempUsageDetail_20' ) end [2025-01-28 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:21:23] Production.INFO: ==5831== Releasing lock... [2025-01-28 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:21:23] Production.INFO: 51 MB #Memory Used# [2025-01-28 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:22:05 [end_date_ymd] => 2025-01-28 19:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:22:05' and `end` < '2025-01-28 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-28 19:22:18] Production.INFO: count ==3056 [2025-01-28 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:22:05 - End Time 2025-01-28 19:22:05 [2025-01-28 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351089', 'tblTempUsageDetail_20' ) start [2025-01-28 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351089', 'tblTempUsageDetail_20' ) end [2025-01-28 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351089', 'tblTempVendorCDR_20' ) start [2025-01-28 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351089', 'tblTempVendorCDR_20' ) end [2025-01-28 19:22:19] Production.INFO: ProcessCDR(1,14351089,1,1,2) [2025-01-28 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351089', 'tblTempUsageDetail_20' ) start [2025-01-28 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351089', 'tblTempUsageDetail_20' ) end [2025-01-28 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:22:22] Production.INFO: ==5912== Releasing lock... [2025-01-28 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:22:22] Production.INFO: 50.75 MB #Memory Used# [2025-01-28 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:23:05 [end_date_ymd] => 2025-01-28 19:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:23:05' and `end` < '2025-01-28 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-28 19:23:18] Production.INFO: count ==3049 [2025-01-28 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:23:05 - End Time 2025-01-28 19:23:05 [2025-01-28 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351094', 'tblTempUsageDetail_20' ) start [2025-01-28 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351094', 'tblTempUsageDetail_20' ) end [2025-01-28 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351094', 'tblTempVendorCDR_20' ) start [2025-01-28 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351094', 'tblTempVendorCDR_20' ) end [2025-01-28 19:23:19] Production.INFO: ProcessCDR(1,14351094,1,1,2) [2025-01-28 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351094', 'tblTempUsageDetail_20' ) start [2025-01-28 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351094', 'tblTempUsageDetail_20' ) end [2025-01-28 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:23:24] Production.INFO: ==5990== Releasing lock... [2025-01-28 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:23:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-28 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:24:05 [end_date_ymd] => 2025-01-28 19:24:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:24:05' and `end` < '2025-01-28 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-28 19:24:18] Production.INFO: count ==3037 [2025-01-28 19:24:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:24:05 - End Time 2025-01-28 19:24:05 [2025-01-28 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351099', 'tblTempUsageDetail_20' ) start [2025-01-28 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351099', 'tblTempUsageDetail_20' ) end [2025-01-28 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351099', 'tblTempVendorCDR_20' ) start [2025-01-28 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351099', 'tblTempVendorCDR_20' ) end [2025-01-28 19:24:19] Production.INFO: ProcessCDR(1,14351099,1,1,2) [2025-01-28 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351099', 'tblTempUsageDetail_20' ) start [2025-01-28 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351099', 'tblTempUsageDetail_20' ) end [2025-01-28 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:24:23] Production.INFO: ==6063== Releasing lock... [2025-01-28 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:24:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-28 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:25:05 [end_date_ymd] => 2025-01-28 19:25:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:25:05' and `end` < '2025-01-28 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-28 19:25:18] Production.INFO: count ==3027 [2025-01-28 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:25:05 - End Time 2025-01-28 19:25:05 [2025-01-28 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351104', 'tblTempUsageDetail_20' ) start [2025-01-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351104', 'tblTempUsageDetail_20' ) end [2025-01-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351104', 'tblTempVendorCDR_20' ) start [2025-01-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351104', 'tblTempVendorCDR_20' ) end [2025-01-28 19:25:19] Production.INFO: ProcessCDR(1,14351104,1,1,2) [2025-01-28 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351104', 'tblTempUsageDetail_20' ) start [2025-01-28 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351104', 'tblTempUsageDetail_20' ) end [2025-01-28 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:25:24] Production.INFO: ==6137== Releasing lock... [2025-01-28 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:25:24] Production.INFO: 50.5 MB #Memory Used# [2025-01-28 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:26:05 [end_date_ymd] => 2025-01-28 19:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:26:05' and `end` < '2025-01-28 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-28 19:26:19] Production.INFO: count ==2999 [2025-01-28 19:26:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:26:05 - End Time 2025-01-28 19:26:05 [2025-01-28 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351109', 'tblTempUsageDetail_20' ) start [2025-01-28 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351109', 'tblTempUsageDetail_20' ) end [2025-01-28 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351109', 'tblTempVendorCDR_20' ) start [2025-01-28 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351109', 'tblTempVendorCDR_20' ) end [2025-01-28 19:26:20] Production.INFO: ProcessCDR(1,14351109,1,1,2) [2025-01-28 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351109', 'tblTempUsageDetail_20' ) start [2025-01-28 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351109', 'tblTempUsageDetail_20' ) end [2025-01-28 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:26:23] Production.INFO: ==6213== Releasing lock... [2025-01-28 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:26:23] Production.INFO: 50.25 MB #Memory Used# [2025-01-28 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:27:05 [end_date_ymd] => 2025-01-28 19:27:05 [RateCDR] => 1 ) [2025-01-28 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:27:05' and `end` < '2025-01-28 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:27:18] Production.INFO: count ==2987 [2025-01-28 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:27:05 - End Time 2025-01-28 19:27:05 [2025-01-28 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351114', 'tblTempUsageDetail_20' ) start [2025-01-28 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351114', 'tblTempUsageDetail_20' ) end [2025-01-28 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351114', 'tblTempVendorCDR_20' ) start [2025-01-28 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351114', 'tblTempVendorCDR_20' ) end [2025-01-28 19:27:19] Production.INFO: ProcessCDR(1,14351114,1,1,2) [2025-01-28 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351114', 'tblTempUsageDetail_20' ) start [2025-01-28 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351114', 'tblTempUsageDetail_20' ) end [2025-01-28 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:27:23] Production.INFO: ==6289== Releasing lock... [2025-01-28 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:27:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-28 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:28:05 [end_date_ymd] => 2025-01-28 19:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:28:05' and `end` < '2025-01-28 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-28 19:28:18] Production.INFO: count ==2982 [2025-01-28 19:28:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:28:05 - End Time 2025-01-28 19:28:05 [2025-01-28 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351119', 'tblTempUsageDetail_20' ) start [2025-01-28 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351119', 'tblTempUsageDetail_20' ) end [2025-01-28 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351119', 'tblTempVendorCDR_20' ) start [2025-01-28 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351119', 'tblTempVendorCDR_20' ) end [2025-01-28 19:28:19] Production.INFO: ProcessCDR(1,14351119,1,1,2) [2025-01-28 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351119', 'tblTempUsageDetail_20' ) start [2025-01-28 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351119', 'tblTempUsageDetail_20' ) end [2025-01-28 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:28:23] Production.INFO: ==6370== Releasing lock... [2025-01-28 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:28:23] Production.INFO: 50.25 MB #Memory Used# [2025-01-28 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:29:05 [end_date_ymd] => 2025-01-28 19:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:29:05' and `end` < '2025-01-28 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-28 19:29:18] Production.INFO: count ==2965 [2025-01-28 19:29:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:29:05 - End Time 2025-01-28 19:29:05 [2025-01-28 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351124', 'tblTempUsageDetail_20' ) start [2025-01-28 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351124', 'tblTempUsageDetail_20' ) end [2025-01-28 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351124', 'tblTempVendorCDR_20' ) start [2025-01-28 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351124', 'tblTempVendorCDR_20' ) end [2025-01-28 19:29:19] Production.INFO: ProcessCDR(1,14351124,1,1,2) [2025-01-28 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351124', 'tblTempUsageDetail_20' ) start [2025-01-28 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351124', 'tblTempUsageDetail_20' ) end [2025-01-28 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:29:22] Production.INFO: ==6443== Releasing lock... [2025-01-28 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:29:22] Production.INFO: 50 MB #Memory Used# [2025-01-28 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:30:06 [end_date_ymd] => 2025-01-28 19:30:06 [RateCDR] => 1 ) [2025-01-28 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:30:06' and `end` < '2025-01-28 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:30:19] Production.INFO: count ==2945 [2025-01-28 19:30:20] Production.ERROR: pbx CDR StartTime 2025-01-28 16:30:06 - End Time 2025-01-28 19:30:06 [2025-01-28 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351130', 'tblTempUsageDetail_20' ) start [2025-01-28 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351130', 'tblTempUsageDetail_20' ) end [2025-01-28 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351130', 'tblTempVendorCDR_20' ) start [2025-01-28 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351130', 'tblTempVendorCDR_20' ) end [2025-01-28 19:30:20] Production.INFO: ProcessCDR(1,14351130,1,1,2) [2025-01-28 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351130', 'tblTempUsageDetail_20' ) start [2025-01-28 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351130', 'tblTempUsageDetail_20' ) end [2025-01-28 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:30:24] Production.INFO: ==6521== Releasing lock... [2025-01-28 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:30:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-28 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:31:05 [end_date_ymd] => 2025-01-28 19:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:31:05' and `end` < '2025-01-28 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-28 19:31:18] Production.INFO: count ==2832 [2025-01-28 19:31:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:31:05 - End Time 2025-01-28 19:31:05 [2025-01-28 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351135', 'tblTempUsageDetail_20' ) start [2025-01-28 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351135', 'tblTempUsageDetail_20' ) end [2025-01-28 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351135', 'tblTempVendorCDR_20' ) start [2025-01-28 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351135', 'tblTempVendorCDR_20' ) end [2025-01-28 19:31:19] Production.INFO: ProcessCDR(1,14351135,1,1,2) [2025-01-28 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351135', 'tblTempUsageDetail_20' ) start [2025-01-28 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351135', 'tblTempUsageDetail_20' ) end [2025-01-28 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:31:24] Production.INFO: ==6595== Releasing lock... [2025-01-28 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:31:24] Production.INFO: 49.25 MB #Memory Used# [2025-01-28 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:32:05 [end_date_ymd] => 2025-01-28 19:32:05 [RateCDR] => 1 ) [2025-01-28 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:32:05' and `end` < '2025-01-28 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:32:18] Production.INFO: count ==2827 [2025-01-28 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:32:05 - End Time 2025-01-28 19:32:05 [2025-01-28 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351140', 'tblTempUsageDetail_20' ) start [2025-01-28 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351140', 'tblTempUsageDetail_20' ) end [2025-01-28 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351140', 'tblTempVendorCDR_20' ) start [2025-01-28 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351140', 'tblTempVendorCDR_20' ) end [2025-01-28 19:32:19] Production.INFO: ProcessCDR(1,14351140,1,1,2) [2025-01-28 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351140', 'tblTempUsageDetail_20' ) start [2025-01-28 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351140', 'tblTempUsageDetail_20' ) end [2025-01-28 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:32:22] Production.INFO: ==6665== Releasing lock... [2025-01-28 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:32:22] Production.INFO: 49 MB #Memory Used# [2025-01-28 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:33:05 [end_date_ymd] => 2025-01-28 19:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:33:05' and `end` < '2025-01-28 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-28 19:33:18] Production.INFO: count ==2788 [2025-01-28 19:33:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:33:05 - End Time 2025-01-28 19:33:05 [2025-01-28 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351145', 'tblTempUsageDetail_20' ) start [2025-01-28 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351145', 'tblTempUsageDetail_20' ) end [2025-01-28 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351145', 'tblTempVendorCDR_20' ) start [2025-01-28 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351145', 'tblTempVendorCDR_20' ) end [2025-01-28 19:33:19] Production.INFO: ProcessCDR(1,14351145,1,1,2) [2025-01-28 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351145', 'tblTempUsageDetail_20' ) start [2025-01-28 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351145', 'tblTempUsageDetail_20' ) end [2025-01-28 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:33:22] Production.INFO: ==6773== Releasing lock... [2025-01-28 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:33:22] Production.INFO: 49 MB #Memory Used# [2025-01-28 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:34:05 [end_date_ymd] => 2025-01-28 19:34:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:34:05' and `end` < '2025-01-28 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-28 19:34:18] Production.INFO: count ==2748 [2025-01-28 19:34:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:34:05 - End Time 2025-01-28 19:34:05 [2025-01-28 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351150', 'tblTempUsageDetail_20' ) start [2025-01-28 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351150', 'tblTempUsageDetail_20' ) end [2025-01-28 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351150', 'tblTempVendorCDR_20' ) start [2025-01-28 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351150', 'tblTempVendorCDR_20' ) end [2025-01-28 19:34:19] Production.INFO: ProcessCDR(1,14351150,1,1,2) [2025-01-28 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351150', 'tblTempUsageDetail_20' ) start [2025-01-28 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351150', 'tblTempUsageDetail_20' ) end [2025-01-28 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:34:23] Production.INFO: ==6844== Releasing lock... [2025-01-28 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:34:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-28 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:35:05 [end_date_ymd] => 2025-01-28 19:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:35:05' and `end` < '2025-01-28 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-28 19:35:18] Production.INFO: count ==2725 [2025-01-28 19:35:18] Production.ERROR: pbx CDR StartTime 2025-01-28 16:35:05 - End Time 2025-01-28 19:35:05 [2025-01-28 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351155', 'tblTempUsageDetail_20' ) start [2025-01-28 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351155', 'tblTempUsageDetail_20' ) end [2025-01-28 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351155', 'tblTempVendorCDR_20' ) start [2025-01-28 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351155', 'tblTempVendorCDR_20' ) end [2025-01-28 19:35:19] Production.INFO: ProcessCDR(1,14351155,1,1,2) [2025-01-28 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351155', 'tblTempUsageDetail_20' ) start [2025-01-28 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351155', 'tblTempUsageDetail_20' ) end [2025-01-28 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:35:22] Production.INFO: ==6915== Releasing lock... [2025-01-28 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:35:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-28 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:36:05 [end_date_ymd] => 2025-01-28 19:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:36:05' and `end` < '2025-01-28 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-28 19:36:18] Production.INFO: count ==2725 [2025-01-28 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:36:05 - End Time 2025-01-28 19:36:05 [2025-01-28 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351160', 'tblTempUsageDetail_20' ) start [2025-01-28 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351160', 'tblTempUsageDetail_20' ) end [2025-01-28 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351160', 'tblTempVendorCDR_20' ) start [2025-01-28 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351160', 'tblTempVendorCDR_20' ) end [2025-01-28 19:36:19] Production.INFO: ProcessCDR(1,14351160,1,1,2) [2025-01-28 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351160', 'tblTempUsageDetail_20' ) start [2025-01-28 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351160', 'tblTempUsageDetail_20' ) end [2025-01-28 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:36:22] Production.INFO: ==6992== Releasing lock... [2025-01-28 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:36:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-28 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:37:05 [end_date_ymd] => 2025-01-28 19:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:37:05' and `end` < '2025-01-28 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-28 19:37:18] Production.INFO: count ==2725 [2025-01-28 19:37:18] Production.ERROR: pbx CDR StartTime 2025-01-28 16:37:05 - End Time 2025-01-28 19:37:05 [2025-01-28 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351165', 'tblTempUsageDetail_20' ) start [2025-01-28 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351165', 'tblTempUsageDetail_20' ) end [2025-01-28 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351165', 'tblTempVendorCDR_20' ) start [2025-01-28 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351165', 'tblTempVendorCDR_20' ) end [2025-01-28 19:37:18] Production.INFO: ProcessCDR(1,14351165,1,1,2) [2025-01-28 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351165', 'tblTempUsageDetail_20' ) start [2025-01-28 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351165', 'tblTempUsageDetail_20' ) end [2025-01-28 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:37:22] Production.INFO: ==7065== Releasing lock... [2025-01-28 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:37:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-28 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:38:05 [end_date_ymd] => 2025-01-28 19:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:38:05' and `end` < '2025-01-28 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-28 19:38:18] Production.INFO: count ==2711 [2025-01-28 19:38:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:38:05 - End Time 2025-01-28 19:38:05 [2025-01-28 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351170', 'tblTempUsageDetail_20' ) start [2025-01-28 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351170', 'tblTempUsageDetail_20' ) end [2025-01-28 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351170', 'tblTempVendorCDR_20' ) start [2025-01-28 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351170', 'tblTempVendorCDR_20' ) end [2025-01-28 19:38:19] Production.INFO: ProcessCDR(1,14351170,1,1,2) [2025-01-28 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351170', 'tblTempUsageDetail_20' ) start [2025-01-28 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351170', 'tblTempUsageDetail_20' ) end [2025-01-28 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:38:24] Production.INFO: ==7136== Releasing lock... [2025-01-28 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:38:24] Production.INFO: 48.5 MB #Memory Used# [2025-01-28 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:39:05 [end_date_ymd] => 2025-01-28 19:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:39:05' and `end` < '2025-01-28 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-28 19:39:19] Production.INFO: count ==2699 [2025-01-28 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:39:05 - End Time 2025-01-28 19:39:05 [2025-01-28 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351175', 'tblTempUsageDetail_20' ) start [2025-01-28 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351175', 'tblTempUsageDetail_20' ) end [2025-01-28 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351175', 'tblTempVendorCDR_20' ) start [2025-01-28 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351175', 'tblTempVendorCDR_20' ) end [2025-01-28 19:39:19] Production.INFO: ProcessCDR(1,14351175,1,1,2) [2025-01-28 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351175', 'tblTempUsageDetail_20' ) start [2025-01-28 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351175', 'tblTempUsageDetail_20' ) end [2025-01-28 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:39:24] Production.INFO: ==7209== Releasing lock... [2025-01-28 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:39:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-28 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:40:05 [end_date_ymd] => 2025-01-28 19:40:05 [RateCDR] => 1 ) [2025-01-28 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:40:05' and `end` < '2025-01-28 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:40:18] Production.INFO: count ==2677 [2025-01-28 19:40:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:40:05 - End Time 2025-01-28 19:40:05 [2025-01-28 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351180', 'tblTempUsageDetail_20' ) start [2025-01-28 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351180', 'tblTempUsageDetail_20' ) end [2025-01-28 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351180', 'tblTempVendorCDR_20' ) start [2025-01-28 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351180', 'tblTempVendorCDR_20' ) end [2025-01-28 19:40:19] Production.INFO: ProcessCDR(1,14351180,1,1,2) [2025-01-28 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351180', 'tblTempUsageDetail_20' ) start [2025-01-28 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351180', 'tblTempUsageDetail_20' ) end [2025-01-28 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:40:24] Production.INFO: ==7282== Releasing lock... [2025-01-28 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:40:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-28 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:41:05 [end_date_ymd] => 2025-01-28 19:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:41:05' and `end` < '2025-01-28 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-28 19:41:19] Production.INFO: count ==2513 [2025-01-28 19:41:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:41:05 - End Time 2025-01-28 19:41:05 [2025-01-28 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351186', 'tblTempUsageDetail_20' ) start [2025-01-28 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351186', 'tblTempUsageDetail_20' ) end [2025-01-28 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351186', 'tblTempVendorCDR_20' ) start [2025-01-28 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351186', 'tblTempVendorCDR_20' ) end [2025-01-28 19:41:19] Production.INFO: ProcessCDR(1,14351186,1,1,2) [2025-01-28 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351186', 'tblTempUsageDetail_20' ) start [2025-01-28 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351186', 'tblTempUsageDetail_20' ) end [2025-01-28 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:41:22] Production.INFO: ==7360== Releasing lock... [2025-01-28 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:41:22] Production.INFO: 47 MB #Memory Used# [2025-01-28 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:42:05 [end_date_ymd] => 2025-01-28 19:42:05 [RateCDR] => 1 ) [2025-01-28 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:42:05' and `end` < '2025-01-28 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:42:18] Production.INFO: count ==2510 [2025-01-28 19:42:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:42:05 - End Time 2025-01-28 19:42:05 [2025-01-28 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351191', 'tblTempUsageDetail_20' ) start [2025-01-28 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351191', 'tblTempUsageDetail_20' ) end [2025-01-28 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351191', 'tblTempVendorCDR_20' ) start [2025-01-28 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351191', 'tblTempVendorCDR_20' ) end [2025-01-28 19:42:19] Production.INFO: ProcessCDR(1,14351191,1,1,2) [2025-01-28 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351191', 'tblTempUsageDetail_20' ) start [2025-01-28 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351191', 'tblTempUsageDetail_20' ) end [2025-01-28 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:42:24] Production.INFO: ==7435== Releasing lock... [2025-01-28 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:42:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-28 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:43:05 [end_date_ymd] => 2025-01-28 19:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:43:05' and `end` < '2025-01-28 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-28 19:43:19] Production.INFO: count ==2494 [2025-01-28 19:43:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:43:05 - End Time 2025-01-28 19:43:05 [2025-01-28 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351196', 'tblTempUsageDetail_20' ) start [2025-01-28 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351196', 'tblTempUsageDetail_20' ) end [2025-01-28 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351196', 'tblTempVendorCDR_20' ) start [2025-01-28 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351196', 'tblTempVendorCDR_20' ) end [2025-01-28 19:43:19] Production.INFO: ProcessCDR(1,14351196,1,1,2) [2025-01-28 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351196', 'tblTempUsageDetail_20' ) start [2025-01-28 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351196', 'tblTempUsageDetail_20' ) end [2025-01-28 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:43:24] Production.INFO: ==7513== Releasing lock... [2025-01-28 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:43:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-28 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:44:05 [end_date_ymd] => 2025-01-28 19:44:05 [RateCDR] => 1 ) [2025-01-28 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:44:05' and `end` < '2025-01-28 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:44:18] Production.INFO: count ==2479 [2025-01-28 19:44:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:44:05 - End Time 2025-01-28 19:44:05 [2025-01-28 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351201', 'tblTempUsageDetail_20' ) start [2025-01-28 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351201', 'tblTempUsageDetail_20' ) end [2025-01-28 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351201', 'tblTempVendorCDR_20' ) start [2025-01-28 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351201', 'tblTempVendorCDR_20' ) end [2025-01-28 19:44:19] Production.INFO: ProcessCDR(1,14351201,1,1,2) [2025-01-28 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351201', 'tblTempUsageDetail_20' ) start [2025-01-28 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351201', 'tblTempUsageDetail_20' ) end [2025-01-28 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:44:22] Production.INFO: ==7590== Releasing lock... [2025-01-28 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:44:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-28 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:45:05 [end_date_ymd] => 2025-01-28 19:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:45:05' and `end` < '2025-01-28 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-28 19:45:18] Production.INFO: count ==2470 [2025-01-28 19:45:18] Production.ERROR: pbx CDR StartTime 2025-01-28 16:45:05 - End Time 2025-01-28 19:45:05 [2025-01-28 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351206', 'tblTempUsageDetail_20' ) start [2025-01-28 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351206', 'tblTempUsageDetail_20' ) end [2025-01-28 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351206', 'tblTempVendorCDR_20' ) start [2025-01-28 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351206', 'tblTempVendorCDR_20' ) end [2025-01-28 19:45:19] Production.INFO: ProcessCDR(1,14351206,1,1,2) [2025-01-28 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351206', 'tblTempUsageDetail_20' ) start [2025-01-28 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351206', 'tblTempUsageDetail_20' ) end [2025-01-28 19:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:45:22] Production.INFO: ==7669== Releasing lock... [2025-01-28 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:45:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-28 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:46:05 [end_date_ymd] => 2025-01-28 19:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:46:05' and `end` < '2025-01-28 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-28 19:46:18] Production.INFO: count ==2467 [2025-01-28 19:46:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:46:05 - End Time 2025-01-28 19:46:05 [2025-01-28 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351211', 'tblTempUsageDetail_20' ) start [2025-01-28 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351211', 'tblTempUsageDetail_20' ) end [2025-01-28 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351211', 'tblTempVendorCDR_20' ) start [2025-01-28 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351211', 'tblTempVendorCDR_20' ) end [2025-01-28 19:46:19] Production.INFO: ProcessCDR(1,14351211,1,1,2) [2025-01-28 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351211', 'tblTempUsageDetail_20' ) start [2025-01-28 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351211', 'tblTempUsageDetail_20' ) end [2025-01-28 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:46:22] Production.INFO: ==7745== Releasing lock... [2025-01-28 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:46:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-28 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:47:05 [end_date_ymd] => 2025-01-28 19:47:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:47:05' and `end` < '2025-01-28 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-28 19:47:18] Production.INFO: count ==2458 [2025-01-28 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-28 16:47:05 - End Time 2025-01-28 19:47:05 [2025-01-28 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351216', 'tblTempUsageDetail_20' ) start [2025-01-28 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351216', 'tblTempUsageDetail_20' ) end [2025-01-28 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351216', 'tblTempVendorCDR_20' ) start [2025-01-28 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351216', 'tblTempVendorCDR_20' ) end [2025-01-28 19:47:18] Production.INFO: ProcessCDR(1,14351216,1,1,2) [2025-01-28 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351216', 'tblTempUsageDetail_20' ) start [2025-01-28 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351216', 'tblTempUsageDetail_20' ) end [2025-01-28 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:47:21] Production.INFO: ==7823== Releasing lock... [2025-01-28 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:47:21] Production.INFO: 46.75 MB #Memory Used# [2025-01-28 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:48:05 [end_date_ymd] => 2025-01-28 19:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:48:05' and `end` < '2025-01-28 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-28 19:48:18] Production.INFO: count ==2448 [2025-01-28 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:48:05 - End Time 2025-01-28 19:48:05 [2025-01-28 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351221', 'tblTempUsageDetail_20' ) start [2025-01-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351221', 'tblTempUsageDetail_20' ) end [2025-01-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351221', 'tblTempVendorCDR_20' ) start [2025-01-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351221', 'tblTempVendorCDR_20' ) end [2025-01-28 19:48:19] Production.INFO: ProcessCDR(1,14351221,1,1,2) [2025-01-28 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351221', 'tblTempUsageDetail_20' ) start [2025-01-28 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351221', 'tblTempUsageDetail_20' ) end [2025-01-28 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:48:22] Production.INFO: ==7904== Releasing lock... [2025-01-28 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:48:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-28 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:49:05 [end_date_ymd] => 2025-01-28 19:49:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:49:05' and `end` < '2025-01-28 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-28 19:49:18] Production.INFO: count ==2438 [2025-01-28 19:49:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:49:05 - End Time 2025-01-28 19:49:05 [2025-01-28 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351226', 'tblTempUsageDetail_20' ) start [2025-01-28 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351226', 'tblTempUsageDetail_20' ) end [2025-01-28 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351226', 'tblTempVendorCDR_20' ) start [2025-01-28 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351226', 'tblTempVendorCDR_20' ) end [2025-01-28 19:49:19] Production.INFO: ProcessCDR(1,14351226,1,1,2) [2025-01-28 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351226', 'tblTempUsageDetail_20' ) start [2025-01-28 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351226', 'tblTempUsageDetail_20' ) end [2025-01-28 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:49:22] Production.INFO: ==8019== Releasing lock... [2025-01-28 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:49:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-28 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:50:06 [end_date_ymd] => 2025-01-28 19:50:06 [RateCDR] => 1 ) [2025-01-28 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-28 16:50:06' and `end` < '2025-01-28 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-28 19:50:19] Production.INFO: count ==2424 [2025-01-28 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:50:06 - End Time 2025-01-28 19:50:06 [2025-01-28 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351232', 'tblTempUsageDetail_20' ) start [2025-01-28 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351232', 'tblTempUsageDetail_20' ) end [2025-01-28 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351232', 'tblTempVendorCDR_20' ) start [2025-01-28 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351232', 'tblTempVendorCDR_20' ) end [2025-01-28 19:50:19] Production.INFO: ProcessCDR(1,14351232,1,1,2) [2025-01-28 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351232', 'tblTempUsageDetail_20' ) start [2025-01-28 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351232', 'tblTempUsageDetail_20' ) end [2025-01-28 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:50:22] Production.INFO: ==8094== Releasing lock... [2025-01-28 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:50:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-28 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:51:05 [end_date_ymd] => 2025-01-28 19:51:05 [RateCDR] => 1 ) [2025-01-28 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:51:05' and `end` < '2025-01-28 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:51:18] Production.INFO: count ==2281 [2025-01-28 19:51:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:51:05 - End Time 2025-01-28 19:51:05 [2025-01-28 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351237', 'tblTempUsageDetail_20' ) start [2025-01-28 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351237', 'tblTempUsageDetail_20' ) end [2025-01-28 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351237', 'tblTempVendorCDR_20' ) start [2025-01-28 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351237', 'tblTempVendorCDR_20' ) end [2025-01-28 19:51:19] Production.INFO: ProcessCDR(1,14351237,1,1,2) [2025-01-28 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351237', 'tblTempUsageDetail_20' ) start [2025-01-28 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351237', 'tblTempUsageDetail_20' ) end [2025-01-28 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:51:23] Production.INFO: ==8180== Releasing lock... [2025-01-28 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:51:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-28 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:52:05 [end_date_ymd] => 2025-01-28 19:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:52:05' and `end` < '2025-01-28 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-28 19:52:18] Production.INFO: count ==2272 [2025-01-28 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:52:05 - End Time 2025-01-28 19:52:05 [2025-01-28 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351242', 'tblTempUsageDetail_20' ) start [2025-01-28 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351242', 'tblTempUsageDetail_20' ) end [2025-01-28 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351242', 'tblTempVendorCDR_20' ) start [2025-01-28 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351242', 'tblTempVendorCDR_20' ) end [2025-01-28 19:52:19] Production.INFO: ProcessCDR(1,14351242,1,1,2) [2025-01-28 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351242', 'tblTempUsageDetail_20' ) start [2025-01-28 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351242', 'tblTempUsageDetail_20' ) end [2025-01-28 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:52:22] Production.INFO: ==8264== Releasing lock... [2025-01-28 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:52:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-28 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:53:05 [end_date_ymd] => 2025-01-28 19:53:05 [RateCDR] => 1 ) [2025-01-28 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:53:05' and `end` < '2025-01-28 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:53:17] Production.INFO: count ==2252 [2025-01-28 19:53:18] Production.ERROR: pbx CDR StartTime 2025-01-28 16:53:05 - End Time 2025-01-28 19:53:05 [2025-01-28 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351247', 'tblTempUsageDetail_20' ) start [2025-01-28 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351247', 'tblTempUsageDetail_20' ) end [2025-01-28 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351247', 'tblTempVendorCDR_20' ) start [2025-01-28 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351247', 'tblTempVendorCDR_20' ) end [2025-01-28 19:53:18] Production.INFO: ProcessCDR(1,14351247,1,1,2) [2025-01-28 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351247', 'tblTempUsageDetail_20' ) start [2025-01-28 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351247', 'tblTempUsageDetail_20' ) end [2025-01-28 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:53:21] Production.INFO: ==8345== Releasing lock... [2025-01-28 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:53:21] Production.INFO: 45 MB #Memory Used# [2025-01-28 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:54:05 [end_date_ymd] => 2025-01-28 19:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:54:05' and `end` < '2025-01-28 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-28 19:54:18] Production.INFO: count ==2243 [2025-01-28 19:54:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:54:05 - End Time 2025-01-28 19:54:05 [2025-01-28 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351252', 'tblTempUsageDetail_20' ) start [2025-01-28 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351252', 'tblTempUsageDetail_20' ) end [2025-01-28 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351252', 'tblTempVendorCDR_20' ) start [2025-01-28 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351252', 'tblTempVendorCDR_20' ) end [2025-01-28 19:54:19] Production.INFO: ProcessCDR(1,14351252,1,1,2) [2025-01-28 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351252', 'tblTempUsageDetail_20' ) start [2025-01-28 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351252', 'tblTempUsageDetail_20' ) end [2025-01-28 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:54:22] Production.INFO: ==8416== Releasing lock... [2025-01-28 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:54:22] Production.INFO: 45 MB #Memory Used# [2025-01-28 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:55:06 [end_date_ymd] => 2025-01-28 19:55:06 [RateCDR] => 1 ) [2025-01-28 19: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-28 16:55:06' and `end` < '2025-01-28 19: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-28 19:55:19] Production.INFO: count ==2219 [2025-01-28 19:55:20] Production.ERROR: pbx CDR StartTime 2025-01-28 16:55:06 - End Time 2025-01-28 19:55:06 [2025-01-28 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351257', 'tblTempUsageDetail_20' ) start [2025-01-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351257', 'tblTempUsageDetail_20' ) end [2025-01-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351257', 'tblTempVendorCDR_20' ) start [2025-01-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351257', 'tblTempVendorCDR_20' ) end [2025-01-28 19:55:20] Production.INFO: ProcessCDR(1,14351257,1,1,2) [2025-01-28 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351257', 'tblTempUsageDetail_20' ) start [2025-01-28 19:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351257', 'tblTempUsageDetail_20' ) end [2025-01-28 19:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:55:25] Production.INFO: ==8493== Releasing lock... [2025-01-28 19:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:55:25] Production.INFO: 44.75 MB #Memory Used# [2025-01-28 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:56:05 [end_date_ymd] => 2025-01-28 19:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:56:05' and `end` < '2025-01-28 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-28 19:56:18] Production.INFO: count ==2198 [2025-01-28 19:56:18] Production.ERROR: pbx CDR StartTime 2025-01-28 16:56:05 - End Time 2025-01-28 19:56:05 [2025-01-28 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351262', 'tblTempUsageDetail_20' ) start [2025-01-28 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351262', 'tblTempUsageDetail_20' ) end [2025-01-28 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351262', 'tblTempVendorCDR_20' ) start [2025-01-28 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351262', 'tblTempVendorCDR_20' ) end [2025-01-28 19:56:18] Production.INFO: ProcessCDR(1,14351262,1,1,2) [2025-01-28 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351262', 'tblTempUsageDetail_20' ) start [2025-01-28 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351262', 'tblTempUsageDetail_20' ) end [2025-01-28 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:56:21] Production.INFO: ==8572== Releasing lock... [2025-01-28 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:56:21] Production.INFO: 44.5 MB #Memory Used# [2025-01-28 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:57:05 [end_date_ymd] => 2025-01-28 19:57:05 [RateCDR] => 1 ) [2025-01-28 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:57:05' and `end` < '2025-01-28 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:57:19] Production.INFO: count ==2195 [2025-01-28 19:57:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:57:05 - End Time 2025-01-28 19:57:05 [2025-01-28 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351267', 'tblTempUsageDetail_20' ) start [2025-01-28 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351267', 'tblTempUsageDetail_20' ) end [2025-01-28 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351267', 'tblTempVendorCDR_20' ) start [2025-01-28 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351267', 'tblTempVendorCDR_20' ) end [2025-01-28 19:57:20] Production.INFO: ProcessCDR(1,14351267,1,1,2) [2025-01-28 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351267', 'tblTempUsageDetail_20' ) start [2025-01-28 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351267', 'tblTempUsageDetail_20' ) end [2025-01-28 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:57:23] Production.INFO: ==8651== Releasing lock... [2025-01-28 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:57:23] Production.INFO: 44.25 MB #Memory Used# [2025-01-28 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:58:05 [end_date_ymd] => 2025-01-28 19:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 16:58:05' and `end` < '2025-01-28 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-28 19:58:18] Production.INFO: count ==2192 [2025-01-28 19:58:18] Production.ERROR: pbx CDR StartTime 2025-01-28 16:58:05 - End Time 2025-01-28 19:58:05 [2025-01-28 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351272', 'tblTempUsageDetail_20' ) start [2025-01-28 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351272', 'tblTempUsageDetail_20' ) end [2025-01-28 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351272', 'tblTempVendorCDR_20' ) start [2025-01-28 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351272', 'tblTempVendorCDR_20' ) end [2025-01-28 19:58:19] Production.INFO: ProcessCDR(1,14351272,1,1,2) [2025-01-28 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351272', 'tblTempUsageDetail_20' ) start [2025-01-28 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351272', 'tblTempUsageDetail_20' ) end [2025-01-28 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:58:22] Production.INFO: ==8730== Releasing lock... [2025-01-28 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:58:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-28 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 16:59:06 [end_date_ymd] => 2025-01-28 19:59:06 [RateCDR] => 1 ) [2025-01-28 19:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 16:59:06' and `end` < '2025-01-28 19:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 19:59:19] Production.INFO: count ==2179 [2025-01-28 19:59:19] Production.ERROR: pbx CDR StartTime 2025-01-28 16:59:06 - End Time 2025-01-28 19:59:06 [2025-01-28 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351277', 'tblTempUsageDetail_20' ) start [2025-01-28 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351277', 'tblTempUsageDetail_20' ) end [2025-01-28 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351277', 'tblTempVendorCDR_20' ) start [2025-01-28 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351277', 'tblTempVendorCDR_20' ) end [2025-01-28 19:59:19] Production.INFO: ProcessCDR(1,14351277,1,1,2) [2025-01-28 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351277', 'tblTempUsageDetail_20' ) start [2025-01-28 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351277', 'tblTempUsageDetail_20' ) end [2025-01-28 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 19:59:22] Production.INFO: ==8806== Releasing lock... [2025-01-28 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 19:59:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-28 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:00:05 [end_date_ymd] => 2025-01-28 20:00:05 [RateCDR] => 1 ) [2025-01-28 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:00:05' and `end` < '2025-01-28 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:00:18] Production.INFO: count ==2161 [2025-01-28 20:00:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:00:05 - End Time 2025-01-28 20:00:05 [2025-01-28 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351282', 'tblTempUsageDetail_20' ) start [2025-01-28 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351282', 'tblTempUsageDetail_20' ) end [2025-01-28 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351282', 'tblTempVendorCDR_20' ) start [2025-01-28 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351282', 'tblTempVendorCDR_20' ) end [2025-01-28 20:00:19] Production.INFO: ProcessCDR(1,14351282,1,1,2) [2025-01-28 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351282', 'tblTempUsageDetail_20' ) start [2025-01-28 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351282', 'tblTempUsageDetail_20' ) end [2025-01-28 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:00:22] Production.INFO: ==8889== Releasing lock... [2025-01-28 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:00:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-28 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:01:05 [end_date_ymd] => 2025-01-28 20:01:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:01:05' and `end` < '2025-01-28 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-28 20:01:18] Production.INFO: count ==2031 [2025-01-28 20:01:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:01:05 - End Time 2025-01-28 20:01:05 [2025-01-28 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351288', 'tblTempUsageDetail_20' ) start [2025-01-28 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351288', 'tblTempUsageDetail_20' ) end [2025-01-28 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351288', 'tblTempVendorCDR_20' ) start [2025-01-28 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351288', 'tblTempVendorCDR_20' ) end [2025-01-28 20:01:18] Production.INFO: ProcessCDR(1,14351288,1,1,2) [2025-01-28 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351288', 'tblTempUsageDetail_20' ) start [2025-01-28 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351288', 'tblTempUsageDetail_20' ) end [2025-01-28 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:01:21] Production.INFO: ==9025== Releasing lock... [2025-01-28 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:01:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-28 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:02:04 [end_date_ymd] => 2025-01-28 20:02:04 [RateCDR] => 1 ) [2025-01-28 20: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-28 17:02:04' and `end` < '2025-01-28 20: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-28 20:02:17] Production.INFO: count ==2000 [2025-01-28 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:02:04 - End Time 2025-01-28 20:02:04 [2025-01-28 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351292', 'tblTempUsageDetail_20' ) start [2025-01-28 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351292', 'tblTempUsageDetail_20' ) end [2025-01-28 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351292', 'tblTempVendorCDR_20' ) start [2025-01-28 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351292', 'tblTempVendorCDR_20' ) end [2025-01-28 20:02:18] Production.INFO: ProcessCDR(1,14351292,1,1,2) [2025-01-28 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351292', 'tblTempUsageDetail_20' ) start [2025-01-28 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351292', 'tblTempUsageDetail_20' ) end [2025-01-28 20:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:02:21] Production.INFO: ==9100== Releasing lock... [2025-01-28 20:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:02:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-28 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:03:05 [end_date_ymd] => 2025-01-28 20:03:05 [RateCDR] => 1 ) [2025-01-28 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:03:05' and `end` < '2025-01-28 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:03:18] Production.INFO: count ==1985 [2025-01-28 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:03:05 - End Time 2025-01-28 20:03:05 [2025-01-28 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351298', 'tblTempUsageDetail_20' ) start [2025-01-28 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351298', 'tblTempUsageDetail_20' ) end [2025-01-28 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351298', 'tblTempVendorCDR_20' ) start [2025-01-28 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351298', 'tblTempVendorCDR_20' ) end [2025-01-28 20:03:18] Production.INFO: ProcessCDR(1,14351298,1,1,2) [2025-01-28 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351298', 'tblTempUsageDetail_20' ) start [2025-01-28 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351298', 'tblTempUsageDetail_20' ) end [2025-01-28 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:03:22] Production.INFO: ==9181== Releasing lock... [2025-01-28 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:03:22] Production.INFO: 43 MB #Memory Used# [2025-01-28 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:04:05 [end_date_ymd] => 2025-01-28 20:04:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:04:05' and `end` < '2025-01-28 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-28 20:04:17] Production.INFO: count ==1967 [2025-01-28 20:04:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:04:05 - End Time 2025-01-28 20:04:05 [2025-01-28 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351303', 'tblTempUsageDetail_20' ) start [2025-01-28 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351303', 'tblTempUsageDetail_20' ) end [2025-01-28 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351303', 'tblTempVendorCDR_20' ) start [2025-01-28 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351303', 'tblTempVendorCDR_20' ) end [2025-01-28 20:04:18] Production.INFO: ProcessCDR(1,14351303,1,1,2) [2025-01-28 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351303', 'tblTempUsageDetail_20' ) start [2025-01-28 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351303', 'tblTempUsageDetail_20' ) end [2025-01-28 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:04:21] Production.INFO: ==9300== Releasing lock... [2025-01-28 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:04:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-28 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:05:05 [end_date_ymd] => 2025-01-28 20:05:05 [RateCDR] => 1 ) [2025-01-28 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:05:05' and `end` < '2025-01-28 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:05:17] Production.INFO: count ==1961 [2025-01-28 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:05:05 - End Time 2025-01-28 20:05:05 [2025-01-28 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351308', 'tblTempUsageDetail_20' ) start [2025-01-28 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351308', 'tblTempUsageDetail_20' ) end [2025-01-28 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351308', 'tblTempVendorCDR_20' ) start [2025-01-28 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351308', 'tblTempVendorCDR_20' ) end [2025-01-28 20:05:18] Production.INFO: ProcessCDR(1,14351308,1,1,2) [2025-01-28 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351308', 'tblTempUsageDetail_20' ) start [2025-01-28 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351308', 'tblTempUsageDetail_20' ) end [2025-01-28 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:05:21] Production.INFO: ==9378== Releasing lock... [2025-01-28 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:05:21] Production.INFO: 43 MB #Memory Used# [2025-01-28 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:06:06 [end_date_ymd] => 2025-01-28 20:06:06 [RateCDR] => 1 ) [2025-01-28 20: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-28 17:06:06' and `end` < '2025-01-28 20: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-28 20:06:19] Production.INFO: count ==1934 [2025-01-28 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:06:06 - End Time 2025-01-28 20:06:06 [2025-01-28 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351313', 'tblTempUsageDetail_20' ) start [2025-01-28 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351313', 'tblTempUsageDetail_20' ) end [2025-01-28 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351313', 'tblTempVendorCDR_20' ) start [2025-01-28 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351313', 'tblTempVendorCDR_20' ) end [2025-01-28 20:06:19] Production.INFO: ProcessCDR(1,14351313,1,1,2) [2025-01-28 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351313', 'tblTempUsageDetail_20' ) start [2025-01-28 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351313', 'tblTempUsageDetail_20' ) end [2025-01-28 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:06:22] Production.INFO: ==9465== Releasing lock... [2025-01-28 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:06:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-28 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:07:05 [end_date_ymd] => 2025-01-28 20:07:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:07:05' and `end` < '2025-01-28 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-28 20:07:19] Production.INFO: count ==1916 [2025-01-28 20:07:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:07:05 - End Time 2025-01-28 20:07:05 [2025-01-28 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351318', 'tblTempUsageDetail_20' ) start [2025-01-28 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351318', 'tblTempUsageDetail_20' ) end [2025-01-28 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351318', 'tblTempVendorCDR_20' ) start [2025-01-28 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351318', 'tblTempVendorCDR_20' ) end [2025-01-28 20:07:19] Production.INFO: ProcessCDR(1,14351318,1,1,2) [2025-01-28 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351318', 'tblTempUsageDetail_20' ) start [2025-01-28 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351318', 'tblTempUsageDetail_20' ) end [2025-01-28 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:07:22] Production.INFO: ==9550== Releasing lock... [2025-01-28 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:07:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-28 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:08:06 [end_date_ymd] => 2025-01-28 20:08:06 [RateCDR] => 1 ) [2025-01-28 20: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-28 17:08:06' and `end` < '2025-01-28 20: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-28 20:08:20] Production.INFO: count ==1911 [2025-01-28 20:08:20] Production.ERROR: pbx CDR StartTime 2025-01-28 17:08:06 - End Time 2025-01-28 20:08:06 [2025-01-28 20:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351323', 'tblTempUsageDetail_20' ) start [2025-01-28 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351323', 'tblTempUsageDetail_20' ) end [2025-01-28 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351323', 'tblTempVendorCDR_20' ) start [2025-01-28 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351323', 'tblTempVendorCDR_20' ) end [2025-01-28 20:08:20] Production.INFO: ProcessCDR(1,14351323,1,1,2) [2025-01-28 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351323', 'tblTempUsageDetail_20' ) start [2025-01-28 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351323', 'tblTempUsageDetail_20' ) end [2025-01-28 20:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:08:25] Production.INFO: ==9634== Releasing lock... [2025-01-28 20:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:08:25] Production.INFO: 42.5 MB #Memory Used# [2025-01-28 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:09:05 [end_date_ymd] => 2025-01-28 20:09:05 [RateCDR] => 1 ) [2025-01-28 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:09:05' and `end` < '2025-01-28 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:09:19] Production.INFO: count ==1910 [2025-01-28 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:09:05 - End Time 2025-01-28 20:09:05 [2025-01-28 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351328', 'tblTempUsageDetail_20' ) start [2025-01-28 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351328', 'tblTempUsageDetail_20' ) end [2025-01-28 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351328', 'tblTempVendorCDR_20' ) start [2025-01-28 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351328', 'tblTempVendorCDR_20' ) end [2025-01-28 20:09:19] Production.INFO: ProcessCDR(1,14351328,1,1,2) [2025-01-28 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351328', 'tblTempUsageDetail_20' ) start [2025-01-28 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351328', 'tblTempUsageDetail_20' ) end [2025-01-28 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:09:22] Production.INFO: ==9711== Releasing lock... [2025-01-28 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:09:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-28 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:10:06 [end_date_ymd] => 2025-01-28 20:10:06 [RateCDR] => 1 ) [2025-01-28 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-28 17:10:06' and `end` < '2025-01-28 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-28 20:10:19] Production.INFO: count ==1904 [2025-01-28 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:10:06 - End Time 2025-01-28 20:10:06 [2025-01-28 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351334', 'tblTempUsageDetail_20' ) start [2025-01-28 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351334', 'tblTempUsageDetail_20' ) end [2025-01-28 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351334', 'tblTempVendorCDR_20' ) start [2025-01-28 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351334', 'tblTempVendorCDR_20' ) end [2025-01-28 20:10:19] Production.INFO: ProcessCDR(1,14351334,1,1,2) [2025-01-28 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351334', 'tblTempUsageDetail_20' ) start [2025-01-28 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351334', 'tblTempUsageDetail_20' ) end [2025-01-28 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:10:23] Production.INFO: ==9789== Releasing lock... [2025-01-28 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:10:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-28 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:11:04 [end_date_ymd] => 2025-01-28 20:11:04 [RateCDR] => 1 ) [2025-01-28 20:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:11:04' and `end` < '2025-01-28 20:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:11:17] Production.INFO: count ==1850 [2025-01-28 20:11:17] Production.ERROR: pbx CDR StartTime 2025-01-28 17:11:04 - End Time 2025-01-28 20:11:04 [2025-01-28 20:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351338', 'tblTempUsageDetail_20' ) start [2025-01-28 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351338', 'tblTempUsageDetail_20' ) end [2025-01-28 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351338', 'tblTempVendorCDR_20' ) start [2025-01-28 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351338', 'tblTempVendorCDR_20' ) end [2025-01-28 20:11:17] Production.INFO: ProcessCDR(1,14351338,1,1,2) [2025-01-28 20:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351338', 'tblTempUsageDetail_20' ) start [2025-01-28 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351338', 'tblTempUsageDetail_20' ) end [2025-01-28 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:11:22] Production.INFO: ==9882== Releasing lock... [2025-01-28 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:11:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-28 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:12:05 [end_date_ymd] => 2025-01-28 20:12:05 [RateCDR] => 1 ) [2025-01-28 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:12:05' and `end` < '2025-01-28 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:12:18] Production.INFO: count ==1842 [2025-01-28 20:12:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:12:05 - End Time 2025-01-28 20:12:05 [2025-01-28 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351344', 'tblTempUsageDetail_20' ) start [2025-01-28 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351344', 'tblTempUsageDetail_20' ) end [2025-01-28 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351344', 'tblTempVendorCDR_20' ) start [2025-01-28 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351344', 'tblTempVendorCDR_20' ) end [2025-01-28 20:12:18] Production.INFO: ProcessCDR(1,14351344,1,1,2) [2025-01-28 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351344', 'tblTempUsageDetail_20' ) start [2025-01-28 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351344', 'tblTempUsageDetail_20' ) end [2025-01-28 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:12:21] Production.INFO: ==9962== Releasing lock... [2025-01-28 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:12:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-28 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:13:04 [end_date_ymd] => 2025-01-28 20:13:04 [RateCDR] => 1 ) [2025-01-28 20:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:13:04' and `end` < '2025-01-28 20:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:13:18] Production.INFO: count ==1844 [2025-01-28 20:13:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:13:04 - End Time 2025-01-28 20:13:04 [2025-01-28 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351349', 'tblTempUsageDetail_20' ) start [2025-01-28 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351349', 'tblTempUsageDetail_20' ) end [2025-01-28 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351349', 'tblTempVendorCDR_20' ) start [2025-01-28 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351349', 'tblTempVendorCDR_20' ) end [2025-01-28 20:13:18] Production.INFO: ProcessCDR(1,14351349,1,1,2) [2025-01-28 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351349', 'tblTempUsageDetail_20' ) start [2025-01-28 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351349', 'tblTempUsageDetail_20' ) end [2025-01-28 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:13:23] Production.INFO: ==10036== Releasing lock... [2025-01-28 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:13:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-28 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:14:05 [end_date_ymd] => 2025-01-28 20:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:14:05' and `end` < '2025-01-28 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-28 20:14:18] Production.INFO: count ==1836 [2025-01-28 20:14:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:14:05 - End Time 2025-01-28 20:14:05 [2025-01-28 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351354', 'tblTempUsageDetail_20' ) start [2025-01-28 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351354', 'tblTempUsageDetail_20' ) end [2025-01-28 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351354', 'tblTempVendorCDR_20' ) start [2025-01-28 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351354', 'tblTempVendorCDR_20' ) end [2025-01-28 20:14:18] Production.INFO: ProcessCDR(1,14351354,1,1,2) [2025-01-28 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351354', 'tblTempUsageDetail_20' ) start [2025-01-28 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351354', 'tblTempUsageDetail_20' ) end [2025-01-28 20:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:14:21] Production.INFO: ==10118== Releasing lock... [2025-01-28 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:14:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-28 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:15:06 [end_date_ymd] => 2025-01-28 20:15:06 [RateCDR] => 1 ) [2025-01-28 20:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:15:06' and `end` < '2025-01-28 20:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:15:18] Production.INFO: count ==1841 [2025-01-28 20:15:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:15:06 - End Time 2025-01-28 20:15:06 [2025-01-28 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351359', 'tblTempUsageDetail_20' ) start [2025-01-28 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351359', 'tblTempUsageDetail_20' ) end [2025-01-28 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351359', 'tblTempVendorCDR_20' ) start [2025-01-28 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351359', 'tblTempVendorCDR_20' ) end [2025-01-28 20:15:19] Production.INFO: ProcessCDR(1,14351359,1,1,2) [2025-01-28 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351359', 'tblTempUsageDetail_20' ) start [2025-01-28 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351359', 'tblTempUsageDetail_20' ) end [2025-01-28 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:15:24] Production.INFO: ==10208== Releasing lock... [2025-01-28 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:15:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-28 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:16:05 [end_date_ymd] => 2025-01-28 20:16:05 [RateCDR] => 1 ) [2025-01-28 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:16:05' and `end` < '2025-01-28 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:16:19] Production.INFO: count ==1835 [2025-01-28 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:16:05 - End Time 2025-01-28 20:16:05 [2025-01-28 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351364', 'tblTempUsageDetail_20' ) start [2025-01-28 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351364', 'tblTempUsageDetail_20' ) end [2025-01-28 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351364', 'tblTempVendorCDR_20' ) start [2025-01-28 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351364', 'tblTempVendorCDR_20' ) end [2025-01-28 20:16:20] Production.INFO: ProcessCDR(1,14351364,1,1,2) [2025-01-28 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351364', 'tblTempUsageDetail_20' ) start [2025-01-28 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351364', 'tblTempUsageDetail_20' ) end [2025-01-28 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:16:23] Production.INFO: ==10291== Releasing lock... [2025-01-28 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:16:23] Production.INFO: 42 MB #Memory Used# [2025-01-28 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:17:05 [end_date_ymd] => 2025-01-28 20:17:05 [RateCDR] => 1 ) [2025-01-28 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:17:05' and `end` < '2025-01-28 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:17:19] Production.INFO: count ==1830 [2025-01-28 20:17:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:17:05 - End Time 2025-01-28 20:17:05 [2025-01-28 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351369', 'tblTempUsageDetail_20' ) start [2025-01-28 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351369', 'tblTempUsageDetail_20' ) end [2025-01-28 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351369', 'tblTempVendorCDR_20' ) start [2025-01-28 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351369', 'tblTempVendorCDR_20' ) end [2025-01-28 20:17:19] Production.INFO: ProcessCDR(1,14351369,1,1,2) [2025-01-28 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351369', 'tblTempUsageDetail_20' ) start [2025-01-28 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351369', 'tblTempUsageDetail_20' ) end [2025-01-28 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:17:23] Production.INFO: ==10369== Releasing lock... [2025-01-28 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:17:23] Production.INFO: 42 MB #Memory Used# [2025-01-28 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:18:05 [end_date_ymd] => 2025-01-28 20:18:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:18:05' and `end` < '2025-01-28 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-28 20:18:18] Production.INFO: count ==1825 [2025-01-28 20:18:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:18:05 - End Time 2025-01-28 20:18:05 [2025-01-28 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351374', 'tblTempUsageDetail_20' ) start [2025-01-28 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351374', 'tblTempUsageDetail_20' ) end [2025-01-28 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351374', 'tblTempVendorCDR_20' ) start [2025-01-28 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351374', 'tblTempVendorCDR_20' ) end [2025-01-28 20:18:18] Production.INFO: ProcessCDR(1,14351374,1,1,2) [2025-01-28 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351374', 'tblTempUsageDetail_20' ) start [2025-01-28 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351374', 'tblTempUsageDetail_20' ) end [2025-01-28 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:18:21] Production.INFO: ==10459== Releasing lock... [2025-01-28 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:18:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-28 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:19:05 [end_date_ymd] => 2025-01-28 20:19:05 [RateCDR] => 1 ) [2025-01-28 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:19:05' and `end` < '2025-01-28 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:19:18] Production.INFO: count ==1815 [2025-01-28 20:19:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:19:05 - End Time 2025-01-28 20:19:05 [2025-01-28 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351379', 'tblTempUsageDetail_20' ) start [2025-01-28 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351379', 'tblTempUsageDetail_20' ) end [2025-01-28 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351379', 'tblTempVendorCDR_20' ) start [2025-01-28 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351379', 'tblTempVendorCDR_20' ) end [2025-01-28 20:19:18] Production.INFO: ProcessCDR(1,14351379,1,1,2) [2025-01-28 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351379', 'tblTempUsageDetail_20' ) start [2025-01-28 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351379', 'tblTempUsageDetail_20' ) end [2025-01-28 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:19:23] Production.INFO: ==10543== Releasing lock... [2025-01-28 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:19:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-28 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:20:05 [end_date_ymd] => 2025-01-28 20:20:05 [RateCDR] => 1 ) [2025-01-28 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:20:05' and `end` < '2025-01-28 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:20:18] Production.INFO: count ==1812 [2025-01-28 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:20:05 - End Time 2025-01-28 20:20:05 [2025-01-28 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351385', 'tblTempUsageDetail_20' ) start [2025-01-28 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351385', 'tblTempUsageDetail_20' ) end [2025-01-28 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351385', 'tblTempVendorCDR_20' ) start [2025-01-28 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351385', 'tblTempVendorCDR_20' ) end [2025-01-28 20:20:19] Production.INFO: ProcessCDR(1,14351385,1,1,2) [2025-01-28 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351385', 'tblTempUsageDetail_20' ) start [2025-01-28 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351385', 'tblTempUsageDetail_20' ) end [2025-01-28 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:20:22] Production.INFO: ==10671== Releasing lock... [2025-01-28 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:20:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-28 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:21:05 [end_date_ymd] => 2025-01-28 20:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:21:05' and `end` < '2025-01-28 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-28 20:21:18] Production.INFO: count ==1784 [2025-01-28 20:21:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:21:05 - End Time 2025-01-28 20:21:05 [2025-01-28 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351390', 'tblTempUsageDetail_20' ) start [2025-01-28 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351390', 'tblTempUsageDetail_20' ) end [2025-01-28 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351390', 'tblTempVendorCDR_20' ) start [2025-01-28 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351390', 'tblTempVendorCDR_20' ) end [2025-01-28 20:21:18] Production.INFO: ProcessCDR(1,14351390,1,1,2) [2025-01-28 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351390', 'tblTempUsageDetail_20' ) start [2025-01-28 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351390', 'tblTempUsageDetail_20' ) end [2025-01-28 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:21:23] Production.INFO: ==10761== Releasing lock... [2025-01-28 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:21:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-28 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:22:06 [end_date_ymd] => 2025-01-28 20:22:06 [RateCDR] => 1 ) [2025-01-28 20:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:22:06' and `end` < '2025-01-28 20:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:22:19] Production.INFO: count ==1783 [2025-01-28 20:22:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:22:06 - End Time 2025-01-28 20:22:06 [2025-01-28 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351395', 'tblTempUsageDetail_20' ) start [2025-01-28 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351395', 'tblTempUsageDetail_20' ) end [2025-01-28 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351395', 'tblTempVendorCDR_20' ) start [2025-01-28 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351395', 'tblTempVendorCDR_20' ) end [2025-01-28 20:22:19] Production.INFO: ProcessCDR(1,14351395,1,1,2) [2025-01-28 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351395', 'tblTempUsageDetail_20' ) start [2025-01-28 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351395', 'tblTempUsageDetail_20' ) end [2025-01-28 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:22:22] Production.INFO: ==10838== Releasing lock... [2025-01-28 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:22:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-28 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:23:05 [end_date_ymd] => 2025-01-28 20:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:23:05' and `end` < '2025-01-28 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-28 20:23:18] Production.INFO: count ==1783 [2025-01-28 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:23:05 - End Time 2025-01-28 20:23:05 [2025-01-28 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351400', 'tblTempUsageDetail_20' ) start [2025-01-28 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351400', 'tblTempUsageDetail_20' ) end [2025-01-28 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351400', 'tblTempVendorCDR_20' ) start [2025-01-28 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351400', 'tblTempVendorCDR_20' ) end [2025-01-28 20:23:18] Production.INFO: ProcessCDR(1,14351400,1,1,2) [2025-01-28 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351400', 'tblTempUsageDetail_20' ) start [2025-01-28 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351400', 'tblTempUsageDetail_20' ) end [2025-01-28 20:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:23:21] Production.INFO: ==10919== Releasing lock... [2025-01-28 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:23:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-28 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:24:06 [end_date_ymd] => 2025-01-28 20:24:06 [RateCDR] => 1 ) [2025-01-28 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:24:06' and `end` < '2025-01-28 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:24:18] Production.INFO: count ==1784 [2025-01-28 20:24:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:24:06 - End Time 2025-01-28 20:24:06 [2025-01-28 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351405', 'tblTempUsageDetail_20' ) start [2025-01-28 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351405', 'tblTempUsageDetail_20' ) end [2025-01-28 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351405', 'tblTempVendorCDR_20' ) start [2025-01-28 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351405', 'tblTempVendorCDR_20' ) end [2025-01-28 20:24:19] Production.INFO: ProcessCDR(1,14351405,1,1,2) [2025-01-28 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351405', 'tblTempUsageDetail_20' ) start [2025-01-28 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351405', 'tblTempUsageDetail_20' ) end [2025-01-28 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:24:24] Production.INFO: ==10997== Releasing lock... [2025-01-28 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:24:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-28 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:25:05 [end_date_ymd] => 2025-01-28 20:25:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:25:05' and `end` < '2025-01-28 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-28 20:25:18] Production.INFO: count ==1783 [2025-01-28 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:25:05 - End Time 2025-01-28 20:25:05 [2025-01-28 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351410', 'tblTempUsageDetail_20' ) start [2025-01-28 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351410', 'tblTempUsageDetail_20' ) end [2025-01-28 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351410', 'tblTempVendorCDR_20' ) start [2025-01-28 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351410', 'tblTempVendorCDR_20' ) end [2025-01-28 20:25:18] Production.INFO: ProcessCDR(1,14351410,1,1,2) [2025-01-28 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351410', 'tblTempUsageDetail_20' ) start [2025-01-28 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351410', 'tblTempUsageDetail_20' ) end [2025-01-28 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:25:22] Production.INFO: ==11074== Releasing lock... [2025-01-28 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:25:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-28 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:26:06 [end_date_ymd] => 2025-01-28 20:26:06 [RateCDR] => 1 ) [2025-01-28 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:26:06' and `end` < '2025-01-28 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:26:19] Production.INFO: count ==1775 [2025-01-28 20:26:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:26:06 - End Time 2025-01-28 20:26:06 [2025-01-28 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351415', 'tblTempUsageDetail_20' ) start [2025-01-28 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351415', 'tblTempUsageDetail_20' ) end [2025-01-28 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351415', 'tblTempVendorCDR_20' ) start [2025-01-28 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351415', 'tblTempVendorCDR_20' ) end [2025-01-28 20:26:19] Production.INFO: ProcessCDR(1,14351415,1,1,2) [2025-01-28 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351415', 'tblTempUsageDetail_20' ) start [2025-01-28 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351415', 'tblTempUsageDetail_20' ) end [2025-01-28 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:26:24] Production.INFO: ==11156== Releasing lock... [2025-01-28 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:26:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-28 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:27:05 [end_date_ymd] => 2025-01-28 20:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:27:05' and `end` < '2025-01-28 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-28 20:27:18] Production.INFO: count ==1754 [2025-01-28 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:27:05 - End Time 2025-01-28 20:27:05 [2025-01-28 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351420', 'tblTempUsageDetail_20' ) start [2025-01-28 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351420', 'tblTempUsageDetail_20' ) end [2025-01-28 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351420', 'tblTempVendorCDR_20' ) start [2025-01-28 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351420', 'tblTempVendorCDR_20' ) end [2025-01-28 20:27:18] Production.INFO: ProcessCDR(1,14351420,1,1,2) [2025-01-28 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351420', 'tblTempUsageDetail_20' ) start [2025-01-28 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351420', 'tblTempUsageDetail_20' ) end [2025-01-28 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:27:21] Production.INFO: ==11231== Releasing lock... [2025-01-28 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:27:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-28 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:28:05 [end_date_ymd] => 2025-01-28 20:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:28:05' and `end` < '2025-01-28 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-28 20:28:18] Production.INFO: count ==1752 [2025-01-28 20:28:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:28:05 - End Time 2025-01-28 20:28:05 [2025-01-28 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351425', 'tblTempUsageDetail_20' ) start [2025-01-28 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351425', 'tblTempUsageDetail_20' ) end [2025-01-28 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351425', 'tblTempVendorCDR_20' ) start [2025-01-28 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351425', 'tblTempVendorCDR_20' ) end [2025-01-28 20:28:18] Production.INFO: ProcessCDR(1,14351425,1,1,2) [2025-01-28 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351425', 'tblTempUsageDetail_20' ) start [2025-01-28 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351425', 'tblTempUsageDetail_20' ) end [2025-01-28 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:28:23] Production.INFO: ==11308== Releasing lock... [2025-01-28 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:28:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-28 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:29:05 [end_date_ymd] => 2025-01-28 20:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:29:05' and `end` < '2025-01-28 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-28 20:29:18] Production.INFO: count ==1753 [2025-01-28 20:29:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:29:05 - End Time 2025-01-28 20:29:05 [2025-01-28 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351430', 'tblTempUsageDetail_20' ) start [2025-01-28 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351430', 'tblTempUsageDetail_20' ) end [2025-01-28 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351430', 'tblTempVendorCDR_20' ) start [2025-01-28 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351430', 'tblTempVendorCDR_20' ) end [2025-01-28 20:29:18] Production.INFO: ProcessCDR(1,14351430,1,1,2) [2025-01-28 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351430', 'tblTempUsageDetail_20' ) start [2025-01-28 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351430', 'tblTempUsageDetail_20' ) end [2025-01-28 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:29:23] Production.INFO: ==11380== Releasing lock... [2025-01-28 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:29:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-28 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:30:06 [end_date_ymd] => 2025-01-28 20:30:06 [RateCDR] => 1 ) [2025-01-28 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:30:06' and `end` < '2025-01-28 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:30:19] Production.INFO: count ==1747 [2025-01-28 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:30:06 - End Time 2025-01-28 20:30:06 [2025-01-28 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351436', 'tblTempUsageDetail_20' ) start [2025-01-28 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351436', 'tblTempUsageDetail_20' ) end [2025-01-28 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351436', 'tblTempVendorCDR_20' ) start [2025-01-28 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351436', 'tblTempVendorCDR_20' ) end [2025-01-28 20:30:19] Production.INFO: ProcessCDR(1,14351436,1,1,2) [2025-01-28 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351436', 'tblTempUsageDetail_20' ) start [2025-01-28 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351436', 'tblTempUsageDetail_20' ) end [2025-01-28 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:30:23] Production.INFO: ==11459== Releasing lock... [2025-01-28 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:30:23] Production.INFO: 41 MB #Memory Used# [2025-01-28 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:31:06 [end_date_ymd] => 2025-01-28 20:31:06 [RateCDR] => 1 ) [2025-01-28 20:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:31:06' and `end` < '2025-01-28 20:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:31:19] Production.INFO: count ==1686 [2025-01-28 20:31:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:31:06 - End Time 2025-01-28 20:31:06 [2025-01-28 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351441', 'tblTempUsageDetail_20' ) start [2025-01-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351441', 'tblTempUsageDetail_20' ) end [2025-01-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351441', 'tblTempVendorCDR_20' ) start [2025-01-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351441', 'tblTempVendorCDR_20' ) end [2025-01-28 20:31:19] Production.INFO: ProcessCDR(1,14351441,1,1,2) [2025-01-28 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351441', 'tblTempUsageDetail_20' ) start [2025-01-28 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351441', 'tblTempUsageDetail_20' ) end [2025-01-28 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:31:23] Production.INFO: ==11546== Releasing lock... [2025-01-28 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:31:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-28 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:32:05 [end_date_ymd] => 2025-01-28 20:32:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:32:05' and `end` < '2025-01-28 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-28 20:32:18] Production.INFO: count ==1683 [2025-01-28 20:32:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:32:05 - End Time 2025-01-28 20:32:05 [2025-01-28 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351446', 'tblTempUsageDetail_20' ) start [2025-01-28 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351446', 'tblTempUsageDetail_20' ) end [2025-01-28 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351446', 'tblTempVendorCDR_20' ) start [2025-01-28 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351446', 'tblTempVendorCDR_20' ) end [2025-01-28 20:32:19] Production.INFO: ProcessCDR(1,14351446,1,1,2) [2025-01-28 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351446', 'tblTempUsageDetail_20' ) start [2025-01-28 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351446', 'tblTempUsageDetail_20' ) end [2025-01-28 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:32:23] Production.INFO: ==11618== Releasing lock... [2025-01-28 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:32:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-28 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:33:04 [end_date_ymd] => 2025-01-28 20:33:04 [RateCDR] => 1 ) [2025-01-28 20: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-28 17:33:04' and `end` < '2025-01-28 20: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-28 20:33:18] Production.INFO: count ==1681 [2025-01-28 20:33:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:33:04 - End Time 2025-01-28 20:33:04 [2025-01-28 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351451', 'tblTempUsageDetail_20' ) start [2025-01-28 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351451', 'tblTempUsageDetail_20' ) end [2025-01-28 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351451', 'tblTempVendorCDR_20' ) start [2025-01-28 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351451', 'tblTempVendorCDR_20' ) end [2025-01-28 20:33:18] Production.INFO: ProcessCDR(1,14351451,1,1,2) [2025-01-28 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351451', 'tblTempUsageDetail_20' ) start [2025-01-28 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351451', 'tblTempUsageDetail_20' ) end [2025-01-28 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:33:22] Production.INFO: ==11700== Releasing lock... [2025-01-28 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:33:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-28 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:34:05 [end_date_ymd] => 2025-01-28 20:34:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:34:05' and `end` < '2025-01-28 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-28 20:34:19] Production.INFO: count ==1681 [2025-01-28 20:34:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:34:05 - End Time 2025-01-28 20:34:05 [2025-01-28 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351456', 'tblTempUsageDetail_20' ) start [2025-01-28 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351456', 'tblTempUsageDetail_20' ) end [2025-01-28 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351456', 'tblTempVendorCDR_20' ) start [2025-01-28 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351456', 'tblTempVendorCDR_20' ) end [2025-01-28 20:34:19] Production.INFO: ProcessCDR(1,14351456,1,1,2) [2025-01-28 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351456', 'tblTempUsageDetail_20' ) start [2025-01-28 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351456', 'tblTempUsageDetail_20' ) end [2025-01-28 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:34:23] Production.INFO: ==11777== Releasing lock... [2025-01-28 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:34:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-28 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:35:05 [end_date_ymd] => 2025-01-28 20:35:05 [RateCDR] => 1 ) [2025-01-28 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:35:05' and `end` < '2025-01-28 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:35:18] Production.INFO: count ==1668 [2025-01-28 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:35:05 - End Time 2025-01-28 20:35:05 [2025-01-28 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351461', 'tblTempUsageDetail_20' ) start [2025-01-28 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351461', 'tblTempUsageDetail_20' ) end [2025-01-28 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351461', 'tblTempVendorCDR_20' ) start [2025-01-28 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351461', 'tblTempVendorCDR_20' ) end [2025-01-28 20:35:19] Production.INFO: ProcessCDR(1,14351461,1,1,2) [2025-01-28 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351461', 'tblTempUsageDetail_20' ) start [2025-01-28 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351461', 'tblTempUsageDetail_20' ) end [2025-01-28 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:35:22] Production.INFO: ==11893== Releasing lock... [2025-01-28 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:35:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-28 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:36:05 [end_date_ymd] => 2025-01-28 20:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:36:05' and `end` < '2025-01-28 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-28 20:36:18] Production.INFO: count ==1651 [2025-01-28 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:36:05 - End Time 2025-01-28 20:36:05 [2025-01-28 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351466', 'tblTempUsageDetail_20' ) start [2025-01-28 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351466', 'tblTempUsageDetail_20' ) end [2025-01-28 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351466', 'tblTempVendorCDR_20' ) start [2025-01-28 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351466', 'tblTempVendorCDR_20' ) end [2025-01-28 20:36:18] Production.INFO: ProcessCDR(1,14351466,1,1,2) [2025-01-28 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351466', 'tblTempUsageDetail_20' ) start [2025-01-28 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351466', 'tblTempUsageDetail_20' ) end [2025-01-28 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:36:22] Production.INFO: ==11977== Releasing lock... [2025-01-28 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:36:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-28 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:37:05 [end_date_ymd] => 2025-01-28 20:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:37:05' and `end` < '2025-01-28 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-28 20:37:18] Production.INFO: count ==1648 [2025-01-28 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:37:05 - End Time 2025-01-28 20:37:05 [2025-01-28 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351471', 'tblTempUsageDetail_20' ) start [2025-01-28 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351471', 'tblTempUsageDetail_20' ) end [2025-01-28 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351471', 'tblTempVendorCDR_20' ) start [2025-01-28 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351471', 'tblTempVendorCDR_20' ) end [2025-01-28 20:37:19] Production.INFO: ProcessCDR(1,14351471,1,1,2) [2025-01-28 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351471', 'tblTempUsageDetail_20' ) start [2025-01-28 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351471', 'tblTempUsageDetail_20' ) end [2025-01-28 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:37:23] Production.INFO: ==12052== Releasing lock... [2025-01-28 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:37:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-28 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:38:05 [end_date_ymd] => 2025-01-28 20:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:38:05' and `end` < '2025-01-28 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-28 20:38:18] Production.INFO: count ==1642 [2025-01-28 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:38:05 - End Time 2025-01-28 20:38:05 [2025-01-28 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351476', 'tblTempUsageDetail_20' ) start [2025-01-28 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351476', 'tblTempUsageDetail_20' ) end [2025-01-28 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351476', 'tblTempVendorCDR_20' ) start [2025-01-28 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351476', 'tblTempVendorCDR_20' ) end [2025-01-28 20:38:18] Production.INFO: ProcessCDR(1,14351476,1,1,2) [2025-01-28 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351476', 'tblTempUsageDetail_20' ) start [2025-01-28 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351476', 'tblTempUsageDetail_20' ) end [2025-01-28 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:38:21] Production.INFO: ==12135== Releasing lock... [2025-01-28 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:38:21] Production.INFO: 40 MB #Memory Used# [2025-01-28 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:39:05 [end_date_ymd] => 2025-01-28 20:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:39:05' and `end` < '2025-01-28 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-28 20:39:18] Production.INFO: count ==1633 [2025-01-28 20:39:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:39:05 - End Time 2025-01-28 20:39:05 [2025-01-28 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351481', 'tblTempUsageDetail_20' ) start [2025-01-28 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351481', 'tblTempUsageDetail_20' ) end [2025-01-28 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351481', 'tblTempVendorCDR_20' ) start [2025-01-28 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351481', 'tblTempVendorCDR_20' ) end [2025-01-28 20:39:18] Production.INFO: ProcessCDR(1,14351481,1,1,2) [2025-01-28 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351481', 'tblTempUsageDetail_20' ) start [2025-01-28 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351481', 'tblTempUsageDetail_20' ) end [2025-01-28 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:39:21] Production.INFO: ==12211== Releasing lock... [2025-01-28 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:39:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-28 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:40:05 [end_date_ymd] => 2025-01-28 20:40:05 [RateCDR] => 1 ) [2025-01-28 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:40:05' and `end` < '2025-01-28 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:40:18] Production.INFO: count ==1625 [2025-01-28 20:40:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:40:05 - End Time 2025-01-28 20:40:05 [2025-01-28 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351487', 'tblTempUsageDetail_20' ) start [2025-01-28 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351487', 'tblTempUsageDetail_20' ) end [2025-01-28 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351487', 'tblTempVendorCDR_20' ) start [2025-01-28 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351487', 'tblTempVendorCDR_20' ) end [2025-01-28 20:40:18] Production.INFO: ProcessCDR(1,14351487,1,1,2) [2025-01-28 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351487', 'tblTempUsageDetail_20' ) start [2025-01-28 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351487', 'tblTempUsageDetail_20' ) end [2025-01-28 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:40:23] Production.INFO: ==12291== Releasing lock... [2025-01-28 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:40:23] Production.INFO: 40 MB #Memory Used# [2025-01-28 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:41:05 [end_date_ymd] => 2025-01-28 20:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:41:05' and `end` < '2025-01-28 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-28 20:41:18] Production.INFO: count ==1565 [2025-01-28 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:41:05 - End Time 2025-01-28 20:41:05 [2025-01-28 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351492', 'tblTempUsageDetail_20' ) start [2025-01-28 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351492', 'tblTempUsageDetail_20' ) end [2025-01-28 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351492', 'tblTempVendorCDR_20' ) start [2025-01-28 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351492', 'tblTempVendorCDR_20' ) end [2025-01-28 20:41:18] Production.INFO: ProcessCDR(1,14351492,1,1,2) [2025-01-28 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351492', 'tblTempUsageDetail_20' ) start [2025-01-28 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351492', 'tblTempUsageDetail_20' ) end [2025-01-28 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:41:21] Production.INFO: ==12371== Releasing lock... [2025-01-28 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:41:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-28 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:42:05 [end_date_ymd] => 2025-01-28 20:42:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:42:05' and `end` < '2025-01-28 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-28 20:42:19] Production.INFO: count ==1566 [2025-01-28 20:42:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:42:05 - End Time 2025-01-28 20:42:05 [2025-01-28 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351497', 'tblTempUsageDetail_20' ) start [2025-01-28 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351497', 'tblTempUsageDetail_20' ) end [2025-01-28 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351497', 'tblTempVendorCDR_20' ) start [2025-01-28 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351497', 'tblTempVendorCDR_20' ) end [2025-01-28 20:42:19] Production.INFO: ProcessCDR(1,14351497,1,1,2) [2025-01-28 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351497', 'tblTempUsageDetail_20' ) start [2025-01-28 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351497', 'tblTempUsageDetail_20' ) end [2025-01-28 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:42:22] Production.INFO: ==12442== Releasing lock... [2025-01-28 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:42:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-28 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:43:05 [end_date_ymd] => 2025-01-28 20:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:43:05' and `end` < '2025-01-28 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-28 20:43:18] Production.INFO: count ==1565 [2025-01-28 20:43:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:43:05 - End Time 2025-01-28 20:43:05 [2025-01-28 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351502', 'tblTempUsageDetail_20' ) start [2025-01-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351502', 'tblTempUsageDetail_20' ) end [2025-01-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351502', 'tblTempVendorCDR_20' ) start [2025-01-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351502', 'tblTempVendorCDR_20' ) end [2025-01-28 20:43:19] Production.INFO: ProcessCDR(1,14351502,1,1,2) [2025-01-28 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351502', 'tblTempUsageDetail_20' ) start [2025-01-28 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351502', 'tblTempUsageDetail_20' ) end [2025-01-28 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:43:22] Production.INFO: ==12521== Releasing lock... [2025-01-28 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:43:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-28 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:44:05 [end_date_ymd] => 2025-01-28 20:44:05 [RateCDR] => 1 ) [2025-01-28 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:44:05' and `end` < '2025-01-28 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:44:18] Production.INFO: count ==1549 [2025-01-28 20:44:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:44:05 - End Time 2025-01-28 20:44:05 [2025-01-28 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351507', 'tblTempUsageDetail_20' ) start [2025-01-28 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351507', 'tblTempUsageDetail_20' ) end [2025-01-28 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351507', 'tblTempVendorCDR_20' ) start [2025-01-28 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351507', 'tblTempVendorCDR_20' ) end [2025-01-28 20:44:19] Production.INFO: ProcessCDR(1,14351507,1,1,2) [2025-01-28 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351507', 'tblTempUsageDetail_20' ) start [2025-01-28 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351507', 'tblTempUsageDetail_20' ) end [2025-01-28 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:44:22] Production.INFO: ==12598== Releasing lock... [2025-01-28 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:44:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-28 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:45:05 [end_date_ymd] => 2025-01-28 20:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:45:05' and `end` < '2025-01-28 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-28 20:45:18] Production.INFO: count ==1551 [2025-01-28 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:45:05 - End Time 2025-01-28 20:45:05 [2025-01-28 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351512', 'tblTempUsageDetail_20' ) start [2025-01-28 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351512', 'tblTempUsageDetail_20' ) end [2025-01-28 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351512', 'tblTempVendorCDR_20' ) start [2025-01-28 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351512', 'tblTempVendorCDR_20' ) end [2025-01-28 20:45:18] Production.INFO: ProcessCDR(1,14351512,1,1,2) [2025-01-28 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351512', 'tblTempUsageDetail_20' ) start [2025-01-28 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351512', 'tblTempUsageDetail_20' ) end [2025-01-28 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:45:23] Production.INFO: ==12682== Releasing lock... [2025-01-28 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:45:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-28 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:46:06 [end_date_ymd] => 2025-01-28 20:46:06 [RateCDR] => 1 ) [2025-01-28 20:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:46:06' and `end` < '2025-01-28 20:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:46:18] Production.INFO: count ==1549 [2025-01-28 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:46:06 - End Time 2025-01-28 20:46:06 [2025-01-28 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351517', 'tblTempUsageDetail_20' ) start [2025-01-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351517', 'tblTempUsageDetail_20' ) end [2025-01-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351517', 'tblTempVendorCDR_20' ) start [2025-01-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351517', 'tblTempVendorCDR_20' ) end [2025-01-28 20:46:19] Production.INFO: ProcessCDR(1,14351517,1,1,2) [2025-01-28 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351517', 'tblTempUsageDetail_20' ) start [2025-01-28 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351517', 'tblTempUsageDetail_20' ) end [2025-01-28 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:46:22] Production.INFO: ==12757== Releasing lock... [2025-01-28 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:46:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-28 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:47:05 [end_date_ymd] => 2025-01-28 20:47:05 [RateCDR] => 1 ) [2025-01-28 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:47:05' and `end` < '2025-01-28 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:47:18] Production.INFO: count ==1549 [2025-01-28 20:47:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:47:05 - End Time 2025-01-28 20:47:05 [2025-01-28 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351522', 'tblTempUsageDetail_20' ) start [2025-01-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351522', 'tblTempUsageDetail_20' ) end [2025-01-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351522', 'tblTempVendorCDR_20' ) start [2025-01-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351522', 'tblTempVendorCDR_20' ) end [2025-01-28 20:47:19] Production.INFO: ProcessCDR(1,14351522,1,1,2) [2025-01-28 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351522', 'tblTempUsageDetail_20' ) start [2025-01-28 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351522', 'tblTempUsageDetail_20' ) end [2025-01-28 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:47:22] Production.INFO: ==12830== Releasing lock... [2025-01-28 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:47:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-28 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:48:05 [end_date_ymd] => 2025-01-28 20:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:48:05' and `end` < '2025-01-28 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-28 20:48:18] Production.INFO: count ==1549 [2025-01-28 20:48:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:48:05 - End Time 2025-01-28 20:48:05 [2025-01-28 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351527', 'tblTempUsageDetail_20' ) start [2025-01-28 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351527', 'tblTempUsageDetail_20' ) end [2025-01-28 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351527', 'tblTempVendorCDR_20' ) start [2025-01-28 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351527', 'tblTempVendorCDR_20' ) end [2025-01-28 20:48:18] Production.INFO: ProcessCDR(1,14351527,1,1,2) [2025-01-28 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351527', 'tblTempUsageDetail_20' ) start [2025-01-28 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351527', 'tblTempUsageDetail_20' ) end [2025-01-28 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:48:21] Production.INFO: ==12906== Releasing lock... [2025-01-28 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:48:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-28 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:49:04 [end_date_ymd] => 2025-01-28 20:49:04 [RateCDR] => 1 ) [2025-01-28 20: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-28 17:49:04' and `end` < '2025-01-28 20: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-28 20:49:17] Production.INFO: count ==1549 [2025-01-28 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:49:04 - End Time 2025-01-28 20:49:04 [2025-01-28 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351532', 'tblTempUsageDetail_20' ) start [2025-01-28 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351532', 'tblTempUsageDetail_20' ) end [2025-01-28 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351532', 'tblTempVendorCDR_20' ) start [2025-01-28 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351532', 'tblTempVendorCDR_20' ) end [2025-01-28 20:49:18] Production.INFO: ProcessCDR(1,14351532,1,1,2) [2025-01-28 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351532', 'tblTempUsageDetail_20' ) start [2025-01-28 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351532', 'tblTempUsageDetail_20' ) end [2025-01-28 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:49:22] Production.INFO: ==12975== Releasing lock... [2025-01-28 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:49:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-28 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:50:05 [end_date_ymd] => 2025-01-28 20:50:05 [RateCDR] => 1 ) [2025-01-28 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:50:05' and `end` < '2025-01-28 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:50:18] Production.INFO: count ==1548 [2025-01-28 20:50:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:50:05 - End Time 2025-01-28 20:50:05 [2025-01-28 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351538', 'tblTempUsageDetail_20' ) start [2025-01-28 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351538', 'tblTempUsageDetail_20' ) end [2025-01-28 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351538', 'tblTempVendorCDR_20' ) start [2025-01-28 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351538', 'tblTempVendorCDR_20' ) end [2025-01-28 20:50:18] Production.INFO: ProcessCDR(1,14351538,1,1,2) [2025-01-28 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351538', 'tblTempUsageDetail_20' ) start [2025-01-28 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351538', 'tblTempUsageDetail_20' ) end [2025-01-28 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:50:22] Production.INFO: ==13074== Releasing lock... [2025-01-28 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:50:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-28 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:51:04 [end_date_ymd] => 2025-01-28 20:51:04 [RateCDR] => 1 ) [2025-01-28 20:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:51:04' and `end` < '2025-01-28 20:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:51:18] Production.INFO: count ==1484 [2025-01-28 20:51:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:51:04 - End Time 2025-01-28 20:51:04 [2025-01-28 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351543', 'tblTempUsageDetail_20' ) start [2025-01-28 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351543', 'tblTempUsageDetail_20' ) end [2025-01-28 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351543', 'tblTempVendorCDR_20' ) start [2025-01-28 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351543', 'tblTempVendorCDR_20' ) end [2025-01-28 20:51:19] Production.INFO: ProcessCDR(1,14351543,1,1,2) [2025-01-28 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351543', 'tblTempUsageDetail_20' ) start [2025-01-28 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351543', 'tblTempUsageDetail_20' ) end [2025-01-28 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:51:22] Production.INFO: ==13174== Releasing lock... [2025-01-28 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:51:22] Production.INFO: 39 MB #Memory Used# [2025-01-28 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:52:05 [end_date_ymd] => 2025-01-28 20:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:52:05' and `end` < '2025-01-28 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-28 20:52:18] Production.INFO: count ==1476 [2025-01-28 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:52:05 - End Time 2025-01-28 20:52:05 [2025-01-28 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351548', 'tblTempUsageDetail_20' ) start [2025-01-28 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351548', 'tblTempUsageDetail_20' ) end [2025-01-28 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351548', 'tblTempVendorCDR_20' ) start [2025-01-28 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351548', 'tblTempVendorCDR_20' ) end [2025-01-28 20:52:18] Production.INFO: ProcessCDR(1,14351548,1,1,2) [2025-01-28 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351548', 'tblTempUsageDetail_20' ) start [2025-01-28 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351548', 'tblTempUsageDetail_20' ) end [2025-01-28 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:52:22] Production.INFO: ==13250== Releasing lock... [2025-01-28 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:52:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-28 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:53:06 [end_date_ymd] => 2025-01-28 20:53:06 [RateCDR] => 1 ) [2025-01-28 20: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-28 17:53:06' and `end` < '2025-01-28 20: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-28 20:53:19] Production.INFO: count ==1474 [2025-01-28 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:53:06 - End Time 2025-01-28 20:53:06 [2025-01-28 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351553', 'tblTempUsageDetail_20' ) start [2025-01-28 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351553', 'tblTempUsageDetail_20' ) end [2025-01-28 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351553', 'tblTempVendorCDR_20' ) start [2025-01-28 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351553', 'tblTempVendorCDR_20' ) end [2025-01-28 20:53:19] Production.INFO: ProcessCDR(1,14351553,1,1,2) [2025-01-28 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351553', 'tblTempUsageDetail_20' ) start [2025-01-28 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351553', 'tblTempUsageDetail_20' ) end [2025-01-28 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:53:22] Production.INFO: ==13325== Releasing lock... [2025-01-28 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:53:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-28 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:54:05 [end_date_ymd] => 2025-01-28 20:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:54:05' and `end` < '2025-01-28 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-28 20:54:18] Production.INFO: count ==1473 [2025-01-28 20:54:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:54:05 - End Time 2025-01-28 20:54:05 [2025-01-28 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351558', 'tblTempUsageDetail_20' ) start [2025-01-28 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351558', 'tblTempUsageDetail_20' ) end [2025-01-28 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351558', 'tblTempVendorCDR_20' ) start [2025-01-28 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351558', 'tblTempVendorCDR_20' ) end [2025-01-28 20:54:18] Production.INFO: ProcessCDR(1,14351558,1,1,2) [2025-01-28 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351558', 'tblTempUsageDetail_20' ) start [2025-01-28 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351558', 'tblTempUsageDetail_20' ) end [2025-01-28 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:54:23] Production.INFO: ==13398== Releasing lock... [2025-01-28 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:54:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-28 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:55:05 [end_date_ymd] => 2025-01-28 20:55:05 [RateCDR] => 1 ) [2025-01-28 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 17:55:05' and `end` < '2025-01-28 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 20:55:18] Production.INFO: count ==1473 [2025-01-28 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:55:05 - End Time 2025-01-28 20:55:05 [2025-01-28 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351563', 'tblTempUsageDetail_20' ) start [2025-01-28 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351563', 'tblTempUsageDetail_20' ) end [2025-01-28 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351563', 'tblTempVendorCDR_20' ) start [2025-01-28 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351563', 'tblTempVendorCDR_20' ) end [2025-01-28 20:55:18] Production.INFO: ProcessCDR(1,14351563,1,1,2) [2025-01-28 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351563', 'tblTempUsageDetail_20' ) start [2025-01-28 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351563', 'tblTempUsageDetail_20' ) end [2025-01-28 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:55:21] Production.INFO: ==13475== Releasing lock... [2025-01-28 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:55:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-28 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:56:05 [end_date_ymd] => 2025-01-28 20:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:56:05' and `end` < '2025-01-28 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-28 20:56:18] Production.INFO: count ==1471 [2025-01-28 20:56:19] Production.ERROR: pbx CDR StartTime 2025-01-28 17:56:05 - End Time 2025-01-28 20:56:05 [2025-01-28 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351568', 'tblTempUsageDetail_20' ) start [2025-01-28 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351568', 'tblTempUsageDetail_20' ) end [2025-01-28 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351568', 'tblTempVendorCDR_20' ) start [2025-01-28 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351568', 'tblTempVendorCDR_20' ) end [2025-01-28 20:56:19] Production.INFO: ProcessCDR(1,14351568,1,1,2) [2025-01-28 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351568', 'tblTempUsageDetail_20' ) start [2025-01-28 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351568', 'tblTempUsageDetail_20' ) end [2025-01-28 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:56:22] Production.INFO: ==13550== Releasing lock... [2025-01-28 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:56:22] Production.INFO: 39 MB #Memory Used# [2025-01-28 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:57:05 [end_date_ymd] => 2025-01-28 20:57:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:57:05' and `end` < '2025-01-28 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-28 20:57:18] Production.INFO: count ==1467 [2025-01-28 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:57:05 - End Time 2025-01-28 20:57:05 [2025-01-28 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351573', 'tblTempUsageDetail_20' ) start [2025-01-28 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351573', 'tblTempUsageDetail_20' ) end [2025-01-28 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351573', 'tblTempVendorCDR_20' ) start [2025-01-28 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351573', 'tblTempVendorCDR_20' ) end [2025-01-28 20:57:18] Production.INFO: ProcessCDR(1,14351573,1,1,2) [2025-01-28 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351573', 'tblTempUsageDetail_20' ) start [2025-01-28 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351573', 'tblTempUsageDetail_20' ) end [2025-01-28 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:57:21] Production.INFO: ==13620== Releasing lock... [2025-01-28 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:57:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-28 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:58:04 [end_date_ymd] => 2025-01-28 20:58:04 [RateCDR] => 1 ) [2025-01-28 20: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-28 17:58:04' and `end` < '2025-01-28 20: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-28 20:58:17] Production.INFO: count ==1462 [2025-01-28 20:58:17] Production.ERROR: pbx CDR StartTime 2025-01-28 17:58:04 - End Time 2025-01-28 20:58:04 [2025-01-28 20:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351578', 'tblTempUsageDetail_20' ) start [2025-01-28 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351578', 'tblTempUsageDetail_20' ) end [2025-01-28 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351578', 'tblTempVendorCDR_20' ) start [2025-01-28 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351578', 'tblTempVendorCDR_20' ) end [2025-01-28 20:58:17] Production.INFO: ProcessCDR(1,14351578,1,1,2) [2025-01-28 20:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351578', 'tblTempUsageDetail_20' ) start [2025-01-28 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351578', 'tblTempUsageDetail_20' ) end [2025-01-28 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:58:21] Production.INFO: ==13697== Releasing lock... [2025-01-28 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:58:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-28 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 17:59:05 [end_date_ymd] => 2025-01-28 20:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 17:59:05' and `end` < '2025-01-28 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-28 20:59:18] Production.INFO: count ==1459 [2025-01-28 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-28 17:59:05 - End Time 2025-01-28 20:59:05 [2025-01-28 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351583', 'tblTempUsageDetail_20' ) start [2025-01-28 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351583', 'tblTempUsageDetail_20' ) end [2025-01-28 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351583', 'tblTempVendorCDR_20' ) start [2025-01-28 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351583', 'tblTempVendorCDR_20' ) end [2025-01-28 20:59:18] Production.INFO: ProcessCDR(1,14351583,1,1,2) [2025-01-28 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351583', 'tblTempUsageDetail_20' ) start [2025-01-28 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351583', 'tblTempUsageDetail_20' ) end [2025-01-28 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 20:59:23] Production.INFO: ==13772== Releasing lock... [2025-01-28 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 20:59:23] Production.INFO: 39 MB #Memory Used# [2025-01-28 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:00:06 [end_date_ymd] => 2025-01-28 21:00:06 [RateCDR] => 1 ) [2025-01-28 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:00:06' and `end` < '2025-01-28 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:00:19] Production.INFO: count ==1443 [2025-01-28 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:00:06 - End Time 2025-01-28 21:00:06 [2025-01-28 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351588', 'tblTempUsageDetail_20' ) start [2025-01-28 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351588', 'tblTempUsageDetail_20' ) end [2025-01-28 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351588', 'tblTempVendorCDR_20' ) start [2025-01-28 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351588', 'tblTempVendorCDR_20' ) end [2025-01-28 21:00:19] Production.INFO: ProcessCDR(1,14351588,1,1,2) [2025-01-28 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351588', 'tblTempUsageDetail_20' ) start [2025-01-28 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351588', 'tblTempUsageDetail_20' ) end [2025-01-28 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:00:22] Production.INFO: ==13849== Releasing lock... [2025-01-28 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:00:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-28 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:01:05 [end_date_ymd] => 2025-01-28 21:01:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:01:05' and `end` < '2025-01-28 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-28 21:01:18] Production.INFO: count ==1380 [2025-01-28 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:01:05 - End Time 2025-01-28 21:01:05 [2025-01-28 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351594', 'tblTempUsageDetail_20' ) start [2025-01-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351594', 'tblTempUsageDetail_20' ) end [2025-01-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351594', 'tblTempVendorCDR_20' ) start [2025-01-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351594', 'tblTempVendorCDR_20' ) end [2025-01-28 21:01:19] Production.INFO: ProcessCDR(1,14351594,1,1,2) [2025-01-28 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351594', 'tblTempUsageDetail_20' ) start [2025-01-28 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351594', 'tblTempUsageDetail_20' ) end [2025-01-28 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:01:23] Production.INFO: ==13933== Releasing lock... [2025-01-28 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:01:23] Production.INFO: 39 MB #Memory Used# [2025-01-28 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:02:05 [end_date_ymd] => 2025-01-28 21:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:02:05' and `end` < '2025-01-28 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-28 21:02:18] Production.INFO: count ==1375 [2025-01-28 21:02:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:02:05 - End Time 2025-01-28 21:02:05 [2025-01-28 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351599', 'tblTempUsageDetail_20' ) start [2025-01-28 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351599', 'tblTempUsageDetail_20' ) end [2025-01-28 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351599', 'tblTempVendorCDR_20' ) start [2025-01-28 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351599', 'tblTempVendorCDR_20' ) end [2025-01-28 21:02:18] Production.INFO: ProcessCDR(1,14351599,1,1,2) [2025-01-28 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351599', 'tblTempUsageDetail_20' ) start [2025-01-28 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351599', 'tblTempUsageDetail_20' ) end [2025-01-28 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:02:21] Production.INFO: ==14006== Releasing lock... [2025-01-28 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:02:21] Production.INFO: 38 MB #Memory Used# [2025-01-28 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:03:04 [end_date_ymd] => 2025-01-28 21:03:04 [RateCDR] => 1 ) [2025-01-28 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-28 18:03:04' and `end` < '2025-01-28 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-28 21:03:17] Production.INFO: count ==1352 [2025-01-28 21:03:17] Production.ERROR: pbx CDR StartTime 2025-01-28 18:03:04 - End Time 2025-01-28 21:03:04 [2025-01-28 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351604', 'tblTempUsageDetail_20' ) start [2025-01-28 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351604', 'tblTempUsageDetail_20' ) end [2025-01-28 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351604', 'tblTempVendorCDR_20' ) start [2025-01-28 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351604', 'tblTempVendorCDR_20' ) end [2025-01-28 21:03:17] Production.INFO: ProcessCDR(1,14351604,1,1,2) [2025-01-28 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351604', 'tblTempUsageDetail_20' ) start [2025-01-28 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351604', 'tblTempUsageDetail_20' ) end [2025-01-28 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:03:21] Production.INFO: ==14078== Releasing lock... [2025-01-28 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:03:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-28 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:04:05 [end_date_ymd] => 2025-01-28 21:04:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:04:05' and `end` < '2025-01-28 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-28 21:04:18] Production.INFO: count ==1351 [2025-01-28 21:04:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:04:05 - End Time 2025-01-28 21:04:05 [2025-01-28 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351609', 'tblTempUsageDetail_20' ) start [2025-01-28 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351609', 'tblTempUsageDetail_20' ) end [2025-01-28 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351609', 'tblTempVendorCDR_20' ) start [2025-01-28 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351609', 'tblTempVendorCDR_20' ) end [2025-01-28 21:04:19] Production.INFO: ProcessCDR(1,14351609,1,1,2) [2025-01-28 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351609', 'tblTempUsageDetail_20' ) start [2025-01-28 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351609', 'tblTempUsageDetail_20' ) end [2025-01-28 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:04:22] Production.INFO: ==14150== Releasing lock... [2025-01-28 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:04:22] Production.INFO: 38 MB #Memory Used# [2025-01-28 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:05:05 [end_date_ymd] => 2025-01-28 21:05:05 [RateCDR] => 1 ) [2025-01-28 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:05:05' and `end` < '2025-01-28 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:05:17] Production.INFO: count ==1350 [2025-01-28 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:05:05 - End Time 2025-01-28 21:05:05 [2025-01-28 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351614', 'tblTempUsageDetail_20' ) start [2025-01-28 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351614', 'tblTempUsageDetail_20' ) end [2025-01-28 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351614', 'tblTempVendorCDR_20' ) start [2025-01-28 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351614', 'tblTempVendorCDR_20' ) end [2025-01-28 21:05:18] Production.INFO: ProcessCDR(1,14351614,1,1,2) [2025-01-28 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351614', 'tblTempUsageDetail_20' ) start [2025-01-28 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351614', 'tblTempUsageDetail_20' ) end [2025-01-28 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:05:21] Production.INFO: ==14227== Releasing lock... [2025-01-28 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:05:21] Production.INFO: 38 MB #Memory Used# [2025-01-28 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:06:05 [end_date_ymd] => 2025-01-28 21:06:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:06:05' and `end` < '2025-01-28 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-28 21:06:19] Production.INFO: count ==1346 [2025-01-28 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:06:05 - End Time 2025-01-28 21:06:05 [2025-01-28 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351619', 'tblTempUsageDetail_20' ) start [2025-01-28 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351619', 'tblTempUsageDetail_20' ) end [2025-01-28 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351619', 'tblTempVendorCDR_20' ) start [2025-01-28 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351619', 'tblTempVendorCDR_20' ) end [2025-01-28 21:06:19] Production.INFO: ProcessCDR(1,14351619,1,1,2) [2025-01-28 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351619', 'tblTempUsageDetail_20' ) start [2025-01-28 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351619', 'tblTempUsageDetail_20' ) end [2025-01-28 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:06:22] Production.INFO: ==14342== Releasing lock... [2025-01-28 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:06:22] Production.INFO: 38 MB #Memory Used# [2025-01-28 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:07:05 [end_date_ymd] => 2025-01-28 21:07:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:07:05' and `end` < '2025-01-28 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:07:18] Production.INFO: count ==1344 [2025-01-28 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:07:05 - End Time 2025-01-28 21:07:05 [2025-01-28 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351624', 'tblTempUsageDetail_20' ) start [2025-01-28 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351624', 'tblTempUsageDetail_20' ) end [2025-01-28 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351624', 'tblTempVendorCDR_20' ) start [2025-01-28 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351624', 'tblTempVendorCDR_20' ) end [2025-01-28 21:07:18] Production.INFO: ProcessCDR(1,14351624,1,1,2) [2025-01-28 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351624', 'tblTempUsageDetail_20' ) start [2025-01-28 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351624', 'tblTempUsageDetail_20' ) end [2025-01-28 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:07:21] Production.INFO: ==14424== Releasing lock... [2025-01-28 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:07:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-28 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:08:05 [end_date_ymd] => 2025-01-28 21:08:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:08:05' and `end` < '2025-01-28 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-28 21:08:18] Production.INFO: count ==1322 [2025-01-28 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:08:05 - End Time 2025-01-28 21:08:05 [2025-01-28 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351629', 'tblTempUsageDetail_20' ) start [2025-01-28 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351629', 'tblTempUsageDetail_20' ) end [2025-01-28 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351629', 'tblTempVendorCDR_20' ) start [2025-01-28 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351629', 'tblTempVendorCDR_20' ) end [2025-01-28 21:08:18] Production.INFO: ProcessCDR(1,14351629,1,1,2) [2025-01-28 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351629', 'tblTempUsageDetail_20' ) start [2025-01-28 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351629', 'tblTempUsageDetail_20' ) end [2025-01-28 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:08:21] Production.INFO: ==14500== Releasing lock... [2025-01-28 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:08:21] Production.INFO: 38 MB #Memory Used# [2025-01-28 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:09:06 [end_date_ymd] => 2025-01-28 21:09:06 [RateCDR] => 1 ) [2025-01-28 21: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-28 18:09:06' and `end` < '2025-01-28 21: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-28 21:09:19] Production.INFO: count ==1288 [2025-01-28 21:09:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:09:06 - End Time 2025-01-28 21:09:06 [2025-01-28 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351634', 'tblTempUsageDetail_20' ) start [2025-01-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351634', 'tblTempUsageDetail_20' ) end [2025-01-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351634', 'tblTempVendorCDR_20' ) start [2025-01-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351634', 'tblTempVendorCDR_20' ) end [2025-01-28 21:09:19] Production.INFO: ProcessCDR(1,14351634,1,1,2) [2025-01-28 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351634', 'tblTempUsageDetail_20' ) start [2025-01-28 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351634', 'tblTempUsageDetail_20' ) end [2025-01-28 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:09:22] Production.INFO: ==14572== Releasing lock... [2025-01-28 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:09:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-28 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:10:06 [end_date_ymd] => 2025-01-28 21:10:06 [RateCDR] => 1 ) [2025-01-28 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:10:06' and `end` < '2025-01-28 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:10:19] Production.INFO: count ==1298 [2025-01-28 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:10:06 - End Time 2025-01-28 21:10:06 [2025-01-28 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351640', 'tblTempUsageDetail_20' ) start [2025-01-28 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351640', 'tblTempUsageDetail_20' ) end [2025-01-28 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351640', 'tblTempVendorCDR_20' ) start [2025-01-28 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351640', 'tblTempVendorCDR_20' ) end [2025-01-28 21:10:19] Production.INFO: ProcessCDR(1,14351640,1,1,2) [2025-01-28 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351640', 'tblTempUsageDetail_20' ) start [2025-01-28 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351640', 'tblTempUsageDetail_20' ) end [2025-01-28 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:10:22] Production.INFO: ==14645== Releasing lock... [2025-01-28 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:10:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-28 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:11:05 [end_date_ymd] => 2025-01-28 21:11:05 [RateCDR] => 1 ) [2025-01-28 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:11:05' and `end` < '2025-01-28 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:11:18] Production.INFO: count ==1273 [2025-01-28 21:11:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:11:05 - End Time 2025-01-28 21:11:05 [2025-01-28 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351645', 'tblTempUsageDetail_20' ) start [2025-01-28 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351645', 'tblTempUsageDetail_20' ) end [2025-01-28 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351645', 'tblTempVendorCDR_20' ) start [2025-01-28 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351645', 'tblTempVendorCDR_20' ) end [2025-01-28 21:11:18] Production.INFO: ProcessCDR(1,14351645,1,1,2) [2025-01-28 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351645', 'tblTempUsageDetail_20' ) start [2025-01-28 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351645', 'tblTempUsageDetail_20' ) end [2025-01-28 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:11:23] Production.INFO: ==14718== Releasing lock... [2025-01-28 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:11:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-28 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:12:05 [end_date_ymd] => 2025-01-28 21:12:05 [RateCDR] => 1 ) [2025-01-28 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:12:05' and `end` < '2025-01-28 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:12:18] Production.INFO: count ==1268 [2025-01-28 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:12:05 - End Time 2025-01-28 21:12:05 [2025-01-28 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351650', 'tblTempUsageDetail_20' ) start [2025-01-28 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351650', 'tblTempUsageDetail_20' ) end [2025-01-28 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351650', 'tblTempVendorCDR_20' ) start [2025-01-28 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351650', 'tblTempVendorCDR_20' ) end [2025-01-28 21:12:18] Production.INFO: ProcessCDR(1,14351650,1,1,2) [2025-01-28 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351650', 'tblTempUsageDetail_20' ) start [2025-01-28 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351650', 'tblTempUsageDetail_20' ) end [2025-01-28 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:12:22] Production.INFO: ==14789== Releasing lock... [2025-01-28 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:12:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-28 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:13:05 [end_date_ymd] => 2025-01-28 21:13:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:13:05' and `end` < '2025-01-28 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-28 21:13:19] Production.INFO: count ==1277 [2025-01-28 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:13:05 - End Time 2025-01-28 21:13:05 [2025-01-28 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351655', 'tblTempUsageDetail_20' ) start [2025-01-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351655', 'tblTempUsageDetail_20' ) end [2025-01-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351655', 'tblTempVendorCDR_20' ) start [2025-01-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351655', 'tblTempVendorCDR_20' ) end [2025-01-28 21:13:19] Production.INFO: ProcessCDR(1,14351655,1,1,2) [2025-01-28 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351655', 'tblTempUsageDetail_20' ) start [2025-01-28 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351655', 'tblTempUsageDetail_20' ) end [2025-01-28 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:13:24] Production.INFO: ==14863== Releasing lock... [2025-01-28 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:13:24] Production.INFO: 37.5 MB #Memory Used# [2025-01-28 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:14:05 [end_date_ymd] => 2025-01-28 21:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:14:05' and `end` < '2025-01-28 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-28 21:14:19] Production.INFO: count ==1273 [2025-01-28 21:14:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:14:05 - End Time 2025-01-28 21:14:05 [2025-01-28 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351660', 'tblTempUsageDetail_20' ) start [2025-01-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351660', 'tblTempUsageDetail_20' ) end [2025-01-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351660', 'tblTempVendorCDR_20' ) start [2025-01-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351660', 'tblTempVendorCDR_20' ) end [2025-01-28 21:14:19] Production.INFO: ProcessCDR(1,14351660,1,1,2) [2025-01-28 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351660', 'tblTempUsageDetail_20' ) start [2025-01-28 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351660', 'tblTempUsageDetail_20' ) end [2025-01-28 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:14:22] Production.INFO: ==14935== Releasing lock... [2025-01-28 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:14:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-28 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:15:05 [end_date_ymd] => 2025-01-28 21:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:15:05' and `end` < '2025-01-28 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-28 21:15:18] Production.INFO: count ==1270 [2025-01-28 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:15:05 - End Time 2025-01-28 21:15:05 [2025-01-28 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351665', 'tblTempUsageDetail_20' ) start [2025-01-28 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351665', 'tblTempUsageDetail_20' ) end [2025-01-28 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351665', 'tblTempVendorCDR_20' ) start [2025-01-28 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351665', 'tblTempVendorCDR_20' ) end [2025-01-28 21:15:18] Production.INFO: ProcessCDR(1,14351665,1,1,2) [2025-01-28 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351665', 'tblTempUsageDetail_20' ) start [2025-01-28 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351665', 'tblTempUsageDetail_20' ) end [2025-01-28 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:15:21] Production.INFO: ==15008== Releasing lock... [2025-01-28 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:15:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-28 21:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:16:04 [end_date_ymd] => 2025-01-28 21:16:04 [RateCDR] => 1 ) [2025-01-28 21:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:16:04' and `end` < '2025-01-28 21:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:16:19] Production.INFO: count ==1268 [2025-01-28 21:16:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:16:04 - End Time 2025-01-28 21:16:04 [2025-01-28 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351670', 'tblTempUsageDetail_20' ) start [2025-01-28 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351670', 'tblTempUsageDetail_20' ) end [2025-01-28 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351670', 'tblTempVendorCDR_20' ) start [2025-01-28 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351670', 'tblTempVendorCDR_20' ) end [2025-01-28 21:16:19] Production.INFO: ProcessCDR(1,14351670,1,1,2) [2025-01-28 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351670', 'tblTempUsageDetail_20' ) start [2025-01-28 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351670', 'tblTempUsageDetail_20' ) end [2025-01-28 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:16:23] Production.INFO: ==15078== Releasing lock... [2025-01-28 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:16:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-28 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:17:05 [end_date_ymd] => 2025-01-28 21:17:05 [RateCDR] => 1 ) [2025-01-28 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:17:05' and `end` < '2025-01-28 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:17:18] Production.INFO: count ==1267 [2025-01-28 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:17:05 - End Time 2025-01-28 21:17:05 [2025-01-28 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351675', 'tblTempUsageDetail_20' ) start [2025-01-28 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351675', 'tblTempUsageDetail_20' ) end [2025-01-28 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351675', 'tblTempVendorCDR_20' ) start [2025-01-28 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351675', 'tblTempVendorCDR_20' ) end [2025-01-28 21:17:18] Production.INFO: ProcessCDR(1,14351675,1,1,2) [2025-01-28 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351675', 'tblTempUsageDetail_20' ) start [2025-01-28 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351675', 'tblTempUsageDetail_20' ) end [2025-01-28 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:17:21] Production.INFO: ==15150== Releasing lock... [2025-01-28 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:17:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-28 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:18:06 [end_date_ymd] => 2025-01-28 21:18:06 [RateCDR] => 1 ) [2025-01-28 21: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-28 18:18:06' and `end` < '2025-01-28 21: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-28 21:18:21] Production.INFO: count ==1263 [2025-01-28 21:18:21] Production.ERROR: pbx CDR StartTime 2025-01-28 18:18:06 - End Time 2025-01-28 21:18:06 [2025-01-28 21:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351680', 'tblTempUsageDetail_20' ) start [2025-01-28 21:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351680', 'tblTempUsageDetail_20' ) end [2025-01-28 21:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351680', 'tblTempVendorCDR_20' ) start [2025-01-28 21:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351680', 'tblTempVendorCDR_20' ) end [2025-01-28 21:18:21] Production.INFO: ProcessCDR(1,14351680,1,1,2) [2025-01-28 21:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351680', 'tblTempUsageDetail_20' ) start [2025-01-28 21:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351680', 'tblTempUsageDetail_20' ) end [2025-01-28 21:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:18:25] Production.INFO: ==15222== Releasing lock... [2025-01-28 21:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:18:25] Production.INFO: 37.5 MB #Memory Used# [2025-01-28 21:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:19:04 [end_date_ymd] => 2025-01-28 21:19:04 [RateCDR] => 1 ) [2025-01-28 21: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-28 18:19:04' and `end` < '2025-01-28 21: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-28 21:19:18] Production.INFO: count ==1258 [2025-01-28 21:19:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:19:04 - End Time 2025-01-28 21:19:04 [2025-01-28 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351685', 'tblTempUsageDetail_20' ) start [2025-01-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351685', 'tblTempUsageDetail_20' ) end [2025-01-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351685', 'tblTempVendorCDR_20' ) start [2025-01-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351685', 'tblTempVendorCDR_20' ) end [2025-01-28 21:19:19] Production.INFO: ProcessCDR(1,14351685,1,1,2) [2025-01-28 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351685', 'tblTempUsageDetail_20' ) start [2025-01-28 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351685', 'tblTempUsageDetail_20' ) end [2025-01-28 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:19:23] Production.INFO: ==15292== Releasing lock... [2025-01-28 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:19:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-28 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:20:06 [end_date_ymd] => 2025-01-28 21:20:06 [RateCDR] => 1 ) [2025-01-28 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-28 18:20:06' and `end` < '2025-01-28 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-28 21:20:18] Production.INFO: count ==1258 [2025-01-28 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:20:06 - End Time 2025-01-28 21:20:06 [2025-01-28 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351690', 'tblTempUsageDetail_20' ) start [2025-01-28 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351690', 'tblTempUsageDetail_20' ) end [2025-01-28 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351690', 'tblTempVendorCDR_20' ) start [2025-01-28 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351690', 'tblTempVendorCDR_20' ) end [2025-01-28 21:20:19] Production.INFO: ProcessCDR(1,14351690,1,1,2) [2025-01-28 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351690', 'tblTempUsageDetail_20' ) start [2025-01-28 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351690', 'tblTempUsageDetail_20' ) end [2025-01-28 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:20:23] Production.INFO: ==15367== Releasing lock... [2025-01-28 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:20:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-28 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:21:05 [end_date_ymd] => 2025-01-28 21:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:21:05' and `end` < '2025-01-28 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-28 21:21:18] Production.INFO: count ==1216 [2025-01-28 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:21:05 - End Time 2025-01-28 21:21:05 [2025-01-28 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351696', 'tblTempUsageDetail_20' ) start [2025-01-28 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351696', 'tblTempUsageDetail_20' ) end [2025-01-28 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351696', 'tblTempVendorCDR_20' ) start [2025-01-28 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351696', 'tblTempVendorCDR_20' ) end [2025-01-28 21:21:18] Production.INFO: ProcessCDR(1,14351696,1,1,2) [2025-01-28 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351696', 'tblTempUsageDetail_20' ) start [2025-01-28 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351696', 'tblTempUsageDetail_20' ) end [2025-01-28 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:21:21] Production.INFO: ==15480== Releasing lock... [2025-01-28 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:21:21] Production.INFO: 37 MB #Memory Used# [2025-01-28 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:22:05 [end_date_ymd] => 2025-01-28 21:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:22:05' and `end` < '2025-01-28 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-28 21:22:18] Production.INFO: count ==1213 [2025-01-28 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:22:05 - End Time 2025-01-28 21:22:05 [2025-01-28 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351701', 'tblTempUsageDetail_20' ) start [2025-01-28 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351701', 'tblTempUsageDetail_20' ) end [2025-01-28 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351701', 'tblTempVendorCDR_20' ) start [2025-01-28 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351701', 'tblTempVendorCDR_20' ) end [2025-01-28 21:22:18] Production.INFO: ProcessCDR(1,14351701,1,1,2) [2025-01-28 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351701', 'tblTempUsageDetail_20' ) start [2025-01-28 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351701', 'tblTempUsageDetail_20' ) end [2025-01-28 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:22:23] Production.INFO: ==15560== Releasing lock... [2025-01-28 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:22:23] Production.INFO: 37 MB #Memory Used# [2025-01-28 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:23:05 [end_date_ymd] => 2025-01-28 21:23:05 [RateCDR] => 1 ) [2025-01-28 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:23:05' and `end` < '2025-01-28 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:23:19] Production.INFO: count ==1214 [2025-01-28 21:23:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:23:05 - End Time 2025-01-28 21:23:05 [2025-01-28 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351706', 'tblTempUsageDetail_20' ) start [2025-01-28 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351706', 'tblTempUsageDetail_20' ) end [2025-01-28 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351706', 'tblTempVendorCDR_20' ) start [2025-01-28 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351706', 'tblTempVendorCDR_20' ) end [2025-01-28 21:23:19] Production.INFO: ProcessCDR(1,14351706,1,1,2) [2025-01-28 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351706', 'tblTempUsageDetail_20' ) start [2025-01-28 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351706', 'tblTempUsageDetail_20' ) end [2025-01-28 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:23:22] Production.INFO: ==15632== Releasing lock... [2025-01-28 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:23:22] Production.INFO: 37 MB #Memory Used# [2025-01-28 21:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:24:04 [end_date_ymd] => 2025-01-28 21:24:04 [RateCDR] => 1 ) [2025-01-28 21:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:24:04' and `end` < '2025-01-28 21:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:24:18] Production.INFO: count ==1209 [2025-01-28 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:24:04 - End Time 2025-01-28 21:24:04 [2025-01-28 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351711', 'tblTempUsageDetail_20' ) start [2025-01-28 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351711', 'tblTempUsageDetail_20' ) end [2025-01-28 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351711', 'tblTempVendorCDR_20' ) start [2025-01-28 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351711', 'tblTempVendorCDR_20' ) end [2025-01-28 21:24:18] Production.INFO: ProcessCDR(1,14351711,1,1,2) [2025-01-28 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351711', 'tblTempUsageDetail_20' ) start [2025-01-28 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351711', 'tblTempUsageDetail_20' ) end [2025-01-28 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:24:22] Production.INFO: ==15707== Releasing lock... [2025-01-28 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:24:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-28 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:25:05 [end_date_ymd] => 2025-01-28 21:25:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:25:05' and `end` < '2025-01-28 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-28 21:25:18] Production.INFO: count ==1203 [2025-01-28 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:25:05 - End Time 2025-01-28 21:25:05 [2025-01-28 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351716', 'tblTempUsageDetail_20' ) start [2025-01-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351716', 'tblTempUsageDetail_20' ) end [2025-01-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351716', 'tblTempVendorCDR_20' ) start [2025-01-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351716', 'tblTempVendorCDR_20' ) end [2025-01-28 21:25:18] Production.INFO: ProcessCDR(1,14351716,1,1,2) [2025-01-28 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351716', 'tblTempUsageDetail_20' ) start [2025-01-28 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351716', 'tblTempUsageDetail_20' ) end [2025-01-28 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:25:21] Production.INFO: ==15777== Releasing lock... [2025-01-28 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:25:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-28 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:26:05 [end_date_ymd] => 2025-01-28 21:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:26:05' and `end` < '2025-01-28 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-28 21:26:18] Production.INFO: count ==1191 [2025-01-28 21:26:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:26:05 - End Time 2025-01-28 21:26:05 [2025-01-28 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351721', 'tblTempUsageDetail_20' ) start [2025-01-28 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351721', 'tblTempUsageDetail_20' ) end [2025-01-28 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351721', 'tblTempVendorCDR_20' ) start [2025-01-28 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351721', 'tblTempVendorCDR_20' ) end [2025-01-28 21:26:18] Production.INFO: ProcessCDR(1,14351721,1,1,2) [2025-01-28 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351721', 'tblTempUsageDetail_20' ) start [2025-01-28 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351721', 'tblTempUsageDetail_20' ) end [2025-01-28 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:26:21] Production.INFO: ==15861== Releasing lock... [2025-01-28 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:26:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-28 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:27:05 [end_date_ymd] => 2025-01-28 21:27:05 [RateCDR] => 1 ) [2025-01-28 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:27:05' and `end` < '2025-01-28 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:27:18] Production.INFO: count ==1180 [2025-01-28 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:27:05 - End Time 2025-01-28 21:27:05 [2025-01-28 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351726', 'tblTempUsageDetail_20' ) start [2025-01-28 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351726', 'tblTempUsageDetail_20' ) end [2025-01-28 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351726', 'tblTempVendorCDR_20' ) start [2025-01-28 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351726', 'tblTempVendorCDR_20' ) end [2025-01-28 21:27:18] Production.INFO: ProcessCDR(1,14351726,1,1,2) [2025-01-28 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351726', 'tblTempUsageDetail_20' ) start [2025-01-28 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351726', 'tblTempUsageDetail_20' ) end [2025-01-28 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:27:21] Production.INFO: ==15933== Releasing lock... [2025-01-28 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:27:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-28 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:28:05 [end_date_ymd] => 2025-01-28 21:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:28:05' and `end` < '2025-01-28 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-28 21:28:18] Production.INFO: count ==1168 [2025-01-28 21:28:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:28:05 - End Time 2025-01-28 21:28:05 [2025-01-28 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351731', 'tblTempUsageDetail_20' ) start [2025-01-28 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351731', 'tblTempUsageDetail_20' ) end [2025-01-28 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351731', 'tblTempVendorCDR_20' ) start [2025-01-28 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351731', 'tblTempVendorCDR_20' ) end [2025-01-28 21:28:18] Production.INFO: ProcessCDR(1,14351731,1,1,2) [2025-01-28 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351731', 'tblTempUsageDetail_20' ) start [2025-01-28 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351731', 'tblTempUsageDetail_20' ) end [2025-01-28 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:28:23] Production.INFO: ==16004== Releasing lock... [2025-01-28 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:28:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:29:05 [end_date_ymd] => 2025-01-28 21:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:29:05' and `end` < '2025-01-28 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-28 21:29:18] Production.INFO: count ==1165 [2025-01-28 21:29:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:29:05 - End Time 2025-01-28 21:29:05 [2025-01-28 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351736', 'tblTempUsageDetail_20' ) start [2025-01-28 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351736', 'tblTempUsageDetail_20' ) end [2025-01-28 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351736', 'tblTempVendorCDR_20' ) start [2025-01-28 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351736', 'tblTempVendorCDR_20' ) end [2025-01-28 21:29:18] Production.INFO: ProcessCDR(1,14351736,1,1,2) [2025-01-28 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351736', 'tblTempUsageDetail_20' ) start [2025-01-28 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351736', 'tblTempUsageDetail_20' ) end [2025-01-28 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:29:21] Production.INFO: ==16075== Releasing lock... [2025-01-28 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:29:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:30:06 [end_date_ymd] => 2025-01-28 21:30:06 [RateCDR] => 1 ) [2025-01-28 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:30:06' and `end` < '2025-01-28 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:30:19] Production.INFO: count ==1174 [2025-01-28 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:30:06 - End Time 2025-01-28 21:30:06 [2025-01-28 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351742', 'tblTempUsageDetail_20' ) start [2025-01-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351742', 'tblTempUsageDetail_20' ) end [2025-01-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351742', 'tblTempVendorCDR_20' ) start [2025-01-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351742', 'tblTempVendorCDR_20' ) end [2025-01-28 21:30:19] Production.INFO: ProcessCDR(1,14351742,1,1,2) [2025-01-28 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351742', 'tblTempUsageDetail_20' ) start [2025-01-28 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351742', 'tblTempUsageDetail_20' ) end [2025-01-28 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:30:22] Production.INFO: ==16149== Releasing lock... [2025-01-28 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:30:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-28 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:31:05 [end_date_ymd] => 2025-01-28 21:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:31:05' and `end` < '2025-01-28 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-28 21:31:19] Production.INFO: count ==1144 [2025-01-28 21:31:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:31:05 - End Time 2025-01-28 21:31:05 [2025-01-28 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351747', 'tblTempUsageDetail_20' ) start [2025-01-28 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351747', 'tblTempUsageDetail_20' ) end [2025-01-28 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351747', 'tblTempVendorCDR_20' ) start [2025-01-28 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351747', 'tblTempVendorCDR_20' ) end [2025-01-28 21:31:19] Production.INFO: ProcessCDR(1,14351747,1,1,2) [2025-01-28 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351747', 'tblTempUsageDetail_20' ) start [2025-01-28 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351747', 'tblTempUsageDetail_20' ) end [2025-01-28 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:31:23] Production.INFO: ==16225== Releasing lock... [2025-01-28 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:31:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:32:06 [end_date_ymd] => 2025-01-28 21:32:06 [RateCDR] => 1 ) [2025-01-28 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:32:06' and `end` < '2025-01-28 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:32:20] Production.INFO: count ==1154 [2025-01-28 21:32:20] Production.ERROR: pbx CDR StartTime 2025-01-28 18:32:06 - End Time 2025-01-28 21:32:06 [2025-01-28 21:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351752', 'tblTempUsageDetail_20' ) start [2025-01-28 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351752', 'tblTempUsageDetail_20' ) end [2025-01-28 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351752', 'tblTempVendorCDR_20' ) start [2025-01-28 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351752', 'tblTempVendorCDR_20' ) end [2025-01-28 21:32:20] Production.INFO: ProcessCDR(1,14351752,1,1,2) [2025-01-28 21:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351752', 'tblTempUsageDetail_20' ) start [2025-01-28 21:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351752', 'tblTempUsageDetail_20' ) end [2025-01-28 21:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:32:25] Production.INFO: ==16302== Releasing lock... [2025-01-28 21:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:32:25] Production.INFO: 36.5 MB #Memory Used# [2025-01-28 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:33:05 [end_date_ymd] => 2025-01-28 21:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:33:05' and `end` < '2025-01-28 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-28 21:33:18] Production.INFO: count ==1158 [2025-01-28 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:33:05 - End Time 2025-01-28 21:33:05 [2025-01-28 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351757', 'tblTempUsageDetail_20' ) start [2025-01-28 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351757', 'tblTempUsageDetail_20' ) end [2025-01-28 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351757', 'tblTempVendorCDR_20' ) start [2025-01-28 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351757', 'tblTempVendorCDR_20' ) end [2025-01-28 21:33:18] Production.INFO: ProcessCDR(1,14351757,1,1,2) [2025-01-28 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351757', 'tblTempUsageDetail_20' ) start [2025-01-28 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351757', 'tblTempUsageDetail_20' ) end [2025-01-28 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:33:21] Production.INFO: ==16372== Releasing lock... [2025-01-28 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:33:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-28 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:34:05 [end_date_ymd] => 2025-01-28 21:34:05 [RateCDR] => 1 ) [2025-01-28 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:34:05' and `end` < '2025-01-28 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:34:20] Production.INFO: count ==1163 [2025-01-28 21:34:20] Production.ERROR: pbx CDR StartTime 2025-01-28 18:34:05 - End Time 2025-01-28 21:34:05 [2025-01-28 21:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351762', 'tblTempUsageDetail_20' ) start [2025-01-28 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351762', 'tblTempUsageDetail_20' ) end [2025-01-28 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351762', 'tblTempVendorCDR_20' ) start [2025-01-28 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351762', 'tblTempVendorCDR_20' ) end [2025-01-28 21:34:20] Production.INFO: ProcessCDR(1,14351762,1,1,2) [2025-01-28 21:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351762', 'tblTempUsageDetail_20' ) start [2025-01-28 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351762', 'tblTempUsageDetail_20' ) end [2025-01-28 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:34:23] Production.INFO: ==16444== Releasing lock... [2025-01-28 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:34:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-28 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:35:05 [end_date_ymd] => 2025-01-28 21:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:35:05' and `end` < '2025-01-28 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:35:17] Production.INFO: count ==1180 [2025-01-28 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:35:05 - End Time 2025-01-28 21:35:05 [2025-01-28 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351767', 'tblTempUsageDetail_20' ) start [2025-01-28 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351767', 'tblTempUsageDetail_20' ) end [2025-01-28 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351767', 'tblTempVendorCDR_20' ) start [2025-01-28 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351767', 'tblTempVendorCDR_20' ) end [2025-01-28 21:35:18] Production.INFO: ProcessCDR(1,14351767,1,1,2) [2025-01-28 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351767', 'tblTempUsageDetail_20' ) start [2025-01-28 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351767', 'tblTempUsageDetail_20' ) end [2025-01-28 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:35:21] Production.INFO: ==16517== Releasing lock... [2025-01-28 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:35:21] Production.INFO: 37 MB #Memory Used# [2025-01-28 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:36:05 [end_date_ymd] => 2025-01-28 21:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:36:05' and `end` < '2025-01-28 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-28 21:36:19] Production.INFO: count ==1179 [2025-01-28 21:36:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:36:05 - End Time 2025-01-28 21:36:05 [2025-01-28 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351772', 'tblTempUsageDetail_20' ) start [2025-01-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351772', 'tblTempUsageDetail_20' ) end [2025-01-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351772', 'tblTempVendorCDR_20' ) start [2025-01-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351772', 'tblTempVendorCDR_20' ) end [2025-01-28 21:36:19] Production.INFO: ProcessCDR(1,14351772,1,1,2) [2025-01-28 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351772', 'tblTempUsageDetail_20' ) start [2025-01-28 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351772', 'tblTempUsageDetail_20' ) end [2025-01-28 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:36:22] Production.INFO: ==16587== Releasing lock... [2025-01-28 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:36:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-28 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:37:05 [end_date_ymd] => 2025-01-28 21:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:37:05' and `end` < '2025-01-28 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-28 21:37:19] Production.INFO: count ==1184 [2025-01-28 21:37:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:37:05 - End Time 2025-01-28 21:37:05 [2025-01-28 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351777', 'tblTempUsageDetail_20' ) start [2025-01-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351777', 'tblTempUsageDetail_20' ) end [2025-01-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351777', 'tblTempVendorCDR_20' ) start [2025-01-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351777', 'tblTempVendorCDR_20' ) end [2025-01-28 21:37:19] Production.INFO: ProcessCDR(1,14351777,1,1,2) [2025-01-28 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351777', 'tblTempUsageDetail_20' ) start [2025-01-28 21:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351777', 'tblTempUsageDetail_20' ) end [2025-01-28 21:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:37:24] Production.INFO: ==16705== Releasing lock... [2025-01-28 21:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:37:24] Production.INFO: 37 MB #Memory Used# [2025-01-28 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:38:05 [end_date_ymd] => 2025-01-28 21:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:38:05' and `end` < '2025-01-28 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-28 21:38:18] Production.INFO: count ==1183 [2025-01-28 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:38:05 - End Time 2025-01-28 21:38:05 [2025-01-28 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351782', 'tblTempUsageDetail_20' ) start [2025-01-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351782', 'tblTempUsageDetail_20' ) end [2025-01-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351782', 'tblTempVendorCDR_20' ) start [2025-01-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351782', 'tblTempVendorCDR_20' ) end [2025-01-28 21:38:18] Production.INFO: ProcessCDR(1,14351782,1,1,2) [2025-01-28 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351782', 'tblTempUsageDetail_20' ) start [2025-01-28 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351782', 'tblTempUsageDetail_20' ) end [2025-01-28 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:38:21] Production.INFO: ==16782== Releasing lock... [2025-01-28 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:38:21] Production.INFO: 37 MB #Memory Used# [2025-01-28 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:39:05 [end_date_ymd] => 2025-01-28 21:39:05 [RateCDR] => 1 ) [2025-01-28 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:39:05' and `end` < '2025-01-28 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:39:19] Production.INFO: count ==1183 [2025-01-28 21:39:20] Production.ERROR: pbx CDR StartTime 2025-01-28 18:39:05 - End Time 2025-01-28 21:39:05 [2025-01-28 21:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351787', 'tblTempUsageDetail_20' ) start [2025-01-28 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351787', 'tblTempUsageDetail_20' ) end [2025-01-28 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351787', 'tblTempVendorCDR_20' ) start [2025-01-28 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351787', 'tblTempVendorCDR_20' ) end [2025-01-28 21:39:20] Production.INFO: ProcessCDR(1,14351787,1,1,2) [2025-01-28 21:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351787', 'tblTempUsageDetail_20' ) start [2025-01-28 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351787', 'tblTempUsageDetail_20' ) end [2025-01-28 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:39:23] Production.INFO: ==16858== Releasing lock... [2025-01-28 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:39:23] Production.INFO: 37 MB #Memory Used# [2025-01-28 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:40:06 [end_date_ymd] => 2025-01-28 21:40:06 [RateCDR] => 1 ) [2025-01-28 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-28 18:40:06' and `end` < '2025-01-28 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-28 21:40:18] Production.INFO: count ==1186 [2025-01-28 21:40:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:40:06 - End Time 2025-01-28 21:40:06 [2025-01-28 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351793', 'tblTempUsageDetail_20' ) start [2025-01-28 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351793', 'tblTempUsageDetail_20' ) end [2025-01-28 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351793', 'tblTempVendorCDR_20' ) start [2025-01-28 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351793', 'tblTempVendorCDR_20' ) end [2025-01-28 21:40:19] Production.INFO: ProcessCDR(1,14351793,1,1,2) [2025-01-28 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351793', 'tblTempUsageDetail_20' ) start [2025-01-28 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351793', 'tblTempUsageDetail_20' ) end [2025-01-28 21:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:40:21] Production.INFO: ==16931== Releasing lock... [2025-01-28 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:40:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-28 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:41:05 [end_date_ymd] => 2025-01-28 21:41:05 [RateCDR] => 1 ) [2025-01-28 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:41:05' and `end` < '2025-01-28 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:41:19] Production.INFO: count ==1158 [2025-01-28 21:41:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:41:05 - End Time 2025-01-28 21:41:05 [2025-01-28 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351798', 'tblTempUsageDetail_20' ) start [2025-01-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351798', 'tblTempUsageDetail_20' ) end [2025-01-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351798', 'tblTempVendorCDR_20' ) start [2025-01-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351798', 'tblTempVendorCDR_20' ) end [2025-01-28 21:41:19] Production.INFO: ProcessCDR(1,14351798,1,1,2) [2025-01-28 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351798', 'tblTempUsageDetail_20' ) start [2025-01-28 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351798', 'tblTempUsageDetail_20' ) end [2025-01-28 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:41:23] Production.INFO: ==17007== Releasing lock... [2025-01-28 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:41:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-28 21:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:42:04 [end_date_ymd] => 2025-01-28 21:42:04 [RateCDR] => 1 ) [2025-01-28 21:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:42:04' and `end` < '2025-01-28 21:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:42:17] Production.INFO: count ==1139 [2025-01-28 21:42:17] Production.ERROR: pbx CDR StartTime 2025-01-28 18:42:04 - End Time 2025-01-28 21:42:04 [2025-01-28 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351803', 'tblTempUsageDetail_20' ) start [2025-01-28 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351803', 'tblTempUsageDetail_20' ) end [2025-01-28 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351803', 'tblTempVendorCDR_20' ) start [2025-01-28 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351803', 'tblTempVendorCDR_20' ) end [2025-01-28 21:42:17] Production.INFO: ProcessCDR(1,14351803,1,1,2) [2025-01-28 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351803', 'tblTempUsageDetail_20' ) start [2025-01-28 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351803', 'tblTempUsageDetail_20' ) end [2025-01-28 21:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:42:20] Production.INFO: ==17080== Releasing lock... [2025-01-28 21:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:42:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:43:05 [end_date_ymd] => 2025-01-28 21:43:05 [RateCDR] => 1 ) [2025-01-28 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:43:05' and `end` < '2025-01-28 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-28 21:43:18] Production.INFO: count ==1139 [2025-01-28 21:43:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:43:05 - End Time 2025-01-28 21:43:05 [2025-01-28 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351808', 'tblTempUsageDetail_20' ) start [2025-01-28 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351808', 'tblTempUsageDetail_20' ) end [2025-01-28 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351808', 'tblTempVendorCDR_20' ) start [2025-01-28 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351808', 'tblTempVendorCDR_20' ) end [2025-01-28 21:43:18] Production.INFO: ProcessCDR(1,14351808,1,1,2) [2025-01-28 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351808', 'tblTempUsageDetail_20' ) start [2025-01-28 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351808', 'tblTempUsageDetail_20' ) end [2025-01-28 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:43:21] Production.INFO: ==17157== Releasing lock... [2025-01-28 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:43:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:44:05 [end_date_ymd] => 2025-01-28 21:44:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:44:05' and `end` < '2025-01-28 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-28 21:44:20] Production.INFO: count ==1139 [2025-01-28 21:44:20] Production.ERROR: pbx CDR StartTime 2025-01-28 18:44:05 - End Time 2025-01-28 21:44:05 [2025-01-28 21:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351813', 'tblTempUsageDetail_20' ) start [2025-01-28 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351813', 'tblTempUsageDetail_20' ) end [2025-01-28 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351813', 'tblTempVendorCDR_20' ) start [2025-01-28 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351813', 'tblTempVendorCDR_20' ) end [2025-01-28 21:44:20] Production.INFO: ProcessCDR(1,14351813,1,1,2) [2025-01-28 21:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351813', 'tblTempUsageDetail_20' ) start [2025-01-28 21:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351813', 'tblTempUsageDetail_20' ) end [2025-01-28 21:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:44:25] Production.INFO: ==17236== Releasing lock... [2025-01-28 21:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:44:25] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:45:05 [end_date_ymd] => 2025-01-28 21:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:45:05' and `end` < '2025-01-28 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-28 21:45:18] Production.INFO: count ==1139 [2025-01-28 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:45:05 - End Time 2025-01-28 21:45:05 [2025-01-28 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351818', 'tblTempUsageDetail_20' ) start [2025-01-28 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351818', 'tblTempUsageDetail_20' ) end [2025-01-28 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351818', 'tblTempVendorCDR_20' ) start [2025-01-28 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351818', 'tblTempVendorCDR_20' ) end [2025-01-28 21:45:18] Production.INFO: ProcessCDR(1,14351818,1,1,2) [2025-01-28 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351818', 'tblTempUsageDetail_20' ) start [2025-01-28 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351818', 'tblTempUsageDetail_20' ) end [2025-01-28 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:45:21] Production.INFO: ==17311== Releasing lock... [2025-01-28 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:45:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:46:05 [end_date_ymd] => 2025-01-28 21:46:05 [RateCDR] => 1 ) [2025-01-28 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:46:05' and `end` < '2025-01-28 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:46:18] Production.INFO: count ==1138 [2025-01-28 21:46:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:46:05 - End Time 2025-01-28 21:46:05 [2025-01-28 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351823', 'tblTempUsageDetail_20' ) start [2025-01-28 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351823', 'tblTempUsageDetail_20' ) end [2025-01-28 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351823', 'tblTempVendorCDR_20' ) start [2025-01-28 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351823', 'tblTempVendorCDR_20' ) end [2025-01-28 21:46:18] Production.INFO: ProcessCDR(1,14351823,1,1,2) [2025-01-28 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351823', 'tblTempUsageDetail_20' ) start [2025-01-28 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351823', 'tblTempUsageDetail_20' ) end [2025-01-28 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:46:21] Production.INFO: ==17384== Releasing lock... [2025-01-28 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:46:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-28 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:47:05 [end_date_ymd] => 2025-01-28 21:47:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:47:05' and `end` < '2025-01-28 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-28 21:47:18] Production.INFO: count ==1141 [2025-01-28 21:47:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:47:05 - End Time 2025-01-28 21:47:05 [2025-01-28 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351828', 'tblTempUsageDetail_20' ) start [2025-01-28 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351828', 'tblTempUsageDetail_20' ) end [2025-01-28 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351828', 'tblTempVendorCDR_20' ) start [2025-01-28 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351828', 'tblTempVendorCDR_20' ) end [2025-01-28 21:47:19] Production.INFO: ProcessCDR(1,14351828,1,1,2) [2025-01-28 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351828', 'tblTempUsageDetail_20' ) start [2025-01-28 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351828', 'tblTempUsageDetail_20' ) end [2025-01-28 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:47:22] Production.INFO: ==17458== Releasing lock... [2025-01-28 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:47:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:48:05 [end_date_ymd] => 2025-01-28 21:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:48:05' and `end` < '2025-01-28 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-28 21:48:18] Production.INFO: count ==1142 [2025-01-28 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:48:05 - End Time 2025-01-28 21:48:05 [2025-01-28 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351833', 'tblTempUsageDetail_20' ) start [2025-01-28 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351833', 'tblTempUsageDetail_20' ) end [2025-01-28 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351833', 'tblTempVendorCDR_20' ) start [2025-01-28 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351833', 'tblTempVendorCDR_20' ) end [2025-01-28 21:48:18] Production.INFO: ProcessCDR(1,14351833,1,1,2) [2025-01-28 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351833', 'tblTempUsageDetail_20' ) start [2025-01-28 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351833', 'tblTempUsageDetail_20' ) end [2025-01-28 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:48:21] Production.INFO: ==17534== Releasing lock... [2025-01-28 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:48:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:49:04 [end_date_ymd] => 2025-01-28 21:49:04 [RateCDR] => 1 ) [2025-01-28 21: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-28 18:49:04' and `end` < '2025-01-28 21: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-28 21:49:17] Production.INFO: count ==1143 [2025-01-28 21:49:17] Production.ERROR: pbx CDR StartTime 2025-01-28 18:49:04 - End Time 2025-01-28 21:49:04 [2025-01-28 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351838', 'tblTempUsageDetail_20' ) start [2025-01-28 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351838', 'tblTempUsageDetail_20' ) end [2025-01-28 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351838', 'tblTempVendorCDR_20' ) start [2025-01-28 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351838', 'tblTempVendorCDR_20' ) end [2025-01-28 21:49:17] Production.INFO: ProcessCDR(1,14351838,1,1,2) [2025-01-28 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351838', 'tblTempUsageDetail_20' ) start [2025-01-28 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351838', 'tblTempUsageDetail_20' ) end [2025-01-28 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:49:21] Production.INFO: ==17611== Releasing lock... [2025-01-28 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:49:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:50:06 [end_date_ymd] => 2025-01-28 21:50:06 [RateCDR] => 1 ) [2025-01-28 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:50:06' and `end` < '2025-01-28 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:50:19] Production.INFO: count ==1146 [2025-01-28 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:50:06 - End Time 2025-01-28 21:50:06 [2025-01-28 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351844', 'tblTempUsageDetail_20' ) start [2025-01-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351844', 'tblTempUsageDetail_20' ) end [2025-01-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351844', 'tblTempVendorCDR_20' ) start [2025-01-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351844', 'tblTempVendorCDR_20' ) end [2025-01-28 21:50:19] Production.INFO: ProcessCDR(1,14351844,1,1,2) [2025-01-28 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351844', 'tblTempUsageDetail_20' ) start [2025-01-28 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351844', 'tblTempUsageDetail_20' ) end [2025-01-28 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:50:24] Production.INFO: ==17687== Releasing lock... [2025-01-28 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:50:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-28 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:51:05 [end_date_ymd] => 2025-01-28 21:51:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:51:05' and `end` < '2025-01-28 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-28 21:51:19] Production.INFO: count ==1092 [2025-01-28 21:51:19] Production.ERROR: pbx CDR StartTime 2025-01-28 18:51:05 - End Time 2025-01-28 21:51:05 [2025-01-28 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351849', 'tblTempUsageDetail_20' ) start [2025-01-28 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351849', 'tblTempUsageDetail_20' ) end [2025-01-28 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351849', 'tblTempVendorCDR_20' ) start [2025-01-28 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351849', 'tblTempVendorCDR_20' ) end [2025-01-28 21:51:19] Production.INFO: ProcessCDR(1,14351849,1,1,2) [2025-01-28 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351849', 'tblTempUsageDetail_20' ) start [2025-01-28 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351849', 'tblTempUsageDetail_20' ) end [2025-01-28 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:51:23] Production.INFO: ==17763== Releasing lock... [2025-01-28 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:51:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:52:05 [end_date_ymd] => 2025-01-28 21:52:05 [RateCDR] => 1 ) [2025-01-28 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:52:05' and `end` < '2025-01-28 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:52:17] Production.INFO: count ==1091 [2025-01-28 21:52:17] Production.ERROR: pbx CDR StartTime 2025-01-28 18:52:05 - End Time 2025-01-28 21:52:05 [2025-01-28 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351854', 'tblTempUsageDetail_20' ) start [2025-01-28 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351854', 'tblTempUsageDetail_20' ) end [2025-01-28 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351854', 'tblTempVendorCDR_20' ) start [2025-01-28 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351854', 'tblTempVendorCDR_20' ) end [2025-01-28 21:52:17] Production.INFO: ProcessCDR(1,14351854,1,1,2) [2025-01-28 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351854', 'tblTempUsageDetail_20' ) start [2025-01-28 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351854', 'tblTempUsageDetail_20' ) end [2025-01-28 21:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:52:20] Production.INFO: ==17878== Releasing lock... [2025-01-28 21:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:52:20] Production.INFO: 36 MB #Memory Used# [2025-01-28 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:53:05 [end_date_ymd] => 2025-01-28 21:53:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:53:05' and `end` < '2025-01-28 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-28 21:53:18] Production.INFO: count ==1085 [2025-01-28 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:53:05 - End Time 2025-01-28 21:53:05 [2025-01-28 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351859', 'tblTempUsageDetail_20' ) start [2025-01-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351859', 'tblTempUsageDetail_20' ) end [2025-01-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351859', 'tblTempVendorCDR_20' ) start [2025-01-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351859', 'tblTempVendorCDR_20' ) end [2025-01-28 21:53:18] Production.INFO: ProcessCDR(1,14351859,1,1,2) [2025-01-28 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351859', 'tblTempUsageDetail_20' ) start [2025-01-28 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351859', 'tblTempUsageDetail_20' ) end [2025-01-28 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:53:23] Production.INFO: ==17956== Releasing lock... [2025-01-28 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:53:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:54:04 [end_date_ymd] => 2025-01-28 21:54:04 [RateCDR] => 1 ) [2025-01-28 21:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:54:04' and `end` < '2025-01-28 21:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:54:17] Production.INFO: count ==1087 [2025-01-28 21:54:17] Production.ERROR: pbx CDR StartTime 2025-01-28 18:54:04 - End Time 2025-01-28 21:54:04 [2025-01-28 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351864', 'tblTempUsageDetail_20' ) start [2025-01-28 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351864', 'tblTempUsageDetail_20' ) end [2025-01-28 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351864', 'tblTempVendorCDR_20' ) start [2025-01-28 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351864', 'tblTempVendorCDR_20' ) end [2025-01-28 21:54:17] Production.INFO: ProcessCDR(1,14351864,1,1,2) [2025-01-28 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351864', 'tblTempUsageDetail_20' ) start [2025-01-28 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351864', 'tblTempUsageDetail_20' ) end [2025-01-28 21:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:54:20] Production.INFO: ==18032== Releasing lock... [2025-01-28 21:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:54:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:55:05 [end_date_ymd] => 2025-01-28 21:55:05 [RateCDR] => 1 ) [2025-01-28 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:55:05' and `end` < '2025-01-28 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:55:18] Production.INFO: count ==1084 [2025-01-28 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:55:05 - End Time 2025-01-28 21:55:05 [2025-01-28 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351869', 'tblTempUsageDetail_20' ) start [2025-01-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351869', 'tblTempUsageDetail_20' ) end [2025-01-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351869', 'tblTempVendorCDR_20' ) start [2025-01-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351869', 'tblTempVendorCDR_20' ) end [2025-01-28 21:55:18] Production.INFO: ProcessCDR(1,14351869,1,1,2) [2025-01-28 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351869', 'tblTempUsageDetail_20' ) start [2025-01-28 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351869', 'tblTempUsageDetail_20' ) end [2025-01-28 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:55:21] Production.INFO: ==18103== Releasing lock... [2025-01-28 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:55:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:56:05 [end_date_ymd] => 2025-01-28 21:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:56:05' and `end` < '2025-01-28 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-28 21:56:18] Production.INFO: count ==1084 [2025-01-28 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:56:05 - End Time 2025-01-28 21:56:05 [2025-01-28 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351874', 'tblTempUsageDetail_20' ) start [2025-01-28 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351874', 'tblTempUsageDetail_20' ) end [2025-01-28 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351874', 'tblTempVendorCDR_20' ) start [2025-01-28 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351874', 'tblTempVendorCDR_20' ) end [2025-01-28 21:56:18] Production.INFO: ProcessCDR(1,14351874,1,1,2) [2025-01-28 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351874', 'tblTempUsageDetail_20' ) start [2025-01-28 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351874', 'tblTempUsageDetail_20' ) end [2025-01-28 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:56:22] Production.INFO: ==18180== Releasing lock... [2025-01-28 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:56:22] Production.INFO: 36 MB #Memory Used# [2025-01-28 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:57:05 [end_date_ymd] => 2025-01-28 21:57:05 [RateCDR] => 1 ) [2025-01-28 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 18:57:05' and `end` < '2025-01-28 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 21:57:20] Production.INFO: count ==1083 [2025-01-28 21:57:20] Production.ERROR: pbx CDR StartTime 2025-01-28 18:57:05 - End Time 2025-01-28 21:57:05 [2025-01-28 21:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351879', 'tblTempUsageDetail_20' ) start [2025-01-28 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351879', 'tblTempUsageDetail_20' ) end [2025-01-28 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351879', 'tblTempVendorCDR_20' ) start [2025-01-28 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351879', 'tblTempVendorCDR_20' ) end [2025-01-28 21:57:20] Production.INFO: ProcessCDR(1,14351879,1,1,2) [2025-01-28 21:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351879', 'tblTempUsageDetail_20' ) start [2025-01-28 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351879', 'tblTempUsageDetail_20' ) end [2025-01-28 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:57:23] Production.INFO: ==18259== Releasing lock... [2025-01-28 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:57:23] Production.INFO: 36 MB #Memory Used# [2025-01-28 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:58:05 [end_date_ymd] => 2025-01-28 21:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:58:05' and `end` < '2025-01-28 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-28 21:58:18] Production.INFO: count ==1083 [2025-01-28 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:58:05 - End Time 2025-01-28 21:58:05 [2025-01-28 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351884', 'tblTempUsageDetail_20' ) start [2025-01-28 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351884', 'tblTempUsageDetail_20' ) end [2025-01-28 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351884', 'tblTempVendorCDR_20' ) start [2025-01-28 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351884', 'tblTempVendorCDR_20' ) end [2025-01-28 21:58:18] Production.INFO: ProcessCDR(1,14351884,1,1,2) [2025-01-28 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351884', 'tblTempUsageDetail_20' ) start [2025-01-28 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351884', 'tblTempUsageDetail_20' ) end [2025-01-28 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:58:22] Production.INFO: ==18332== Releasing lock... [2025-01-28 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:58:22] Production.INFO: 36 MB #Memory Used# [2025-01-28 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 18:59:05 [end_date_ymd] => 2025-01-28 21:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 18:59:05' and `end` < '2025-01-28 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-28 21:59:18] Production.INFO: count ==1075 [2025-01-28 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-28 18:59:05 - End Time 2025-01-28 21:59:05 [2025-01-28 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351889', 'tblTempUsageDetail_20' ) start [2025-01-28 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351889', 'tblTempUsageDetail_20' ) end [2025-01-28 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351889', 'tblTempVendorCDR_20' ) start [2025-01-28 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351889', 'tblTempVendorCDR_20' ) end [2025-01-28 21:59:18] Production.INFO: ProcessCDR(1,14351889,1,1,2) [2025-01-28 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351889', 'tblTempUsageDetail_20' ) start [2025-01-28 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351889', 'tblTempUsageDetail_20' ) end [2025-01-28 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 21:59:21] Production.INFO: ==18409== Releasing lock... [2025-01-28 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 21:59:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-28 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:00:06 [end_date_ymd] => 2025-01-28 22:00:06 [RateCDR] => 1 ) [2025-01-28 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-28 19:00:06' and `end` < '2025-01-28 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-28 22:00:19] Production.INFO: count ==1075 [2025-01-28 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:00:06 - End Time 2025-01-28 22:00:06 [2025-01-28 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351895', 'tblTempUsageDetail_20' ) start [2025-01-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351895', 'tblTempUsageDetail_20' ) end [2025-01-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351895', 'tblTempVendorCDR_20' ) start [2025-01-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351895', 'tblTempVendorCDR_20' ) end [2025-01-28 22:00:19] Production.INFO: ProcessCDR(1,14351895,1,1,2) [2025-01-28 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351895', 'tblTempUsageDetail_20' ) start [2025-01-28 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351895', 'tblTempUsageDetail_20' ) end [2025-01-28 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:00:23] Production.INFO: ==18490== Releasing lock... [2025-01-28 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:00:23] Production.INFO: 36 MB #Memory Used# [2025-01-28 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:01:05 [end_date_ymd] => 2025-01-28 22:01:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:01:05' and `end` < '2025-01-28 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-28 22:01:19] Production.INFO: count ==1054 [2025-01-28 22:01:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:01:05 - End Time 2025-01-28 22:01:05 [2025-01-28 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351900', 'tblTempUsageDetail_20' ) start [2025-01-28 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351900', 'tblTempUsageDetail_20' ) end [2025-01-28 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351900', 'tblTempVendorCDR_20' ) start [2025-01-28 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351900', 'tblTempVendorCDR_20' ) end [2025-01-28 22:01:19] Production.INFO: ProcessCDR(1,14351900,1,1,2) [2025-01-28 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351900', 'tblTempUsageDetail_20' ) start [2025-01-28 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351900', 'tblTempUsageDetail_20' ) end [2025-01-28 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:01:22] Production.INFO: ==18582== Releasing lock... [2025-01-28 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:01:22] Production.INFO: 36 MB #Memory Used# [2025-01-28 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:02:05 [end_date_ymd] => 2025-01-28 22:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:02:05' and `end` < '2025-01-28 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-28 22:02:18] Production.INFO: count ==1052 [2025-01-28 22:02:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:02:05 - End Time 2025-01-28 22:02:05 [2025-01-28 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351905', 'tblTempUsageDetail_20' ) start [2025-01-28 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351905', 'tblTempUsageDetail_20' ) end [2025-01-28 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351905', 'tblTempVendorCDR_20' ) start [2025-01-28 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351905', 'tblTempVendorCDR_20' ) end [2025-01-28 22:02:19] Production.INFO: ProcessCDR(1,14351905,1,1,2) [2025-01-28 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351905', 'tblTempUsageDetail_20' ) start [2025-01-28 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351905', 'tblTempUsageDetail_20' ) end [2025-01-28 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:02:22] Production.INFO: ==18657== Releasing lock... [2025-01-28 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:02:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-28 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:03:04 [end_date_ymd] => 2025-01-28 22:03:04 [RateCDR] => 1 ) [2025-01-28 22: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-28 19:03:04' and `end` < '2025-01-28 22: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-28 22:03:17] Production.INFO: count ==1051 [2025-01-28 22:03:17] Production.ERROR: pbx CDR StartTime 2025-01-28 19:03:04 - End Time 2025-01-28 22:03:04 [2025-01-28 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351910', 'tblTempUsageDetail_20' ) start [2025-01-28 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351910', 'tblTempUsageDetail_20' ) end [2025-01-28 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351910', 'tblTempVendorCDR_20' ) start [2025-01-28 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351910', 'tblTempVendorCDR_20' ) end [2025-01-28 22:03:17] Production.INFO: ProcessCDR(1,14351910,1,1,2) [2025-01-28 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351910', 'tblTempUsageDetail_20' ) start [2025-01-28 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351910', 'tblTempUsageDetail_20' ) end [2025-01-28 22:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:03:20] Production.INFO: ==18737== Releasing lock... [2025-01-28 22:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:03:20] Production.INFO: 36 MB #Memory Used# [2025-01-28 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:04:05 [end_date_ymd] => 2025-01-28 22:04:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:04:05' and `end` < '2025-01-28 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-28 22:04:18] Production.INFO: count ==1049 [2025-01-28 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:04:05 - End Time 2025-01-28 22:04:05 [2025-01-28 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351915', 'tblTempUsageDetail_20' ) start [2025-01-28 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351915', 'tblTempUsageDetail_20' ) end [2025-01-28 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351915', 'tblTempVendorCDR_20' ) start [2025-01-28 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351915', 'tblTempVendorCDR_20' ) end [2025-01-28 22:04:18] Production.INFO: ProcessCDR(1,14351915,1,1,2) [2025-01-28 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351915', 'tblTempUsageDetail_20' ) start [2025-01-28 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351915', 'tblTempUsageDetail_20' ) end [2025-01-28 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:04:21] Production.INFO: ==18819== Releasing lock... [2025-01-28 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:04:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-28 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:05:05 [end_date_ymd] => 2025-01-28 22:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:05:05' and `end` < '2025-01-28 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-28 22:05:18] Production.INFO: count ==1050 [2025-01-28 22:05:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:05:05 - End Time 2025-01-28 22:05:05 [2025-01-28 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351920', 'tblTempUsageDetail_20' ) start [2025-01-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351920', 'tblTempUsageDetail_20' ) end [2025-01-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351920', 'tblTempVendorCDR_20' ) start [2025-01-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351920', 'tblTempVendorCDR_20' ) end [2025-01-28 22:05:18] Production.INFO: ProcessCDR(1,14351920,1,1,2) [2025-01-28 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351920', 'tblTempUsageDetail_20' ) start [2025-01-28 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351920', 'tblTempUsageDetail_20' ) end [2025-01-28 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:05:22] Production.INFO: ==18892== Releasing lock... [2025-01-28 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:05:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 22:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:06:04 [end_date_ymd] => 2025-01-28 22:06:04 [RateCDR] => 1 ) [2025-01-28 22:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:06:04' and `end` < '2025-01-28 22:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:06:18] Production.INFO: count ==1050 [2025-01-28 22:06:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:06:04 - End Time 2025-01-28 22:06:04 [2025-01-28 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351925', 'tblTempUsageDetail_20' ) start [2025-01-28 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351925', 'tblTempUsageDetail_20' ) end [2025-01-28 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351925', 'tblTempVendorCDR_20' ) start [2025-01-28 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351925', 'tblTempVendorCDR_20' ) end [2025-01-28 22:06:19] Production.INFO: ProcessCDR(1,14351925,1,1,2) [2025-01-28 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351925', 'tblTempUsageDetail_20' ) start [2025-01-28 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351925', 'tblTempUsageDetail_20' ) end [2025-01-28 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:06:22] Production.INFO: ==18970== Releasing lock... [2025-01-28 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-28 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:07:05 [end_date_ymd] => 2025-01-28 22:07:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:07:05' and `end` < '2025-01-28 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-28 22:07:19] Production.INFO: count ==1044 [2025-01-28 22:07:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:07:05 - End Time 2025-01-28 22:07:05 [2025-01-28 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351930', 'tblTempUsageDetail_20' ) start [2025-01-28 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351930', 'tblTempUsageDetail_20' ) end [2025-01-28 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351930', 'tblTempVendorCDR_20' ) start [2025-01-28 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351930', 'tblTempVendorCDR_20' ) end [2025-01-28 22:07:19] Production.INFO: ProcessCDR(1,14351930,1,1,2) [2025-01-28 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351930', 'tblTempUsageDetail_20' ) start [2025-01-28 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351930', 'tblTempUsageDetail_20' ) end [2025-01-28 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:07:22] Production.INFO: ==19047== Releasing lock... [2025-01-28 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:07:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-28 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:08:05 [end_date_ymd] => 2025-01-28 22:08:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:08:05' and `end` < '2025-01-28 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-28 22:08:18] Production.INFO: count ==1034 [2025-01-28 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:08:05 - End Time 2025-01-28 22:08:05 [2025-01-28 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351935', 'tblTempUsageDetail_20' ) start [2025-01-28 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351935', 'tblTempUsageDetail_20' ) end [2025-01-28 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351935', 'tblTempVendorCDR_20' ) start [2025-01-28 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351935', 'tblTempVendorCDR_20' ) end [2025-01-28 22:08:18] Production.INFO: ProcessCDR(1,14351935,1,1,2) [2025-01-28 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351935', 'tblTempUsageDetail_20' ) start [2025-01-28 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351935', 'tblTempUsageDetail_20' ) end [2025-01-28 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:08:21] Production.INFO: ==19174== Releasing lock... [2025-01-28 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:08:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-28 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:09:05 [end_date_ymd] => 2025-01-28 22:09:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:09:05' and `end` < '2025-01-28 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-28 22:09:18] Production.INFO: count ==1036 [2025-01-28 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:09:05 - End Time 2025-01-28 22:09:05 [2025-01-28 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351940', 'tblTempUsageDetail_20' ) start [2025-01-28 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351940', 'tblTempUsageDetail_20' ) end [2025-01-28 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351940', 'tblTempVendorCDR_20' ) start [2025-01-28 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351940', 'tblTempVendorCDR_20' ) end [2025-01-28 22:09:18] Production.INFO: ProcessCDR(1,14351940,1,1,2) [2025-01-28 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351940', 'tblTempUsageDetail_20' ) start [2025-01-28 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351940', 'tblTempUsageDetail_20' ) end [2025-01-28 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:09:23] Production.INFO: ==19248== Releasing lock... [2025-01-28 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:09:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-28 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:10:05 [end_date_ymd] => 2025-01-28 22:10:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:10:05' and `end` < '2025-01-28 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-28 22:10:18] Production.INFO: count ==1038 [2025-01-28 22:10:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:10:05 - End Time 2025-01-28 22:10:05 [2025-01-28 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351946', 'tblTempUsageDetail_20' ) start [2025-01-28 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351946', 'tblTempUsageDetail_20' ) end [2025-01-28 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351946', 'tblTempVendorCDR_20' ) start [2025-01-28 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351946', 'tblTempVendorCDR_20' ) end [2025-01-28 22:10:18] Production.INFO: ProcessCDR(1,14351946,1,1,2) [2025-01-28 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351946', 'tblTempUsageDetail_20' ) start [2025-01-28 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351946', 'tblTempUsageDetail_20' ) end [2025-01-28 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:10:21] Production.INFO: ==19327== Releasing lock... [2025-01-28 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:10:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-28 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:11:05 [end_date_ymd] => 2025-01-28 22:11:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:11:05' and `end` < '2025-01-28 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-28 22:11:18] Production.INFO: count ==1018 [2025-01-28 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:11:05 - End Time 2025-01-28 22:11:05 [2025-01-28 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351951', 'tblTempUsageDetail_20' ) start [2025-01-28 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351951', 'tblTempUsageDetail_20' ) end [2025-01-28 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351951', 'tblTempVendorCDR_20' ) start [2025-01-28 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351951', 'tblTempVendorCDR_20' ) end [2025-01-28 22:11:18] Production.INFO: ProcessCDR(1,14351951,1,1,2) [2025-01-28 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351951', 'tblTempUsageDetail_20' ) start [2025-01-28 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351951', 'tblTempUsageDetail_20' ) end [2025-01-28 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:11:22] Production.INFO: ==19407== Releasing lock... [2025-01-28 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:11:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-28 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:12:04 [end_date_ymd] => 2025-01-28 22:12:04 [RateCDR] => 1 ) [2025-01-28 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-28 19:12:04' and `end` < '2025-01-28 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-28 22:12:18] Production.INFO: count ==1010 [2025-01-28 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:12:04 - End Time 2025-01-28 22:12:04 [2025-01-28 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351956', 'tblTempUsageDetail_20' ) start [2025-01-28 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351956', 'tblTempUsageDetail_20' ) end [2025-01-28 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351956', 'tblTempVendorCDR_20' ) start [2025-01-28 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351956', 'tblTempVendorCDR_20' ) end [2025-01-28 22:12:18] Production.INFO: ProcessCDR(1,14351956,1,1,2) [2025-01-28 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351956', 'tblTempUsageDetail_20' ) start [2025-01-28 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351956', 'tblTempUsageDetail_20' ) end [2025-01-28 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:12:21] Production.INFO: ==19485== Releasing lock... [2025-01-28 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:12:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-28 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:13:04 [end_date_ymd] => 2025-01-28 22:13:04 [RateCDR] => 1 ) [2025-01-28 22: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-28 19:13:04' and `end` < '2025-01-28 22: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-28 22:13:17] Production.INFO: count ==1008 [2025-01-28 22:13:17] Production.ERROR: pbx CDR StartTime 2025-01-28 19:13:04 - End Time 2025-01-28 22:13:04 [2025-01-28 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351961', 'tblTempUsageDetail_20' ) start [2025-01-28 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351961', 'tblTempUsageDetail_20' ) end [2025-01-28 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351961', 'tblTempVendorCDR_20' ) start [2025-01-28 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351961', 'tblTempVendorCDR_20' ) end [2025-01-28 22:13:17] Production.INFO: ProcessCDR(1,14351961,1,1,2) [2025-01-28 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351961', 'tblTempUsageDetail_20' ) start [2025-01-28 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351961', 'tblTempUsageDetail_20' ) end [2025-01-28 22:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:13:20] Production.INFO: ==19563== Releasing lock... [2025-01-28 22:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:13:20] Production.INFO: 35.25 MB #Memory Used# [2025-01-28 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:14:05 [end_date_ymd] => 2025-01-28 22:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:14:05' and `end` < '2025-01-28 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-28 22:14:18] Production.INFO: count ==1007 [2025-01-28 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:14:05 - End Time 2025-01-28 22:14:05 [2025-01-28 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351966', 'tblTempUsageDetail_20' ) start [2025-01-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351966', 'tblTempUsageDetail_20' ) end [2025-01-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351966', 'tblTempVendorCDR_20' ) start [2025-01-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351966', 'tblTempVendorCDR_20' ) end [2025-01-28 22:14:18] Production.INFO: ProcessCDR(1,14351966,1,1,2) [2025-01-28 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351966', 'tblTempUsageDetail_20' ) start [2025-01-28 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351966', 'tblTempUsageDetail_20' ) end [2025-01-28 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:14:21] Production.INFO: ==19636== Releasing lock... [2025-01-28 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:14:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-28 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:15:05 [end_date_ymd] => 2025-01-28 22:15:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:15:05' and `end` < '2025-01-28 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-28 22:15:17] Production.INFO: count ==1002 [2025-01-28 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:15:05 - End Time 2025-01-28 22:15:05 [2025-01-28 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351971', 'tblTempUsageDetail_20' ) start [2025-01-28 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351971', 'tblTempUsageDetail_20' ) end [2025-01-28 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351971', 'tblTempVendorCDR_20' ) start [2025-01-28 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351971', 'tblTempVendorCDR_20' ) end [2025-01-28 22:15:18] Production.INFO: ProcessCDR(1,14351971,1,1,2) [2025-01-28 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351971', 'tblTempUsageDetail_20' ) start [2025-01-28 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351971', 'tblTempUsageDetail_20' ) end [2025-01-28 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:15:21] Production.INFO: ==19714== Releasing lock... [2025-01-28 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:15:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-28 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:16:05 [end_date_ymd] => 2025-01-28 22:16:05 [RateCDR] => 1 ) [2025-01-28 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:16:05' and `end` < '2025-01-28 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:16:18] Production.INFO: count ==1004 [2025-01-28 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:16:05 - End Time 2025-01-28 22:16:05 [2025-01-28 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351976', 'tblTempUsageDetail_20' ) start [2025-01-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351976', 'tblTempUsageDetail_20' ) end [2025-01-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351976', 'tblTempVendorCDR_20' ) start [2025-01-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351976', 'tblTempVendorCDR_20' ) end [2025-01-28 22:16:18] Production.INFO: ProcessCDR(1,14351976,1,1,2) [2025-01-28 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351976', 'tblTempUsageDetail_20' ) start [2025-01-28 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351976', 'tblTempUsageDetail_20' ) end [2025-01-28 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:16:21] Production.INFO: ==19786== Releasing lock... [2025-01-28 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:16:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-28 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:17:05 [end_date_ymd] => 2025-01-28 22:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:17:05' and `end` < '2025-01-28 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-28 22:17:19] Production.INFO: count ==1005 [2025-01-28 22:17:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:17:05 - End Time 2025-01-28 22:17:05 [2025-01-28 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351981', 'tblTempUsageDetail_20' ) start [2025-01-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351981', 'tblTempUsageDetail_20' ) end [2025-01-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351981', 'tblTempVendorCDR_20' ) start [2025-01-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351981', 'tblTempVendorCDR_20' ) end [2025-01-28 22:17:19] Production.INFO: ProcessCDR(1,14351981,1,1,2) [2025-01-28 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351981', 'tblTempUsageDetail_20' ) start [2025-01-28 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351981', 'tblTempUsageDetail_20' ) end [2025-01-28 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:17:23] Production.INFO: ==19864== Releasing lock... [2025-01-28 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:17:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-28 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:18:06 [end_date_ymd] => 2025-01-28 22:18:06 [RateCDR] => 1 ) [2025-01-28 22: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-28 19:18:06' and `end` < '2025-01-28 22: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-28 22:18:18] Production.INFO: count ==1002 [2025-01-28 22:18:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:18:06 - End Time 2025-01-28 22:18:06 [2025-01-28 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351986', 'tblTempUsageDetail_20' ) start [2025-01-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351986', 'tblTempUsageDetail_20' ) end [2025-01-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351986', 'tblTempVendorCDR_20' ) start [2025-01-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351986', 'tblTempVendorCDR_20' ) end [2025-01-28 22:18:19] Production.INFO: ProcessCDR(1,14351986,1,1,2) [2025-01-28 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351986', 'tblTempUsageDetail_20' ) start [2025-01-28 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351986', 'tblTempUsageDetail_20' ) end [2025-01-28 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:18:22] Production.INFO: ==19938== Releasing lock... [2025-01-28 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:18:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-28 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:19:05 [end_date_ymd] => 2025-01-28 22:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:19:05' and `end` < '2025-01-28 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-28 22:19:18] Production.INFO: count ==1002 [2025-01-28 22:19:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:19:05 - End Time 2025-01-28 22:19:05 [2025-01-28 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351991', 'tblTempUsageDetail_20' ) start [2025-01-28 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351991', 'tblTempUsageDetail_20' ) end [2025-01-28 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351991', 'tblTempVendorCDR_20' ) start [2025-01-28 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351991', 'tblTempVendorCDR_20' ) end [2025-01-28 22:19:19] Production.INFO: ProcessCDR(1,14351991,1,1,2) [2025-01-28 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351991', 'tblTempUsageDetail_20' ) start [2025-01-28 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351991', 'tblTempUsageDetail_20' ) end [2025-01-28 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:19:22] Production.INFO: ==20014== Releasing lock... [2025-01-28 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:19:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-28 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:20:05 [end_date_ymd] => 2025-01-28 22:20:05 [RateCDR] => 1 ) [2025-01-28 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:20:05' and `end` < '2025-01-28 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:20:18] Production.INFO: count ==1000 [2025-01-28 22:20:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:20:05 - End Time 2025-01-28 22:20:05 [2025-01-28 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351996', 'tblTempUsageDetail_20' ) start [2025-01-28 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14351996', 'tblTempUsageDetail_20' ) end [2025-01-28 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351996', 'tblTempVendorCDR_20' ) start [2025-01-28 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14351996', 'tblTempVendorCDR_20' ) end [2025-01-28 22:20:18] Production.INFO: ProcessCDR(1,14351996,1,1,2) [2025-01-28 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14351996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14351996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14351996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14351996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351996', 'tblTempUsageDetail_20' ) start [2025-01-28 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14351996', 'tblTempUsageDetail_20' ) end [2025-01-28 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:20:21] Production.INFO: ==20093== Releasing lock... [2025-01-28 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:20:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-28 22:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:21:06 [end_date_ymd] => 2025-01-28 22:21:06 [RateCDR] => 1 ) [2025-01-28 22: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-28 19:21:06' and `end` < '2025-01-28 22: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-28 22:21:21] Production.INFO: count ==961 [2025-01-28 22:21:21] Production.ERROR: pbx CDR StartTime 2025-01-28 19:21:06 - End Time 2025-01-28 22:21:06 [2025-01-28 22:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352002', 'tblTempUsageDetail_20' ) start [2025-01-28 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352002', 'tblTempUsageDetail_20' ) end [2025-01-28 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352002', 'tblTempVendorCDR_20' ) start [2025-01-28 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352002', 'tblTempVendorCDR_20' ) end [2025-01-28 22:21:21] Production.INFO: ProcessCDR(1,14352002,1,1,2) [2025-01-28 22:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352002', 'tblTempUsageDetail_20' ) start [2025-01-28 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352002', 'tblTempUsageDetail_20' ) end [2025-01-28 22:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:21:24] Production.INFO: ==20169== Releasing lock... [2025-01-28 22:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:21:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-28 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:22:05 [end_date_ymd] => 2025-01-28 22:22:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:22:05' and `end` < '2025-01-28 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-28 22:22:18] Production.INFO: count ==961 [2025-01-28 22:22:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:22:05 - End Time 2025-01-28 22:22:05 [2025-01-28 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352007', 'tblTempUsageDetail_20' ) start [2025-01-28 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352007', 'tblTempUsageDetail_20' ) end [2025-01-28 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352007', 'tblTempVendorCDR_20' ) start [2025-01-28 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352007', 'tblTempVendorCDR_20' ) end [2025-01-28 22:22:18] Production.INFO: ProcessCDR(1,14352007,1,1,2) [2025-01-28 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352007', 'tblTempUsageDetail_20' ) start [2025-01-28 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352007', 'tblTempUsageDetail_20' ) end [2025-01-28 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:22:21] Production.INFO: ==20247== Releasing lock... [2025-01-28 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:22:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-28 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:23:05 [end_date_ymd] => 2025-01-28 22:23:05 [RateCDR] => 1 ) [2025-01-28 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:23:05' and `end` < '2025-01-28 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:23:18] Production.INFO: count ==956 [2025-01-28 22:23:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:23:05 - End Time 2025-01-28 22:23:05 [2025-01-28 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352012', 'tblTempUsageDetail_20' ) start [2025-01-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352012', 'tblTempUsageDetail_20' ) end [2025-01-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352012', 'tblTempVendorCDR_20' ) start [2025-01-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352012', 'tblTempVendorCDR_20' ) end [2025-01-28 22:23:18] Production.INFO: ProcessCDR(1,14352012,1,1,2) [2025-01-28 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352012', 'tblTempUsageDetail_20' ) start [2025-01-28 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352012', 'tblTempUsageDetail_20' ) end [2025-01-28 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:23:21] Production.INFO: ==20374== Releasing lock... [2025-01-28 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:23:21] Production.INFO: 35 MB #Memory Used# [2025-01-28 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:24:05 [end_date_ymd] => 2025-01-28 22:24:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:24:05' and `end` < '2025-01-28 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-28 22:24:18] Production.INFO: count ==955 [2025-01-28 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:24:05 - End Time 2025-01-28 22:24:05 [2025-01-28 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352017', 'tblTempUsageDetail_20' ) start [2025-01-28 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352017', 'tblTempUsageDetail_20' ) end [2025-01-28 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352017', 'tblTempVendorCDR_20' ) start [2025-01-28 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352017', 'tblTempVendorCDR_20' ) end [2025-01-28 22:24:18] Production.INFO: ProcessCDR(1,14352017,1,1,2) [2025-01-28 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352017', 'tblTempUsageDetail_20' ) start [2025-01-28 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352017', 'tblTempUsageDetail_20' ) end [2025-01-28 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:24:22] Production.INFO: ==20449== Releasing lock... [2025-01-28 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:24:22] Production.INFO: 35 MB #Memory Used# [2025-01-28 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:25:05 [end_date_ymd] => 2025-01-28 22:25:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:25:05' and `end` < '2025-01-28 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-28 22:25:18] Production.INFO: count ==951 [2025-01-28 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:25:05 - End Time 2025-01-28 22:25:05 [2025-01-28 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352022', 'tblTempUsageDetail_20' ) start [2025-01-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352022', 'tblTempUsageDetail_20' ) end [2025-01-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352022', 'tblTempVendorCDR_20' ) start [2025-01-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352022', 'tblTempVendorCDR_20' ) end [2025-01-28 22:25:18] Production.INFO: ProcessCDR(1,14352022,1,1,2) [2025-01-28 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352022', 'tblTempUsageDetail_20' ) start [2025-01-28 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352022', 'tblTempUsageDetail_20' ) end [2025-01-28 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:25:21] Production.INFO: ==20527== Releasing lock... [2025-01-28 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:25:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-28 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:26:05 [end_date_ymd] => 2025-01-28 22:26:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:26:05' and `end` < '2025-01-28 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:26:18] Production.INFO: count ==951 [2025-01-28 22:26:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:26:05 - End Time 2025-01-28 22:26:05 [2025-01-28 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352027', 'tblTempUsageDetail_20' ) start [2025-01-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352027', 'tblTempUsageDetail_20' ) end [2025-01-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352027', 'tblTempVendorCDR_20' ) start [2025-01-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352027', 'tblTempVendorCDR_20' ) end [2025-01-28 22:26:18] Production.INFO: ProcessCDR(1,14352027,1,1,2) [2025-01-28 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352027', 'tblTempUsageDetail_20' ) start [2025-01-28 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352027', 'tblTempUsageDetail_20' ) end [2025-01-28 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:26:21] Production.INFO: ==20608== Releasing lock... [2025-01-28 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:26:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-28 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:27:05 [end_date_ymd] => 2025-01-28 22:27:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:27:05' and `end` < '2025-01-28 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-28 22:27:19] Production.INFO: count ==938 [2025-01-28 22:27:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:27:05 - End Time 2025-01-28 22:27:05 [2025-01-28 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352032', 'tblTempUsageDetail_20' ) start [2025-01-28 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352032', 'tblTempUsageDetail_20' ) end [2025-01-28 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352032', 'tblTempVendorCDR_20' ) start [2025-01-28 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352032', 'tblTempVendorCDR_20' ) end [2025-01-28 22:27:19] Production.INFO: ProcessCDR(1,14352032,1,1,2) [2025-01-28 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352032', 'tblTempUsageDetail_20' ) start [2025-01-28 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352032', 'tblTempUsageDetail_20' ) end [2025-01-28 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:27:22] Production.INFO: ==20683== Releasing lock... [2025-01-28 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:27:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-28 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:28:05 [end_date_ymd] => 2025-01-28 22:28:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:28:05' and `end` < '2025-01-28 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-28 22:28:19] Production.INFO: count ==935 [2025-01-28 22:28:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:28:05 - End Time 2025-01-28 22:28:05 [2025-01-28 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352037', 'tblTempUsageDetail_20' ) start [2025-01-28 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352037', 'tblTempUsageDetail_20' ) end [2025-01-28 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352037', 'tblTempVendorCDR_20' ) start [2025-01-28 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352037', 'tblTempVendorCDR_20' ) end [2025-01-28 22:28:19] Production.INFO: ProcessCDR(1,14352037,1,1,2) [2025-01-28 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352037', 'tblTempUsageDetail_20' ) start [2025-01-28 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352037', 'tblTempUsageDetail_20' ) end [2025-01-28 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:28:22] Production.INFO: ==20764== Releasing lock... [2025-01-28 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:28:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-28 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:29:06 [end_date_ymd] => 2025-01-28 22:29:06 [RateCDR] => 1 ) [2025-01-28 22: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-28 19:29:06' and `end` < '2025-01-28 22: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-28 22:29:18] Production.INFO: count ==936 [2025-01-28 22:29:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:29:06 - End Time 2025-01-28 22:29:06 [2025-01-28 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352042', 'tblTempUsageDetail_20' ) start [2025-01-28 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352042', 'tblTempUsageDetail_20' ) end [2025-01-28 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352042', 'tblTempVendorCDR_20' ) start [2025-01-28 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352042', 'tblTempVendorCDR_20' ) end [2025-01-28 22:29:19] Production.INFO: ProcessCDR(1,14352042,1,1,2) [2025-01-28 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352042', 'tblTempUsageDetail_20' ) start [2025-01-28 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352042', 'tblTempUsageDetail_20' ) end [2025-01-28 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:29:22] Production.INFO: ==20843== Releasing lock... [2025-01-28 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:29:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-28 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:30:06 [end_date_ymd] => 2025-01-28 22:30:06 [RateCDR] => 1 ) [2025-01-28 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-28 19:30:06' and `end` < '2025-01-28 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-28 22:30:19] Production.INFO: count ==937 [2025-01-28 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:30:06 - End Time 2025-01-28 22:30:06 [2025-01-28 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352048', 'tblTempUsageDetail_20' ) start [2025-01-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352048', 'tblTempUsageDetail_20' ) end [2025-01-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352048', 'tblTempVendorCDR_20' ) start [2025-01-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352048', 'tblTempVendorCDR_20' ) end [2025-01-28 22:30:19] Production.INFO: ProcessCDR(1,14352048,1,1,2) [2025-01-28 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352048', 'tblTempUsageDetail_20' ) start [2025-01-28 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352048', 'tblTempUsageDetail_20' ) end [2025-01-28 22:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:30:24] Production.INFO: ==20920== Releasing lock... [2025-01-28 22:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:30:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-28 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:31:05 [end_date_ymd] => 2025-01-28 22:31:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:31:05' and `end` < '2025-01-28 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-28 22:31:18] Production.INFO: count ==924 [2025-01-28 22:31:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:31:05 - End Time 2025-01-28 22:31:05 [2025-01-28 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352053', 'tblTempUsageDetail_20' ) start [2025-01-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352053', 'tblTempUsageDetail_20' ) end [2025-01-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352053', 'tblTempVendorCDR_20' ) start [2025-01-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352053', 'tblTempVendorCDR_20' ) end [2025-01-28 22:31:18] Production.INFO: ProcessCDR(1,14352053,1,1,2) [2025-01-28 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352053', 'tblTempUsageDetail_20' ) start [2025-01-28 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352053', 'tblTempUsageDetail_20' ) end [2025-01-28 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:31:21] Production.INFO: ==20998== Releasing lock... [2025-01-28 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:31:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-28 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:32:05 [end_date_ymd] => 2025-01-28 22:32:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:32:05' and `end` < '2025-01-28 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-28 22:32:18] Production.INFO: count ==924 [2025-01-28 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:32:05 - End Time 2025-01-28 22:32:05 [2025-01-28 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352058', 'tblTempUsageDetail_20' ) start [2025-01-28 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352058', 'tblTempUsageDetail_20' ) end [2025-01-28 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352058', 'tblTempVendorCDR_20' ) start [2025-01-28 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352058', 'tblTempVendorCDR_20' ) end [2025-01-28 22:32:18] Production.INFO: ProcessCDR(1,14352058,1,1,2) [2025-01-28 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352058', 'tblTempUsageDetail_20' ) start [2025-01-28 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352058', 'tblTempUsageDetail_20' ) end [2025-01-28 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:32:21] Production.INFO: ==21079== Releasing lock... [2025-01-28 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:32:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-28 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:33:05 [end_date_ymd] => 2025-01-28 22:33:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:33:05' and `end` < '2025-01-28 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-28 22:33:20] Production.INFO: count ==925 [2025-01-28 22:33:20] Production.ERROR: pbx CDR StartTime 2025-01-28 19:33:05 - End Time 2025-01-28 22:33:05 [2025-01-28 22:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352063', 'tblTempUsageDetail_20' ) start [2025-01-28 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352063', 'tblTempUsageDetail_20' ) end [2025-01-28 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352063', 'tblTempVendorCDR_20' ) start [2025-01-28 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352063', 'tblTempVendorCDR_20' ) end [2025-01-28 22:33:20] Production.INFO: ProcessCDR(1,14352063,1,1,2) [2025-01-28 22:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352063', 'tblTempUsageDetail_20' ) start [2025-01-28 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352063', 'tblTempUsageDetail_20' ) end [2025-01-28 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:33:23] Production.INFO: ==21156== Releasing lock... [2025-01-28 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:33:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-28 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:34:05 [end_date_ymd] => 2025-01-28 22:34:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:34:05' and `end` < '2025-01-28 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-28 22:34:18] Production.INFO: count ==919 [2025-01-28 22:34:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:34:05 - End Time 2025-01-28 22:34:05 [2025-01-28 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352068', 'tblTempUsageDetail_20' ) start [2025-01-28 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352068', 'tblTempUsageDetail_20' ) end [2025-01-28 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352068', 'tblTempVendorCDR_20' ) start [2025-01-28 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352068', 'tblTempVendorCDR_20' ) end [2025-01-28 22:34:18] Production.INFO: ProcessCDR(1,14352068,1,1,2) [2025-01-28 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352068', 'tblTempUsageDetail_20' ) start [2025-01-28 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352068', 'tblTempUsageDetail_20' ) end [2025-01-28 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:34:21] Production.INFO: ==21233== Releasing lock... [2025-01-28 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:34:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-28 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:35:05 [end_date_ymd] => 2025-01-28 22:35:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:35:05' and `end` < '2025-01-28 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-28 22:35:17] Production.INFO: count ==918 [2025-01-28 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:35:05 - End Time 2025-01-28 22:35:05 [2025-01-28 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352073', 'tblTempUsageDetail_20' ) start [2025-01-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352073', 'tblTempUsageDetail_20' ) end [2025-01-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352073', 'tblTempVendorCDR_20' ) start [2025-01-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352073', 'tblTempVendorCDR_20' ) end [2025-01-28 22:35:18] Production.INFO: ProcessCDR(1,14352073,1,1,2) [2025-01-28 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352073', 'tblTempUsageDetail_20' ) start [2025-01-28 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352073', 'tblTempUsageDetail_20' ) end [2025-01-28 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:35:22] Production.INFO: ==21311== Releasing lock... [2025-01-28 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:35:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-28 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:36:05 [end_date_ymd] => 2025-01-28 22:36:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:36:05' and `end` < '2025-01-28 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-28 22:36:20] Production.INFO: count ==899 [2025-01-28 22:36:20] Production.ERROR: pbx CDR StartTime 2025-01-28 19:36:05 - End Time 2025-01-28 22:36:05 [2025-01-28 22:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352078', 'tblTempUsageDetail_20' ) start [2025-01-28 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352078', 'tblTempUsageDetail_20' ) end [2025-01-28 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352078', 'tblTempVendorCDR_20' ) start [2025-01-28 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352078', 'tblTempVendorCDR_20' ) end [2025-01-28 22:36:20] Production.INFO: ProcessCDR(1,14352078,1,1,2) [2025-01-28 22:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352078', 'tblTempUsageDetail_20' ) start [2025-01-28 22:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352078', 'tblTempUsageDetail_20' ) end [2025-01-28 22:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:36:25] Production.INFO: ==21388== Releasing lock... [2025-01-28 22:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:36:25] Production.INFO: 34.25 MB #Memory Used# [2025-01-28 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:37:04 [end_date_ymd] => 2025-01-28 22:37:04 [RateCDR] => 1 ) [2025-01-28 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-28 19:37:04' and `end` < '2025-01-28 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-28 22:37:18] Production.INFO: count ==897 [2025-01-28 22:37:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:37:04 - End Time 2025-01-28 22:37:04 [2025-01-28 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352083', 'tblTempUsageDetail_20' ) start [2025-01-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352083', 'tblTempUsageDetail_20' ) end [2025-01-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352083', 'tblTempVendorCDR_20' ) start [2025-01-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352083', 'tblTempVendorCDR_20' ) end [2025-01-28 22:37:18] Production.INFO: ProcessCDR(1,14352083,1,1,2) [2025-01-28 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352083', 'tblTempUsageDetail_20' ) start [2025-01-28 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352083', 'tblTempUsageDetail_20' ) end [2025-01-28 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:37:21] Production.INFO: ==21463== Releasing lock... [2025-01-28 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:37:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-28 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:38:05 [end_date_ymd] => 2025-01-28 22:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:38:05' and `end` < '2025-01-28 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-28 22:38:18] Production.INFO: count ==888 [2025-01-28 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:38:05 - End Time 2025-01-28 22:38:05 [2025-01-28 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352088', 'tblTempUsageDetail_20' ) start [2025-01-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352088', 'tblTempUsageDetail_20' ) end [2025-01-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352088', 'tblTempVendorCDR_20' ) start [2025-01-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352088', 'tblTempVendorCDR_20' ) end [2025-01-28 22:38:18] Production.INFO: ProcessCDR(1,14352088,1,1,2) [2025-01-28 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352088', 'tblTempUsageDetail_20' ) start [2025-01-28 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352088', 'tblTempUsageDetail_20' ) end [2025-01-28 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:38:21] Production.INFO: ==21549== Releasing lock... [2025-01-28 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:38:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-28 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:39:05 [end_date_ymd] => 2025-01-28 22:39:05 [RateCDR] => 1 ) [2025-01-28 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:39:05' and `end` < '2025-01-28 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:39:18] Production.INFO: count ==890 [2025-01-28 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:39:05 - End Time 2025-01-28 22:39:05 [2025-01-28 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352093', 'tblTempUsageDetail_20' ) start [2025-01-28 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352093', 'tblTempUsageDetail_20' ) end [2025-01-28 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352093', 'tblTempVendorCDR_20' ) start [2025-01-28 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352093', 'tblTempVendorCDR_20' ) end [2025-01-28 22:39:18] Production.INFO: ProcessCDR(1,14352093,1,1,2) [2025-01-28 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352093', 'tblTempUsageDetail_20' ) start [2025-01-28 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352093', 'tblTempUsageDetail_20' ) end [2025-01-28 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:39:21] Production.INFO: ==21668== Releasing lock... [2025-01-28 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:39:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-28 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:40:05 [end_date_ymd] => 2025-01-28 22:40:05 [RateCDR] => 1 ) [2025-01-28 22: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-28 19:40:05' and `end` < '2025-01-28 22: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-28 22:40:18] Production.INFO: count ==888 [2025-01-28 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:40:05 - End Time 2025-01-28 22:40:05 [2025-01-28 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352099', 'tblTempUsageDetail_20' ) start [2025-01-28 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352099', 'tblTempUsageDetail_20' ) end [2025-01-28 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352099', 'tblTempVendorCDR_20' ) start [2025-01-28 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352099', 'tblTempVendorCDR_20' ) end [2025-01-28 22:40:18] Production.INFO: ProcessCDR(1,14352099,1,1,2) [2025-01-28 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352099', 'tblTempUsageDetail_20' ) start [2025-01-28 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352099', 'tblTempUsageDetail_20' ) end [2025-01-28 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:40:22] Production.INFO: ==21744== Releasing lock... [2025-01-28 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:40:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-28 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:41:05 [end_date_ymd] => 2025-01-28 22:41:05 [RateCDR] => 1 ) [2025-01-28 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:41:05' and `end` < '2025-01-28 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:41:20] Production.INFO: count ==855 [2025-01-28 22:41:20] Production.ERROR: pbx CDR StartTime 2025-01-28 19:41:05 - End Time 2025-01-28 22:41:05 [2025-01-28 22:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352104', 'tblTempUsageDetail_20' ) start [2025-01-28 22:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352104', 'tblTempUsageDetail_20' ) end [2025-01-28 22:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352104', 'tblTempVendorCDR_20' ) start [2025-01-28 22:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352104', 'tblTempVendorCDR_20' ) end [2025-01-28 22:41:20] Production.INFO: ProcessCDR(1,14352104,1,1,2) [2025-01-28 22:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352104', 'tblTempUsageDetail_20' ) start [2025-01-28 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352104', 'tblTempUsageDetail_20' ) end [2025-01-28 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:41:23] Production.INFO: ==21829== Releasing lock... [2025-01-28 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:41:23] Production.INFO: 34 MB #Memory Used# [2025-01-28 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:42:05 [end_date_ymd] => 2025-01-28 22:42:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:42:05' and `end` < '2025-01-28 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-28 22:42:17] Production.INFO: count ==854 [2025-01-28 22:42:17] Production.ERROR: pbx CDR StartTime 2025-01-28 19:42:05 - End Time 2025-01-28 22:42:05 [2025-01-28 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352109', 'tblTempUsageDetail_20' ) start [2025-01-28 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352109', 'tblTempUsageDetail_20' ) end [2025-01-28 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352109', 'tblTempVendorCDR_20' ) start [2025-01-28 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352109', 'tblTempVendorCDR_20' ) end [2025-01-28 22:42:17] Production.INFO: ProcessCDR(1,14352109,1,1,2) [2025-01-28 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352109', 'tblTempUsageDetail_20' ) start [2025-01-28 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352109', 'tblTempUsageDetail_20' ) end [2025-01-28 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:42:22] Production.INFO: ==21906== Releasing lock... [2025-01-28 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:42:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:43:05 [end_date_ymd] => 2025-01-28 22:43:05 [RateCDR] => 1 ) [2025-01-28 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:43:05' and `end` < '2025-01-28 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:43:18] Production.INFO: count ==853 [2025-01-28 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:43:05 - End Time 2025-01-28 22:43:05 [2025-01-28 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352114', 'tblTempUsageDetail_20' ) start [2025-01-28 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352114', 'tblTempUsageDetail_20' ) end [2025-01-28 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352114', 'tblTempVendorCDR_20' ) start [2025-01-28 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352114', 'tblTempVendorCDR_20' ) end [2025-01-28 22:43:18] Production.INFO: ProcessCDR(1,14352114,1,1,2) [2025-01-28 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352114', 'tblTempUsageDetail_20' ) start [2025-01-28 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352114', 'tblTempUsageDetail_20' ) end [2025-01-28 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:43:22] Production.INFO: ==21984== Releasing lock... [2025-01-28 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:43:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:44:05 [end_date_ymd] => 2025-01-28 22:44:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:44:05' and `end` < '2025-01-28 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-28 22:44:18] Production.INFO: count ==853 [2025-01-28 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:44:05 - End Time 2025-01-28 22:44:05 [2025-01-28 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352119', 'tblTempUsageDetail_20' ) start [2025-01-28 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352119', 'tblTempUsageDetail_20' ) end [2025-01-28 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352119', 'tblTempVendorCDR_20' ) start [2025-01-28 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352119', 'tblTempVendorCDR_20' ) end [2025-01-28 22:44:19] Production.INFO: ProcessCDR(1,14352119,1,1,2) [2025-01-28 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352119', 'tblTempUsageDetail_20' ) start [2025-01-28 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352119', 'tblTempUsageDetail_20' ) end [2025-01-28 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:44:21] Production.INFO: ==22063== Releasing lock... [2025-01-28 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:44:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:45:05 [end_date_ymd] => 2025-01-28 22:45:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:45:05' and `end` < '2025-01-28 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-28 22:45:17] Production.INFO: count ==850 [2025-01-28 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:45:05 - End Time 2025-01-28 22:45:05 [2025-01-28 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352124', 'tblTempUsageDetail_20' ) start [2025-01-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352124', 'tblTempUsageDetail_20' ) end [2025-01-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352124', 'tblTempVendorCDR_20' ) start [2025-01-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352124', 'tblTempVendorCDR_20' ) end [2025-01-28 22:45:18] Production.INFO: ProcessCDR(1,14352124,1,1,2) [2025-01-28 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352124', 'tblTempUsageDetail_20' ) start [2025-01-28 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352124', 'tblTempUsageDetail_20' ) end [2025-01-28 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:45:21] Production.INFO: ==22141== Releasing lock... [2025-01-28 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:45:21] Production.INFO: 34 MB #Memory Used# [2025-01-28 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:46:04 [end_date_ymd] => 2025-01-28 22:46:04 [RateCDR] => 1 ) [2025-01-28 22: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-28 19:46:04' and `end` < '2025-01-28 22: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-28 22:46:18] Production.INFO: count ==849 [2025-01-28 22:46:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:46:04 - End Time 2025-01-28 22:46:04 [2025-01-28 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352129', 'tblTempUsageDetail_20' ) start [2025-01-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352129', 'tblTempUsageDetail_20' ) end [2025-01-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352129', 'tblTempVendorCDR_20' ) start [2025-01-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352129', 'tblTempVendorCDR_20' ) end [2025-01-28 22:46:18] Production.INFO: ProcessCDR(1,14352129,1,1,2) [2025-01-28 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352129', 'tblTempUsageDetail_20' ) start [2025-01-28 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352129', 'tblTempUsageDetail_20' ) end [2025-01-28 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:46:21] Production.INFO: ==22213== Releasing lock... [2025-01-28 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:46:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:47:05 [end_date_ymd] => 2025-01-28 22:47:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:47:05' and `end` < '2025-01-28 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-28 22:47:18] Production.INFO: count ==847 [2025-01-28 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:47:05 - End Time 2025-01-28 22:47:05 [2025-01-28 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352134', 'tblTempUsageDetail_20' ) start [2025-01-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352134', 'tblTempUsageDetail_20' ) end [2025-01-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352134', 'tblTempVendorCDR_20' ) start [2025-01-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352134', 'tblTempVendorCDR_20' ) end [2025-01-28 22:47:18] Production.INFO: ProcessCDR(1,14352134,1,1,2) [2025-01-28 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352134', 'tblTempUsageDetail_20' ) start [2025-01-28 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352134', 'tblTempUsageDetail_20' ) end [2025-01-28 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:47:21] Production.INFO: ==22295== Releasing lock... [2025-01-28 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:47:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:48:05 [end_date_ymd] => 2025-01-28 22:48:05 [RateCDR] => 1 ) [2025-01-28 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:48:05' and `end` < '2025-01-28 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-28 22:48:19] Production.INFO: count ==847 [2025-01-28 22:48:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:48:05 - End Time 2025-01-28 22:48:05 [2025-01-28 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352139', 'tblTempUsageDetail_20' ) start [2025-01-28 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352139', 'tblTempUsageDetail_20' ) end [2025-01-28 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352139', 'tblTempVendorCDR_20' ) start [2025-01-28 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352139', 'tblTempVendorCDR_20' ) end [2025-01-28 22:48:19] Production.INFO: ProcessCDR(1,14352139,1,1,2) [2025-01-28 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352139', 'tblTempUsageDetail_20' ) start [2025-01-28 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352139', 'tblTempUsageDetail_20' ) end [2025-01-28 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:48:23] Production.INFO: ==22375== Releasing lock... [2025-01-28 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:48:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:49:05 [end_date_ymd] => 2025-01-28 22:49:05 [RateCDR] => 1 ) [2025-01-28 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:49:05' and `end` < '2025-01-28 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:49:18] Production.INFO: count ==850 [2025-01-28 22:49:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:49:05 - End Time 2025-01-28 22:49:05 [2025-01-28 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352144', 'tblTempUsageDetail_20' ) start [2025-01-28 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352144', 'tblTempUsageDetail_20' ) end [2025-01-28 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352144', 'tblTempVendorCDR_20' ) start [2025-01-28 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352144', 'tblTempVendorCDR_20' ) end [2025-01-28 22:49:18] Production.INFO: ProcessCDR(1,14352144,1,1,2) [2025-01-28 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352144', 'tblTempUsageDetail_20' ) start [2025-01-28 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352144', 'tblTempUsageDetail_20' ) end [2025-01-28 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:49:23] Production.INFO: ==22457== Releasing lock... [2025-01-28 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:49:23] Production.INFO: 34 MB #Memory Used# [2025-01-28 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:50:06 [end_date_ymd] => 2025-01-28 22:50:06 [RateCDR] => 1 ) [2025-01-28 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:50:06' and `end` < '2025-01-28 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:50:18] Production.INFO: count ==852 [2025-01-28 22:50:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:50:06 - End Time 2025-01-28 22:50:06 [2025-01-28 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352149', 'tblTempUsageDetail_20' ) start [2025-01-28 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352149', 'tblTempUsageDetail_20' ) end [2025-01-28 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352149', 'tblTempVendorCDR_20' ) start [2025-01-28 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352149', 'tblTempVendorCDR_20' ) end [2025-01-28 22:50:18] Production.INFO: ProcessCDR(1,14352149,1,1,2) [2025-01-28 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352149', 'tblTempUsageDetail_20' ) start [2025-01-28 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352149', 'tblTempUsageDetail_20' ) end [2025-01-28 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:50:22] Production.INFO: ==22534== Releasing lock... [2025-01-28 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:50:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-28 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:51:05 [end_date_ymd] => 2025-01-28 22:51:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:51:05' and `end` < '2025-01-28 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-28 22:51:20] Production.INFO: count ==848 [2025-01-28 22:51:20] Production.ERROR: pbx CDR StartTime 2025-01-28 19:51:05 - End Time 2025-01-28 22:51:05 [2025-01-28 22:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352155', 'tblTempUsageDetail_20' ) start [2025-01-28 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352155', 'tblTempUsageDetail_20' ) end [2025-01-28 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352155', 'tblTempVendorCDR_20' ) start [2025-01-28 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352155', 'tblTempVendorCDR_20' ) end [2025-01-28 22:51:20] Production.INFO: ProcessCDR(1,14352155,1,1,2) [2025-01-28 22:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352155', 'tblTempUsageDetail_20' ) start [2025-01-28 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352155', 'tblTempUsageDetail_20' ) end [2025-01-28 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:51:23] Production.INFO: ==22614== Releasing lock... [2025-01-28 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:51:23] Production.INFO: 34 MB #Memory Used# [2025-01-28 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:52:05 [end_date_ymd] => 2025-01-28 22:52:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:52:05' and `end` < '2025-01-28 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-28 22:52:18] Production.INFO: count ==848 [2025-01-28 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:52:05 - End Time 2025-01-28 22:52:05 [2025-01-28 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352160', 'tblTempUsageDetail_20' ) start [2025-01-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352160', 'tblTempUsageDetail_20' ) end [2025-01-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352160', 'tblTempVendorCDR_20' ) start [2025-01-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352160', 'tblTempVendorCDR_20' ) end [2025-01-28 22:52:18] Production.INFO: ProcessCDR(1,14352160,1,1,2) [2025-01-28 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352160', 'tblTempUsageDetail_20' ) start [2025-01-28 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352160', 'tblTempUsageDetail_20' ) end [2025-01-28 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:52:21] Production.INFO: ==22694== Releasing lock... [2025-01-28 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:52:21] Production.INFO: 34 MB #Memory Used# [2025-01-28 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:53:06 [end_date_ymd] => 2025-01-28 22:53:06 [RateCDR] => 1 ) [2025-01-28 22:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:53:06' and `end` < '2025-01-28 22:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:53:18] Production.INFO: count ==845 [2025-01-28 22:53:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:53:06 - End Time 2025-01-28 22:53:06 [2025-01-28 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352165', 'tblTempUsageDetail_20' ) start [2025-01-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352165', 'tblTempUsageDetail_20' ) end [2025-01-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352165', 'tblTempVendorCDR_20' ) start [2025-01-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352165', 'tblTempVendorCDR_20' ) end [2025-01-28 22:53:18] Production.INFO: ProcessCDR(1,14352165,1,1,2) [2025-01-28 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352165', 'tblTempUsageDetail_20' ) start [2025-01-28 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352165', 'tblTempUsageDetail_20' ) end [2025-01-28 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:53:21] Production.INFO: ==22773== Releasing lock... [2025-01-28 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:53:21] Production.INFO: 34 MB #Memory Used# [2025-01-28 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:54:05 [end_date_ymd] => 2025-01-28 22:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:54:05' and `end` < '2025-01-28 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-28 22:54:21] Production.INFO: count ==845 [2025-01-28 22:54:21] Production.ERROR: pbx CDR StartTime 2025-01-28 19:54:05 - End Time 2025-01-28 22:54:05 [2025-01-28 22:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352170', 'tblTempUsageDetail_20' ) start [2025-01-28 22:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352170', 'tblTempUsageDetail_20' ) end [2025-01-28 22:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352170', 'tblTempVendorCDR_20' ) start [2025-01-28 22:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352170', 'tblTempVendorCDR_20' ) end [2025-01-28 22:54:21] Production.INFO: ProcessCDR(1,14352170,1,1,2) [2025-01-28 22:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352170', 'tblTempUsageDetail_20' ) start [2025-01-28 22:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352170', 'tblTempUsageDetail_20' ) end [2025-01-28 22:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:54:24] Production.INFO: ==22893== Releasing lock... [2025-01-28 22:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:54:24] Production.INFO: 34 MB #Memory Used# [2025-01-28 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:55:05 [end_date_ymd] => 2025-01-28 22:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:55:05' and `end` < '2025-01-28 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-28 22:55:18] Production.INFO: count ==844 [2025-01-28 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:55:05 - End Time 2025-01-28 22:55:05 [2025-01-28 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352175', 'tblTempUsageDetail_20' ) start [2025-01-28 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352175', 'tblTempUsageDetail_20' ) end [2025-01-28 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352175', 'tblTempVendorCDR_20' ) start [2025-01-28 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352175', 'tblTempVendorCDR_20' ) end [2025-01-28 22:55:18] Production.INFO: ProcessCDR(1,14352175,1,1,2) [2025-01-28 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352175', 'tblTempUsageDetail_20' ) start [2025-01-28 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352175', 'tblTempUsageDetail_20' ) end [2025-01-28 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:55:22] Production.INFO: ==22971== Releasing lock... [2025-01-28 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:56:05 [end_date_ymd] => 2025-01-28 22:56:05 [RateCDR] => 1 ) [2025-01-28 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 19:56:05' and `end` < '2025-01-28 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 22:56:18] Production.INFO: count ==842 [2025-01-28 22:56:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:56:05 - End Time 2025-01-28 22:56:05 [2025-01-28 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352180', 'tblTempUsageDetail_20' ) start [2025-01-28 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352180', 'tblTempUsageDetail_20' ) end [2025-01-28 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352180', 'tblTempVendorCDR_20' ) start [2025-01-28 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352180', 'tblTempVendorCDR_20' ) end [2025-01-28 22:56:18] Production.INFO: ProcessCDR(1,14352180,1,1,2) [2025-01-28 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352180', 'tblTempUsageDetail_20' ) start [2025-01-28 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352180', 'tblTempUsageDetail_20' ) end [2025-01-28 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:56:21] Production.INFO: ==23049== Releasing lock... [2025-01-28 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:56:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:57:05 [end_date_ymd] => 2025-01-28 22:57:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:57:05' and `end` < '2025-01-28 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-28 22:57:20] Production.INFO: count ==840 [2025-01-28 22:57:20] Production.ERROR: pbx CDR StartTime 2025-01-28 19:57:05 - End Time 2025-01-28 22:57:05 [2025-01-28 22:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352185', 'tblTempUsageDetail_20' ) start [2025-01-28 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352185', 'tblTempUsageDetail_20' ) end [2025-01-28 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352185', 'tblTempVendorCDR_20' ) start [2025-01-28 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352185', 'tblTempVendorCDR_20' ) end [2025-01-28 22:57:20] Production.INFO: ProcessCDR(1,14352185,1,1,2) [2025-01-28 22:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352185', 'tblTempUsageDetail_20' ) start [2025-01-28 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352185', 'tblTempUsageDetail_20' ) end [2025-01-28 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:57:23] Production.INFO: ==23122== Releasing lock... [2025-01-28 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:57:23] Production.INFO: 34 MB #Memory Used# [2025-01-28 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:58:04 [end_date_ymd] => 2025-01-28 22:58:04 [RateCDR] => 1 ) [2025-01-28 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-28 19:58:04' and `end` < '2025-01-28 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-28 22:58:19] Production.INFO: count ==839 [2025-01-28 22:58:19] Production.ERROR: pbx CDR StartTime 2025-01-28 19:58:04 - End Time 2025-01-28 22:58:04 [2025-01-28 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352190', 'tblTempUsageDetail_20' ) start [2025-01-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352190', 'tblTempUsageDetail_20' ) end [2025-01-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352190', 'tblTempVendorCDR_20' ) start [2025-01-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352190', 'tblTempVendorCDR_20' ) end [2025-01-28 22:58:19] Production.INFO: ProcessCDR(1,14352190,1,1,2) [2025-01-28 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352190', 'tblTempUsageDetail_20' ) start [2025-01-28 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352190', 'tblTempUsageDetail_20' ) end [2025-01-28 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:58:22] Production.INFO: ==23197== Releasing lock... [2025-01-28 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:58:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 19:59:05 [end_date_ymd] => 2025-01-28 22:59:05 [RateCDR] => 1 ) [2025-01-28 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-28 19:59:05' and `end` < '2025-01-28 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-28 22:59:18] Production.INFO: count ==841 [2025-01-28 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-28 19:59:05 - End Time 2025-01-28 22:59:05 [2025-01-28 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352195', 'tblTempUsageDetail_20' ) start [2025-01-28 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352195', 'tblTempUsageDetail_20' ) end [2025-01-28 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352195', 'tblTempVendorCDR_20' ) start [2025-01-28 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352195', 'tblTempVendorCDR_20' ) end [2025-01-28 22:59:18] Production.INFO: ProcessCDR(1,14352195,1,1,2) [2025-01-28 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352195', 'tblTempUsageDetail_20' ) start [2025-01-28 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352195', 'tblTempUsageDetail_20' ) end [2025-01-28 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 22:59:22] Production.INFO: ==23272== Releasing lock... [2025-01-28 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 22:59:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:00:05 [end_date_ymd] => 2025-01-28 23:00:05 [RateCDR] => 1 ) [2025-01-28 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:00:05' and `end` < '2025-01-28 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:00:18] Production.INFO: count ==841 [2025-01-28 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:00:05 - End Time 2025-01-28 23:00:05 [2025-01-28 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352201', 'tblTempUsageDetail_20' ) start [2025-01-28 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352201', 'tblTempUsageDetail_20' ) end [2025-01-28 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352201', 'tblTempVendorCDR_20' ) start [2025-01-28 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352201', 'tblTempVendorCDR_20' ) end [2025-01-28 23:00:18] Production.INFO: ProcessCDR(1,14352201,1,1,2) [2025-01-28 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352201', 'tblTempUsageDetail_20' ) start [2025-01-28 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352201', 'tblTempUsageDetail_20' ) end [2025-01-28 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:00:21] Production.INFO: ==23349== Releasing lock... [2025-01-28 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:00:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:01:05 [end_date_ymd] => 2025-01-28 23:01:05 [RateCDR] => 1 ) [2025-01-28 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:01:05' and `end` < '2025-01-28 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:01:19] Production.INFO: count ==836 [2025-01-28 23:01:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:01:05 - End Time 2025-01-28 23:01:05 [2025-01-28 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352206', 'tblTempUsageDetail_20' ) start [2025-01-28 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352206', 'tblTempUsageDetail_20' ) end [2025-01-28 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352206', 'tblTempVendorCDR_20' ) start [2025-01-28 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352206', 'tblTempVendorCDR_20' ) end [2025-01-28 23:01:19] Production.INFO: ProcessCDR(1,14352206,1,1,2) [2025-01-28 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352206', 'tblTempUsageDetail_20' ) start [2025-01-28 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352206', 'tblTempUsageDetail_20' ) end [2025-01-28 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:01:23] Production.INFO: ==23444== Releasing lock... [2025-01-28 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:01:23] Production.INFO: 34 MB #Memory Used# [2025-01-28 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:02:05 [end_date_ymd] => 2025-01-28 23:02:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:02:05' and `end` < '2025-01-28 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-28 23:02:18] Production.INFO: count ==836 [2025-01-28 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:02:05 - End Time 2025-01-28 23:02:05 [2025-01-28 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352211', 'tblTempUsageDetail_20' ) start [2025-01-28 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352211', 'tblTempUsageDetail_20' ) end [2025-01-28 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352211', 'tblTempVendorCDR_20' ) start [2025-01-28 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352211', 'tblTempVendorCDR_20' ) end [2025-01-28 23:02:18] Production.INFO: ProcessCDR(1,14352211,1,1,2) [2025-01-28 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352211', 'tblTempUsageDetail_20' ) start [2025-01-28 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352211', 'tblTempUsageDetail_20' ) end [2025-01-28 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:02:21] Production.INFO: ==23599== Releasing lock... [2025-01-28 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:02:21] Production.INFO: 34 MB #Memory Used# [2025-01-28 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:03:05 [end_date_ymd] => 2025-01-28 23:03:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:03:05' and `end` < '2025-01-28 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-28 23:03:17] Production.INFO: count ==836 [2025-01-28 23:03:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:03:05 - End Time 2025-01-28 23:03:05 [2025-01-28 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352216', 'tblTempUsageDetail_20' ) start [2025-01-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352216', 'tblTempUsageDetail_20' ) end [2025-01-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352216', 'tblTempVendorCDR_20' ) start [2025-01-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352216', 'tblTempVendorCDR_20' ) end [2025-01-28 23:03:18] Production.INFO: ProcessCDR(1,14352216,1,1,2) [2025-01-28 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352216', 'tblTempUsageDetail_20' ) start [2025-01-28 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352216', 'tblTempUsageDetail_20' ) end [2025-01-28 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:03:22] Production.INFO: ==23676== Releasing lock... [2025-01-28 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-28 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:04:06 [end_date_ymd] => 2025-01-28 23:04:06 [RateCDR] => 1 ) [2025-01-28 23: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-28 20:04:06' and `end` < '2025-01-28 23: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-28 23:04:20] Production.INFO: count ==839 [2025-01-28 23:04:20] Production.ERROR: pbx CDR StartTime 2025-01-28 20:04:06 - End Time 2025-01-28 23:04:06 [2025-01-28 23:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352221', 'tblTempUsageDetail_20' ) start [2025-01-28 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352221', 'tblTempUsageDetail_20' ) end [2025-01-28 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352221', 'tblTempVendorCDR_20' ) start [2025-01-28 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352221', 'tblTempVendorCDR_20' ) end [2025-01-28 23:04:20] Production.INFO: ProcessCDR(1,14352221,1,1,2) [2025-01-28 23:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352221', 'tblTempUsageDetail_20' ) start [2025-01-28 23:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352221', 'tblTempUsageDetail_20' ) end [2025-01-28 23:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:04:24] Production.INFO: ==23755== Releasing lock... [2025-01-28 23:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:04:24] Production.INFO: 34 MB #Memory Used# [2025-01-28 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:05:05 [end_date_ymd] => 2025-01-28 23:05:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:05:05' and `end` < '2025-01-28 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-28 23:05:17] Production.INFO: count ==837 [2025-01-28 23:05:17] Production.ERROR: pbx CDR StartTime 2025-01-28 20:05:05 - End Time 2025-01-28 23:05:05 [2025-01-28 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352226', 'tblTempUsageDetail_20' ) start [2025-01-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352226', 'tblTempUsageDetail_20' ) end [2025-01-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352226', 'tblTempVendorCDR_20' ) start [2025-01-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352226', 'tblTempVendorCDR_20' ) end [2025-01-28 23:05:18] Production.INFO: ProcessCDR(1,14352226,1,1,2) [2025-01-28 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352226', 'tblTempUsageDetail_20' ) start [2025-01-28 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352226', 'tblTempUsageDetail_20' ) end [2025-01-28 23:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:05:20] Production.INFO: ==23912== Releasing lock... [2025-01-28 23:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:05:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:06:06 [end_date_ymd] => 2025-01-28 23:06:06 [RateCDR] => 1 ) [2025-01-28 23: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-28 20:06:06' and `end` < '2025-01-28 23: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-28 23:06:20] Production.INFO: count ==836 [2025-01-28 23:06:20] Production.ERROR: pbx CDR StartTime 2025-01-28 20:06:06 - End Time 2025-01-28 23:06:06 [2025-01-28 23:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352231', 'tblTempUsageDetail_20' ) start [2025-01-28 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352231', 'tblTempUsageDetail_20' ) end [2025-01-28 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352231', 'tblTempVendorCDR_20' ) start [2025-01-28 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352231', 'tblTempVendorCDR_20' ) end [2025-01-28 23:06:20] Production.INFO: ProcessCDR(1,14352231,1,1,2) [2025-01-28 23:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352231', 'tblTempUsageDetail_20' ) start [2025-01-28 23:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352231', 'tblTempUsageDetail_20' ) end [2025-01-28 23:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:06:24] Production.INFO: ==23990== Releasing lock... [2025-01-28 23:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:06:24] Production.INFO: 34 MB #Memory Used# [2025-01-28 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:07:05 [end_date_ymd] => 2025-01-28 23:07:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:07:05' and `end` < '2025-01-28 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-28 23:07:19] Production.INFO: count ==836 [2025-01-28 23:07:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:07:05 - End Time 2025-01-28 23:07:05 [2025-01-28 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352236', 'tblTempUsageDetail_20' ) start [2025-01-28 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352236', 'tblTempUsageDetail_20' ) end [2025-01-28 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352236', 'tblTempVendorCDR_20' ) start [2025-01-28 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352236', 'tblTempVendorCDR_20' ) end [2025-01-28 23:07:19] Production.INFO: ProcessCDR(1,14352236,1,1,2) [2025-01-28 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352236', 'tblTempUsageDetail_20' ) start [2025-01-28 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352236', 'tblTempUsageDetail_20' ) end [2025-01-28 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:07:22] Production.INFO: ==24068== Releasing lock... [2025-01-28 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:07:22] Production.INFO: 34 MB #Memory Used# [2025-01-28 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:08:06 [end_date_ymd] => 2025-01-28 23:08:06 [RateCDR] => 1 ) [2025-01-28 23: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-28 20:08:06' and `end` < '2025-01-28 23: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-28 23:08:19] Production.INFO: count ==834 [2025-01-28 23:08:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:08:06 - End Time 2025-01-28 23:08:06 [2025-01-28 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352241', 'tblTempUsageDetail_20' ) start [2025-01-28 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352241', 'tblTempUsageDetail_20' ) end [2025-01-28 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352241', 'tblTempVendorCDR_20' ) start [2025-01-28 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352241', 'tblTempVendorCDR_20' ) end [2025-01-28 23:08:19] Production.INFO: ProcessCDR(1,14352241,1,1,2) [2025-01-28 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352241', 'tblTempUsageDetail_20' ) start [2025-01-28 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352241', 'tblTempUsageDetail_20' ) end [2025-01-28 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:08:22] Production.INFO: ==24231== Releasing lock... [2025-01-28 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:09:05 [end_date_ymd] => 2025-01-28 23:09:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:09:05' and `end` < '2025-01-28 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-28 23:09:19] Production.INFO: count ==833 [2025-01-28 23:09:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:09:05 - End Time 2025-01-28 23:09:05 [2025-01-28 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352246', 'tblTempUsageDetail_20' ) start [2025-01-28 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352246', 'tblTempUsageDetail_20' ) end [2025-01-28 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352246', 'tblTempVendorCDR_20' ) start [2025-01-28 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352246', 'tblTempVendorCDR_20' ) end [2025-01-28 23:09:19] Production.INFO: ProcessCDR(1,14352246,1,1,2) [2025-01-28 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352246', 'tblTempUsageDetail_20' ) start [2025-01-28 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352246', 'tblTempUsageDetail_20' ) end [2025-01-28 23:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:09:23] Production.INFO: ==24358== Releasing lock... [2025-01-28 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:09:23] Production.INFO: 34 MB #Memory Used# [2025-01-28 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:10:06 [end_date_ymd] => 2025-01-28 23:10:06 [RateCDR] => 1 ) [2025-01-28 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:10:06' and `end` < '2025-01-28 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:10:19] Production.INFO: count ==833 [2025-01-28 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:10:06 - End Time 2025-01-28 23:10:06 [2025-01-28 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352252', 'tblTempUsageDetail_20' ) start [2025-01-28 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352252', 'tblTempUsageDetail_20' ) end [2025-01-28 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352252', 'tblTempVendorCDR_20' ) start [2025-01-28 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352252', 'tblTempVendorCDR_20' ) end [2025-01-28 23:10:19] Production.INFO: ProcessCDR(1,14352252,1,1,2) [2025-01-28 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352252', 'tblTempUsageDetail_20' ) start [2025-01-28 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352252', 'tblTempUsageDetail_20' ) end [2025-01-28 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:10:22] Production.INFO: ==24445== Releasing lock... [2025-01-28 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:11:05 [end_date_ymd] => 2025-01-28 23:11:05 [RateCDR] => 1 ) [2025-01-28 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:11:05' and `end` < '2025-01-28 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:11:19] Production.INFO: count ==808 [2025-01-28 23:11:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:11:05 - End Time 2025-01-28 23:11:05 [2025-01-28 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352257', 'tblTempUsageDetail_20' ) start [2025-01-28 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352257', 'tblTempUsageDetail_20' ) end [2025-01-28 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352257', 'tblTempVendorCDR_20' ) start [2025-01-28 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352257', 'tblTempVendorCDR_20' ) end [2025-01-28 23:11:19] Production.INFO: ProcessCDR(1,14352257,1,1,2) [2025-01-28 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352257', 'tblTempUsageDetail_20' ) start [2025-01-28 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352257', 'tblTempUsageDetail_20' ) end [2025-01-28 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:11:22] Production.INFO: ==24528== Releasing lock... [2025-01-28 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:11:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-28 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:12:05 [end_date_ymd] => 2025-01-28 23:12:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:12:05' and `end` < '2025-01-28 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-28 23:12:19] Production.INFO: count ==806 [2025-01-28 23:12:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:12:05 - End Time 2025-01-28 23:12:05 [2025-01-28 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352262', 'tblTempUsageDetail_20' ) start [2025-01-28 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352262', 'tblTempUsageDetail_20' ) end [2025-01-28 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352262', 'tblTempVendorCDR_20' ) start [2025-01-28 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352262', 'tblTempVendorCDR_20' ) end [2025-01-28 23:12:19] Production.INFO: ProcessCDR(1,14352262,1,1,2) [2025-01-28 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352262', 'tblTempUsageDetail_20' ) start [2025-01-28 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352262', 'tblTempUsageDetail_20' ) end [2025-01-28 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:12:24] Production.INFO: ==24690== Releasing lock... [2025-01-28 23:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:12:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-28 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:13:06 [end_date_ymd] => 2025-01-28 23:13:06 [RateCDR] => 1 ) [2025-01-28 23:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:13:06' and `end` < '2025-01-28 23:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:13:20] Production.INFO: count ==802 [2025-01-28 23:13:20] Production.ERROR: pbx CDR StartTime 2025-01-28 20:13:06 - End Time 2025-01-28 23:13:06 [2025-01-28 23:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352267', 'tblTempUsageDetail_20' ) start [2025-01-28 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352267', 'tblTempUsageDetail_20' ) end [2025-01-28 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352267', 'tblTempVendorCDR_20' ) start [2025-01-28 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352267', 'tblTempVendorCDR_20' ) end [2025-01-28 23:13:20] Production.INFO: ProcessCDR(1,14352267,1,1,2) [2025-01-28 23:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352267', 'tblTempUsageDetail_20' ) start [2025-01-28 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352267', 'tblTempUsageDetail_20' ) end [2025-01-28 23:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:13:23] Production.INFO: ==24776== Releasing lock... [2025-01-28 23:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:13:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:14:05 [end_date_ymd] => 2025-01-28 23:14:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:14:05' and `end` < '2025-01-28 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-28 23:14:19] Production.INFO: count ==801 [2025-01-28 23:14:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:14:05 - End Time 2025-01-28 23:14:05 [2025-01-28 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352272', 'tblTempUsageDetail_20' ) start [2025-01-28 23:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352272', 'tblTempUsageDetail_20' ) end [2025-01-28 23:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352272', 'tblTempVendorCDR_20' ) start [2025-01-28 23:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352272', 'tblTempVendorCDR_20' ) end [2025-01-28 23:14:20] Production.INFO: ProcessCDR(1,14352272,1,1,2) [2025-01-28 23:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352272', 'tblTempUsageDetail_20' ) start [2025-01-28 23:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352272', 'tblTempUsageDetail_20' ) end [2025-01-28 23:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:14:24] Production.INFO: ==24861== Releasing lock... [2025-01-28 23:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:14:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-28 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:15:06 [end_date_ymd] => 2025-01-28 23:15:06 [RateCDR] => 1 ) [2025-01-28 23: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-28 20:15:06' and `end` < '2025-01-28 23: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-28 23:15:18] Production.INFO: count ==798 [2025-01-28 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:15:06 - End Time 2025-01-28 23:15:06 [2025-01-28 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352277', 'tblTempUsageDetail_20' ) start [2025-01-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352277', 'tblTempUsageDetail_20' ) end [2025-01-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352277', 'tblTempVendorCDR_20' ) start [2025-01-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352277', 'tblTempVendorCDR_20' ) end [2025-01-28 23:15:18] Production.INFO: ProcessCDR(1,14352277,1,1,2) [2025-01-28 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352277', 'tblTempUsageDetail_20' ) start [2025-01-28 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352277', 'tblTempUsageDetail_20' ) end [2025-01-28 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:15:23] Production.INFO: ==25023== Releasing lock... [2025-01-28 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:15:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-28 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:16:05 [end_date_ymd] => 2025-01-28 23:16:05 [RateCDR] => 1 ) [2025-01-28 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:16:05' and `end` < '2025-01-28 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:16:18] Production.INFO: count ==797 [2025-01-28 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:16:05 - End Time 2025-01-28 23:16:05 [2025-01-28 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352282', 'tblTempUsageDetail_20' ) start [2025-01-28 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352282', 'tblTempUsageDetail_20' ) end [2025-01-28 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352282', 'tblTempVendorCDR_20' ) start [2025-01-28 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352282', 'tblTempVendorCDR_20' ) end [2025-01-28 23:16:18] Production.INFO: ProcessCDR(1,14352282,1,1,2) [2025-01-28 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352282', 'tblTempUsageDetail_20' ) start [2025-01-28 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352282', 'tblTempUsageDetail_20' ) end [2025-01-28 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:16:23] Production.INFO: ==25103== Releasing lock... [2025-01-28 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:16:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-28 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:17:05 [end_date_ymd] => 2025-01-28 23:17:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:17:05' and `end` < '2025-01-28 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-28 23:17:19] Production.INFO: count ==791 [2025-01-28 23:17:20] Production.ERROR: pbx CDR StartTime 2025-01-28 20:17:05 - End Time 2025-01-28 23:17:05 [2025-01-28 23:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352287', 'tblTempUsageDetail_20' ) start [2025-01-28 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352287', 'tblTempUsageDetail_20' ) end [2025-01-28 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352287', 'tblTempVendorCDR_20' ) start [2025-01-28 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352287', 'tblTempVendorCDR_20' ) end [2025-01-28 23:17:20] Production.INFO: ProcessCDR(1,14352287,1,1,2) [2025-01-28 23:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352287', 'tblTempUsageDetail_20' ) start [2025-01-28 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352287', 'tblTempUsageDetail_20' ) end [2025-01-28 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:17:23] Production.INFO: ==25188== Releasing lock... [2025-01-28 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:17:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:18:05 [end_date_ymd] => 2025-01-28 23:18:05 [RateCDR] => 1 ) [2025-01-28 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:18:05' and `end` < '2025-01-28 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:18:18] Production.INFO: count ==788 [2025-01-28 23:18:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:18:05 - End Time 2025-01-28 23:18:05 [2025-01-28 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352292', 'tblTempUsageDetail_20' ) start [2025-01-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352292', 'tblTempUsageDetail_20' ) end [2025-01-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352292', 'tblTempVendorCDR_20' ) start [2025-01-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352292', 'tblTempVendorCDR_20' ) end [2025-01-28 23:18:19] Production.INFO: ProcessCDR(1,14352292,1,1,2) [2025-01-28 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352292', 'tblTempUsageDetail_20' ) start [2025-01-28 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352292', 'tblTempUsageDetail_20' ) end [2025-01-28 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:18:22] Production.INFO: ==25269== Releasing lock... [2025-01-28 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:19:05 [end_date_ymd] => 2025-01-28 23:19:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:19:05' and `end` < '2025-01-28 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-28 23:19:18] Production.INFO: count ==781 [2025-01-28 23:19:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:19:05 - End Time 2025-01-28 23:19:05 [2025-01-28 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352297', 'tblTempUsageDetail_20' ) start [2025-01-28 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352297', 'tblTempUsageDetail_20' ) end [2025-01-28 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352297', 'tblTempVendorCDR_20' ) start [2025-01-28 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352297', 'tblTempVendorCDR_20' ) end [2025-01-28 23:19:18] Production.INFO: ProcessCDR(1,14352297,1,1,2) [2025-01-28 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352297', 'tblTempUsageDetail_20' ) start [2025-01-28 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352297', 'tblTempUsageDetail_20' ) end [2025-01-28 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:19:21] Production.INFO: ==25358== Releasing lock... [2025-01-28 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:20:06 [end_date_ymd] => 2025-01-28 23:20:06 [RateCDR] => 1 ) [2025-01-28 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:20:06' and `end` < '2025-01-28 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:20:19] Production.INFO: count ==779 [2025-01-28 23:20:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:20:06 - End Time 2025-01-28 23:20:06 [2025-01-28 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352303', 'tblTempUsageDetail_20' ) start [2025-01-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352303', 'tblTempUsageDetail_20' ) end [2025-01-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352303', 'tblTempVendorCDR_20' ) start [2025-01-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352303', 'tblTempVendorCDR_20' ) end [2025-01-28 23:20:19] Production.INFO: ProcessCDR(1,14352303,1,1,2) [2025-01-28 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352303', 'tblTempUsageDetail_20' ) start [2025-01-28 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352303', 'tblTempUsageDetail_20' ) end [2025-01-28 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:20:22] Production.INFO: ==25453== Releasing lock... [2025-01-28 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:21:05 [end_date_ymd] => 2025-01-28 23:21:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:21:05' and `end` < '2025-01-28 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-28 23:21:19] Production.INFO: count ==747 [2025-01-28 23:21:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:21:05 - End Time 2025-01-28 23:21:05 [2025-01-28 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352308', 'tblTempUsageDetail_20' ) start [2025-01-28 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352308', 'tblTempUsageDetail_20' ) end [2025-01-28 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352308', 'tblTempVendorCDR_20' ) start [2025-01-28 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352308', 'tblTempVendorCDR_20' ) end [2025-01-28 23:21:19] Production.INFO: ProcessCDR(1,14352308,1,1,2) [2025-01-28 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352308', 'tblTempUsageDetail_20' ) start [2025-01-28 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352308', 'tblTempUsageDetail_20' ) end [2025-01-28 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:21:22] Production.INFO: ==25531== Releasing lock... [2025-01-28 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:21:22] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:22:06 [end_date_ymd] => 2025-01-28 23:22:06 [RateCDR] => 1 ) [2025-01-28 23: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-28 20:22:06' and `end` < '2025-01-28 23: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-28 23:22:19] Production.INFO: count ==750 [2025-01-28 23:22:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:22:06 - End Time 2025-01-28 23:22:06 [2025-01-28 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352313', 'tblTempUsageDetail_20' ) start [2025-01-28 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352313', 'tblTempUsageDetail_20' ) end [2025-01-28 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352313', 'tblTempVendorCDR_20' ) start [2025-01-28 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352313', 'tblTempVendorCDR_20' ) end [2025-01-28 23:22:19] Production.INFO: ProcessCDR(1,14352313,1,1,2) [2025-01-28 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352313', 'tblTempUsageDetail_20' ) start [2025-01-28 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352313', 'tblTempUsageDetail_20' ) end [2025-01-28 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:22:23] Production.INFO: ==25614== Releasing lock... [2025-01-28 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:22:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:23:05 [end_date_ymd] => 2025-01-28 23:23:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:23:05' and `end` < '2025-01-28 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-28 23:23:18] Production.INFO: count ==752 [2025-01-28 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:23:05 - End Time 2025-01-28 23:23:05 [2025-01-28 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352318', 'tblTempUsageDetail_20' ) start [2025-01-28 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352318', 'tblTempUsageDetail_20' ) end [2025-01-28 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352318', 'tblTempVendorCDR_20' ) start [2025-01-28 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352318', 'tblTempVendorCDR_20' ) end [2025-01-28 23:23:18] Production.INFO: ProcessCDR(1,14352318,1,1,2) [2025-01-28 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352318', 'tblTempUsageDetail_20' ) start [2025-01-28 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352318', 'tblTempUsageDetail_20' ) end [2025-01-28 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:23:23] Production.INFO: ==25693== Releasing lock... [2025-01-28 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:23:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-28 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:24:06 [end_date_ymd] => 2025-01-28 23:24:06 [RateCDR] => 1 ) [2025-01-28 23:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:24:06' and `end` < '2025-01-28 23:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:24:19] Production.INFO: count ==753 [2025-01-28 23:24:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:24:06 - End Time 2025-01-28 23:24:06 [2025-01-28 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352323', 'tblTempUsageDetail_20' ) start [2025-01-28 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352323', 'tblTempUsageDetail_20' ) end [2025-01-28 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352323', 'tblTempVendorCDR_20' ) start [2025-01-28 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352323', 'tblTempVendorCDR_20' ) end [2025-01-28 23:24:19] Production.INFO: ProcessCDR(1,14352323,1,1,2) [2025-01-28 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352323', 'tblTempUsageDetail_20' ) start [2025-01-28 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352323', 'tblTempUsageDetail_20' ) end [2025-01-28 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:24:23] Production.INFO: ==25776== Releasing lock... [2025-01-28 23:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:24:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:25:05 [end_date_ymd] => 2025-01-28 23:25:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:25:05' and `end` < '2025-01-28 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-28 23:25:18] Production.INFO: count ==755 [2025-01-28 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:25:05 - End Time 2025-01-28 23:25:05 [2025-01-28 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352328', 'tblTempUsageDetail_20' ) start [2025-01-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352328', 'tblTempUsageDetail_20' ) end [2025-01-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352328', 'tblTempVendorCDR_20' ) start [2025-01-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352328', 'tblTempVendorCDR_20' ) end [2025-01-28 23:25:18] Production.INFO: ProcessCDR(1,14352328,1,1,2) [2025-01-28 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352328', 'tblTempUsageDetail_20' ) start [2025-01-28 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352328', 'tblTempUsageDetail_20' ) end [2025-01-28 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:25:21] Production.INFO: ==25902== Releasing lock... [2025-01-28 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 23:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:26:06 [end_date_ymd] => 2025-01-28 23:26:06 [RateCDR] => 1 ) [2025-01-28 23: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-28 20:26:06' and `end` < '2025-01-28 23: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-28 23:26:18] Production.INFO: count ==752 [2025-01-28 23:26:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:26:06 - End Time 2025-01-28 23:26:06 [2025-01-28 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352333', 'tblTempUsageDetail_20' ) start [2025-01-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352333', 'tblTempUsageDetail_20' ) end [2025-01-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352333', 'tblTempVendorCDR_20' ) start [2025-01-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352333', 'tblTempVendorCDR_20' ) end [2025-01-28 23:26:18] Production.INFO: ProcessCDR(1,14352333,1,1,2) [2025-01-28 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352333', 'tblTempUsageDetail_20' ) start [2025-01-28 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352333', 'tblTempUsageDetail_20' ) end [2025-01-28 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:26:22] Production.INFO: ==25981== Releasing lock... [2025-01-28 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:26:22] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:27:05 [end_date_ymd] => 2025-01-28 23:27:05 [RateCDR] => 1 ) [2025-01-28 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:27:05' and `end` < '2025-01-28 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:27:19] Production.INFO: count ==752 [2025-01-28 23:27:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:27:05 - End Time 2025-01-28 23:27:05 [2025-01-28 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352338', 'tblTempUsageDetail_20' ) start [2025-01-28 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352338', 'tblTempUsageDetail_20' ) end [2025-01-28 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352338', 'tblTempVendorCDR_20' ) start [2025-01-28 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352338', 'tblTempVendorCDR_20' ) end [2025-01-28 23:27:19] Production.INFO: ProcessCDR(1,14352338,1,1,2) [2025-01-28 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352338', 'tblTempUsageDetail_20' ) start [2025-01-28 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352338', 'tblTempUsageDetail_20' ) end [2025-01-28 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:27:22] Production.INFO: ==26058== Releasing lock... [2025-01-28 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:27:22] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:28:06 [end_date_ymd] => 2025-01-28 23:28:06 [RateCDR] => 1 ) [2025-01-28 23: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-28 20:28:06' and `end` < '2025-01-28 23: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-28 23:28:18] Production.INFO: count ==751 [2025-01-28 23:28:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:28:06 - End Time 2025-01-28 23:28:06 [2025-01-28 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352343', 'tblTempUsageDetail_20' ) start [2025-01-28 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352343', 'tblTempUsageDetail_20' ) end [2025-01-28 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352343', 'tblTempVendorCDR_20' ) start [2025-01-28 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352343', 'tblTempVendorCDR_20' ) end [2025-01-28 23:28:19] Production.INFO: ProcessCDR(1,14352343,1,1,2) [2025-01-28 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352343', 'tblTempUsageDetail_20' ) start [2025-01-28 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352343', 'tblTempUsageDetail_20' ) end [2025-01-28 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:28:22] Production.INFO: ==26139== Releasing lock... [2025-01-28 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:28:22] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:29:05 [end_date_ymd] => 2025-01-28 23:29:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:29:05' and `end` < '2025-01-28 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-28 23:29:18] Production.INFO: count ==752 [2025-01-28 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:29:05 - End Time 2025-01-28 23:29:05 [2025-01-28 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352348', 'tblTempUsageDetail_20' ) start [2025-01-28 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352348', 'tblTempUsageDetail_20' ) end [2025-01-28 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352348', 'tblTempVendorCDR_20' ) start [2025-01-28 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352348', 'tblTempVendorCDR_20' ) end [2025-01-28 23:29:19] Production.INFO: ProcessCDR(1,14352348,1,1,2) [2025-01-28 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352348', 'tblTempUsageDetail_20' ) start [2025-01-28 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352348', 'tblTempUsageDetail_20' ) end [2025-01-28 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:29:23] Production.INFO: ==26217== Releasing lock... [2025-01-28 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:29:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:30:06 [end_date_ymd] => 2025-01-28 23:30:06 [RateCDR] => 1 ) [2025-01-28 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:30:06' and `end` < '2025-01-28 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:30:19] Production.INFO: count ==754 [2025-01-28 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:30:06 - End Time 2025-01-28 23:30:06 [2025-01-28 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352354', 'tblTempUsageDetail_20' ) start [2025-01-28 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352354', 'tblTempUsageDetail_20' ) end [2025-01-28 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352354', 'tblTempVendorCDR_20' ) start [2025-01-28 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352354', 'tblTempVendorCDR_20' ) end [2025-01-28 23:30:19] Production.INFO: ProcessCDR(1,14352354,1,1,2) [2025-01-28 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352354', 'tblTempUsageDetail_20' ) start [2025-01-28 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352354', 'tblTempUsageDetail_20' ) end [2025-01-28 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:30:22] Production.INFO: ==26301== Releasing lock... [2025-01-28 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:30:22] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:31:04 [end_date_ymd] => 2025-01-28 23:31:04 [RateCDR] => 1 ) [2025-01-28 23: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-28 20:31:04' and `end` < '2025-01-28 23: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-28 23:31:19] Production.INFO: count ==734 [2025-01-28 23:31:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:31:04 - End Time 2025-01-28 23:31:04 [2025-01-28 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352359', 'tblTempUsageDetail_20' ) start [2025-01-28 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352359', 'tblTempUsageDetail_20' ) end [2025-01-28 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352359', 'tblTempVendorCDR_20' ) start [2025-01-28 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352359', 'tblTempVendorCDR_20' ) end [2025-01-28 23:31:19] Production.INFO: ProcessCDR(1,14352359,1,1,2) [2025-01-28 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352359', 'tblTempUsageDetail_20' ) start [2025-01-28 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352359', 'tblTempUsageDetail_20' ) end [2025-01-28 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:31:22] Production.INFO: ==26381== Releasing lock... [2025-01-28 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:31:22] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:32:06 [end_date_ymd] => 2025-01-28 23:32:06 [RateCDR] => 1 ) [2025-01-28 23: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-28 20:32:06' and `end` < '2025-01-28 23: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-28 23:32:19] Production.INFO: count ==726 [2025-01-28 23:32:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:32:06 - End Time 2025-01-28 23:32:06 [2025-01-28 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352364', 'tblTempUsageDetail_20' ) start [2025-01-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352364', 'tblTempUsageDetail_20' ) end [2025-01-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352364', 'tblTempVendorCDR_20' ) start [2025-01-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352364', 'tblTempVendorCDR_20' ) end [2025-01-28 23:32:19] Production.INFO: ProcessCDR(1,14352364,1,1,2) [2025-01-28 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352364', 'tblTempUsageDetail_20' ) start [2025-01-28 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352364', 'tblTempUsageDetail_20' ) end [2025-01-28 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:32:23] Production.INFO: ==26464== Releasing lock... [2025-01-28 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:32:23] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:33:04 [end_date_ymd] => 2025-01-28 23:33:04 [RateCDR] => 1 ) [2025-01-28 23:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:33:04' and `end` < '2025-01-28 23:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:33:17] Production.INFO: count ==723 [2025-01-28 23:33:17] Production.ERROR: pbx CDR StartTime 2025-01-28 20:33:04 - End Time 2025-01-28 23:33:04 [2025-01-28 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352369', 'tblTempUsageDetail_20' ) start [2025-01-28 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352369', 'tblTempUsageDetail_20' ) end [2025-01-28 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352369', 'tblTempVendorCDR_20' ) start [2025-01-28 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352369', 'tblTempVendorCDR_20' ) end [2025-01-28 23:33:17] Production.INFO: ProcessCDR(1,14352369,1,1,2) [2025-01-28 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352369', 'tblTempUsageDetail_20' ) start [2025-01-28 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352369', 'tblTempUsageDetail_20' ) end [2025-01-28 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:33:20] Production.INFO: ==26546== Releasing lock... [2025-01-28 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:33:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:34:05 [end_date_ymd] => 2025-01-28 23:34:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:34:05' and `end` < '2025-01-28 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-28 23:34:18] Production.INFO: count ==734 [2025-01-28 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:34:05 - End Time 2025-01-28 23:34:05 [2025-01-28 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352374', 'tblTempUsageDetail_20' ) start [2025-01-28 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352374', 'tblTempUsageDetail_20' ) end [2025-01-28 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352374', 'tblTempVendorCDR_20' ) start [2025-01-28 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352374', 'tblTempVendorCDR_20' ) end [2025-01-28 23:34:18] Production.INFO: ProcessCDR(1,14352374,1,1,2) [2025-01-28 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352374', 'tblTempUsageDetail_20' ) start [2025-01-28 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352374', 'tblTempUsageDetail_20' ) end [2025-01-28 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:34:21] Production.INFO: ==26625== Releasing lock... [2025-01-28 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:34:21] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:35:05 [end_date_ymd] => 2025-01-28 23:35:05 [RateCDR] => 1 ) [2025-01-28 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:35:05' and `end` < '2025-01-28 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:35:18] Production.INFO: count ==733 [2025-01-28 23:35:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:35:05 - End Time 2025-01-28 23:35:05 [2025-01-28 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352379', 'tblTempUsageDetail_20' ) start [2025-01-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352379', 'tblTempUsageDetail_20' ) end [2025-01-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352379', 'tblTempVendorCDR_20' ) start [2025-01-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352379', 'tblTempVendorCDR_20' ) end [2025-01-28 23:35:18] Production.INFO: ProcessCDR(1,14352379,1,1,2) [2025-01-28 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352379', 'tblTempUsageDetail_20' ) start [2025-01-28 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352379', 'tblTempUsageDetail_20' ) end [2025-01-28 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:35:21] Production.INFO: ==26701== Releasing lock... [2025-01-28 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:35:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-28 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:36:05 [end_date_ymd] => 2025-01-28 23:36:05 [RateCDR] => 1 ) [2025-01-28 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:36:05' and `end` < '2025-01-28 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:36:18] Production.INFO: count ==732 [2025-01-28 23:36:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:36:05 - End Time 2025-01-28 23:36:05 [2025-01-28 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352384', 'tblTempUsageDetail_20' ) start [2025-01-28 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352384', 'tblTempUsageDetail_20' ) end [2025-01-28 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352384', 'tblTempVendorCDR_20' ) start [2025-01-28 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352384', 'tblTempVendorCDR_20' ) end [2025-01-28 23:36:19] Production.INFO: ProcessCDR(1,14352384,1,1,2) [2025-01-28 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352384', 'tblTempUsageDetail_20' ) start [2025-01-28 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352384', 'tblTempUsageDetail_20' ) end [2025-01-28 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:36:22] Production.INFO: ==26778== Releasing lock... [2025-01-28 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:36:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:37:05 [end_date_ymd] => 2025-01-28 23:37:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:37:05' and `end` < '2025-01-28 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-28 23:37:18] Production.INFO: count ==731 [2025-01-28 23:37:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:37:05 - End Time 2025-01-28 23:37:05 [2025-01-28 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352389', 'tblTempUsageDetail_20' ) start [2025-01-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352389', 'tblTempUsageDetail_20' ) end [2025-01-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352389', 'tblTempVendorCDR_20' ) start [2025-01-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352389', 'tblTempVendorCDR_20' ) end [2025-01-28 23:37:18] Production.INFO: ProcessCDR(1,14352389,1,1,2) [2025-01-28 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352389', 'tblTempUsageDetail_20' ) start [2025-01-28 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352389', 'tblTempUsageDetail_20' ) end [2025-01-28 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:37:22] Production.INFO: ==26863== Releasing lock... [2025-01-28 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:37:22] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:38:05 [end_date_ymd] => 2025-01-28 23:38:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:38:05' and `end` < '2025-01-28 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-28 23:38:18] Production.INFO: count ==733 [2025-01-28 23:38:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:38:05 - End Time 2025-01-28 23:38:05 [2025-01-28 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352394', 'tblTempUsageDetail_20' ) start [2025-01-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352394', 'tblTempUsageDetail_20' ) end [2025-01-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352394', 'tblTempVendorCDR_20' ) start [2025-01-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352394', 'tblTempVendorCDR_20' ) end [2025-01-28 23:38:18] Production.INFO: ProcessCDR(1,14352394,1,1,2) [2025-01-28 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352394', 'tblTempUsageDetail_20' ) start [2025-01-28 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352394', 'tblTempUsageDetail_20' ) end [2025-01-28 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:38:22] Production.INFO: ==26945== Releasing lock... [2025-01-28 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:38:22] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:39:05 [end_date_ymd] => 2025-01-28 23:39:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:39:05' and `end` < '2025-01-28 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-28 23:39:19] Production.INFO: count ==734 [2025-01-28 23:39:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:39:05 - End Time 2025-01-28 23:39:05 [2025-01-28 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352399', 'tblTempUsageDetail_20' ) start [2025-01-28 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352399', 'tblTempUsageDetail_20' ) end [2025-01-28 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352399', 'tblTempVendorCDR_20' ) start [2025-01-28 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352399', 'tblTempVendorCDR_20' ) end [2025-01-28 23:39:19] Production.INFO: ProcessCDR(1,14352399,1,1,2) [2025-01-28 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352399', 'tblTempUsageDetail_20' ) start [2025-01-28 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352399', 'tblTempUsageDetail_20' ) end [2025-01-28 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:39:22] Production.INFO: ==27026== Releasing lock... [2025-01-28 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:39:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-28 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:40:06 [end_date_ymd] => 2025-01-28 23:40:06 [RateCDR] => 1 ) [2025-01-28 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-28 20:40:06' and `end` < '2025-01-28 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-28 23:40:19] Production.INFO: count ==730 [2025-01-28 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:40:06 - End Time 2025-01-28 23:40:06 [2025-01-28 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352404', 'tblTempUsageDetail_20' ) start [2025-01-28 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352404', 'tblTempUsageDetail_20' ) end [2025-01-28 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352404', 'tblTempVendorCDR_20' ) start [2025-01-28 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352404', 'tblTempVendorCDR_20' ) end [2025-01-28 23:40:19] Production.INFO: ProcessCDR(1,14352404,1,1,2) [2025-01-28 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352404', 'tblTempUsageDetail_20' ) start [2025-01-28 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352404', 'tblTempUsageDetail_20' ) end [2025-01-28 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:40:22] Production.INFO: ==27155== Releasing lock... [2025-01-28 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:40:22] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:41:05 [end_date_ymd] => 2025-01-28 23:41:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:41:05' and `end` < '2025-01-28 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-28 23:41:19] Production.INFO: count ==720 [2025-01-28 23:41:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:41:05 - End Time 2025-01-28 23:41:05 [2025-01-28 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352410', 'tblTempUsageDetail_20' ) start [2025-01-28 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352410', 'tblTempUsageDetail_20' ) end [2025-01-28 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352410', 'tblTempVendorCDR_20' ) start [2025-01-28 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352410', 'tblTempVendorCDR_20' ) end [2025-01-28 23:41:19] Production.INFO: ProcessCDR(1,14352410,1,1,2) [2025-01-28 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352410', 'tblTempUsageDetail_20' ) start [2025-01-28 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352410', 'tblTempUsageDetail_20' ) end [2025-01-28 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:41:22] Production.INFO: ==27235== Releasing lock... [2025-01-28 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:41:22] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:42:06 [end_date_ymd] => 2025-01-28 23:42:06 [RateCDR] => 1 ) [2025-01-28 23: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-28 20:42:06' and `end` < '2025-01-28 23: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-28 23:42:19] Production.INFO: count ==719 [2025-01-28 23:42:20] Production.ERROR: pbx CDR StartTime 2025-01-28 20:42:06 - End Time 2025-01-28 23:42:06 [2025-01-28 23:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352415', 'tblTempUsageDetail_20' ) start [2025-01-28 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352415', 'tblTempUsageDetail_20' ) end [2025-01-28 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352415', 'tblTempVendorCDR_20' ) start [2025-01-28 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352415', 'tblTempVendorCDR_20' ) end [2025-01-28 23:42:20] Production.INFO: ProcessCDR(1,14352415,1,1,2) [2025-01-28 23:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352415', 'tblTempUsageDetail_20' ) start [2025-01-28 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352415', 'tblTempUsageDetail_20' ) end [2025-01-28 23:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:42:23] Production.INFO: ==27312== Releasing lock... [2025-01-28 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:42:23] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:43:05 [end_date_ymd] => 2025-01-28 23:43:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:43:05' and `end` < '2025-01-28 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-28 23:43:18] Production.INFO: count ==717 [2025-01-28 23:43:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:43:05 - End Time 2025-01-28 23:43:05 [2025-01-28 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352420', 'tblTempUsageDetail_20' ) start [2025-01-28 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352420', 'tblTempUsageDetail_20' ) end [2025-01-28 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352420', 'tblTempVendorCDR_20' ) start [2025-01-28 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352420', 'tblTempVendorCDR_20' ) end [2025-01-28 23:43:18] Production.INFO: ProcessCDR(1,14352420,1,1,2) [2025-01-28 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352420', 'tblTempUsageDetail_20' ) start [2025-01-28 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352420', 'tblTempUsageDetail_20' ) end [2025-01-28 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:43:21] Production.INFO: ==27392== Releasing lock... [2025-01-28 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:44:05 [end_date_ymd] => 2025-01-28 23:44:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:44:05' and `end` < '2025-01-28 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-28 23:44:19] Production.INFO: count ==719 [2025-01-28 23:44:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:44:05 - End Time 2025-01-28 23:44:05 [2025-01-28 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352425', 'tblTempUsageDetail_20' ) start [2025-01-28 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352425', 'tblTempUsageDetail_20' ) end [2025-01-28 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352425', 'tblTempVendorCDR_20' ) start [2025-01-28 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352425', 'tblTempVendorCDR_20' ) end [2025-01-28 23:44:19] Production.INFO: ProcessCDR(1,14352425,1,1,2) [2025-01-28 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352425', 'tblTempUsageDetail_20' ) start [2025-01-28 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352425', 'tblTempUsageDetail_20' ) end [2025-01-28 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:44:24] Production.INFO: ==27469== Releasing lock... [2025-01-28 23:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:44:24] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:45:04 [end_date_ymd] => 2025-01-28 23:45:04 [RateCDR] => 1 ) [2025-01-28 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:45:04' and `end` < '2025-01-28 23:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:45:17] Production.INFO: count ==718 [2025-01-28 23:45:17] Production.ERROR: pbx CDR StartTime 2025-01-28 20:45:04 - End Time 2025-01-28 23:45:04 [2025-01-28 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352430', 'tblTempUsageDetail_20' ) start [2025-01-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352430', 'tblTempUsageDetail_20' ) end [2025-01-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352430', 'tblTempVendorCDR_20' ) start [2025-01-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352430', 'tblTempVendorCDR_20' ) end [2025-01-28 23:45:17] Production.INFO: ProcessCDR(1,14352430,1,1,2) [2025-01-28 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352430', 'tblTempUsageDetail_20' ) start [2025-01-28 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352430', 'tblTempUsageDetail_20' ) end [2025-01-28 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:45:22] Production.INFO: ==27553== Releasing lock... [2025-01-28 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:45:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:46:05 [end_date_ymd] => 2025-01-28 23:46:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:46:05' and `end` < '2025-01-28 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-28 23:46:18] Production.INFO: count ==718 [2025-01-28 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:46:05 - End Time 2025-01-28 23:46:05 [2025-01-28 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352435', 'tblTempUsageDetail_20' ) start [2025-01-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352435', 'tblTempUsageDetail_20' ) end [2025-01-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352435', 'tblTempVendorCDR_20' ) start [2025-01-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352435', 'tblTempVendorCDR_20' ) end [2025-01-28 23:46:18] Production.INFO: ProcessCDR(1,14352435,1,1,2) [2025-01-28 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352435', 'tblTempUsageDetail_20' ) start [2025-01-28 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352435', 'tblTempUsageDetail_20' ) end [2025-01-28 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:46:21] Production.INFO: ==27633== Releasing lock... [2025-01-28 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:47:05 [end_date_ymd] => 2025-01-28 23:47:05 [RateCDR] => 1 ) [2025-01-28 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:47:05' and `end` < '2025-01-28 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:47:18] Production.INFO: count ==722 [2025-01-28 23:47:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:47:05 - End Time 2025-01-28 23:47:05 [2025-01-28 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352440', 'tblTempUsageDetail_20' ) start [2025-01-28 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352440', 'tblTempUsageDetail_20' ) end [2025-01-28 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352440', 'tblTempVendorCDR_20' ) start [2025-01-28 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352440', 'tblTempVendorCDR_20' ) end [2025-01-28 23:47:19] Production.INFO: ProcessCDR(1,14352440,1,1,2) [2025-01-28 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352440', 'tblTempUsageDetail_20' ) start [2025-01-28 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352440', 'tblTempUsageDetail_20' ) end [2025-01-28 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:47:22] Production.INFO: ==27709== Releasing lock... [2025-01-28 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:47:22] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:48:05 [end_date_ymd] => 2025-01-28 23:48:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:48:05' and `end` < '2025-01-28 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-28 23:48:18] Production.INFO: count ==721 [2025-01-28 23:48:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:48:05 - End Time 2025-01-28 23:48:05 [2025-01-28 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352445', 'tblTempUsageDetail_20' ) start [2025-01-28 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352445', 'tblTempUsageDetail_20' ) end [2025-01-28 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352445', 'tblTempVendorCDR_20' ) start [2025-01-28 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352445', 'tblTempVendorCDR_20' ) end [2025-01-28 23:48:18] Production.INFO: ProcessCDR(1,14352445,1,1,2) [2025-01-28 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352445', 'tblTempUsageDetail_20' ) start [2025-01-28 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352445', 'tblTempUsageDetail_20' ) end [2025-01-28 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:48:21] Production.INFO: ==27789== Releasing lock... [2025-01-28 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:48:21] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:49:06 [end_date_ymd] => 2025-01-28 23:49:06 [RateCDR] => 1 ) [2025-01-28 23:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:49:06' and `end` < '2025-01-28 23:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:49:19] Production.INFO: count ==718 [2025-01-28 23:49:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:49:06 - End Time 2025-01-28 23:49:06 [2025-01-28 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352450', 'tblTempUsageDetail_20' ) start [2025-01-28 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352450', 'tblTempUsageDetail_20' ) end [2025-01-28 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352450', 'tblTempVendorCDR_20' ) start [2025-01-28 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352450', 'tblTempVendorCDR_20' ) end [2025-01-28 23:49:19] Production.INFO: ProcessCDR(1,14352450,1,1,2) [2025-01-28 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352450', 'tblTempUsageDetail_20' ) start [2025-01-28 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352450', 'tblTempUsageDetail_20' ) end [2025-01-28 23:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:49:23] Production.INFO: ==27865== Releasing lock... [2025-01-28 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:49:23] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:50:06 [end_date_ymd] => 2025-01-28 23:50:06 [RateCDR] => 1 ) [2025-01-28 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:50:06' and `end` < '2025-01-28 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:50:18] Production.INFO: count ==719 [2025-01-28 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:50:06 - End Time 2025-01-28 23:50:06 [2025-01-28 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352456', 'tblTempUsageDetail_20' ) start [2025-01-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352456', 'tblTempUsageDetail_20' ) end [2025-01-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352456', 'tblTempVendorCDR_20' ) start [2025-01-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352456', 'tblTempVendorCDR_20' ) end [2025-01-28 23:50:18] Production.INFO: ProcessCDR(1,14352456,1,1,2) [2025-01-28 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352456', 'tblTempUsageDetail_20' ) start [2025-01-28 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352456', 'tblTempUsageDetail_20' ) end [2025-01-28 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:50:23] Production.INFO: ==27941== Releasing lock... [2025-01-28 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:50:23] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:51:05 [end_date_ymd] => 2025-01-28 23:51:05 [RateCDR] => 1 ) [2025-01-28 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:51:05' and `end` < '2025-01-28 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:51:19] Production.INFO: count ==726 [2025-01-28 23:51:19] Production.ERROR: pbx CDR StartTime 2025-01-28 20:51:05 - End Time 2025-01-28 23:51:05 [2025-01-28 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352461', 'tblTempUsageDetail_20' ) start [2025-01-28 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352461', 'tblTempUsageDetail_20' ) end [2025-01-28 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352461', 'tblTempVendorCDR_20' ) start [2025-01-28 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352461', 'tblTempVendorCDR_20' ) end [2025-01-28 23:51:19] Production.INFO: ProcessCDR(1,14352461,1,1,2) [2025-01-28 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352461', 'tblTempUsageDetail_20' ) start [2025-01-28 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352461', 'tblTempUsageDetail_20' ) end [2025-01-28 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:51:22] Production.INFO: ==28024== Releasing lock... [2025-01-28 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 23:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:52:04 [end_date_ymd] => 2025-01-28 23:52:04 [RateCDR] => 1 ) [2025-01-28 23: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-28 20:52:04' and `end` < '2025-01-28 23: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-28 23:52:18] Production.INFO: count ==726 [2025-01-28 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:52:04 - End Time 2025-01-28 23:52:04 [2025-01-28 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352466', 'tblTempUsageDetail_20' ) start [2025-01-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352466', 'tblTempUsageDetail_20' ) end [2025-01-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352466', 'tblTempVendorCDR_20' ) start [2025-01-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352466', 'tblTempVendorCDR_20' ) end [2025-01-28 23:52:18] Production.INFO: ProcessCDR(1,14352466,1,1,2) [2025-01-28 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352466', 'tblTempUsageDetail_20' ) start [2025-01-28 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352466', 'tblTempUsageDetail_20' ) end [2025-01-28 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:52:22] Production.INFO: ==28098== Releasing lock... [2025-01-28 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:53:05 [end_date_ymd] => 2025-01-28 23:53:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:53:05' and `end` < '2025-01-28 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-28 23:53:17] Production.INFO: count ==726 [2025-01-28 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:53:05 - End Time 2025-01-28 23:53:05 [2025-01-28 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352471', 'tblTempUsageDetail_20' ) start [2025-01-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352471', 'tblTempUsageDetail_20' ) end [2025-01-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352471', 'tblTempVendorCDR_20' ) start [2025-01-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352471', 'tblTempVendorCDR_20' ) end [2025-01-28 23:53:18] Production.INFO: ProcessCDR(1,14352471,1,1,2) [2025-01-28 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352471', 'tblTempUsageDetail_20' ) start [2025-01-28 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352471', 'tblTempUsageDetail_20' ) end [2025-01-28 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:53:21] Production.INFO: ==28174== Releasing lock... [2025-01-28 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:53:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:54:05 [end_date_ymd] => 2025-01-28 23:54:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:54:05' and `end` < '2025-01-28 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-28 23:54:18] Production.INFO: count ==725 [2025-01-28 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:54:05 - End Time 2025-01-28 23:54:05 [2025-01-28 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352476', 'tblTempUsageDetail_20' ) start [2025-01-28 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352476', 'tblTempUsageDetail_20' ) end [2025-01-28 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352476', 'tblTempVendorCDR_20' ) start [2025-01-28 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352476', 'tblTempVendorCDR_20' ) end [2025-01-28 23:54:18] Production.INFO: ProcessCDR(1,14352476,1,1,2) [2025-01-28 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352476', 'tblTempUsageDetail_20' ) start [2025-01-28 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352476', 'tblTempUsageDetail_20' ) end [2025-01-28 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:54:23] Production.INFO: ==28246== Releasing lock... [2025-01-28 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:54:23] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:55:05 [end_date_ymd] => 2025-01-28 23:55:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:55:05' and `end` < '2025-01-28 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-28 23:55:18] Production.INFO: count ==725 [2025-01-28 23:55:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:55:05 - End Time 2025-01-28 23:55:05 [2025-01-28 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352481', 'tblTempUsageDetail_20' ) start [2025-01-28 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352481', 'tblTempUsageDetail_20' ) end [2025-01-28 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352481', 'tblTempVendorCDR_20' ) start [2025-01-28 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352481', 'tblTempVendorCDR_20' ) end [2025-01-28 23:55:18] Production.INFO: ProcessCDR(1,14352481,1,1,2) [2025-01-28 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352481', 'tblTempUsageDetail_20' ) start [2025-01-28 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352481', 'tblTempUsageDetail_20' ) end [2025-01-28 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:55:21] Production.INFO: ==28326== Releasing lock... [2025-01-28 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:55:21] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:56:05 [end_date_ymd] => 2025-01-28 23:56:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:56:05' and `end` < '2025-01-28 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-28 23:56:18] Production.INFO: count ==724 [2025-01-28 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:56:05 - End Time 2025-01-28 23:56:05 [2025-01-28 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352486', 'tblTempUsageDetail_20' ) start [2025-01-28 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352486', 'tblTempUsageDetail_20' ) end [2025-01-28 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352486', 'tblTempVendorCDR_20' ) start [2025-01-28 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352486', 'tblTempVendorCDR_20' ) end [2025-01-28 23:56:18] Production.INFO: ProcessCDR(1,14352486,1,1,2) [2025-01-28 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352486', 'tblTempUsageDetail_20' ) start [2025-01-28 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352486', 'tblTempUsageDetail_20' ) end [2025-01-28 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:56:21] Production.INFO: ==28441== Releasing lock... [2025-01-28 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:56:21] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:57:05 [end_date_ymd] => 2025-01-28 23:57:05 [RateCDR] => 1 ) [2025-01-28 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:57:05' and `end` < '2025-01-28 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:57:18] Production.INFO: count ==724 [2025-01-28 23:57:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:57:05 - End Time 2025-01-28 23:57:05 [2025-01-28 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352491', 'tblTempUsageDetail_20' ) start [2025-01-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352491', 'tblTempUsageDetail_20' ) end [2025-01-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352491', 'tblTempVendorCDR_20' ) start [2025-01-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352491', 'tblTempVendorCDR_20' ) end [2025-01-28 23:57:18] Production.INFO: ProcessCDR(1,14352491,1,1,2) [2025-01-28 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352491', 'tblTempUsageDetail_20' ) start [2025-01-28 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352491', 'tblTempUsageDetail_20' ) end [2025-01-28 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:57:21] Production.INFO: ==28516== Releasing lock... [2025-01-28 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:57:21] Production.INFO: 33 MB #Memory Used# [2025-01-28 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:58:05 [end_date_ymd] => 2025-01-28 23:58:05 [RateCDR] => 1 ) [2025-01-28 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-28 20:58:05' and `end` < '2025-01-28 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-28 23:58:18] Production.INFO: count ==722 [2025-01-28 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-28 20:58:05 - End Time 2025-01-28 23:58:05 [2025-01-28 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352496', 'tblTempUsageDetail_20' ) start [2025-01-28 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352496', 'tblTempUsageDetail_20' ) end [2025-01-28 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352496', 'tblTempVendorCDR_20' ) start [2025-01-28 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352496', 'tblTempVendorCDR_20' ) end [2025-01-28 23:58:18] Production.INFO: ProcessCDR(1,14352496,1,1,2) [2025-01-28 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352496', 'tblTempUsageDetail_20' ) start [2025-01-28 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352496', 'tblTempUsageDetail_20' ) end [2025-01-28 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:58:21] Production.INFO: ==28596== Releasing lock... [2025-01-28 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-28 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 20:59:04 [end_date_ymd] => 2025-01-28 23:59:04 [RateCDR] => 1 ) [2025-01-28 23:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 20:59:04' and `end` < '2025-01-28 23:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-28 23:59:17] Production.INFO: count ==724 [2025-01-28 23:59:17] Production.ERROR: pbx CDR StartTime 2025-01-28 20:59:04 - End Time 2025-01-28 23:59:04 [2025-01-28 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-28 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352501', 'tblTempUsageDetail_20' ) start [2025-01-28 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352501', 'tblTempUsageDetail_20' ) end [2025-01-28 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352501', 'tblTempVendorCDR_20' ) start [2025-01-28 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352501', 'tblTempVendorCDR_20' ) end [2025-01-28 23:59:17] Production.INFO: ProcessCDR(1,14352501,1,1,2) [2025-01-28 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-28 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-28 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352501', 'tblTempUsageDetail_20' ) start [2025-01-28 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352501', 'tblTempUsageDetail_20' ) end [2025-01-28 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-28 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-28 23:59:22] Production.INFO: ==28671== Releasing lock... [2025-01-28 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-28 23:59:22] Production.INFO: 33 MB #Memory Used#