[2024-12-19 00:00:04] Production.INFO: next invoice date [2024-12-19 00:00:04] Production.INFO: 2025-01-19 [2024-12-19 00:00:04] Production.INFO: getdaysdiff [2024-12-19 00:00:04] Production.INFO: +31 [2024-12-19 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (108,15,1,31,31,'RMScheduler',2024-12-19 00:00:04,1,0,,,0) [2024-12-19 00:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:00:05 [end_date_ymd] => 2024-12-19 00:00:05 [RateCDR] => 1 ) [2024-12-19 00: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` >= '2024-12-18 21:00:05' and `end` < '2024-12-19 00: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 ,'') [2024-12-19 00:00:17] Production.INFO: count ==668 [2024-12-19 00:00:18] Production.ERROR: pbx CDR StartTime 2024-12-18 21:00:05 - End Time 2024-12-19 00:00:05 [2024-12-19 00:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051674', 'tblTempUsageDetail_20' ) start [2024-12-19 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051674', 'tblTempUsageDetail_20' ) end [2024-12-19 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051674', 'tblTempVendorCDR_20' ) start [2024-12-19 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051674', 'tblTempVendorCDR_20' ) end [2024-12-19 00:00:18] Production.INFO: ProcessCDR(1,14051674,1,1,2) [2024-12-19 00:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051674', 'tblTempUsageDetail_20' ) start [2024-12-19 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051674', 'tblTempUsageDetail_20' ) end [2024-12-19 00:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:00:24] Production.INFO: ==15901== Releasing lock... [2024-12-19 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:00:24] Production.INFO: 34.5 MB #Memory Used# [2024-12-19 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:01:05 [end_date_ymd] => 2024-12-19 00:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:01:17] Production.INFO: count ==664 [2024-12-19 00:01:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:01:05 - End Time 2024-12-19 00:01:05 [2024-12-19 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051679', 'tblTempUsageDetail_20' ) start [2024-12-19 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051679', 'tblTempUsageDetail_20' ) end [2024-12-19 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051679', 'tblTempVendorCDR_20' ) start [2024-12-19 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051679', 'tblTempVendorCDR_20' ) end [2024-12-19 00:01:17] Production.INFO: ProcessCDR(1,14051679,1,1,2) [2024-12-19 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051679', 'tblTempUsageDetail_20' ) start [2024-12-19 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051679', 'tblTempUsageDetail_20' ) end [2024-12-19 00:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:01:22] Production.INFO: ==16008== Releasing lock... [2024-12-19 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:01:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-19 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:02:05 [end_date_ymd] => 2024-12-19 00:02:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:02:39] Production.INFO: count ==136 [2024-12-19 00:02:39] Production.ERROR: pbx CDR StartTime 2024-12-18 21:02:05 - End Time 2024-12-19 00:02:05 [2024-12-19 00:02:39] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051684', 'tblTempUsageDetail_20' ) start [2024-12-19 00:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051684', 'tblTempUsageDetail_20' ) end [2024-12-19 00:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051684', 'tblTempVendorCDR_20' ) start [2024-12-19 00:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051684', 'tblTempVendorCDR_20' ) end [2024-12-19 00:02:39] Production.INFO: ProcessCDR(1,14051684,1,1,2) [2024-12-19 00:02:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:02:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:02:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:02:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:02:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051684', 'tblTempUsageDetail_20' ) start [2024-12-19 00:02:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051684', 'tblTempUsageDetail_20' ) end [2024-12-19 00:02:42] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:02:42] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:02:42] Production.INFO: ==16091== Releasing lock... [2024-12-19 00:02:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:02:42] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:03:05 [end_date_ymd] => 2024-12-19 00:03:05 [RateCDR] => 1 ) [2024-12-19 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:03:05' and `end` < '2024-12-19 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:03:27] Production.INFO: count ==136 [2024-12-19 00:03:27] Production.ERROR: pbx CDR StartTime 2024-12-18 21:03:05 - End Time 2024-12-19 00:03:05 [2024-12-19 00:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051689', 'tblTempUsageDetail_20' ) start [2024-12-19 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051689', 'tblTempUsageDetail_20' ) end [2024-12-19 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051689', 'tblTempVendorCDR_20' ) start [2024-12-19 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051689', 'tblTempVendorCDR_20' ) end [2024-12-19 00:03:28] Production.INFO: ProcessCDR(1,14051689,1,1,2) [2024-12-19 00:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051689', 'tblTempUsageDetail_20' ) start [2024-12-19 00:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051689', 'tblTempUsageDetail_20' ) end [2024-12-19 00:03:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:03:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:03:31] Production.INFO: ==16217== Releasing lock... [2024-12-19 00:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:03:31] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:04:05 [end_date_ymd] => 2024-12-19 00:04:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:04:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:04:28] Production.INFO: count ==137 [2024-12-19 00:04:28] Production.ERROR: pbx CDR StartTime 2024-12-18 21:04:05 - End Time 2024-12-19 00:04:05 [2024-12-19 00:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051694', 'tblTempUsageDetail_20' ) start [2024-12-19 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051694', 'tblTempUsageDetail_20' ) end [2024-12-19 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051694', 'tblTempVendorCDR_20' ) start [2024-12-19 00:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051694', 'tblTempVendorCDR_20' ) end [2024-12-19 00:04:28] Production.INFO: ProcessCDR(1,14051694,1,1,2) [2024-12-19 00:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051694', 'tblTempUsageDetail_20' ) start [2024-12-19 00:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051694', 'tblTempUsageDetail_20' ) end [2024-12-19 00:04:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:04:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:04:31] Production.INFO: ==16307== Releasing lock... [2024-12-19 00:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:04:31] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:05:05 [end_date_ymd] => 2024-12-19 00:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:05:29] Production.INFO: count ==136 [2024-12-19 00:05:29] Production.ERROR: pbx CDR StartTime 2024-12-18 21:05:05 - End Time 2024-12-19 00:05:05 [2024-12-19 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051699', 'tblTempUsageDetail_20' ) start [2024-12-19 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051699', 'tblTempUsageDetail_20' ) end [2024-12-19 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051699', 'tblTempVendorCDR_20' ) start [2024-12-19 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051699', 'tblTempVendorCDR_20' ) end [2024-12-19 00:05:29] Production.INFO: ProcessCDR(1,14051699,1,1,2) [2024-12-19 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051699', 'tblTempUsageDetail_20' ) start [2024-12-19 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051699', 'tblTempUsageDetail_20' ) end [2024-12-19 00:05:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:05:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:05:33] Production.INFO: ==16398== Releasing lock... [2024-12-19 00:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:05:33] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:06:05 [end_date_ymd] => 2024-12-19 00:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:06:25] Production.INFO: count ==136 [2024-12-19 00:06:25] Production.ERROR: pbx CDR StartTime 2024-12-18 21:06:05 - End Time 2024-12-19 00:06:05 [2024-12-19 00:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051704', 'tblTempUsageDetail_20' ) start [2024-12-19 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051704', 'tblTempUsageDetail_20' ) end [2024-12-19 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051704', 'tblTempVendorCDR_20' ) start [2024-12-19 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051704', 'tblTempVendorCDR_20' ) end [2024-12-19 00:06:25] Production.INFO: ProcessCDR(1,14051704,1,1,2) [2024-12-19 00:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051704', 'tblTempUsageDetail_20' ) start [2024-12-19 00:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051704', 'tblTempUsageDetail_20' ) end [2024-12-19 00:06:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:06:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:06:28] Production.INFO: ==16483== Releasing lock... [2024-12-19 00:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:06:28] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 00:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:07:04 [end_date_ymd] => 2024-12-19 00:07:04 [RateCDR] => 1 ) [2024-12-19 00: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` >= '2024-12-18 21:07:04' and `end` < '2024-12-19 00: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 ,'') [2024-12-19 00:07:20] Production.INFO: count ==132 [2024-12-19 00:07:20] Production.ERROR: pbx CDR StartTime 2024-12-18 21:07:04 - End Time 2024-12-19 00:07:04 [2024-12-19 00:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051709', 'tblTempUsageDetail_20' ) start [2024-12-19 00:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051709', 'tblTempUsageDetail_20' ) end [2024-12-19 00:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051709', 'tblTempVendorCDR_20' ) start [2024-12-19 00:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051709', 'tblTempVendorCDR_20' ) end [2024-12-19 00:07:20] Production.INFO: ProcessCDR(1,14051709,1,1,2) [2024-12-19 00:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051709', 'tblTempUsageDetail_20' ) start [2024-12-19 00:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051709', 'tblTempUsageDetail_20' ) end [2024-12-19 00:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:07:23] Production.INFO: ==16568== Releasing lock... [2024-12-19 00:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:07:23] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:08:05 [end_date_ymd] => 2024-12-19 00:08:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:08:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:08:17] Production.INFO: count ==129 [2024-12-19 00:08:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:08:05 - End Time 2024-12-19 00:08:05 [2024-12-19 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051712', 'tblTempUsageDetail_20' ) start [2024-12-19 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051712', 'tblTempUsageDetail_20' ) end [2024-12-19 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051712', 'tblTempVendorCDR_20' ) start [2024-12-19 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051712', 'tblTempVendorCDR_20' ) end [2024-12-19 00:08:17] Production.INFO: ProcessCDR(1,14051712,1,1,2) [2024-12-19 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051712', 'tblTempUsageDetail_20' ) start [2024-12-19 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051712', 'tblTempUsageDetail_20' ) end [2024-12-19 00:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:08:20] Production.INFO: ==16656== Releasing lock... [2024-12-19 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:08:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:09:04 [end_date_ymd] => 2024-12-19 00:09:04 [RateCDR] => 1 ) [2024-12-19 00:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:09:04' and `end` < '2024-12-19 00:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:09:18] Production.INFO: count ==129 [2024-12-19 00:09:18] Production.ERROR: pbx CDR StartTime 2024-12-18 21:09:04 - End Time 2024-12-19 00:09:04 [2024-12-19 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051719', 'tblTempUsageDetail_20' ) start [2024-12-19 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051719', 'tblTempUsageDetail_20' ) end [2024-12-19 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051719', 'tblTempVendorCDR_20' ) start [2024-12-19 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051719', 'tblTempVendorCDR_20' ) end [2024-12-19 00:09:18] Production.INFO: ProcessCDR(1,14051719,1,1,2) [2024-12-19 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051719', 'tblTempUsageDetail_20' ) start [2024-12-19 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051719', 'tblTempUsageDetail_20' ) end [2024-12-19 00:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:09:21] Production.INFO: ==16744== Releasing lock... [2024-12-19 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:09:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:10:05 [end_date_ymd] => 2024-12-19 00:10:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:10:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:10:18] Production.INFO: count ==135 [2024-12-19 00:10:18] Production.ERROR: pbx CDR StartTime 2024-12-18 21:10:05 - End Time 2024-12-19 00:10:05 [2024-12-19 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051725', 'tblTempUsageDetail_20' ) start [2024-12-19 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051725', 'tblTempUsageDetail_20' ) end [2024-12-19 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051725', 'tblTempVendorCDR_20' ) start [2024-12-19 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051725', 'tblTempVendorCDR_20' ) end [2024-12-19 00:10:18] Production.INFO: ProcessCDR(1,14051725,1,1,2) [2024-12-19 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051725', 'tblTempUsageDetail_20' ) start [2024-12-19 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051725', 'tblTempUsageDetail_20' ) end [2024-12-19 00:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:10:21] Production.INFO: ==16833== Releasing lock... [2024-12-19 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:10:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:11:05 [end_date_ymd] => 2024-12-19 00:11:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:11:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:11:28] Production.INFO: count ==160 [2024-12-19 00:11:28] Production.ERROR: pbx CDR StartTime 2024-12-18 21:11:05 - End Time 2024-12-19 00:11:05 [2024-12-19 00:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051730', 'tblTempUsageDetail_20' ) start [2024-12-19 00:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051730', 'tblTempUsageDetail_20' ) end [2024-12-19 00:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051730', 'tblTempVendorCDR_20' ) start [2024-12-19 00:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051730', 'tblTempVendorCDR_20' ) end [2024-12-19 00:11:28] Production.INFO: ProcessCDR(1,14051730,1,1,2) [2024-12-19 00:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051730', 'tblTempUsageDetail_20' ) start [2024-12-19 00:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051730', 'tblTempUsageDetail_20' ) end [2024-12-19 00:11:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:11:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:11:32] Production.INFO: ==16926== Releasing lock... [2024-12-19 00:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:11:32] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:12:04 [end_date_ymd] => 2024-12-19 00:12:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:12:04' and `end` < '2024-12-19 00: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 ,'') [2024-12-19 00:12:37] Production.INFO: count ==160 [2024-12-19 00:12:37] Production.ERROR: pbx CDR StartTime 2024-12-18 21:12:04 - End Time 2024-12-19 00:12:04 [2024-12-19 00:12:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051735', 'tblTempUsageDetail_20' ) start [2024-12-19 00:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051735', 'tblTempUsageDetail_20' ) end [2024-12-19 00:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051735', 'tblTempVendorCDR_20' ) start [2024-12-19 00:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051735', 'tblTempVendorCDR_20' ) end [2024-12-19 00:12:37] Production.INFO: ProcessCDR(1,14051735,1,1,2) [2024-12-19 00:12:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:12:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:12:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:12:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:12:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051735', 'tblTempUsageDetail_20' ) start [2024-12-19 00:12:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051735', 'tblTempUsageDetail_20' ) end [2024-12-19 00:12:41] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:12:41] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:12:41] Production.INFO: ==17013== Releasing lock... [2024-12-19 00:12:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:12:41] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:13:05 [end_date_ymd] => 2024-12-19 00:13:05 [RateCDR] => 1 ) [2024-12-19 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:13:05' and `end` < '2024-12-19 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:13:21] Production.INFO: count ==160 [2024-12-19 00:13:21] Production.ERROR: pbx CDR StartTime 2024-12-18 21:13:05 - End Time 2024-12-19 00:13:05 [2024-12-19 00:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051740', 'tblTempUsageDetail_20' ) start [2024-12-19 00:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051740', 'tblTempUsageDetail_20' ) end [2024-12-19 00:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051740', 'tblTempVendorCDR_20' ) start [2024-12-19 00:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051740', 'tblTempVendorCDR_20' ) end [2024-12-19 00:13:21] Production.INFO: ProcessCDR(1,14051740,1,1,2) [2024-12-19 00:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051740', 'tblTempUsageDetail_20' ) start [2024-12-19 00:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051740', 'tblTempUsageDetail_20' ) end [2024-12-19 00:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:13:24] Production.INFO: ==17096== Releasing lock... [2024-12-19 00:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:13:24] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:14:05 [end_date_ymd] => 2024-12-19 00:14:05 [RateCDR] => 1 ) [2024-12-19 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:14:05' and `end` < '2024-12-19 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:14:21] Production.INFO: count ==161 [2024-12-19 00:14:21] Production.ERROR: pbx CDR StartTime 2024-12-18 21:14:05 - End Time 2024-12-19 00:14:05 [2024-12-19 00:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051745', 'tblTempUsageDetail_20' ) start [2024-12-19 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051745', 'tblTempUsageDetail_20' ) end [2024-12-19 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051745', 'tblTempVendorCDR_20' ) start [2024-12-19 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051745', 'tblTempVendorCDR_20' ) end [2024-12-19 00:14:21] Production.INFO: ProcessCDR(1,14051745,1,1,2) [2024-12-19 00:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051745', 'tblTempUsageDetail_20' ) start [2024-12-19 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051745', 'tblTempUsageDetail_20' ) end [2024-12-19 00:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:14:24] Production.INFO: ==17189== Releasing lock... [2024-12-19 00:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:14:24] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:15:05 [end_date_ymd] => 2024-12-19 00:15:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:15:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:15:24] Production.INFO: count ==156 [2024-12-19 00:15:24] Production.ERROR: pbx CDR StartTime 2024-12-18 21:15:05 - End Time 2024-12-19 00:15:05 [2024-12-19 00:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051750', 'tblTempUsageDetail_20' ) start [2024-12-19 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051750', 'tblTempUsageDetail_20' ) end [2024-12-19 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051750', 'tblTempVendorCDR_20' ) start [2024-12-19 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051750', 'tblTempVendorCDR_20' ) end [2024-12-19 00:15:24] Production.INFO: ProcessCDR(1,14051750,1,1,2) [2024-12-19 00:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051750', 'tblTempUsageDetail_20' ) start [2024-12-19 00:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051750', 'tblTempUsageDetail_20' ) end [2024-12-19 00:15:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:15:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:15:27] Production.INFO: ==17298== Releasing lock... [2024-12-19 00:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:15:27] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:16:04 [end_date_ymd] => 2024-12-19 00:16:04 [RateCDR] => 1 ) [2024-12-19 00: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` >= '2024-12-18 21:16:04' and `end` < '2024-12-19 00: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 ,'') [2024-12-19 00:16:16] Production.INFO: count ==159 [2024-12-19 00:16:16] Production.ERROR: pbx CDR StartTime 2024-12-18 21:16:04 - End Time 2024-12-19 00:16:04 [2024-12-19 00:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051755', 'tblTempUsageDetail_20' ) start [2024-12-19 00:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051755', 'tblTempUsageDetail_20' ) end [2024-12-19 00:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051755', 'tblTempVendorCDR_20' ) start [2024-12-19 00:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051755', 'tblTempVendorCDR_20' ) end [2024-12-19 00:16:16] Production.INFO: ProcessCDR(1,14051755,1,1,2) [2024-12-19 00:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:16:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051755', 'tblTempUsageDetail_20' ) start [2024-12-19 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051755', 'tblTempUsageDetail_20' ) end [2024-12-19 00:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:16:20] Production.INFO: ==17384== Releasing lock... [2024-12-19 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:16:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:17:05 [end_date_ymd] => 2024-12-19 00:17:05 [RateCDR] => 1 ) [2024-12-19 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:17:05' and `end` < '2024-12-19 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:17:17] Production.INFO: count ==159 [2024-12-19 00:17:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:17:05 - End Time 2024-12-19 00:17:05 [2024-12-19 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051760', 'tblTempUsageDetail_20' ) start [2024-12-19 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051760', 'tblTempUsageDetail_20' ) end [2024-12-19 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051760', 'tblTempVendorCDR_20' ) start [2024-12-19 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051760', 'tblTempVendorCDR_20' ) end [2024-12-19 00:17:17] Production.INFO: ProcessCDR(1,14051760,1,1,2) [2024-12-19 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051760', 'tblTempUsageDetail_20' ) start [2024-12-19 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051760', 'tblTempUsageDetail_20' ) end [2024-12-19 00:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:17:20] Production.INFO: ==17485== Releasing lock... [2024-12-19 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:17:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:18:05 [end_date_ymd] => 2024-12-19 00:18:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:18:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:18:17] Production.INFO: count ==160 [2024-12-19 00:18:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:18:05 - End Time 2024-12-19 00:18:05 [2024-12-19 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051765', 'tblTempUsageDetail_20' ) start [2024-12-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051765', 'tblTempUsageDetail_20' ) end [2024-12-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051765', 'tblTempVendorCDR_20' ) start [2024-12-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051765', 'tblTempVendorCDR_20' ) end [2024-12-19 00:18:17] Production.INFO: ProcessCDR(1,14051765,1,1,2) [2024-12-19 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051765', 'tblTempUsageDetail_20' ) start [2024-12-19 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051765', 'tblTempUsageDetail_20' ) end [2024-12-19 00:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:18:22] Production.INFO: ==17572== Releasing lock... [2024-12-19 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:18:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:19:04 [end_date_ymd] => 2024-12-19 00:19:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:19:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:19:17] Production.INFO: count ==161 [2024-12-19 00:19:18] Production.ERROR: pbx CDR StartTime 2024-12-18 21:19:04 - End Time 2024-12-19 00:19:04 [2024-12-19 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051770', 'tblTempUsageDetail_20' ) start [2024-12-19 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051770', 'tblTempUsageDetail_20' ) end [2024-12-19 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051770', 'tblTempVendorCDR_20' ) start [2024-12-19 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051770', 'tblTempVendorCDR_20' ) end [2024-12-19 00:19:18] Production.INFO: ProcessCDR(1,14051770,1,1,2) [2024-12-19 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051770', 'tblTempUsageDetail_20' ) start [2024-12-19 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051770', 'tblTempUsageDetail_20' ) end [2024-12-19 00:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:19:21] Production.INFO: ==17701== Releasing lock... [2024-12-19 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:19:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:20:05 [end_date_ymd] => 2024-12-19 00:20:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:20:05' and `end` < '2024-12-19 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:20:18] Production.INFO: count ==164 [2024-12-19 00:20:18] Production.ERROR: pbx CDR StartTime 2024-12-18 21:20:05 - End Time 2024-12-19 00:20:05 [2024-12-19 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051776', 'tblTempUsageDetail_20' ) start [2024-12-19 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051776', 'tblTempUsageDetail_20' ) end [2024-12-19 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051776', 'tblTempVendorCDR_20' ) start [2024-12-19 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051776', 'tblTempVendorCDR_20' ) end [2024-12-19 00:20:18] Production.INFO: ProcessCDR(1,14051776,1,1,2) [2024-12-19 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051776', 'tblTempUsageDetail_20' ) start [2024-12-19 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051776', 'tblTempUsageDetail_20' ) end [2024-12-19 00:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:20:21] Production.INFO: ==17790== Releasing lock... [2024-12-19 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:20:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:21:04 [end_date_ymd] => 2024-12-19 00:21:04 [RateCDR] => 1 ) [2024-12-19 00:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:21:04' and `end` < '2024-12-19 00:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:21:26] Production.INFO: count ==184 [2024-12-19 00:21:26] Production.ERROR: pbx CDR StartTime 2024-12-18 21:21:04 - End Time 2024-12-19 00:21:04 [2024-12-19 00:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051781', 'tblTempUsageDetail_20' ) start [2024-12-19 00:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051781', 'tblTempUsageDetail_20' ) end [2024-12-19 00:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051781', 'tblTempVendorCDR_20' ) start [2024-12-19 00:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051781', 'tblTempVendorCDR_20' ) end [2024-12-19 00:21:26] Production.INFO: ProcessCDR(1,14051781,1,1,2) [2024-12-19 00:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051781', 'tblTempUsageDetail_20' ) start [2024-12-19 00:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051781', 'tblTempUsageDetail_20' ) end [2024-12-19 00:21:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:21:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:21:29] Production.INFO: ==17874== Releasing lock... [2024-12-19 00:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:21:29] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:22:05 [end_date_ymd] => 2024-12-19 00:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:22:20] Production.INFO: count ==187 [2024-12-19 00:22:20] Production.ERROR: pbx CDR StartTime 2024-12-18 21:22:05 - End Time 2024-12-19 00:22:05 [2024-12-19 00:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051786', 'tblTempUsageDetail_20' ) start [2024-12-19 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051786', 'tblTempUsageDetail_20' ) end [2024-12-19 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051786', 'tblTempVendorCDR_20' ) start [2024-12-19 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051786', 'tblTempVendorCDR_20' ) end [2024-12-19 00:22:20] Production.INFO: ProcessCDR(1,14051786,1,1,2) [2024-12-19 00:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051786', 'tblTempUsageDetail_20' ) start [2024-12-19 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051786', 'tblTempUsageDetail_20' ) end [2024-12-19 00:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:22:23] Production.INFO: ==17956== Releasing lock... [2024-12-19 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:22:23] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:23:04 [end_date_ymd] => 2024-12-19 00:23:04 [RateCDR] => 1 ) [2024-12-19 00:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:23:04' and `end` < '2024-12-19 00:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:23:16] Production.INFO: count ==186 [2024-12-19 00:23:16] Production.ERROR: pbx CDR StartTime 2024-12-18 21:23:04 - End Time 2024-12-19 00:23:04 [2024-12-19 00:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051791', 'tblTempUsageDetail_20' ) start [2024-12-19 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051791', 'tblTempUsageDetail_20' ) end [2024-12-19 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051791', 'tblTempVendorCDR_20' ) start [2024-12-19 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051791', 'tblTempVendorCDR_20' ) end [2024-12-19 00:23:16] Production.INFO: ProcessCDR(1,14051791,1,1,2) [2024-12-19 00:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051791', 'tblTempUsageDetail_20' ) start [2024-12-19 00:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051791', 'tblTempUsageDetail_20' ) end [2024-12-19 00:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:23:19] Production.INFO: ==18040== Releasing lock... [2024-12-19 00:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:23:19] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:24:05 [end_date_ymd] => 2024-12-19 00:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:24:17] Production.INFO: count ==188 [2024-12-19 00:24:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:24:05 - End Time 2024-12-19 00:24:05 [2024-12-19 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051796', 'tblTempUsageDetail_20' ) start [2024-12-19 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051796', 'tblTempUsageDetail_20' ) end [2024-12-19 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051796', 'tblTempVendorCDR_20' ) start [2024-12-19 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051796', 'tblTempVendorCDR_20' ) end [2024-12-19 00:24:17] Production.INFO: ProcessCDR(1,14051796,1,1,2) [2024-12-19 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051796', 'tblTempUsageDetail_20' ) start [2024-12-19 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051796', 'tblTempUsageDetail_20' ) end [2024-12-19 00:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:24:20] Production.INFO: ==18123== Releasing lock... [2024-12-19 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:24:20] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:25:05 [end_date_ymd] => 2024-12-19 00:25:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:25:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:25:18] Production.INFO: count ==192 [2024-12-19 00:25:18] Production.ERROR: pbx CDR StartTime 2024-12-18 21:25:05 - End Time 2024-12-19 00:25:05 [2024-12-19 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051801', 'tblTempUsageDetail_20' ) start [2024-12-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051801', 'tblTempUsageDetail_20' ) end [2024-12-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051801', 'tblTempVendorCDR_20' ) start [2024-12-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051801', 'tblTempVendorCDR_20' ) end [2024-12-19 00:25:18] Production.INFO: ProcessCDR(1,14051801,1,1,2) [2024-12-19 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051801', 'tblTempUsageDetail_20' ) start [2024-12-19 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051801', 'tblTempUsageDetail_20' ) end [2024-12-19 00:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:25:21] Production.INFO: ==18210== Releasing lock... [2024-12-19 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:25:21] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:26:05 [end_date_ymd] => 2024-12-19 00:26:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:26:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:26:17] Production.INFO: count ==190 [2024-12-19 00:26:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:26:05 - End Time 2024-12-19 00:26:05 [2024-12-19 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051806', 'tblTempUsageDetail_20' ) start [2024-12-19 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051806', 'tblTempUsageDetail_20' ) end [2024-12-19 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051806', 'tblTempVendorCDR_20' ) start [2024-12-19 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051806', 'tblTempVendorCDR_20' ) end [2024-12-19 00:26:17] Production.INFO: ProcessCDR(1,14051806,1,1,2) [2024-12-19 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051806', 'tblTempUsageDetail_20' ) start [2024-12-19 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051806', 'tblTempUsageDetail_20' ) end [2024-12-19 00:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:26:20] Production.INFO: ==18293== Releasing lock... [2024-12-19 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:26:20] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:27:04 [end_date_ymd] => 2024-12-19 00:27:04 [RateCDR] => 1 ) [2024-12-19 00: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` >= '2024-12-18 21:27:04' and `end` < '2024-12-19 00: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 ,'') [2024-12-19 00:27:17] Production.INFO: count ==190 [2024-12-19 00:27:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:27:04 - End Time 2024-12-19 00:27:04 [2024-12-19 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051811', 'tblTempUsageDetail_20' ) start [2024-12-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051811', 'tblTempUsageDetail_20' ) end [2024-12-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051811', 'tblTempVendorCDR_20' ) start [2024-12-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051811', 'tblTempVendorCDR_20' ) end [2024-12-19 00:27:17] Production.INFO: ProcessCDR(1,14051811,1,1,2) [2024-12-19 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051811', 'tblTempUsageDetail_20' ) start [2024-12-19 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051811', 'tblTempUsageDetail_20' ) end [2024-12-19 00:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:27:20] Production.INFO: ==18375== Releasing lock... [2024-12-19 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:27:20] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:28:05 [end_date_ymd] => 2024-12-19 00:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:28:17] Production.INFO: count ==193 [2024-12-19 00:28:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:28:05 - End Time 2024-12-19 00:28:05 [2024-12-19 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051816', 'tblTempUsageDetail_20' ) start [2024-12-19 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051816', 'tblTempUsageDetail_20' ) end [2024-12-19 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051816', 'tblTempVendorCDR_20' ) start [2024-12-19 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051816', 'tblTempVendorCDR_20' ) end [2024-12-19 00:28:17] Production.INFO: ProcessCDR(1,14051816,1,1,2) [2024-12-19 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051816', 'tblTempUsageDetail_20' ) start [2024-12-19 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051816', 'tblTempUsageDetail_20' ) end [2024-12-19 00:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:28:20] Production.INFO: ==18460== Releasing lock... [2024-12-19 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:28:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:29:05 [end_date_ymd] => 2024-12-19 00:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:29:17] Production.INFO: count ==193 [2024-12-19 00:29:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:29:05 - End Time 2024-12-19 00:29:05 [2024-12-19 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051821', 'tblTempUsageDetail_20' ) start [2024-12-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051821', 'tblTempUsageDetail_20' ) end [2024-12-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051821', 'tblTempVendorCDR_20' ) start [2024-12-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051821', 'tblTempVendorCDR_20' ) end [2024-12-19 00:29:17] Production.INFO: ProcessCDR(1,14051821,1,1,2) [2024-12-19 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051821', 'tblTempUsageDetail_20' ) start [2024-12-19 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051821', 'tblTempUsageDetail_20' ) end [2024-12-19 00:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:29:20] Production.INFO: ==18541== Releasing lock... [2024-12-19 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:29:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:30:05 [end_date_ymd] => 2024-12-19 00:30:05 [RateCDR] => 1 ) [2024-12-19 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:30:05' and `end` < '2024-12-19 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:30:17] Production.INFO: count ==198 [2024-12-19 00:30:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:30:05 - End Time 2024-12-19 00:30:05 [2024-12-19 00:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051827', 'tblTempUsageDetail_20' ) start [2024-12-19 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051827', 'tblTempUsageDetail_20' ) end [2024-12-19 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051827', 'tblTempVendorCDR_20' ) start [2024-12-19 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051827', 'tblTempVendorCDR_20' ) end [2024-12-19 00:30:17] Production.INFO: ProcessCDR(1,14051827,1,1,2) [2024-12-19 00:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051827', 'tblTempUsageDetail_20' ) start [2024-12-19 00:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051827', 'tblTempUsageDetail_20' ) end [2024-12-19 00:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:30:20] Production.INFO: ==18630== Releasing lock... [2024-12-19 00:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:30:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:31:05 [end_date_ymd] => 2024-12-19 00:31:05 [RateCDR] => 1 ) [2024-12-19 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:31:05' and `end` < '2024-12-19 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:31:17] Production.INFO: count ==214 [2024-12-19 00:31:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:31:05 - End Time 2024-12-19 00:31:05 [2024-12-19 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051832', 'tblTempUsageDetail_20' ) start [2024-12-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051832', 'tblTempUsageDetail_20' ) end [2024-12-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051832', 'tblTempVendorCDR_20' ) start [2024-12-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051832', 'tblTempVendorCDR_20' ) end [2024-12-19 00:31:17] Production.INFO: ProcessCDR(1,14051832,1,1,2) [2024-12-19 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051832', 'tblTempUsageDetail_20' ) start [2024-12-19 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051832', 'tblTempUsageDetail_20' ) end [2024-12-19 00:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:31:20] Production.INFO: ==18717== Releasing lock... [2024-12-19 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:31:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:32:04 [end_date_ymd] => 2024-12-19 00:32:04 [RateCDR] => 1 ) [2024-12-19 00:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:32:04' and `end` < '2024-12-19 00:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:32:16] Production.INFO: count ==216 [2024-12-19 00:32:16] Production.ERROR: pbx CDR StartTime 2024-12-18 21:32:04 - End Time 2024-12-19 00:32:04 [2024-12-19 00:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051837', 'tblTempUsageDetail_20' ) start [2024-12-19 00:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051837', 'tblTempUsageDetail_20' ) end [2024-12-19 00:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051837', 'tblTempVendorCDR_20' ) start [2024-12-19 00:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051837', 'tblTempVendorCDR_20' ) end [2024-12-19 00:32:16] Production.INFO: ProcessCDR(1,14051837,1,1,2) [2024-12-19 00:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051837', 'tblTempUsageDetail_20' ) start [2024-12-19 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051837', 'tblTempUsageDetail_20' ) end [2024-12-19 00:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:32:21] Production.INFO: ==18804== Releasing lock... [2024-12-19 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:32:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:33:05 [end_date_ymd] => 2024-12-19 00:33:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:33:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:33:17] Production.INFO: count ==214 [2024-12-19 00:33:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:33:05 - End Time 2024-12-19 00:33:05 [2024-12-19 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051842', 'tblTempUsageDetail_20' ) start [2024-12-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051842', 'tblTempUsageDetail_20' ) end [2024-12-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051842', 'tblTempVendorCDR_20' ) start [2024-12-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051842', 'tblTempVendorCDR_20' ) end [2024-12-19 00:33:17] Production.INFO: ProcessCDR(1,14051842,1,1,2) [2024-12-19 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051842', 'tblTempUsageDetail_20' ) start [2024-12-19 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051842', 'tblTempUsageDetail_20' ) end [2024-12-19 00:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:33:20] Production.INFO: ==18888== Releasing lock... [2024-12-19 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:33:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:34:05 [end_date_ymd] => 2024-12-19 00:34:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:34:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:34:17] Production.INFO: count ==211 [2024-12-19 00:34:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:34:05 - End Time 2024-12-19 00:34:05 [2024-12-19 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051847', 'tblTempUsageDetail_20' ) start [2024-12-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051847', 'tblTempUsageDetail_20' ) end [2024-12-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051847', 'tblTempVendorCDR_20' ) start [2024-12-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051847', 'tblTempVendorCDR_20' ) end [2024-12-19 00:34:17] Production.INFO: ProcessCDR(1,14051847,1,1,2) [2024-12-19 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051847', 'tblTempUsageDetail_20' ) start [2024-12-19 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051847', 'tblTempUsageDetail_20' ) end [2024-12-19 00:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:34:20] Production.INFO: ==18972== Releasing lock... [2024-12-19 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:34:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:35:05 [end_date_ymd] => 2024-12-19 00:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:35:17] Production.INFO: count ==210 [2024-12-19 00:35:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:35:05 - End Time 2024-12-19 00:35:05 [2024-12-19 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051852', 'tblTempUsageDetail_20' ) start [2024-12-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051852', 'tblTempUsageDetail_20' ) end [2024-12-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051852', 'tblTempVendorCDR_20' ) start [2024-12-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051852', 'tblTempVendorCDR_20' ) end [2024-12-19 00:35:17] Production.INFO: ProcessCDR(1,14051852,1,1,2) [2024-12-19 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051852', 'tblTempUsageDetail_20' ) start [2024-12-19 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051852', 'tblTempUsageDetail_20' ) end [2024-12-19 00:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:35:20] Production.INFO: ==19094== Releasing lock... [2024-12-19 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:35:20] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:36:05 [end_date_ymd] => 2024-12-19 00:36:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:36:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:36:17] Production.INFO: count ==210 [2024-12-19 00:36:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:36:05 - End Time 2024-12-19 00:36:05 [2024-12-19 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051857', 'tblTempUsageDetail_20' ) start [2024-12-19 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051857', 'tblTempUsageDetail_20' ) end [2024-12-19 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051857', 'tblTempVendorCDR_20' ) start [2024-12-19 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051857', 'tblTempVendorCDR_20' ) end [2024-12-19 00:36:17] Production.INFO: ProcessCDR(1,14051857,1,1,2) [2024-12-19 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051857', 'tblTempUsageDetail_20' ) start [2024-12-19 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051857', 'tblTempUsageDetail_20' ) end [2024-12-19 00:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:36:21] Production.INFO: ==19180== Releasing lock... [2024-12-19 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:36:21] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:37:05 [end_date_ymd] => 2024-12-19 00:37:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:37:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:37:17] Production.INFO: count ==207 [2024-12-19 00:37:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:37:05 - End Time 2024-12-19 00:37:05 [2024-12-19 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051862', 'tblTempUsageDetail_20' ) start [2024-12-19 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051862', 'tblTempUsageDetail_20' ) end [2024-12-19 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051862', 'tblTempVendorCDR_20' ) start [2024-12-19 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051862', 'tblTempVendorCDR_20' ) end [2024-12-19 00:37:17] Production.INFO: ProcessCDR(1,14051862,1,1,2) [2024-12-19 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051862', 'tblTempUsageDetail_20' ) start [2024-12-19 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051862', 'tblTempUsageDetail_20' ) end [2024-12-19 00:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:37:20] Production.INFO: ==19263== Releasing lock... [2024-12-19 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:37:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:38:05 [end_date_ymd] => 2024-12-19 00:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:38:17] Production.INFO: count ==208 [2024-12-19 00:38:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:38:05 - End Time 2024-12-19 00:38:05 [2024-12-19 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051867', 'tblTempUsageDetail_20' ) start [2024-12-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051867', 'tblTempUsageDetail_20' ) end [2024-12-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051867', 'tblTempVendorCDR_20' ) start [2024-12-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051867', 'tblTempVendorCDR_20' ) end [2024-12-19 00:38:17] Production.INFO: ProcessCDR(1,14051867,1,1,2) [2024-12-19 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051867', 'tblTempUsageDetail_20' ) start [2024-12-19 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051867', 'tblTempUsageDetail_20' ) end [2024-12-19 00:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:38:22] Production.INFO: ==19351== Releasing lock... [2024-12-19 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:38:22] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:39:05 [end_date_ymd] => 2024-12-19 00:39:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:39:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:39:17] Production.INFO: count ==209 [2024-12-19 00:39:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:39:05 - End Time 2024-12-19 00:39:05 [2024-12-19 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051872', 'tblTempUsageDetail_20' ) start [2024-12-19 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051872', 'tblTempUsageDetail_20' ) end [2024-12-19 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051872', 'tblTempVendorCDR_20' ) start [2024-12-19 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051872', 'tblTempVendorCDR_20' ) end [2024-12-19 00:39:17] Production.INFO: ProcessCDR(1,14051872,1,1,2) [2024-12-19 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051872', 'tblTempUsageDetail_20' ) start [2024-12-19 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051872', 'tblTempUsageDetail_20' ) end [2024-12-19 00:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:39:22] Production.INFO: ==19436== Releasing lock... [2024-12-19 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:39:22] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:40:06 [end_date_ymd] => 2024-12-19 00:40:06 [RateCDR] => 1 ) [2024-12-19 00: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` >= '2024-12-18 21:40:06' and `end` < '2024-12-19 00: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 ,'') [2024-12-19 00:40:18] Production.INFO: count ==219 [2024-12-19 00:40:18] Production.ERROR: pbx CDR StartTime 2024-12-18 21:40:06 - End Time 2024-12-19 00:40:06 [2024-12-19 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051878', 'tblTempUsageDetail_20' ) start [2024-12-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051878', 'tblTempUsageDetail_20' ) end [2024-12-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051878', 'tblTempVendorCDR_20' ) start [2024-12-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051878', 'tblTempVendorCDR_20' ) end [2024-12-19 00:40:18] Production.INFO: ProcessCDR(1,14051878,1,1,2) [2024-12-19 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051878', 'tblTempUsageDetail_20' ) start [2024-12-19 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051878', 'tblTempUsageDetail_20' ) end [2024-12-19 00:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:40:21] Production.INFO: ==19508== Releasing lock... [2024-12-19 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:40:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:41:05 [end_date_ymd] => 2024-12-19 00:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:41:17] Production.INFO: count ==242 [2024-12-19 00:41:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:41:05 - End Time 2024-12-19 00:41:05 [2024-12-19 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051883', 'tblTempUsageDetail_20' ) start [2024-12-19 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051883', 'tblTempUsageDetail_20' ) end [2024-12-19 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051883', 'tblTempVendorCDR_20' ) start [2024-12-19 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051883', 'tblTempVendorCDR_20' ) end [2024-12-19 00:41:17] Production.INFO: ProcessCDR(1,14051883,1,1,2) [2024-12-19 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051883', 'tblTempUsageDetail_20' ) start [2024-12-19 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051883', 'tblTempUsageDetail_20' ) end [2024-12-19 00:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:41:22] Production.INFO: ==19581== Releasing lock... [2024-12-19 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:41:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:42:05 [end_date_ymd] => 2024-12-19 00:42:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:42:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:42:17] Production.INFO: count ==242 [2024-12-19 00:42:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:42:05 - End Time 2024-12-19 00:42:05 [2024-12-19 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051888', 'tblTempUsageDetail_20' ) start [2024-12-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051888', 'tblTempUsageDetail_20' ) end [2024-12-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051888', 'tblTempVendorCDR_20' ) start [2024-12-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051888', 'tblTempVendorCDR_20' ) end [2024-12-19 00:42:17] Production.INFO: ProcessCDR(1,14051888,1,1,2) [2024-12-19 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051888', 'tblTempUsageDetail_20' ) start [2024-12-19 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051888', 'tblTempUsageDetail_20' ) end [2024-12-19 00:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:42:22] Production.INFO: ==19653== Releasing lock... [2024-12-19 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:42:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:43:04 [end_date_ymd] => 2024-12-19 00:43:04 [RateCDR] => 1 ) [2024-12-19 00: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` >= '2024-12-18 21:43:04' and `end` < '2024-12-19 00: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 ,'') [2024-12-19 00:43:17] Production.INFO: count ==242 [2024-12-19 00:43:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:43:04 - End Time 2024-12-19 00:43:04 [2024-12-19 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051893', 'tblTempUsageDetail_20' ) start [2024-12-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051893', 'tblTempUsageDetail_20' ) end [2024-12-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051893', 'tblTempVendorCDR_20' ) start [2024-12-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051893', 'tblTempVendorCDR_20' ) end [2024-12-19 00:43:17] Production.INFO: ProcessCDR(1,14051893,1,1,2) [2024-12-19 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051893', 'tblTempUsageDetail_20' ) start [2024-12-19 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051893', 'tblTempUsageDetail_20' ) end [2024-12-19 00:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:43:20] Production.INFO: ==19722== Releasing lock... [2024-12-19 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:43:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:44:05 [end_date_ymd] => 2024-12-19 00:44:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:44:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:44:17] Production.INFO: count ==242 [2024-12-19 00:44:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:44:05 - End Time 2024-12-19 00:44:05 [2024-12-19 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051898', 'tblTempUsageDetail_20' ) start [2024-12-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051898', 'tblTempUsageDetail_20' ) end [2024-12-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051898', 'tblTempVendorCDR_20' ) start [2024-12-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051898', 'tblTempVendorCDR_20' ) end [2024-12-19 00:44:17] Production.INFO: ProcessCDR(1,14051898,1,1,2) [2024-12-19 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051898', 'tblTempUsageDetail_20' ) start [2024-12-19 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051898', 'tblTempUsageDetail_20' ) end [2024-12-19 00:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:44:20] Production.INFO: ==19795== Releasing lock... [2024-12-19 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:44:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:45:05 [end_date_ymd] => 2024-12-19 00:45:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:45:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:45:17] Production.INFO: count ==242 [2024-12-19 00:45:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:45:05 - End Time 2024-12-19 00:45:05 [2024-12-19 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051903', 'tblTempUsageDetail_20' ) start [2024-12-19 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051903', 'tblTempUsageDetail_20' ) end [2024-12-19 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051903', 'tblTempVendorCDR_20' ) start [2024-12-19 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051903', 'tblTempVendorCDR_20' ) end [2024-12-19 00:45:17] Production.INFO: ProcessCDR(1,14051903,1,1,2) [2024-12-19 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051903', 'tblTempUsageDetail_20' ) start [2024-12-19 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051903', 'tblTempUsageDetail_20' ) end [2024-12-19 00:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:45:20] Production.INFO: ==19866== Releasing lock... [2024-12-19 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:45:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:46:05 [end_date_ymd] => 2024-12-19 00:46:05 [RateCDR] => 1 ) [2024-12-19 00: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` >= '2024-12-18 21:46:05' and `end` < '2024-12-19 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:46:17] Production.INFO: count ==244 [2024-12-19 00:46:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:46:05 - End Time 2024-12-19 00:46:05 [2024-12-19 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051908', 'tblTempUsageDetail_20' ) start [2024-12-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051908', 'tblTempUsageDetail_20' ) end [2024-12-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051908', 'tblTempVendorCDR_20' ) start [2024-12-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051908', 'tblTempVendorCDR_20' ) end [2024-12-19 00:46:17] Production.INFO: ProcessCDR(1,14051908,1,1,2) [2024-12-19 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051908', 'tblTempUsageDetail_20' ) start [2024-12-19 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051908', 'tblTempUsageDetail_20' ) end [2024-12-19 00:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:46:22] Production.INFO: ==19939== Releasing lock... [2024-12-19 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:46:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-19 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:47:04 [end_date_ymd] => 2024-12-19 00:47:04 [RateCDR] => 1 ) [2024-12-19 00: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` >= '2024-12-18 21:47:04' and `end` < '2024-12-19 00: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 ,'') [2024-12-19 00:47:16] Production.INFO: count ==244 [2024-12-19 00:47:16] Production.ERROR: pbx CDR StartTime 2024-12-18 21:47:04 - End Time 2024-12-19 00:47:04 [2024-12-19 00:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051913', 'tblTempUsageDetail_20' ) start [2024-12-19 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051913', 'tblTempUsageDetail_20' ) end [2024-12-19 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051913', 'tblTempVendorCDR_20' ) start [2024-12-19 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051913', 'tblTempVendorCDR_20' ) end [2024-12-19 00:47:16] Production.INFO: ProcessCDR(1,14051913,1,1,2) [2024-12-19 00:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051913', 'tblTempUsageDetail_20' ) start [2024-12-19 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051913', 'tblTempUsageDetail_20' ) end [2024-12-19 00:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:47:20] Production.INFO: ==20012== Releasing lock... [2024-12-19 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:47:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-19 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:48:05 [end_date_ymd] => 2024-12-19 00:48:05 [RateCDR] => 1 ) [2024-12-19 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:48:05' and `end` < '2024-12-19 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:48:17] Production.INFO: count ==247 [2024-12-19 00:48:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:48:05 - End Time 2024-12-19 00:48:05 [2024-12-19 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051918', 'tblTempUsageDetail_20' ) start [2024-12-19 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051918', 'tblTempUsageDetail_20' ) end [2024-12-19 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051918', 'tblTempVendorCDR_20' ) start [2024-12-19 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051918', 'tblTempVendorCDR_20' ) end [2024-12-19 00:48:18] Production.INFO: ProcessCDR(1,14051918,1,1,2) [2024-12-19 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051918', 'tblTempUsageDetail_20' ) start [2024-12-19 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051918', 'tblTempUsageDetail_20' ) end [2024-12-19 00:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:48:21] Production.INFO: ==20083== Releasing lock... [2024-12-19 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:48:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-19 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:49:05 [end_date_ymd] => 2024-12-19 00:49:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:49:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:49:18] Production.INFO: count ==247 [2024-12-19 00:49:18] Production.ERROR: pbx CDR StartTime 2024-12-18 21:49:05 - End Time 2024-12-19 00:49:05 [2024-12-19 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051923', 'tblTempUsageDetail_20' ) start [2024-12-19 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051923', 'tblTempUsageDetail_20' ) end [2024-12-19 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051923', 'tblTempVendorCDR_20' ) start [2024-12-19 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051923', 'tblTempVendorCDR_20' ) end [2024-12-19 00:49:18] Production.INFO: ProcessCDR(1,14051923,1,1,2) [2024-12-19 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051923', 'tblTempUsageDetail_20' ) start [2024-12-19 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051923', 'tblTempUsageDetail_20' ) end [2024-12-19 00:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:49:21] Production.INFO: ==20153== Releasing lock... [2024-12-19 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:49:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-19 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:50:06 [end_date_ymd] => 2024-12-19 00:50:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:50:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:50:18] Production.INFO: count ==255 [2024-12-19 00:50:18] Production.ERROR: pbx CDR StartTime 2024-12-18 21:50:06 - End Time 2024-12-19 00:50:06 [2024-12-19 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051929', 'tblTempUsageDetail_20' ) start [2024-12-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051929', 'tblTempUsageDetail_20' ) end [2024-12-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051929', 'tblTempVendorCDR_20' ) start [2024-12-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051929', 'tblTempVendorCDR_20' ) end [2024-12-19 00:50:18] Production.INFO: ProcessCDR(1,14051929,1,1,2) [2024-12-19 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051929', 'tblTempUsageDetail_20' ) start [2024-12-19 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051929', 'tblTempUsageDetail_20' ) end [2024-12-19 00:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:50:22] Production.INFO: ==20264== Releasing lock... [2024-12-19 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:50:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-19 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:51:04 [end_date_ymd] => 2024-12-19 00:51:04 [RateCDR] => 1 ) [2024-12-19 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:51:04' and `end` < '2024-12-19 00:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:51:16] Production.INFO: count ==257 [2024-12-19 00:51:16] Production.ERROR: pbx CDR StartTime 2024-12-18 21:51:04 - End Time 2024-12-19 00:51:04 [2024-12-19 00:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051934', 'tblTempUsageDetail_20' ) start [2024-12-19 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051934', 'tblTempUsageDetail_20' ) end [2024-12-19 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051934', 'tblTempVendorCDR_20' ) start [2024-12-19 00:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051934', 'tblTempVendorCDR_20' ) end [2024-12-19 00:51:16] Production.INFO: ProcessCDR(1,14051934,1,1,2) [2024-12-19 00:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051934', 'tblTempUsageDetail_20' ) start [2024-12-19 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051934', 'tblTempUsageDetail_20' ) end [2024-12-19 00:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:51:20] Production.INFO: ==20336== Releasing lock... [2024-12-19 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:51:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-19 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:52:05 [end_date_ymd] => 2024-12-19 00:52:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:52:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:52:17] Production.INFO: count ==252 [2024-12-19 00:52:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:52:05 - End Time 2024-12-19 00:52:05 [2024-12-19 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051939', 'tblTempUsageDetail_20' ) start [2024-12-19 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051939', 'tblTempUsageDetail_20' ) end [2024-12-19 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051939', 'tblTempVendorCDR_20' ) start [2024-12-19 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051939', 'tblTempVendorCDR_20' ) end [2024-12-19 00:52:17] Production.INFO: ProcessCDR(1,14051939,1,1,2) [2024-12-19 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051939', 'tblTempUsageDetail_20' ) start [2024-12-19 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051939', 'tblTempUsageDetail_20' ) end [2024-12-19 00:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:52:20] Production.INFO: ==20409== Releasing lock... [2024-12-19 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:52:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-19 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:53:04 [end_date_ymd] => 2024-12-19 00:53:04 [RateCDR] => 1 ) [2024-12-19 00:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:53:04' and `end` < '2024-12-19 00:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:53:16] Production.INFO: count ==249 [2024-12-19 00:53:16] Production.ERROR: pbx CDR StartTime 2024-12-18 21:53:04 - End Time 2024-12-19 00:53:04 [2024-12-19 00:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051944', 'tblTempUsageDetail_20' ) start [2024-12-19 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051944', 'tblTempUsageDetail_20' ) end [2024-12-19 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051944', 'tblTempVendorCDR_20' ) start [2024-12-19 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051944', 'tblTempVendorCDR_20' ) end [2024-12-19 00:53:16] Production.INFO: ProcessCDR(1,14051944,1,1,2) [2024-12-19 00:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051944', 'tblTempUsageDetail_20' ) start [2024-12-19 00:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051944', 'tblTempUsageDetail_20' ) end [2024-12-19 00:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:53:19] Production.INFO: ==20481== Releasing lock... [2024-12-19 00:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:53:19] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:54:05 [end_date_ymd] => 2024-12-19 00:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:54:17] Production.INFO: count ==248 [2024-12-19 00:54:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:54:05 - End Time 2024-12-19 00:54:05 [2024-12-19 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051949', 'tblTempUsageDetail_20' ) start [2024-12-19 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051949', 'tblTempUsageDetail_20' ) end [2024-12-19 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051949', 'tblTempVendorCDR_20' ) start [2024-12-19 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051949', 'tblTempVendorCDR_20' ) end [2024-12-19 00:54:17] Production.INFO: ProcessCDR(1,14051949,1,1,2) [2024-12-19 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051949', 'tblTempUsageDetail_20' ) start [2024-12-19 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051949', 'tblTempUsageDetail_20' ) end [2024-12-19 00:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:54:20] Production.INFO: ==20556== Releasing lock... [2024-12-19 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:54:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:55:05 [end_date_ymd] => 2024-12-19 00:55:05 [RateCDR] => 1 ) [2024-12-19 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:55:05' and `end` < '2024-12-19 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:55:17] Production.INFO: count ==247 [2024-12-19 00:55:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:55:05 - End Time 2024-12-19 00:55:05 [2024-12-19 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051954', 'tblTempUsageDetail_20' ) start [2024-12-19 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051954', 'tblTempUsageDetail_20' ) end [2024-12-19 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051954', 'tblTempVendorCDR_20' ) start [2024-12-19 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051954', 'tblTempVendorCDR_20' ) end [2024-12-19 00:55:17] Production.INFO: ProcessCDR(1,14051954,1,1,2) [2024-12-19 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051954', 'tblTempUsageDetail_20' ) start [2024-12-19 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051954', 'tblTempUsageDetail_20' ) end [2024-12-19 00:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:55:20] Production.INFO: ==20629== Releasing lock... [2024-12-19 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:55:20] Production.INFO: 30 MB #Memory Used# [2024-12-19 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:56:05 [end_date_ymd] => 2024-12-19 00:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:56:17] Production.INFO: count ==249 [2024-12-19 00:56:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:56:05 - End Time 2024-12-19 00:56:05 [2024-12-19 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051959', 'tblTempUsageDetail_20' ) start [2024-12-19 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051959', 'tblTempUsageDetail_20' ) end [2024-12-19 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051959', 'tblTempVendorCDR_20' ) start [2024-12-19 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051959', 'tblTempVendorCDR_20' ) end [2024-12-19 00:56:17] Production.INFO: ProcessCDR(1,14051959,1,1,2) [2024-12-19 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051959', 'tblTempUsageDetail_20' ) start [2024-12-19 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051959', 'tblTempUsageDetail_20' ) end [2024-12-19 00:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:56:20] Production.INFO: ==20702== Releasing lock... [2024-12-19 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:56:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:57:05 [end_date_ymd] => 2024-12-19 00:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:57:17] Production.INFO: count ==250 [2024-12-19 00:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:57:05 - End Time 2024-12-19 00:57:05 [2024-12-19 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051964', 'tblTempUsageDetail_20' ) start [2024-12-19 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051964', 'tblTempUsageDetail_20' ) end [2024-12-19 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051964', 'tblTempVendorCDR_20' ) start [2024-12-19 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051964', 'tblTempVendorCDR_20' ) end [2024-12-19 00:57:18] Production.INFO: ProcessCDR(1,14051964,1,1,2) [2024-12-19 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051964', 'tblTempUsageDetail_20' ) start [2024-12-19 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051964', 'tblTempUsageDetail_20' ) end [2024-12-19 00:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:57:21] Production.INFO: ==20771== Releasing lock... [2024-12-19 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:57:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:58:04 [end_date_ymd] => 2024-12-19 00:58:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 21:58:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 00:58:18] Production.INFO: count ==250 [2024-12-19 00:58:18] Production.ERROR: pbx CDR StartTime 2024-12-18 21:58:04 - End Time 2024-12-19 00:58:04 [2024-12-19 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051969', 'tblTempUsageDetail_20' ) start [2024-12-19 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051969', 'tblTempUsageDetail_20' ) end [2024-12-19 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051969', 'tblTempVendorCDR_20' ) start [2024-12-19 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051969', 'tblTempVendorCDR_20' ) end [2024-12-19 00:58:18] Production.INFO: ProcessCDR(1,14051969,1,1,2) [2024-12-19 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051969', 'tblTempUsageDetail_20' ) start [2024-12-19 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051969', 'tblTempUsageDetail_20' ) end [2024-12-19 00:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:58:21] Production.INFO: ==20841== Releasing lock... [2024-12-19 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:58:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 21:59:05 [end_date_ymd] => 2024-12-19 00:59:05 [RateCDR] => 1 ) [2024-12-19 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 21:59:05' and `end` < '2024-12-19 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 00:59:17] Production.INFO: count ==250 [2024-12-19 00:59:17] Production.ERROR: pbx CDR StartTime 2024-12-18 21:59:05 - End Time 2024-12-19 00:59:05 [2024-12-19 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051974', 'tblTempUsageDetail_20' ) start [2024-12-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051974', 'tblTempUsageDetail_20' ) end [2024-12-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051974', 'tblTempVendorCDR_20' ) start [2024-12-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051974', 'tblTempVendorCDR_20' ) end [2024-12-19 00:59:17] Production.INFO: ProcessCDR(1,14051974,1,1,2) [2024-12-19 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051974', 'tblTempUsageDetail_20' ) start [2024-12-19 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051974', 'tblTempUsageDetail_20' ) end [2024-12-19 00:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 00:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 00:59:20] Production.INFO: ==20915== Releasing lock... [2024-12-19 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 00:59:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:00:06 [end_date_ymd] => 2024-12-19 01:00:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:00:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:00:18] Production.INFO: count ==258 [2024-12-19 01:00:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:00:06 - End Time 2024-12-19 01:00:06 [2024-12-19 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051980', 'tblTempUsageDetail_20' ) start [2024-12-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051980', 'tblTempUsageDetail_20' ) end [2024-12-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051980', 'tblTempVendorCDR_20' ) start [2024-12-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051980', 'tblTempVendorCDR_20' ) end [2024-12-19 01:00:18] Production.INFO: ProcessCDR(1,14051980,1,1,2) [2024-12-19 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051980', 'tblTempUsageDetail_20' ) start [2024-12-19 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051980', 'tblTempUsageDetail_20' ) end [2024-12-19 01:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:00:21] Production.INFO: ==20987== Releasing lock... [2024-12-19 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:00:21] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:01:05 [end_date_ymd] => 2024-12-19 01:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:01:17] Production.INFO: count ==263 [2024-12-19 01:01:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:01:05 - End Time 2024-12-19 01:01:05 [2024-12-19 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051985', 'tblTempUsageDetail_20' ) start [2024-12-19 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051985', 'tblTempUsageDetail_20' ) end [2024-12-19 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051985', 'tblTempVendorCDR_20' ) start [2024-12-19 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051985', 'tblTempVendorCDR_20' ) end [2024-12-19 01:01:18] Production.INFO: ProcessCDR(1,14051985,1,1,2) [2024-12-19 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051985', 'tblTempUsageDetail_20' ) start [2024-12-19 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051985', 'tblTempUsageDetail_20' ) end [2024-12-19 01:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:01:21] Production.INFO: ==21075== Releasing lock... [2024-12-19 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:01:21] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:02:05 [end_date_ymd] => 2024-12-19 01:02:05 [RateCDR] => 1 ) [2024-12-19 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:02:05' and `end` < '2024-12-19 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:02:18] Production.INFO: count ==261 [2024-12-19 01:02:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:02:05 - End Time 2024-12-19 01:02:05 [2024-12-19 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051990', 'tblTempUsageDetail_20' ) start [2024-12-19 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051990', 'tblTempUsageDetail_20' ) end [2024-12-19 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051990', 'tblTempVendorCDR_20' ) start [2024-12-19 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051990', 'tblTempVendorCDR_20' ) end [2024-12-19 01:02:18] Production.INFO: ProcessCDR(1,14051990,1,1,2) [2024-12-19 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051990', 'tblTempUsageDetail_20' ) start [2024-12-19 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051990', 'tblTempUsageDetail_20' ) end [2024-12-19 01:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:02:21] Production.INFO: ==21145== Releasing lock... [2024-12-19 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:02:21] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:03:04 [end_date_ymd] => 2024-12-19 01:03:04 [RateCDR] => 1 ) [2024-12-19 01: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` >= '2024-12-18 22:03:04' and `end` < '2024-12-19 01: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 ,'') [2024-12-19 01:03:17] Production.INFO: count ==261 [2024-12-19 01:03:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:03:04 - End Time 2024-12-19 01:03:04 [2024-12-19 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051995', 'tblTempUsageDetail_20' ) start [2024-12-19 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14051995', 'tblTempUsageDetail_20' ) end [2024-12-19 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051995', 'tblTempVendorCDR_20' ) start [2024-12-19 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14051995', 'tblTempVendorCDR_20' ) end [2024-12-19 01:03:17] Production.INFO: ProcessCDR(1,14051995,1,1,2) [2024-12-19 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14051995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14051995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14051995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14051995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051995', 'tblTempUsageDetail_20' ) start [2024-12-19 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14051995', 'tblTempUsageDetail_20' ) end [2024-12-19 01:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:03:20] Production.INFO: ==21216== Releasing lock... [2024-12-19 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:03:20] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:04:05 [end_date_ymd] => 2024-12-19 01:04:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:04:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:04:18] Production.INFO: count ==260 [2024-12-19 01:04:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:04:05 - End Time 2024-12-19 01:04:05 [2024-12-19 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052000', 'tblTempUsageDetail_20' ) start [2024-12-19 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052000', 'tblTempUsageDetail_20' ) end [2024-12-19 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052000', 'tblTempVendorCDR_20' ) start [2024-12-19 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052000', 'tblTempVendorCDR_20' ) end [2024-12-19 01:04:18] Production.INFO: ProcessCDR(1,14052000,1,1,2) [2024-12-19 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052000', 'tblTempUsageDetail_20' ) start [2024-12-19 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052000', 'tblTempUsageDetail_20' ) end [2024-12-19 01:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:04:21] Production.INFO: ==21286== Releasing lock... [2024-12-19 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:04:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:05:04 [end_date_ymd] => 2024-12-19 01:05:04 [RateCDR] => 1 ) [2024-12-19 01:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:05:04' and `end` < '2024-12-19 01:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:05:16] Production.INFO: count ==257 [2024-12-19 01:05:16] Production.ERROR: pbx CDR StartTime 2024-12-18 22:05:04 - End Time 2024-12-19 01:05:04 [2024-12-19 01:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052005', 'tblTempUsageDetail_20' ) start [2024-12-19 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052005', 'tblTempUsageDetail_20' ) end [2024-12-19 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052005', 'tblTempVendorCDR_20' ) start [2024-12-19 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052005', 'tblTempVendorCDR_20' ) end [2024-12-19 01:05:16] Production.INFO: ProcessCDR(1,14052005,1,1,2) [2024-12-19 01:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052005', 'tblTempUsageDetail_20' ) start [2024-12-19 01:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052005', 'tblTempUsageDetail_20' ) end [2024-12-19 01:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:05:19] Production.INFO: ==21359== Releasing lock... [2024-12-19 01:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:05:19] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:06:05 [end_date_ymd] => 2024-12-19 01:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:06:18] Production.INFO: count ==254 [2024-12-19 01:06:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:06:05 - End Time 2024-12-19 01:06:05 [2024-12-19 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052010', 'tblTempUsageDetail_20' ) start [2024-12-19 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052010', 'tblTempUsageDetail_20' ) end [2024-12-19 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052010', 'tblTempVendorCDR_20' ) start [2024-12-19 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052010', 'tblTempVendorCDR_20' ) end [2024-12-19 01:06:18] Production.INFO: ProcessCDR(1,14052010,1,1,2) [2024-12-19 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052010', 'tblTempUsageDetail_20' ) start [2024-12-19 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052010', 'tblTempUsageDetail_20' ) end [2024-12-19 01:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:06:21] Production.INFO: ==21472== Releasing lock... [2024-12-19 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:06:21] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:07:05 [end_date_ymd] => 2024-12-19 01:07:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:07:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:07:18] Production.INFO: count ==254 [2024-12-19 01:07:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:07:05 - End Time 2024-12-19 01:07:05 [2024-12-19 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052015', 'tblTempUsageDetail_20' ) start [2024-12-19 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052015', 'tblTempUsageDetail_20' ) end [2024-12-19 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052015', 'tblTempVendorCDR_20' ) start [2024-12-19 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052015', 'tblTempVendorCDR_20' ) end [2024-12-19 01:07:18] Production.INFO: ProcessCDR(1,14052015,1,1,2) [2024-12-19 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052015', 'tblTempUsageDetail_20' ) start [2024-12-19 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052015', 'tblTempUsageDetail_20' ) end [2024-12-19 01:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:07:22] Production.INFO: ==21545== Releasing lock... [2024-12-19 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:07:22] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:08:04 [end_date_ymd] => 2024-12-19 01:08:04 [RateCDR] => 1 ) [2024-12-19 01:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:08:04' and `end` < '2024-12-19 01:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:08:16] Production.INFO: count ==253 [2024-12-19 01:08:16] Production.ERROR: pbx CDR StartTime 2024-12-18 22:08:04 - End Time 2024-12-19 01:08:04 [2024-12-19 01:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052020', 'tblTempUsageDetail_20' ) start [2024-12-19 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052020', 'tblTempUsageDetail_20' ) end [2024-12-19 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052020', 'tblTempVendorCDR_20' ) start [2024-12-19 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052020', 'tblTempVendorCDR_20' ) end [2024-12-19 01:08:16] Production.INFO: ProcessCDR(1,14052020,1,1,2) [2024-12-19 01:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052020', 'tblTempUsageDetail_20' ) start [2024-12-19 01:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052020', 'tblTempUsageDetail_20' ) end [2024-12-19 01:08:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:08:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:08:19] Production.INFO: ==21615== Releasing lock... [2024-12-19 01:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:08:19] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:09:05 [end_date_ymd] => 2024-12-19 01:09:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:09:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:09:17] Production.INFO: count ==253 [2024-12-19 01:09:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:09:05 - End Time 2024-12-19 01:09:05 [2024-12-19 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052025', 'tblTempUsageDetail_20' ) start [2024-12-19 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052025', 'tblTempUsageDetail_20' ) end [2024-12-19 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052025', 'tblTempVendorCDR_20' ) start [2024-12-19 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052025', 'tblTempVendorCDR_20' ) end [2024-12-19 01:09:17] Production.INFO: ProcessCDR(1,14052025,1,1,2) [2024-12-19 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052025', 'tblTempUsageDetail_20' ) start [2024-12-19 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052025', 'tblTempUsageDetail_20' ) end [2024-12-19 01:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:09:20] Production.INFO: ==21692== Releasing lock... [2024-12-19 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:09:20] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:10:05 [end_date_ymd] => 2024-12-19 01:10:05 [RateCDR] => 1 ) [2024-12-19 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:10:05' and `end` < '2024-12-19 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:10:17] Production.INFO: count ==260 [2024-12-19 01:10:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:10:05 - End Time 2024-12-19 01:10:05 [2024-12-19 01:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052031', 'tblTempUsageDetail_20' ) start [2024-12-19 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052031', 'tblTempUsageDetail_20' ) end [2024-12-19 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052031', 'tblTempVendorCDR_20' ) start [2024-12-19 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052031', 'tblTempVendorCDR_20' ) end [2024-12-19 01:10:17] Production.INFO: ProcessCDR(1,14052031,1,1,2) [2024-12-19 01:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052031', 'tblTempUsageDetail_20' ) start [2024-12-19 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052031', 'tblTempUsageDetail_20' ) end [2024-12-19 01:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:10:21] Production.INFO: ==21765== Releasing lock... [2024-12-19 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:10:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:11:05 [end_date_ymd] => 2024-12-19 01:11:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:11:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:11:20] Production.INFO: count ==273 [2024-12-19 01:11:20] Production.ERROR: pbx CDR StartTime 2024-12-18 22:11:05 - End Time 2024-12-19 01:11:05 [2024-12-19 01:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052036', 'tblTempUsageDetail_20' ) start [2024-12-19 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052036', 'tblTempUsageDetail_20' ) end [2024-12-19 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052036', 'tblTempVendorCDR_20' ) start [2024-12-19 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052036', 'tblTempVendorCDR_20' ) end [2024-12-19 01:11:20] Production.INFO: ProcessCDR(1,14052036,1,1,2) [2024-12-19 01:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052036', 'tblTempUsageDetail_20' ) start [2024-12-19 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052036', 'tblTempUsageDetail_20' ) end [2024-12-19 01:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:11:24] Production.INFO: ==21840== Releasing lock... [2024-12-19 01:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:11:24] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:12:04 [end_date_ymd] => 2024-12-19 01:12:04 [RateCDR] => 1 ) [2024-12-19 01: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` >= '2024-12-18 22:12:04' and `end` < '2024-12-19 01: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 ,'') [2024-12-19 01:12:17] Production.INFO: count ==273 [2024-12-19 01:12:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:12:04 - End Time 2024-12-19 01:12:04 [2024-12-19 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052041', 'tblTempUsageDetail_20' ) start [2024-12-19 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052041', 'tblTempUsageDetail_20' ) end [2024-12-19 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052041', 'tblTempVendorCDR_20' ) start [2024-12-19 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052041', 'tblTempVendorCDR_20' ) end [2024-12-19 01:12:17] Production.INFO: ProcessCDR(1,14052041,1,1,2) [2024-12-19 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052041', 'tblTempUsageDetail_20' ) start [2024-12-19 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052041', 'tblTempUsageDetail_20' ) end [2024-12-19 01:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:12:20] Production.INFO: ==21910== Releasing lock... [2024-12-19 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:12:20] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:13:04 [end_date_ymd] => 2024-12-19 01:13:04 [RateCDR] => 1 ) [2024-12-19 01: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` >= '2024-12-18 22:13:04' and `end` < '2024-12-19 01: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 ,'') [2024-12-19 01:13:17] Production.INFO: count ==273 [2024-12-19 01:13:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:13:04 - End Time 2024-12-19 01:13:04 [2024-12-19 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052046', 'tblTempUsageDetail_20' ) start [2024-12-19 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052046', 'tblTempUsageDetail_20' ) end [2024-12-19 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052046', 'tblTempVendorCDR_20' ) start [2024-12-19 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052046', 'tblTempVendorCDR_20' ) end [2024-12-19 01:13:17] Production.INFO: ProcessCDR(1,14052046,1,1,2) [2024-12-19 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052046', 'tblTempUsageDetail_20' ) start [2024-12-19 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052046', 'tblTempUsageDetail_20' ) end [2024-12-19 01:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:13:20] Production.INFO: ==21983== Releasing lock... [2024-12-19 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:13:20] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:14:05 [end_date_ymd] => 2024-12-19 01:14:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:14:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:14:18] Production.INFO: count ==273 [2024-12-19 01:14:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:14:05 - End Time 2024-12-19 01:14:05 [2024-12-19 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052051', 'tblTempUsageDetail_20' ) start [2024-12-19 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052051', 'tblTempUsageDetail_20' ) end [2024-12-19 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052051', 'tblTempVendorCDR_20' ) start [2024-12-19 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052051', 'tblTempVendorCDR_20' ) end [2024-12-19 01:14:18] Production.INFO: ProcessCDR(1,14052051,1,1,2) [2024-12-19 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052051', 'tblTempUsageDetail_20' ) start [2024-12-19 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052051', 'tblTempUsageDetail_20' ) end [2024-12-19 01:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:14:21] Production.INFO: ==22057== Releasing lock... [2024-12-19 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:14:21] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:15:04 [end_date_ymd] => 2024-12-19 01:15:04 [RateCDR] => 1 ) [2024-12-19 01:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:15:04' and `end` < '2024-12-19 01:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:15:16] Production.INFO: count ==273 [2024-12-19 01:15:16] Production.ERROR: pbx CDR StartTime 2024-12-18 22:15:04 - End Time 2024-12-19 01:15:04 [2024-12-19 01:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052056', 'tblTempUsageDetail_20' ) start [2024-12-19 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052056', 'tblTempUsageDetail_20' ) end [2024-12-19 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052056', 'tblTempVendorCDR_20' ) start [2024-12-19 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052056', 'tblTempVendorCDR_20' ) end [2024-12-19 01:15:16] Production.INFO: ProcessCDR(1,14052056,1,1,2) [2024-12-19 01:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052056', 'tblTempUsageDetail_20' ) start [2024-12-19 01:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052056', 'tblTempUsageDetail_20' ) end [2024-12-19 01:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:15:19] Production.INFO: ==22133== Releasing lock... [2024-12-19 01:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:15:19] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:16:05 [end_date_ymd] => 2024-12-19 01:16:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:16:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:16:18] Production.INFO: count ==273 [2024-12-19 01:16:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:16:05 - End Time 2024-12-19 01:16:05 [2024-12-19 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052061', 'tblTempUsageDetail_20' ) start [2024-12-19 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052061', 'tblTempUsageDetail_20' ) end [2024-12-19 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052061', 'tblTempVendorCDR_20' ) start [2024-12-19 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052061', 'tblTempVendorCDR_20' ) end [2024-12-19 01:16:18] Production.INFO: ProcessCDR(1,14052061,1,1,2) [2024-12-19 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052061', 'tblTempUsageDetail_20' ) start [2024-12-19 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052061', 'tblTempUsageDetail_20' ) end [2024-12-19 01:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:16:21] Production.INFO: ==22204== Releasing lock... [2024-12-19 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:16:21] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:17:04 [end_date_ymd] => 2024-12-19 01:17:04 [RateCDR] => 1 ) [2024-12-19 01:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:17:04' and `end` < '2024-12-19 01:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:17:18] Production.INFO: count ==273 [2024-12-19 01:17:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:17:04 - End Time 2024-12-19 01:17:04 [2024-12-19 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052066', 'tblTempUsageDetail_20' ) start [2024-12-19 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052066', 'tblTempUsageDetail_20' ) end [2024-12-19 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052066', 'tblTempVendorCDR_20' ) start [2024-12-19 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052066', 'tblTempVendorCDR_20' ) end [2024-12-19 01:17:18] Production.INFO: ProcessCDR(1,14052066,1,1,2) [2024-12-19 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052066', 'tblTempUsageDetail_20' ) start [2024-12-19 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052066', 'tblTempUsageDetail_20' ) end [2024-12-19 01:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:17:21] Production.INFO: ==22280== Releasing lock... [2024-12-19 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:17:21] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:18:04 [end_date_ymd] => 2024-12-19 01:18:04 [RateCDR] => 1 ) [2024-12-19 01: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` >= '2024-12-18 22:18:04' and `end` < '2024-12-19 01:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:18:17] Production.INFO: count ==270 [2024-12-19 01:18:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:18:04 - End Time 2024-12-19 01:18:04 [2024-12-19 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052071', 'tblTempUsageDetail_20' ) start [2024-12-19 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052071', 'tblTempUsageDetail_20' ) end [2024-12-19 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052071', 'tblTempVendorCDR_20' ) start [2024-12-19 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052071', 'tblTempVendorCDR_20' ) end [2024-12-19 01:18:17] Production.INFO: ProcessCDR(1,14052071,1,1,2) [2024-12-19 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052071', 'tblTempUsageDetail_20' ) start [2024-12-19 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052071', 'tblTempUsageDetail_20' ) end [2024-12-19 01:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:18:20] Production.INFO: ==22353== Releasing lock... [2024-12-19 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:18:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:19:05 [end_date_ymd] => 2024-12-19 01:19:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:19:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:19:18] Production.INFO: count ==268 [2024-12-19 01:19:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:19:05 - End Time 2024-12-19 01:19:05 [2024-12-19 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052076', 'tblTempUsageDetail_20' ) start [2024-12-19 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052076', 'tblTempUsageDetail_20' ) end [2024-12-19 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052076', 'tblTempVendorCDR_20' ) start [2024-12-19 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052076', 'tblTempVendorCDR_20' ) end [2024-12-19 01:19:18] Production.INFO: ProcessCDR(1,14052076,1,1,2) [2024-12-19 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052076', 'tblTempUsageDetail_20' ) start [2024-12-19 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052076', 'tblTempUsageDetail_20' ) end [2024-12-19 01:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:19:21] Production.INFO: ==22435== Releasing lock... [2024-12-19 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:19:21] Production.INFO: 30 MB #Memory Used# [2024-12-19 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:20:05 [end_date_ymd] => 2024-12-19 01:20:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:20:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:20:19] Production.INFO: count ==270 [2024-12-19 01:20:19] Production.ERROR: pbx CDR StartTime 2024-12-18 22:20:05 - End Time 2024-12-19 01:20:05 [2024-12-19 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052082', 'tblTempUsageDetail_20' ) start [2024-12-19 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052082', 'tblTempUsageDetail_20' ) end [2024-12-19 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052082', 'tblTempVendorCDR_20' ) start [2024-12-19 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052082', 'tblTempVendorCDR_20' ) end [2024-12-19 01:20:19] Production.INFO: ProcessCDR(1,14052082,1,1,2) [2024-12-19 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052082', 'tblTempUsageDetail_20' ) start [2024-12-19 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052082', 'tblTempUsageDetail_20' ) end [2024-12-19 01:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:20:21] Production.INFO: ==22513== Releasing lock... [2024-12-19 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:20:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:21:05 [end_date_ymd] => 2024-12-19 01:21:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:21:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:21:17] Production.INFO: count ==274 [2024-12-19 01:21:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:21:05 - End Time 2024-12-19 01:21:05 [2024-12-19 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052087', 'tblTempUsageDetail_20' ) start [2024-12-19 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052087', 'tblTempUsageDetail_20' ) end [2024-12-19 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052087', 'tblTempVendorCDR_20' ) start [2024-12-19 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052087', 'tblTempVendorCDR_20' ) end [2024-12-19 01:21:17] Production.INFO: ProcessCDR(1,14052087,1,1,2) [2024-12-19 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052087', 'tblTempUsageDetail_20' ) start [2024-12-19 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052087', 'tblTempUsageDetail_20' ) end [2024-12-19 01:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:21:20] Production.INFO: ==22595== Releasing lock... [2024-12-19 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:21:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:22:04 [end_date_ymd] => 2024-12-19 01:22:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:22:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:22:17] Production.INFO: count ==273 [2024-12-19 01:22:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:22:04 - End Time 2024-12-19 01:22:04 [2024-12-19 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052092', 'tblTempUsageDetail_20' ) start [2024-12-19 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052092', 'tblTempUsageDetail_20' ) end [2024-12-19 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052092', 'tblTempVendorCDR_20' ) start [2024-12-19 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052092', 'tblTempVendorCDR_20' ) end [2024-12-19 01:22:17] Production.INFO: ProcessCDR(1,14052092,1,1,2) [2024-12-19 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052092', 'tblTempUsageDetail_20' ) start [2024-12-19 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052092', 'tblTempUsageDetail_20' ) end [2024-12-19 01:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:22:20] Production.INFO: ==22709== Releasing lock... [2024-12-19 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:22:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:23:05 [end_date_ymd] => 2024-12-19 01:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:23:18] Production.INFO: count ==271 [2024-12-19 01:23:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:23:05 - End Time 2024-12-19 01:23:05 [2024-12-19 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052097', 'tblTempUsageDetail_20' ) start [2024-12-19 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052097', 'tblTempUsageDetail_20' ) end [2024-12-19 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052097', 'tblTempVendorCDR_20' ) start [2024-12-19 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052097', 'tblTempVendorCDR_20' ) end [2024-12-19 01:23:18] Production.INFO: ProcessCDR(1,14052097,1,1,2) [2024-12-19 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052097', 'tblTempUsageDetail_20' ) start [2024-12-19 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052097', 'tblTempUsageDetail_20' ) end [2024-12-19 01:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:23:22] Production.INFO: ==22790== Releasing lock... [2024-12-19 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:23:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:24:05 [end_date_ymd] => 2024-12-19 01:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:24:17] Production.INFO: count ==271 [2024-12-19 01:24:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:24:05 - End Time 2024-12-19 01:24:05 [2024-12-19 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052102', 'tblTempUsageDetail_20' ) start [2024-12-19 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052102', 'tblTempUsageDetail_20' ) end [2024-12-19 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052102', 'tblTempVendorCDR_20' ) start [2024-12-19 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052102', 'tblTempVendorCDR_20' ) end [2024-12-19 01:24:17] Production.INFO: ProcessCDR(1,14052102,1,1,2) [2024-12-19 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052102', 'tblTempUsageDetail_20' ) start [2024-12-19 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052102', 'tblTempUsageDetail_20' ) end [2024-12-19 01:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:24:20] Production.INFO: ==22871== Releasing lock... [2024-12-19 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:24:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:25:04 [end_date_ymd] => 2024-12-19 01:25:04 [RateCDR] => 1 ) [2024-12-19 01:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:25:04' and `end` < '2024-12-19 01:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:25:17] Production.INFO: count ==269 [2024-12-19 01:25:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:25:04 - End Time 2024-12-19 01:25:04 [2024-12-19 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052107', 'tblTempUsageDetail_20' ) start [2024-12-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052107', 'tblTempUsageDetail_20' ) end [2024-12-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052107', 'tblTempVendorCDR_20' ) start [2024-12-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052107', 'tblTempVendorCDR_20' ) end [2024-12-19 01:25:17] Production.INFO: ProcessCDR(1,14052107,1,1,2) [2024-12-19 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052107', 'tblTempUsageDetail_20' ) start [2024-12-19 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052107', 'tblTempUsageDetail_20' ) end [2024-12-19 01:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:25:20] Production.INFO: ==22948== Releasing lock... [2024-12-19 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:25:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:26:05 [end_date_ymd] => 2024-12-19 01:26:05 [RateCDR] => 1 ) [2024-12-19 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:26:05' and `end` < '2024-12-19 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:26:17] Production.INFO: count ==268 [2024-12-19 01:26:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:26:05 - End Time 2024-12-19 01:26:05 [2024-12-19 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052112', 'tblTempUsageDetail_20' ) start [2024-12-19 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052112', 'tblTempUsageDetail_20' ) end [2024-12-19 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052112', 'tblTempVendorCDR_20' ) start [2024-12-19 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052112', 'tblTempVendorCDR_20' ) end [2024-12-19 01:26:17] Production.INFO: ProcessCDR(1,14052112,1,1,2) [2024-12-19 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052112', 'tblTempUsageDetail_20' ) start [2024-12-19 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052112', 'tblTempUsageDetail_20' ) end [2024-12-19 01:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:26:20] Production.INFO: ==23037== Releasing lock... [2024-12-19 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:26:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:27:04 [end_date_ymd] => 2024-12-19 01:27:04 [RateCDR] => 1 ) [2024-12-19 01: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` >= '2024-12-18 22:27:04' and `end` < '2024-12-19 01: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 ,'') [2024-12-19 01:27:16] Production.INFO: count ==268 [2024-12-19 01:27:16] Production.ERROR: pbx CDR StartTime 2024-12-18 22:27:04 - End Time 2024-12-19 01:27:04 [2024-12-19 01:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052117', 'tblTempUsageDetail_20' ) start [2024-12-19 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052117', 'tblTempUsageDetail_20' ) end [2024-12-19 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052117', 'tblTempVendorCDR_20' ) start [2024-12-19 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052117', 'tblTempVendorCDR_20' ) end [2024-12-19 01:27:16] Production.INFO: ProcessCDR(1,14052117,1,1,2) [2024-12-19 01:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052117', 'tblTempUsageDetail_20' ) start [2024-12-19 01:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052117', 'tblTempUsageDetail_20' ) end [2024-12-19 01:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:27:19] Production.INFO: ==23115== Releasing lock... [2024-12-19 01:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:27:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:28:05 [end_date_ymd] => 2024-12-19 01:28:05 [RateCDR] => 1 ) [2024-12-19 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:28:05' and `end` < '2024-12-19 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:28:17] Production.INFO: count ==268 [2024-12-19 01:28:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:28:05 - End Time 2024-12-19 01:28:05 [2024-12-19 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052122', 'tblTempUsageDetail_20' ) start [2024-12-19 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052122', 'tblTempUsageDetail_20' ) end [2024-12-19 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052122', 'tblTempVendorCDR_20' ) start [2024-12-19 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052122', 'tblTempVendorCDR_20' ) end [2024-12-19 01:28:17] Production.INFO: ProcessCDR(1,14052122,1,1,2) [2024-12-19 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052122', 'tblTempUsageDetail_20' ) start [2024-12-19 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052122', 'tblTempUsageDetail_20' ) end [2024-12-19 01:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:28:20] Production.INFO: ==23192== Releasing lock... [2024-12-19 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:28:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:29:04 [end_date_ymd] => 2024-12-19 01:29:04 [RateCDR] => 1 ) [2024-12-19 01: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` >= '2024-12-18 22:29:04' and `end` < '2024-12-19 01: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 ,'') [2024-12-19 01:29:18] Production.INFO: count ==266 [2024-12-19 01:29:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:29:04 - End Time 2024-12-19 01:29:04 [2024-12-19 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052127', 'tblTempUsageDetail_20' ) start [2024-12-19 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052127', 'tblTempUsageDetail_20' ) end [2024-12-19 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052127', 'tblTempVendorCDR_20' ) start [2024-12-19 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052127', 'tblTempVendorCDR_20' ) end [2024-12-19 01:29:18] Production.INFO: ProcessCDR(1,14052127,1,1,2) [2024-12-19 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052127', 'tblTempUsageDetail_20' ) start [2024-12-19 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052127', 'tblTempUsageDetail_20' ) end [2024-12-19 01:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:29:21] Production.INFO: ==23275== Releasing lock... [2024-12-19 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:29:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:30:05 [end_date_ymd] => 2024-12-19 01:30:05 [RateCDR] => 1 ) [2024-12-19 01:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:30:05' and `end` < '2024-12-19 01:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:30:17] Production.INFO: count ==271 [2024-12-19 01:30:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:30:05 - End Time 2024-12-19 01:30:05 [2024-12-19 01:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052133', 'tblTempUsageDetail_20' ) start [2024-12-19 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052133', 'tblTempUsageDetail_20' ) end [2024-12-19 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052133', 'tblTempVendorCDR_20' ) start [2024-12-19 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052133', 'tblTempVendorCDR_20' ) end [2024-12-19 01:30:17] Production.INFO: ProcessCDR(1,14052133,1,1,2) [2024-12-19 01:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052133', 'tblTempUsageDetail_20' ) start [2024-12-19 01:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052133', 'tblTempUsageDetail_20' ) end [2024-12-19 01:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:30:20] Production.INFO: ==23356== Releasing lock... [2024-12-19 01:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:30:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:31:05 [end_date_ymd] => 2024-12-19 01:31:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:31:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:31:18] Production.INFO: count ==271 [2024-12-19 01:31:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:31:05 - End Time 2024-12-19 01:31:05 [2024-12-19 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052138', 'tblTempUsageDetail_20' ) start [2024-12-19 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052138', 'tblTempUsageDetail_20' ) end [2024-12-19 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052138', 'tblTempVendorCDR_20' ) start [2024-12-19 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052138', 'tblTempVendorCDR_20' ) end [2024-12-19 01:31:18] Production.INFO: ProcessCDR(1,14052138,1,1,2) [2024-12-19 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052138', 'tblTempUsageDetail_20' ) start [2024-12-19 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052138', 'tblTempUsageDetail_20' ) end [2024-12-19 01:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:31:21] Production.INFO: ==23440== Releasing lock... [2024-12-19 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:31:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:32:04 [end_date_ymd] => 2024-12-19 01:32:04 [RateCDR] => 1 ) [2024-12-19 01:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:32:04' and `end` < '2024-12-19 01:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:32:18] Production.INFO: count ==271 [2024-12-19 01:32:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:32:04 - End Time 2024-12-19 01:32:04 [2024-12-19 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052143', 'tblTempUsageDetail_20' ) start [2024-12-19 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052143', 'tblTempUsageDetail_20' ) end [2024-12-19 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052143', 'tblTempVendorCDR_20' ) start [2024-12-19 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052143', 'tblTempVendorCDR_20' ) end [2024-12-19 01:32:18] Production.INFO: ProcessCDR(1,14052143,1,1,2) [2024-12-19 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052143', 'tblTempUsageDetail_20' ) start [2024-12-19 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052143', 'tblTempUsageDetail_20' ) end [2024-12-19 01:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:32:21] Production.INFO: ==23514== Releasing lock... [2024-12-19 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:32:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:33:05 [end_date_ymd] => 2024-12-19 01:33:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:33:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:33:18] Production.INFO: count ==271 [2024-12-19 01:33:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:33:05 - End Time 2024-12-19 01:33:05 [2024-12-19 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052148', 'tblTempUsageDetail_20' ) start [2024-12-19 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052148', 'tblTempUsageDetail_20' ) end [2024-12-19 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052148', 'tblTempVendorCDR_20' ) start [2024-12-19 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052148', 'tblTempVendorCDR_20' ) end [2024-12-19 01:33:18] Production.INFO: ProcessCDR(1,14052148,1,1,2) [2024-12-19 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052148', 'tblTempUsageDetail_20' ) start [2024-12-19 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052148', 'tblTempUsageDetail_20' ) end [2024-12-19 01:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:33:21] Production.INFO: ==23598== Releasing lock... [2024-12-19 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:33:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:34:05 [end_date_ymd] => 2024-12-19 01:34:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:34:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:34:17] Production.INFO: count ==269 [2024-12-19 01:34:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:34:05 - End Time 2024-12-19 01:34:05 [2024-12-19 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052153', 'tblTempUsageDetail_20' ) start [2024-12-19 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052153', 'tblTempUsageDetail_20' ) end [2024-12-19 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052153', 'tblTempVendorCDR_20' ) start [2024-12-19 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052153', 'tblTempVendorCDR_20' ) end [2024-12-19 01:34:17] Production.INFO: ProcessCDR(1,14052153,1,1,2) [2024-12-19 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052153', 'tblTempUsageDetail_20' ) start [2024-12-19 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052153', 'tblTempUsageDetail_20' ) end [2024-12-19 01:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:34:20] Production.INFO: ==23676== Releasing lock... [2024-12-19 01:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:34:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:35:04 [end_date_ymd] => 2024-12-19 01:35:04 [RateCDR] => 1 ) [2024-12-19 01: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` >= '2024-12-18 22:35:04' and `end` < '2024-12-19 01: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 ,'') [2024-12-19 01:35:16] Production.INFO: count ==269 [2024-12-19 01:35:16] Production.ERROR: pbx CDR StartTime 2024-12-18 22:35:04 - End Time 2024-12-19 01:35:04 [2024-12-19 01:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052158', 'tblTempUsageDetail_20' ) start [2024-12-19 01:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052158', 'tblTempUsageDetail_20' ) end [2024-12-19 01:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052158', 'tblTempVendorCDR_20' ) start [2024-12-19 01:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052158', 'tblTempVendorCDR_20' ) end [2024-12-19 01:35:16] Production.INFO: ProcessCDR(1,14052158,1,1,2) [2024-12-19 01:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052158', 'tblTempUsageDetail_20' ) start [2024-12-19 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052158', 'tblTempUsageDetail_20' ) end [2024-12-19 01:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:35:20] Production.INFO: ==23755== Releasing lock... [2024-12-19 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:35:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:36:05 [end_date_ymd] => 2024-12-19 01:36:05 [RateCDR] => 1 ) [2024-12-19 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:36:05' and `end` < '2024-12-19 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:36:18] Production.INFO: count ==265 [2024-12-19 01:36:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:36:05 - End Time 2024-12-19 01:36:05 [2024-12-19 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052163', 'tblTempUsageDetail_20' ) start [2024-12-19 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052163', 'tblTempUsageDetail_20' ) end [2024-12-19 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052163', 'tblTempVendorCDR_20' ) start [2024-12-19 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052163', 'tblTempVendorCDR_20' ) end [2024-12-19 01:36:18] Production.INFO: ProcessCDR(1,14052163,1,1,2) [2024-12-19 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052163', 'tblTempUsageDetail_20' ) start [2024-12-19 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052163', 'tblTempUsageDetail_20' ) end [2024-12-19 01:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:36:21] Production.INFO: ==23835== Releasing lock... [2024-12-19 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:36:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:37:05 [end_date_ymd] => 2024-12-19 01:37:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:37:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:37:17] Production.INFO: count ==260 [2024-12-19 01:37:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:37:05 - End Time 2024-12-19 01:37:05 [2024-12-19 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052168', 'tblTempUsageDetail_20' ) start [2024-12-19 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052168', 'tblTempUsageDetail_20' ) end [2024-12-19 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052168', 'tblTempVendorCDR_20' ) start [2024-12-19 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052168', 'tblTempVendorCDR_20' ) end [2024-12-19 01:37:17] Production.INFO: ProcessCDR(1,14052168,1,1,2) [2024-12-19 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052168', 'tblTempUsageDetail_20' ) start [2024-12-19 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052168', 'tblTempUsageDetail_20' ) end [2024-12-19 01:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:37:20] Production.INFO: ==23953== Releasing lock... [2024-12-19 01:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:37:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:38:05 [end_date_ymd] => 2024-12-19 01:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:38:17] Production.INFO: count ==260 [2024-12-19 01:38:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:38:05 - End Time 2024-12-19 01:38:05 [2024-12-19 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052173', 'tblTempUsageDetail_20' ) start [2024-12-19 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052173', 'tblTempUsageDetail_20' ) end [2024-12-19 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052173', 'tblTempVendorCDR_20' ) start [2024-12-19 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052173', 'tblTempVendorCDR_20' ) end [2024-12-19 01:38:17] Production.INFO: ProcessCDR(1,14052173,1,1,2) [2024-12-19 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052173', 'tblTempUsageDetail_20' ) start [2024-12-19 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052173', 'tblTempUsageDetail_20' ) end [2024-12-19 01:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:38:20] Production.INFO: ==24033== Releasing lock... [2024-12-19 01:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:38:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:39:05 [end_date_ymd] => 2024-12-19 01:39:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:39:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:39:17] Production.INFO: count ==260 [2024-12-19 01:39:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:39:05 - End Time 2024-12-19 01:39:05 [2024-12-19 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052178', 'tblTempUsageDetail_20' ) start [2024-12-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052178', 'tblTempUsageDetail_20' ) end [2024-12-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052178', 'tblTempVendorCDR_20' ) start [2024-12-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052178', 'tblTempVendorCDR_20' ) end [2024-12-19 01:39:17] Production.INFO: ProcessCDR(1,14052178,1,1,2) [2024-12-19 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052178', 'tblTempUsageDetail_20' ) start [2024-12-19 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052178', 'tblTempUsageDetail_20' ) end [2024-12-19 01:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:39:20] Production.INFO: ==24113== Releasing lock... [2024-12-19 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:39:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:40:05 [end_date_ymd] => 2024-12-19 01:40:05 [RateCDR] => 1 ) [2024-12-19 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:40:05' and `end` < '2024-12-19 01:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:40:17] Production.INFO: count ==264 [2024-12-19 01:40:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:40:05 - End Time 2024-12-19 01:40:05 [2024-12-19 01:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052184', 'tblTempUsageDetail_20' ) start [2024-12-19 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052184', 'tblTempUsageDetail_20' ) end [2024-12-19 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052184', 'tblTempVendorCDR_20' ) start [2024-12-19 01:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052184', 'tblTempVendorCDR_20' ) end [2024-12-19 01:40:17] Production.INFO: ProcessCDR(1,14052184,1,1,2) [2024-12-19 01:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052184', 'tblTempUsageDetail_20' ) start [2024-12-19 01:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052184', 'tblTempUsageDetail_20' ) end [2024-12-19 01:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:40:20] Production.INFO: ==24199== Releasing lock... [2024-12-19 01:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:40:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:41:05 [end_date_ymd] => 2024-12-19 01:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:41:17] Production.INFO: count ==263 [2024-12-19 01:41:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:41:05 - End Time 2024-12-19 01:41:05 [2024-12-19 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052189', 'tblTempUsageDetail_20' ) start [2024-12-19 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052189', 'tblTempUsageDetail_20' ) end [2024-12-19 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052189', 'tblTempVendorCDR_20' ) start [2024-12-19 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052189', 'tblTempVendorCDR_20' ) end [2024-12-19 01:41:17] Production.INFO: ProcessCDR(1,14052189,1,1,2) [2024-12-19 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052189', 'tblTempUsageDetail_20' ) start [2024-12-19 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052189', 'tblTempUsageDetail_20' ) end [2024-12-19 01:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:41:21] Production.INFO: ==24280== Releasing lock... [2024-12-19 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:41:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:42:04 [end_date_ymd] => 2024-12-19 01:42:04 [RateCDR] => 1 ) [2024-12-19 01: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` >= '2024-12-18 22:42:04' and `end` < '2024-12-19 01: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 ,'') [2024-12-19 01:42:16] Production.INFO: count ==262 [2024-12-19 01:42:16] Production.ERROR: pbx CDR StartTime 2024-12-18 22:42:04 - End Time 2024-12-19 01:42:04 [2024-12-19 01:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052194', 'tblTempUsageDetail_20' ) start [2024-12-19 01:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052194', 'tblTempUsageDetail_20' ) end [2024-12-19 01:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052194', 'tblTempVendorCDR_20' ) start [2024-12-19 01:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052194', 'tblTempVendorCDR_20' ) end [2024-12-19 01:42:16] Production.INFO: ProcessCDR(1,14052194,1,1,2) [2024-12-19 01:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:42:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052194', 'tblTempUsageDetail_20' ) start [2024-12-19 01:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052194', 'tblTempUsageDetail_20' ) end [2024-12-19 01:42:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:42:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:42:19] Production.INFO: ==24356== Releasing lock... [2024-12-19 01:42:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:42:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:43:05 [end_date_ymd] => 2024-12-19 01:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:43:18] Production.INFO: count ==262 [2024-12-19 01:43:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:43:05 - End Time 2024-12-19 01:43:05 [2024-12-19 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052199', 'tblTempUsageDetail_20' ) start [2024-12-19 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052199', 'tblTempUsageDetail_20' ) end [2024-12-19 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052199', 'tblTempVendorCDR_20' ) start [2024-12-19 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052199', 'tblTempVendorCDR_20' ) end [2024-12-19 01:43:18] Production.INFO: ProcessCDR(1,14052199,1,1,2) [2024-12-19 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052199', 'tblTempUsageDetail_20' ) start [2024-12-19 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052199', 'tblTempUsageDetail_20' ) end [2024-12-19 01:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:43:21] Production.INFO: ==24441== Releasing lock... [2024-12-19 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:43:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:44:04 [end_date_ymd] => 2024-12-19 01:44:04 [RateCDR] => 1 ) [2024-12-19 01:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:44:04' and `end` < '2024-12-19 01:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:44:18] Production.INFO: count ==262 [2024-12-19 01:44:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:44:04 - End Time 2024-12-19 01:44:04 [2024-12-19 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052204', 'tblTempUsageDetail_20' ) start [2024-12-19 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052204', 'tblTempUsageDetail_20' ) end [2024-12-19 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052204', 'tblTempVendorCDR_20' ) start [2024-12-19 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052204', 'tblTempVendorCDR_20' ) end [2024-12-19 01:44:18] Production.INFO: ProcessCDR(1,14052204,1,1,2) [2024-12-19 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052204', 'tblTempUsageDetail_20' ) start [2024-12-19 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052204', 'tblTempUsageDetail_20' ) end [2024-12-19 01:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:44:21] Production.INFO: ==24518== Releasing lock... [2024-12-19 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:44:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:45:05 [end_date_ymd] => 2024-12-19 01:45:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:45:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:45:17] Production.INFO: count ==262 [2024-12-19 01:45:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:45:05 - End Time 2024-12-19 01:45:05 [2024-12-19 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052209', 'tblTempUsageDetail_20' ) start [2024-12-19 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052209', 'tblTempUsageDetail_20' ) end [2024-12-19 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052209', 'tblTempVendorCDR_20' ) start [2024-12-19 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052209', 'tblTempVendorCDR_20' ) end [2024-12-19 01:45:17] Production.INFO: ProcessCDR(1,14052209,1,1,2) [2024-12-19 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052209', 'tblTempUsageDetail_20' ) start [2024-12-19 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052209', 'tblTempUsageDetail_20' ) end [2024-12-19 01:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:45:20] Production.INFO: ==24590== Releasing lock... [2024-12-19 01:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:45:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:46:05 [end_date_ymd] => 2024-12-19 01:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:46:18] Production.INFO: count ==262 [2024-12-19 01:46:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:46:05 - End Time 2024-12-19 01:46:05 [2024-12-19 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052214', 'tblTempUsageDetail_20' ) start [2024-12-19 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052214', 'tblTempUsageDetail_20' ) end [2024-12-19 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052214', 'tblTempVendorCDR_20' ) start [2024-12-19 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052214', 'tblTempVendorCDR_20' ) end [2024-12-19 01:46:18] Production.INFO: ProcessCDR(1,14052214,1,1,2) [2024-12-19 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052214', 'tblTempUsageDetail_20' ) start [2024-12-19 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052214', 'tblTempUsageDetail_20' ) end [2024-12-19 01:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:46:21] Production.INFO: ==24665== Releasing lock... [2024-12-19 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:46:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:47:05 [end_date_ymd] => 2024-12-19 01:47:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:47:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:47:17] Production.INFO: count ==262 [2024-12-19 01:47:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:47:05 - End Time 2024-12-19 01:47:05 [2024-12-19 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052219', 'tblTempUsageDetail_20' ) start [2024-12-19 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052219', 'tblTempUsageDetail_20' ) end [2024-12-19 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052219', 'tblTempVendorCDR_20' ) start [2024-12-19 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052219', 'tblTempVendorCDR_20' ) end [2024-12-19 01:47:17] Production.INFO: ProcessCDR(1,14052219,1,1,2) [2024-12-19 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052219', 'tblTempUsageDetail_20' ) start [2024-12-19 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052219', 'tblTempUsageDetail_20' ) end [2024-12-19 01:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:47:21] Production.INFO: ==24743== Releasing lock... [2024-12-19 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:47:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:48:06 [end_date_ymd] => 2024-12-19 01:48:06 [RateCDR] => 1 ) [2024-12-19 01: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` >= '2024-12-18 22:48:06' and `end` < '2024-12-19 01: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 ,'') [2024-12-19 01:48:18] Production.INFO: count ==262 [2024-12-19 01:48:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:48:06 - End Time 2024-12-19 01:48:06 [2024-12-19 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052224', 'tblTempUsageDetail_20' ) start [2024-12-19 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052224', 'tblTempUsageDetail_20' ) end [2024-12-19 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052224', 'tblTempVendorCDR_20' ) start [2024-12-19 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052224', 'tblTempVendorCDR_20' ) end [2024-12-19 01:48:18] Production.INFO: ProcessCDR(1,14052224,1,1,2) [2024-12-19 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052224', 'tblTempUsageDetail_20' ) start [2024-12-19 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052224', 'tblTempUsageDetail_20' ) end [2024-12-19 01:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:48:21] Production.INFO: ==24820== Releasing lock... [2024-12-19 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:48:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:49:05 [end_date_ymd] => 2024-12-19 01:49:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:49:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:49:17] Production.INFO: count ==262 [2024-12-19 01:49:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:49:05 - End Time 2024-12-19 01:49:05 [2024-12-19 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052229', 'tblTempUsageDetail_20' ) start [2024-12-19 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052229', 'tblTempUsageDetail_20' ) end [2024-12-19 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052229', 'tblTempVendorCDR_20' ) start [2024-12-19 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052229', 'tblTempVendorCDR_20' ) end [2024-12-19 01:49:17] Production.INFO: ProcessCDR(1,14052229,1,1,2) [2024-12-19 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052229', 'tblTempUsageDetail_20' ) start [2024-12-19 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052229', 'tblTempUsageDetail_20' ) end [2024-12-19 01:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:49:20] Production.INFO: ==24892== Releasing lock... [2024-12-19 01:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:49:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:50:05 [end_date_ymd] => 2024-12-19 01:50:05 [RateCDR] => 1 ) [2024-12-19 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:50:05' and `end` < '2024-12-19 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:50:18] Production.INFO: count ==268 [2024-12-19 01:50:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:50:05 - End Time 2024-12-19 01:50:05 [2024-12-19 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052235', 'tblTempUsageDetail_20' ) start [2024-12-19 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052235', 'tblTempUsageDetail_20' ) end [2024-12-19 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052235', 'tblTempVendorCDR_20' ) start [2024-12-19 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052235', 'tblTempVendorCDR_20' ) end [2024-12-19 01:50:18] Production.INFO: ProcessCDR(1,14052235,1,1,2) [2024-12-19 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052235', 'tblTempUsageDetail_20' ) start [2024-12-19 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052235', 'tblTempUsageDetail_20' ) end [2024-12-19 01:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:50:22] Production.INFO: ==24971== Releasing lock... [2024-12-19 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:50:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:51:05 [end_date_ymd] => 2024-12-19 01:51:05 [RateCDR] => 1 ) [2024-12-19 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:51:05' and `end` < '2024-12-19 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:51:17] Production.INFO: count ==274 [2024-12-19 01:51:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:51:05 - End Time 2024-12-19 01:51:05 [2024-12-19 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052240', 'tblTempUsageDetail_20' ) start [2024-12-19 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052240', 'tblTempUsageDetail_20' ) end [2024-12-19 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052240', 'tblTempVendorCDR_20' ) start [2024-12-19 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052240', 'tblTempVendorCDR_20' ) end [2024-12-19 01:51:17] Production.INFO: ProcessCDR(1,14052240,1,1,2) [2024-12-19 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052240', 'tblTempUsageDetail_20' ) start [2024-12-19 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052240', 'tblTempUsageDetail_20' ) end [2024-12-19 01:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:51:20] Production.INFO: ==25050== Releasing lock... [2024-12-19 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:51:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:52:05 [end_date_ymd] => 2024-12-19 01:52:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:52:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:52:17] Production.INFO: count ==274 [2024-12-19 01:52:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:52:05 - End Time 2024-12-19 01:52:05 [2024-12-19 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052245', 'tblTempUsageDetail_20' ) start [2024-12-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052245', 'tblTempUsageDetail_20' ) end [2024-12-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052245', 'tblTempVendorCDR_20' ) start [2024-12-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052245', 'tblTempVendorCDR_20' ) end [2024-12-19 01:52:17] Production.INFO: ProcessCDR(1,14052245,1,1,2) [2024-12-19 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052245', 'tblTempUsageDetail_20' ) start [2024-12-19 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052245', 'tblTempUsageDetail_20' ) end [2024-12-19 01:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:52:20] Production.INFO: ==25122== Releasing lock... [2024-12-19 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:52:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:53:05 [end_date_ymd] => 2024-12-19 01:53:05 [RateCDR] => 1 ) [2024-12-19 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:53:05' and `end` < '2024-12-19 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:53:17] Production.INFO: count ==274 [2024-12-19 01:53:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:53:05 - End Time 2024-12-19 01:53:05 [2024-12-19 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052250', 'tblTempUsageDetail_20' ) start [2024-12-19 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052250', 'tblTempUsageDetail_20' ) end [2024-12-19 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052250', 'tblTempVendorCDR_20' ) start [2024-12-19 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052250', 'tblTempVendorCDR_20' ) end [2024-12-19 01:53:17] Production.INFO: ProcessCDR(1,14052250,1,1,2) [2024-12-19 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052250', 'tblTempUsageDetail_20' ) start [2024-12-19 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052250', 'tblTempUsageDetail_20' ) end [2024-12-19 01:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:53:20] Production.INFO: ==25236== Releasing lock... [2024-12-19 01:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:53:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:54:05 [end_date_ymd] => 2024-12-19 01:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:54:17] Production.INFO: count ==274 [2024-12-19 01:54:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:54:05 - End Time 2024-12-19 01:54:05 [2024-12-19 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052255', 'tblTempUsageDetail_20' ) start [2024-12-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052255', 'tblTempUsageDetail_20' ) end [2024-12-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052255', 'tblTempVendorCDR_20' ) start [2024-12-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052255', 'tblTempVendorCDR_20' ) end [2024-12-19 01:54:17] Production.INFO: ProcessCDR(1,14052255,1,1,2) [2024-12-19 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052255', 'tblTempUsageDetail_20' ) start [2024-12-19 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052255', 'tblTempUsageDetail_20' ) end [2024-12-19 01:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:54:20] Production.INFO: ==25313== Releasing lock... [2024-12-19 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:54:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:55:05 [end_date_ymd] => 2024-12-19 01:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:55:17] Production.INFO: count ==274 [2024-12-19 01:55:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:55:05 - End Time 2024-12-19 01:55:05 [2024-12-19 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052260', 'tblTempUsageDetail_20' ) start [2024-12-19 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052260', 'tblTempUsageDetail_20' ) end [2024-12-19 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052260', 'tblTempVendorCDR_20' ) start [2024-12-19 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052260', 'tblTempVendorCDR_20' ) end [2024-12-19 01:55:17] Production.INFO: ProcessCDR(1,14052260,1,1,2) [2024-12-19 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052260', 'tblTempUsageDetail_20' ) start [2024-12-19 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052260', 'tblTempUsageDetail_20' ) end [2024-12-19 01:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:55:20] Production.INFO: ==25390== Releasing lock... [2024-12-19 01:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:55:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:56:04 [end_date_ymd] => 2024-12-19 01:56:04 [RateCDR] => 1 ) [2024-12-19 01:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:56:04' and `end` < '2024-12-19 01:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:56:16] Production.INFO: count ==274 [2024-12-19 01:56:16] Production.ERROR: pbx CDR StartTime 2024-12-18 22:56:04 - End Time 2024-12-19 01:56:04 [2024-12-19 01:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052265', 'tblTempUsageDetail_20' ) start [2024-12-19 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052265', 'tblTempUsageDetail_20' ) end [2024-12-19 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052265', 'tblTempVendorCDR_20' ) start [2024-12-19 01:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052265', 'tblTempVendorCDR_20' ) end [2024-12-19 01:56:16] Production.INFO: ProcessCDR(1,14052265,1,1,2) [2024-12-19 01:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052265', 'tblTempUsageDetail_20' ) start [2024-12-19 01:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052265', 'tblTempUsageDetail_20' ) end [2024-12-19 01:56:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:56:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:56:19] Production.INFO: ==25466== Releasing lock... [2024-12-19 01:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:56:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:57:05 [end_date_ymd] => 2024-12-19 01:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:57:17] Production.INFO: count ==274 [2024-12-19 01:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:57:05 - End Time 2024-12-19 01:57:05 [2024-12-19 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052269', 'tblTempUsageDetail_20' ) start [2024-12-19 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052269', 'tblTempUsageDetail_20' ) end [2024-12-19 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052269', 'tblTempVendorCDR_20' ) start [2024-12-19 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052269', 'tblTempVendorCDR_20' ) end [2024-12-19 01:57:17] Production.INFO: ProcessCDR(1,14052269,1,1,2) [2024-12-19 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052269', 'tblTempUsageDetail_20' ) start [2024-12-19 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052269', 'tblTempUsageDetail_20' ) end [2024-12-19 01:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:57:20] Production.INFO: ==25542== Releasing lock... [2024-12-19 01:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:57:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:58:05 [end_date_ymd] => 2024-12-19 01:58:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 22:58:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 01:58:17] Production.INFO: count ==274 [2024-12-19 01:58:17] Production.ERROR: pbx CDR StartTime 2024-12-18 22:58:05 - End Time 2024-12-19 01:58:05 [2024-12-19 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052275', 'tblTempUsageDetail_20' ) start [2024-12-19 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052275', 'tblTempUsageDetail_20' ) end [2024-12-19 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052275', 'tblTempVendorCDR_20' ) start [2024-12-19 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052275', 'tblTempVendorCDR_20' ) end [2024-12-19 01:58:17] Production.INFO: ProcessCDR(1,14052275,1,1,2) [2024-12-19 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052275', 'tblTempUsageDetail_20' ) start [2024-12-19 01:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052275', 'tblTempUsageDetail_20' ) end [2024-12-19 01:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:58:20] Production.INFO: ==25613== Releasing lock... [2024-12-19 01:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:58:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 22:59:05 [end_date_ymd] => 2024-12-19 01:59:05 [RateCDR] => 1 ) [2024-12-19 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 22:59:05' and `end` < '2024-12-19 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 01:59:18] Production.INFO: count ==274 [2024-12-19 01:59:18] Production.ERROR: pbx CDR StartTime 2024-12-18 22:59:05 - End Time 2024-12-19 01:59:05 [2024-12-19 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052280', 'tblTempUsageDetail_20' ) start [2024-12-19 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052280', 'tblTempUsageDetail_20' ) end [2024-12-19 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052280', 'tblTempVendorCDR_20' ) start [2024-12-19 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052280', 'tblTempVendorCDR_20' ) end [2024-12-19 01:59:18] Production.INFO: ProcessCDR(1,14052280,1,1,2) [2024-12-19 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052280', 'tblTempUsageDetail_20' ) start [2024-12-19 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052280', 'tblTempUsageDetail_20' ) end [2024-12-19 01:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 01:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 01:59:21] Production.INFO: ==25688== Releasing lock... [2024-12-19 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 01:59:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:00:05 [end_date_ymd] => 2024-12-19 02:00:05 [RateCDR] => 1 ) [2024-12-19 02: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` >= '2024-12-18 23:00:05' and `end` < '2024-12-19 02: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 ,'') [2024-12-19 02:00:18] Production.INFO: count ==281 [2024-12-19 02:00:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:00:05 - End Time 2024-12-19 02:00:05 [2024-12-19 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052286', 'tblTempUsageDetail_20' ) start [2024-12-19 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052286', 'tblTempUsageDetail_20' ) end [2024-12-19 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052286', 'tblTempVendorCDR_20' ) start [2024-12-19 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052286', 'tblTempVendorCDR_20' ) end [2024-12-19 02:00:18] Production.INFO: ProcessCDR(1,14052286,1,1,2) [2024-12-19 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052286', 'tblTempUsageDetail_20' ) start [2024-12-19 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052286', 'tblTempUsageDetail_20' ) end [2024-12-19 02:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:00:21] Production.INFO: ==25767== Releasing lock... [2024-12-19 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:00:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:01:05 [end_date_ymd] => 2024-12-19 02:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:01:18] Production.INFO: count ==295 [2024-12-19 02:01:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:01:05 - End Time 2024-12-19 02:01:05 [2024-12-19 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052291', 'tblTempUsageDetail_20' ) start [2024-12-19 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052291', 'tblTempUsageDetail_20' ) end [2024-12-19 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052291', 'tblTempVendorCDR_20' ) start [2024-12-19 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052291', 'tblTempVendorCDR_20' ) end [2024-12-19 02:01:18] Production.INFO: ProcessCDR(1,14052291,1,1,2) [2024-12-19 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052291', 'tblTempUsageDetail_20' ) start [2024-12-19 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052291', 'tblTempUsageDetail_20' ) end [2024-12-19 02:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:01:21] Production.INFO: ==25946== Releasing lock... [2024-12-19 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:01:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:02:04 [end_date_ymd] => 2024-12-19 02:02:04 [RateCDR] => 1 ) [2024-12-19 02:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:02:04' and `end` < '2024-12-19 02:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:02:17] Production.INFO: count ==293 [2024-12-19 02:02:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:02:04 - End Time 2024-12-19 02:02:04 [2024-12-19 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052296', 'tblTempUsageDetail_20' ) start [2024-12-19 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052296', 'tblTempUsageDetail_20' ) end [2024-12-19 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052296', 'tblTempVendorCDR_20' ) start [2024-12-19 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052296', 'tblTempVendorCDR_20' ) end [2024-12-19 02:02:17] Production.INFO: ProcessCDR(1,14052296,1,1,2) [2024-12-19 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052296', 'tblTempUsageDetail_20' ) start [2024-12-19 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052296', 'tblTempUsageDetail_20' ) end [2024-12-19 02:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:02:21] Production.INFO: ==26019== Releasing lock... [2024-12-19 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:02:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:03:05 [end_date_ymd] => 2024-12-19 02:03:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:03:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:03:17] Production.INFO: count ==292 [2024-12-19 02:03:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:03:05 - End Time 2024-12-19 02:03:05 [2024-12-19 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052301', 'tblTempUsageDetail_20' ) start [2024-12-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052301', 'tblTempUsageDetail_20' ) end [2024-12-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052301', 'tblTempVendorCDR_20' ) start [2024-12-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052301', 'tblTempVendorCDR_20' ) end [2024-12-19 02:03:17] Production.INFO: ProcessCDR(1,14052301,1,1,2) [2024-12-19 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052301', 'tblTempUsageDetail_20' ) start [2024-12-19 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052301', 'tblTempUsageDetail_20' ) end [2024-12-19 02:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:03:20] Production.INFO: ==26091== Releasing lock... [2024-12-19 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:03:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:04:05 [end_date_ymd] => 2024-12-19 02:04:05 [RateCDR] => 1 ) [2024-12-19 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:04:05' and `end` < '2024-12-19 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:04:18] Production.INFO: count ==292 [2024-12-19 02:04:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:04:05 - End Time 2024-12-19 02:04:05 [2024-12-19 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052306', 'tblTempUsageDetail_20' ) start [2024-12-19 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052306', 'tblTempUsageDetail_20' ) end [2024-12-19 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052306', 'tblTempVendorCDR_20' ) start [2024-12-19 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052306', 'tblTempVendorCDR_20' ) end [2024-12-19 02:04:18] Production.INFO: ProcessCDR(1,14052306,1,1,2) [2024-12-19 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052306', 'tblTempUsageDetail_20' ) start [2024-12-19 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052306', 'tblTempUsageDetail_20' ) end [2024-12-19 02:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:04:21] Production.INFO: ==26161== Releasing lock... [2024-12-19 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:04:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:05:05 [end_date_ymd] => 2024-12-19 02:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:05:17] Production.INFO: count ==295 [2024-12-19 02:05:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:05:05 - End Time 2024-12-19 02:05:05 [2024-12-19 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052311', 'tblTempUsageDetail_20' ) start [2024-12-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052311', 'tblTempUsageDetail_20' ) end [2024-12-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052311', 'tblTempVendorCDR_20' ) start [2024-12-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052311', 'tblTempVendorCDR_20' ) end [2024-12-19 02:05:17] Production.INFO: ProcessCDR(1,14052311,1,1,2) [2024-12-19 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052311', 'tblTempUsageDetail_20' ) start [2024-12-19 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052311', 'tblTempUsageDetail_20' ) end [2024-12-19 02:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:05:20] Production.INFO: ==26235== Releasing lock... [2024-12-19 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:05:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:06:04 [end_date_ymd] => 2024-12-19 02:06:04 [RateCDR] => 1 ) [2024-12-19 02:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:06:04' and `end` < '2024-12-19 02:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:06:16] Production.INFO: count ==295 [2024-12-19 02:06:16] Production.ERROR: pbx CDR StartTime 2024-12-18 23:06:04 - End Time 2024-12-19 02:06:04 [2024-12-19 02:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052316', 'tblTempUsageDetail_20' ) start [2024-12-19 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052316', 'tblTempUsageDetail_20' ) end [2024-12-19 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052316', 'tblTempVendorCDR_20' ) start [2024-12-19 02:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052316', 'tblTempVendorCDR_20' ) end [2024-12-19 02:06:16] Production.INFO: ProcessCDR(1,14052316,1,1,2) [2024-12-19 02:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052316', 'tblTempUsageDetail_20' ) start [2024-12-19 02:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052316', 'tblTempUsageDetail_20' ) end [2024-12-19 02:06:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:06:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:06:19] Production.INFO: ==26307== Releasing lock... [2024-12-19 02:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:06:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:07:05 [end_date_ymd] => 2024-12-19 02:07:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:07:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:07:18] Production.INFO: count ==295 [2024-12-19 02:07:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:07:05 - End Time 2024-12-19 02:07:05 [2024-12-19 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052321', 'tblTempUsageDetail_20' ) start [2024-12-19 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052321', 'tblTempUsageDetail_20' ) end [2024-12-19 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052321', 'tblTempVendorCDR_20' ) start [2024-12-19 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052321', 'tblTempVendorCDR_20' ) end [2024-12-19 02:07:18] Production.INFO: ProcessCDR(1,14052321,1,1,2) [2024-12-19 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052321', 'tblTempUsageDetail_20' ) start [2024-12-19 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052321', 'tblTempUsageDetail_20' ) end [2024-12-19 02:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:07:21] Production.INFO: ==26378== Releasing lock... [2024-12-19 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:07:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:08:04 [end_date_ymd] => 2024-12-19 02:08:04 [RateCDR] => 1 ) [2024-12-19 02:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:08:04' and `end` < '2024-12-19 02:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:08:17] Production.INFO: count ==294 [2024-12-19 02:08:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:08:04 - End Time 2024-12-19 02:08:04 [2024-12-19 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052326', 'tblTempUsageDetail_20' ) start [2024-12-19 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052326', 'tblTempUsageDetail_20' ) end [2024-12-19 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052326', 'tblTempVendorCDR_20' ) start [2024-12-19 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052326', 'tblTempVendorCDR_20' ) end [2024-12-19 02:08:17] Production.INFO: ProcessCDR(1,14052326,1,1,2) [2024-12-19 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052326', 'tblTempUsageDetail_20' ) start [2024-12-19 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052326', 'tblTempUsageDetail_20' ) end [2024-12-19 02:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:08:20] Production.INFO: ==26453== Releasing lock... [2024-12-19 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:08:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:09:05 [end_date_ymd] => 2024-12-19 02:09:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:09:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:09:17] Production.INFO: count ==294 [2024-12-19 02:09:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:09:05 - End Time 2024-12-19 02:09:05 [2024-12-19 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052331', 'tblTempUsageDetail_20' ) start [2024-12-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052331', 'tblTempUsageDetail_20' ) end [2024-12-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052331', 'tblTempVendorCDR_20' ) start [2024-12-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052331', 'tblTempVendorCDR_20' ) end [2024-12-19 02:09:17] Production.INFO: ProcessCDR(1,14052331,1,1,2) [2024-12-19 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052331', 'tblTempUsageDetail_20' ) start [2024-12-19 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052331', 'tblTempUsageDetail_20' ) end [2024-12-19 02:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:09:20] Production.INFO: ==26565== Releasing lock... [2024-12-19 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:09:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:10:06 [end_date_ymd] => 2024-12-19 02:10:06 [RateCDR] => 1 ) [2024-12-19 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:10:06' and `end` < '2024-12-19 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:10:18] Production.INFO: count ==302 [2024-12-19 02:10:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:10:06 - End Time 2024-12-19 02:10:06 [2024-12-19 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052337', 'tblTempUsageDetail_20' ) start [2024-12-19 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052337', 'tblTempUsageDetail_20' ) end [2024-12-19 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052337', 'tblTempVendorCDR_20' ) start [2024-12-19 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052337', 'tblTempVendorCDR_20' ) end [2024-12-19 02:10:18] Production.INFO: ProcessCDR(1,14052337,1,1,2) [2024-12-19 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052337', 'tblTempUsageDetail_20' ) start [2024-12-19 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052337', 'tblTempUsageDetail_20' ) end [2024-12-19 02:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:10:21] Production.INFO: ==26640== Releasing lock... [2024-12-19 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:10:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:11:04 [end_date_ymd] => 2024-12-19 02:11:04 [RateCDR] => 1 ) [2024-12-19 02:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:11:04' and `end` < '2024-12-19 02:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:11:18] Production.INFO: count ==307 [2024-12-19 02:11:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:11:04 - End Time 2024-12-19 02:11:04 [2024-12-19 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052342', 'tblTempUsageDetail_20' ) start [2024-12-19 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052342', 'tblTempUsageDetail_20' ) end [2024-12-19 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052342', 'tblTempVendorCDR_20' ) start [2024-12-19 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052342', 'tblTempVendorCDR_20' ) end [2024-12-19 02:11:18] Production.INFO: ProcessCDR(1,14052342,1,1,2) [2024-12-19 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052342', 'tblTempUsageDetail_20' ) start [2024-12-19 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052342', 'tblTempUsageDetail_20' ) end [2024-12-19 02:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:11:21] Production.INFO: ==26713== Releasing lock... [2024-12-19 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:11:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:12:05 [end_date_ymd] => 2024-12-19 02:12:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:12:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:12:17] Production.INFO: count ==303 [2024-12-19 02:12:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:12:05 - End Time 2024-12-19 02:12:05 [2024-12-19 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052347', 'tblTempUsageDetail_20' ) start [2024-12-19 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052347', 'tblTempUsageDetail_20' ) end [2024-12-19 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052347', 'tblTempVendorCDR_20' ) start [2024-12-19 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052347', 'tblTempVendorCDR_20' ) end [2024-12-19 02:12:17] Production.INFO: ProcessCDR(1,14052347,1,1,2) [2024-12-19 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052347', 'tblTempUsageDetail_20' ) start [2024-12-19 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052347', 'tblTempUsageDetail_20' ) end [2024-12-19 02:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:12:20] Production.INFO: ==26785== Releasing lock... [2024-12-19 02:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:12:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:13:04 [end_date_ymd] => 2024-12-19 02:13:04 [RateCDR] => 1 ) [2024-12-19 02:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:13:04' and `end` < '2024-12-19 02:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:13:17] Production.INFO: count ==301 [2024-12-19 02:13:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:13:04 - End Time 2024-12-19 02:13:04 [2024-12-19 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052352', 'tblTempUsageDetail_20' ) start [2024-12-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052352', 'tblTempUsageDetail_20' ) end [2024-12-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052352', 'tblTempVendorCDR_20' ) start [2024-12-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052352', 'tblTempVendorCDR_20' ) end [2024-12-19 02:13:17] Production.INFO: ProcessCDR(1,14052352,1,1,2) [2024-12-19 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052352', 'tblTempUsageDetail_20' ) start [2024-12-19 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052352', 'tblTempUsageDetail_20' ) end [2024-12-19 02:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:13:20] Production.INFO: ==26857== Releasing lock... [2024-12-19 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:13:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:14:05 [end_date_ymd] => 2024-12-19 02:14:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:14:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:14:18] Production.INFO: count ==301 [2024-12-19 02:14:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:14:05 - End Time 2024-12-19 02:14:05 [2024-12-19 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052357', 'tblTempUsageDetail_20' ) start [2024-12-19 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052357', 'tblTempUsageDetail_20' ) end [2024-12-19 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052357', 'tblTempVendorCDR_20' ) start [2024-12-19 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052357', 'tblTempVendorCDR_20' ) end [2024-12-19 02:14:18] Production.INFO: ProcessCDR(1,14052357,1,1,2) [2024-12-19 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052357', 'tblTempUsageDetail_20' ) start [2024-12-19 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052357', 'tblTempUsageDetail_20' ) end [2024-12-19 02:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:14:21] Production.INFO: ==26930== Releasing lock... [2024-12-19 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:14:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:15:05 [end_date_ymd] => 2024-12-19 02:15:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:15:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:15:17] Production.INFO: count ==301 [2024-12-19 02:15:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:15:05 - End Time 2024-12-19 02:15:05 [2024-12-19 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052359', 'tblTempUsageDetail_20' ) start [2024-12-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052359', 'tblTempUsageDetail_20' ) end [2024-12-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052359', 'tblTempVendorCDR_20' ) start [2024-12-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052359', 'tblTempVendorCDR_20' ) end [2024-12-19 02:15:17] Production.INFO: ProcessCDR(1,14052359,1,1,2) [2024-12-19 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052359', 'tblTempUsageDetail_20' ) start [2024-12-19 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052359', 'tblTempUsageDetail_20' ) end [2024-12-19 02:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:15:20] Production.INFO: ==27005== Releasing lock... [2024-12-19 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:15:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:16:04 [end_date_ymd] => 2024-12-19 02:16:04 [RateCDR] => 1 ) [2024-12-19 02: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` >= '2024-12-18 23:16:04' and `end` < '2024-12-19 02: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 ,'') [2024-12-19 02:16:17] Production.INFO: count ==301 [2024-12-19 02:16:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:16:04 - End Time 2024-12-19 02:16:04 [2024-12-19 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052367', 'tblTempUsageDetail_20' ) start [2024-12-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052367', 'tblTempUsageDetail_20' ) end [2024-12-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052367', 'tblTempVendorCDR_20' ) start [2024-12-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052367', 'tblTempVendorCDR_20' ) end [2024-12-19 02:16:17] Production.INFO: ProcessCDR(1,14052367,1,1,2) [2024-12-19 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052367', 'tblTempUsageDetail_20' ) start [2024-12-19 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052367', 'tblTempUsageDetail_20' ) end [2024-12-19 02:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:16:20] Production.INFO: ==27076== Releasing lock... [2024-12-19 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:16:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:17:05 [end_date_ymd] => 2024-12-19 02:17:05 [RateCDR] => 1 ) [2024-12-19 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:17:05' and `end` < '2024-12-19 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:17:17] Production.INFO: count ==301 [2024-12-19 02:17:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:17:05 - End Time 2024-12-19 02:17:05 [2024-12-19 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052372', 'tblTempUsageDetail_20' ) start [2024-12-19 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052372', 'tblTempUsageDetail_20' ) end [2024-12-19 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052372', 'tblTempVendorCDR_20' ) start [2024-12-19 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052372', 'tblTempVendorCDR_20' ) end [2024-12-19 02:17:17] Production.INFO: ProcessCDR(1,14052372,1,1,2) [2024-12-19 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052372', 'tblTempUsageDetail_20' ) start [2024-12-19 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052372', 'tblTempUsageDetail_20' ) end [2024-12-19 02:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:17:20] Production.INFO: ==27150== Releasing lock... [2024-12-19 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:17:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:18:04 [end_date_ymd] => 2024-12-19 02:18:04 [RateCDR] => 1 ) [2024-12-19 02: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` >= '2024-12-18 23:18:04' and `end` < '2024-12-19 02: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 ,'') [2024-12-19 02:18:16] Production.INFO: count ==301 [2024-12-19 02:18:16] Production.ERROR: pbx CDR StartTime 2024-12-18 23:18:04 - End Time 2024-12-19 02:18:04 [2024-12-19 02:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052377', 'tblTempUsageDetail_20' ) start [2024-12-19 02:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052377', 'tblTempUsageDetail_20' ) end [2024-12-19 02:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052377', 'tblTempVendorCDR_20' ) start [2024-12-19 02:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052377', 'tblTempVendorCDR_20' ) end [2024-12-19 02:18:16] Production.INFO: ProcessCDR(1,14052377,1,1,2) [2024-12-19 02:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052377', 'tblTempUsageDetail_20' ) start [2024-12-19 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052377', 'tblTempUsageDetail_20' ) end [2024-12-19 02:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:18:20] Production.INFO: ==27220== Releasing lock... [2024-12-19 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:18:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:19:05 [end_date_ymd] => 2024-12-19 02:19:05 [RateCDR] => 1 ) [2024-12-19 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:19:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:19:17] Production.INFO: count ==301 [2024-12-19 02:19:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:19:05 - End Time 2024-12-19 02:19:05 [2024-12-19 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052382', 'tblTempUsageDetail_20' ) start [2024-12-19 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052382', 'tblTempUsageDetail_20' ) end [2024-12-19 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052382', 'tblTempVendorCDR_20' ) start [2024-12-19 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052382', 'tblTempVendorCDR_20' ) end [2024-12-19 02:19:17] Production.INFO: ProcessCDR(1,14052382,1,1,2) [2024-12-19 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052382', 'tblTempUsageDetail_20' ) start [2024-12-19 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052382', 'tblTempUsageDetail_20' ) end [2024-12-19 02:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:19:21] Production.INFO: ==27293== Releasing lock... [2024-12-19 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:19:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:20:05 [end_date_ymd] => 2024-12-19 02:20:05 [RateCDR] => 1 ) [2024-12-19 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:20:05' and `end` < '2024-12-19 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:20:18] Production.INFO: count ==307 [2024-12-19 02:20:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:20:05 - End Time 2024-12-19 02:20:05 [2024-12-19 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052388', 'tblTempUsageDetail_20' ) start [2024-12-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052388', 'tblTempUsageDetail_20' ) end [2024-12-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052388', 'tblTempVendorCDR_20' ) start [2024-12-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052388', 'tblTempVendorCDR_20' ) end [2024-12-19 02:20:18] Production.INFO: ProcessCDR(1,14052388,1,1,2) [2024-12-19 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052388', 'tblTempUsageDetail_20' ) start [2024-12-19 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052388', 'tblTempUsageDetail_20' ) end [2024-12-19 02:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:20:21] Production.INFO: ==27369== Releasing lock... [2024-12-19 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:20:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:21:04 [end_date_ymd] => 2024-12-19 02:21:04 [RateCDR] => 1 ) [2024-12-19 02: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` >= '2024-12-18 23:21:04' and `end` < '2024-12-19 02: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 ,'') [2024-12-19 02:21:16] Production.INFO: count ==307 [2024-12-19 02:21:16] Production.ERROR: pbx CDR StartTime 2024-12-18 23:21:04 - End Time 2024-12-19 02:21:04 [2024-12-19 02:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052393', 'tblTempUsageDetail_20' ) start [2024-12-19 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052393', 'tblTempUsageDetail_20' ) end [2024-12-19 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052393', 'tblTempVendorCDR_20' ) start [2024-12-19 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052393', 'tblTempVendorCDR_20' ) end [2024-12-19 02:21:16] Production.INFO: ProcessCDR(1,14052393,1,1,2) [2024-12-19 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052393', 'tblTempUsageDetail_20' ) start [2024-12-19 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052393', 'tblTempUsageDetail_20' ) end [2024-12-19 02:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:21:20] Production.INFO: ==27441== Releasing lock... [2024-12-19 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:21:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:22:05 [end_date_ymd] => 2024-12-19 02:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:22:17] Production.INFO: count ==307 [2024-12-19 02:22:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:22:05 - End Time 2024-12-19 02:22:05 [2024-12-19 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052398', 'tblTempUsageDetail_20' ) start [2024-12-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052398', 'tblTempUsageDetail_20' ) end [2024-12-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052398', 'tblTempVendorCDR_20' ) start [2024-12-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052398', 'tblTempVendorCDR_20' ) end [2024-12-19 02:22:17] Production.INFO: ProcessCDR(1,14052398,1,1,2) [2024-12-19 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052398', 'tblTempUsageDetail_20' ) start [2024-12-19 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052398', 'tblTempUsageDetail_20' ) end [2024-12-19 02:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:22:20] Production.INFO: ==27517== Releasing lock... [2024-12-19 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:22:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:23:04 [end_date_ymd] => 2024-12-19 02:23:04 [RateCDR] => 1 ) [2024-12-19 02:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:23:04' and `end` < '2024-12-19 02:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:23:16] Production.INFO: count ==307 [2024-12-19 02:23:16] Production.ERROR: pbx CDR StartTime 2024-12-18 23:23:04 - End Time 2024-12-19 02:23:04 [2024-12-19 02:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052403', 'tblTempUsageDetail_20' ) start [2024-12-19 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052403', 'tblTempUsageDetail_20' ) end [2024-12-19 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052403', 'tblTempVendorCDR_20' ) start [2024-12-19 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052403', 'tblTempVendorCDR_20' ) end [2024-12-19 02:23:16] Production.INFO: ProcessCDR(1,14052403,1,1,2) [2024-12-19 02:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052403', 'tblTempUsageDetail_20' ) start [2024-12-19 02:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052403', 'tblTempUsageDetail_20' ) end [2024-12-19 02:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:23:19] Production.INFO: ==27587== Releasing lock... [2024-12-19 02:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:23:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:24:05 [end_date_ymd] => 2024-12-19 02:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:24:19] Production.INFO: count ==304 [2024-12-19 02:24:19] Production.ERROR: pbx CDR StartTime 2024-12-18 23:24:05 - End Time 2024-12-19 02:24:05 [2024-12-19 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052408', 'tblTempUsageDetail_20' ) start [2024-12-19 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052408', 'tblTempUsageDetail_20' ) end [2024-12-19 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052408', 'tblTempVendorCDR_20' ) start [2024-12-19 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052408', 'tblTempVendorCDR_20' ) end [2024-12-19 02:24:19] Production.INFO: ProcessCDR(1,14052408,1,1,2) [2024-12-19 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052408', 'tblTempUsageDetail_20' ) start [2024-12-19 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052408', 'tblTempUsageDetail_20' ) end [2024-12-19 02:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:24:22] Production.INFO: ==27702== Releasing lock... [2024-12-19 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:24:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:25:04 [end_date_ymd] => 2024-12-19 02:25:04 [RateCDR] => 1 ) [2024-12-19 02:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:25:04' and `end` < '2024-12-19 02:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:25:16] Production.INFO: count ==303 [2024-12-19 02:25:16] Production.ERROR: pbx CDR StartTime 2024-12-18 23:25:04 - End Time 2024-12-19 02:25:04 [2024-12-19 02:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052413', 'tblTempUsageDetail_20' ) start [2024-12-19 02:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052413', 'tblTempUsageDetail_20' ) end [2024-12-19 02:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052413', 'tblTempVendorCDR_20' ) start [2024-12-19 02:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052413', 'tblTempVendorCDR_20' ) end [2024-12-19 02:25:16] Production.INFO: ProcessCDR(1,14052413,1,1,2) [2024-12-19 02:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052413', 'tblTempUsageDetail_20' ) start [2024-12-19 02:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052413', 'tblTempUsageDetail_20' ) end [2024-12-19 02:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:25:19] Production.INFO: ==27774== Releasing lock... [2024-12-19 02:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:25:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:26:05 [end_date_ymd] => 2024-12-19 02:26:05 [RateCDR] => 1 ) [2024-12-19 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:26:05' and `end` < '2024-12-19 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:26:17] Production.INFO: count ==303 [2024-12-19 02:26:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:26:05 - End Time 2024-12-19 02:26:05 [2024-12-19 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052418', 'tblTempUsageDetail_20' ) start [2024-12-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052418', 'tblTempUsageDetail_20' ) end [2024-12-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052418', 'tblTempVendorCDR_20' ) start [2024-12-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052418', 'tblTempVendorCDR_20' ) end [2024-12-19 02:26:17] Production.INFO: ProcessCDR(1,14052418,1,1,2) [2024-12-19 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052418', 'tblTempUsageDetail_20' ) start [2024-12-19 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052418', 'tblTempUsageDetail_20' ) end [2024-12-19 02:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:26:20] Production.INFO: ==27847== Releasing lock... [2024-12-19 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:26:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:27:05 [end_date_ymd] => 2024-12-19 02:27:05 [RateCDR] => 1 ) [2024-12-19 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:27:05' and `end` < '2024-12-19 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:27:18] Production.INFO: count ==303 [2024-12-19 02:27:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:27:05 - End Time 2024-12-19 02:27:05 [2024-12-19 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052423', 'tblTempUsageDetail_20' ) start [2024-12-19 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052423', 'tblTempUsageDetail_20' ) end [2024-12-19 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052423', 'tblTempVendorCDR_20' ) start [2024-12-19 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052423', 'tblTempVendorCDR_20' ) end [2024-12-19 02:27:18] Production.INFO: ProcessCDR(1,14052423,1,1,2) [2024-12-19 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052423', 'tblTempUsageDetail_20' ) start [2024-12-19 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052423', 'tblTempUsageDetail_20' ) end [2024-12-19 02:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:27:21] Production.INFO: ==27922== Releasing lock... [2024-12-19 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:27:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:28:05 [end_date_ymd] => 2024-12-19 02:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:28:17] Production.INFO: count ==303 [2024-12-19 02:28:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:28:05 - End Time 2024-12-19 02:28:05 [2024-12-19 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052428', 'tblTempUsageDetail_20' ) start [2024-12-19 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052428', 'tblTempUsageDetail_20' ) end [2024-12-19 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052428', 'tblTempVendorCDR_20' ) start [2024-12-19 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052428', 'tblTempVendorCDR_20' ) end [2024-12-19 02:28:17] Production.INFO: ProcessCDR(1,14052428,1,1,2) [2024-12-19 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052428', 'tblTempUsageDetail_20' ) start [2024-12-19 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052428', 'tblTempUsageDetail_20' ) end [2024-12-19 02:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:28:20] Production.INFO: ==27997== Releasing lock... [2024-12-19 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:28:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:29:05 [end_date_ymd] => 2024-12-19 02:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:29:17] Production.INFO: count ==303 [2024-12-19 02:29:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:29:05 - End Time 2024-12-19 02:29:05 [2024-12-19 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052433', 'tblTempUsageDetail_20' ) start [2024-12-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052433', 'tblTempUsageDetail_20' ) end [2024-12-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052433', 'tblTempVendorCDR_20' ) start [2024-12-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052433', 'tblTempVendorCDR_20' ) end [2024-12-19 02:29:17] Production.INFO: ProcessCDR(1,14052433,1,1,2) [2024-12-19 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052433', 'tblTempUsageDetail_20' ) start [2024-12-19 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052433', 'tblTempUsageDetail_20' ) end [2024-12-19 02:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:29:20] Production.INFO: ==28083== Releasing lock... [2024-12-19 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:29:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:30:05 [end_date_ymd] => 2024-12-19 02:30:05 [RateCDR] => 1 ) [2024-12-19 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:30:05' and `end` < '2024-12-19 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:30:17] Production.INFO: count ==307 [2024-12-19 02:30:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:30:05 - End Time 2024-12-19 02:30:05 [2024-12-19 02:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052439', 'tblTempUsageDetail_20' ) start [2024-12-19 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052439', 'tblTempUsageDetail_20' ) end [2024-12-19 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052439', 'tblTempVendorCDR_20' ) start [2024-12-19 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052439', 'tblTempVendorCDR_20' ) end [2024-12-19 02:30:17] Production.INFO: ProcessCDR(1,14052439,1,1,2) [2024-12-19 02:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052439', 'tblTempUsageDetail_20' ) start [2024-12-19 02:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052439', 'tblTempUsageDetail_20' ) end [2024-12-19 02:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:30:20] Production.INFO: ==28170== Releasing lock... [2024-12-19 02:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:30:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:31:05 [end_date_ymd] => 2024-12-19 02:31:05 [RateCDR] => 1 ) [2024-12-19 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:31:05' and `end` < '2024-12-19 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:31:18] Production.INFO: count ==308 [2024-12-19 02:31:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:31:05 - End Time 2024-12-19 02:31:05 [2024-12-19 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052444', 'tblTempUsageDetail_20' ) start [2024-12-19 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052444', 'tblTempUsageDetail_20' ) end [2024-12-19 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052444', 'tblTempVendorCDR_20' ) start [2024-12-19 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052444', 'tblTempVendorCDR_20' ) end [2024-12-19 02:31:18] Production.INFO: ProcessCDR(1,14052444,1,1,2) [2024-12-19 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052444', 'tblTempUsageDetail_20' ) start [2024-12-19 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052444', 'tblTempUsageDetail_20' ) end [2024-12-19 02:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:31:21] Production.INFO: ==28260== Releasing lock... [2024-12-19 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:31:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:32:04 [end_date_ymd] => 2024-12-19 02:32:04 [RateCDR] => 1 ) [2024-12-19 02:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:32:04' and `end` < '2024-12-19 02:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:32:16] Production.INFO: count ==308 [2024-12-19 02:32:16] Production.ERROR: pbx CDR StartTime 2024-12-18 23:32:04 - End Time 2024-12-19 02:32:04 [2024-12-19 02:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052449', 'tblTempUsageDetail_20' ) start [2024-12-19 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052449', 'tblTempUsageDetail_20' ) end [2024-12-19 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052449', 'tblTempVendorCDR_20' ) start [2024-12-19 02:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052449', 'tblTempVendorCDR_20' ) end [2024-12-19 02:32:16] Production.INFO: ProcessCDR(1,14052449,1,1,2) [2024-12-19 02:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:32:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052449', 'tblTempUsageDetail_20' ) start [2024-12-19 02:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052449', 'tblTempUsageDetail_20' ) end [2024-12-19 02:32:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:32:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:32:19] Production.INFO: ==28344== Releasing lock... [2024-12-19 02:32:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:32:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:33:05 [end_date_ymd] => 2024-12-19 02:33:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:33:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:33:18] Production.INFO: count ==308 [2024-12-19 02:33:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:33:05 - End Time 2024-12-19 02:33:05 [2024-12-19 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052454', 'tblTempUsageDetail_20' ) start [2024-12-19 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052454', 'tblTempUsageDetail_20' ) end [2024-12-19 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052454', 'tblTempVendorCDR_20' ) start [2024-12-19 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052454', 'tblTempVendorCDR_20' ) end [2024-12-19 02:33:18] Production.INFO: ProcessCDR(1,14052454,1,1,2) [2024-12-19 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052454', 'tblTempUsageDetail_20' ) start [2024-12-19 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052454', 'tblTempUsageDetail_20' ) end [2024-12-19 02:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:33:21] Production.INFO: ==28430== Releasing lock... [2024-12-19 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:33:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:34:05 [end_date_ymd] => 2024-12-19 02:34:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:34:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:34:18] Production.INFO: count ==308 [2024-12-19 02:34:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:34:05 - End Time 2024-12-19 02:34:05 [2024-12-19 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052459', 'tblTempUsageDetail_20' ) start [2024-12-19 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052459', 'tblTempUsageDetail_20' ) end [2024-12-19 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052459', 'tblTempVendorCDR_20' ) start [2024-12-19 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052459', 'tblTempVendorCDR_20' ) end [2024-12-19 02:34:18] Production.INFO: ProcessCDR(1,14052459,1,1,2) [2024-12-19 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052459', 'tblTempUsageDetail_20' ) start [2024-12-19 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052459', 'tblTempUsageDetail_20' ) end [2024-12-19 02:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:34:22] Production.INFO: ==28516== Releasing lock... [2024-12-19 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:34:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:35:04 [end_date_ymd] => 2024-12-19 02:35:04 [RateCDR] => 1 ) [2024-12-19 02: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` >= '2024-12-18 23:35:04' and `end` < '2024-12-19 02: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 ,'') [2024-12-19 02:35:18] Production.INFO: count ==308 [2024-12-19 02:35:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:35:04 - End Time 2024-12-19 02:35:04 [2024-12-19 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052464', 'tblTempUsageDetail_20' ) start [2024-12-19 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052464', 'tblTempUsageDetail_20' ) end [2024-12-19 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052464', 'tblTempVendorCDR_20' ) start [2024-12-19 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052464', 'tblTempVendorCDR_20' ) end [2024-12-19 02:35:18] Production.INFO: ProcessCDR(1,14052464,1,1,2) [2024-12-19 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052464', 'tblTempUsageDetail_20' ) start [2024-12-19 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052464', 'tblTempUsageDetail_20' ) end [2024-12-19 02:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:35:21] Production.INFO: ==28602== Releasing lock... [2024-12-19 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:35:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:36:05 [end_date_ymd] => 2024-12-19 02:36:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:36:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:36:17] Production.INFO: count ==308 [2024-12-19 02:36:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:36:05 - End Time 2024-12-19 02:36:05 [2024-12-19 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052469', 'tblTempUsageDetail_20' ) start [2024-12-19 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052469', 'tblTempUsageDetail_20' ) end [2024-12-19 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052469', 'tblTempVendorCDR_20' ) start [2024-12-19 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052469', 'tblTempVendorCDR_20' ) end [2024-12-19 02:36:17] Production.INFO: ProcessCDR(1,14052469,1,1,2) [2024-12-19 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052469', 'tblTempUsageDetail_20' ) start [2024-12-19 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052469', 'tblTempUsageDetail_20' ) end [2024-12-19 02:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:36:20] Production.INFO: ==28693== Releasing lock... [2024-12-19 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:36:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:37:04 [end_date_ymd] => 2024-12-19 02:37:04 [RateCDR] => 1 ) [2024-12-19 02: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` >= '2024-12-18 23:37:04' and `end` < '2024-12-19 02: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 ,'') [2024-12-19 02:37:16] Production.INFO: count ==308 [2024-12-19 02:37:16] Production.ERROR: pbx CDR StartTime 2024-12-18 23:37:04 - End Time 2024-12-19 02:37:04 [2024-12-19 02:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052474', 'tblTempUsageDetail_20' ) start [2024-12-19 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052474', 'tblTempUsageDetail_20' ) end [2024-12-19 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052474', 'tblTempVendorCDR_20' ) start [2024-12-19 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052474', 'tblTempVendorCDR_20' ) end [2024-12-19 02:37:16] Production.INFO: ProcessCDR(1,14052474,1,1,2) [2024-12-19 02:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052474', 'tblTempUsageDetail_20' ) start [2024-12-19 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052474', 'tblTempUsageDetail_20' ) end [2024-12-19 02:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:37:20] Production.INFO: ==28779== Releasing lock... [2024-12-19 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:37:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:38:05 [end_date_ymd] => 2024-12-19 02:38:05 [RateCDR] => 1 ) [2024-12-19 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:38:05' and `end` < '2024-12-19 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:38:18] Production.INFO: count ==308 [2024-12-19 02:38:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:38:05 - End Time 2024-12-19 02:38:05 [2024-12-19 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052479', 'tblTempUsageDetail_20' ) start [2024-12-19 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052479', 'tblTempUsageDetail_20' ) end [2024-12-19 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052479', 'tblTempVendorCDR_20' ) start [2024-12-19 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052479', 'tblTempVendorCDR_20' ) end [2024-12-19 02:38:18] Production.INFO: ProcessCDR(1,14052479,1,1,2) [2024-12-19 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052479', 'tblTempUsageDetail_20' ) start [2024-12-19 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052479', 'tblTempUsageDetail_20' ) end [2024-12-19 02:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:38:21] Production.INFO: ==28869== Releasing lock... [2024-12-19 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:38:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:39:05 [end_date_ymd] => 2024-12-19 02:39:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:39:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:39:17] Production.INFO: count ==308 [2024-12-19 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:39:05 - End Time 2024-12-19 02:39:05 [2024-12-19 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052484', 'tblTempUsageDetail_20' ) start [2024-12-19 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052484', 'tblTempUsageDetail_20' ) end [2024-12-19 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052484', 'tblTempVendorCDR_20' ) start [2024-12-19 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052484', 'tblTempVendorCDR_20' ) end [2024-12-19 02:39:17] Production.INFO: ProcessCDR(1,14052484,1,1,2) [2024-12-19 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052484', 'tblTempUsageDetail_20' ) start [2024-12-19 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052484', 'tblTempUsageDetail_20' ) end [2024-12-19 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:39:20] Production.INFO: ==28964== Releasing lock... [2024-12-19 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:39:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:40:05 [end_date_ymd] => 2024-12-19 02:40:05 [RateCDR] => 1 ) [2024-12-19 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:40:05' and `end` < '2024-12-19 02:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:40:17] Production.INFO: count ==310 [2024-12-19 02:40:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:40:05 - End Time 2024-12-19 02:40:05 [2024-12-19 02:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052489', 'tblTempUsageDetail_20' ) start [2024-12-19 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052489', 'tblTempUsageDetail_20' ) end [2024-12-19 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052489', 'tblTempVendorCDR_20' ) start [2024-12-19 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052489', 'tblTempVendorCDR_20' ) end [2024-12-19 02:40:17] Production.INFO: ProcessCDR(1,14052489,1,1,2) [2024-12-19 02:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052489', 'tblTempUsageDetail_20' ) start [2024-12-19 02:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052489', 'tblTempUsageDetail_20' ) end [2024-12-19 02:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:40:20] Production.INFO: ==29093== Releasing lock... [2024-12-19 02:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:40:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:41:04 [end_date_ymd] => 2024-12-19 02:41:04 [RateCDR] => 1 ) [2024-12-19 02:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:41:04' and `end` < '2024-12-19 02:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:41:17] Production.INFO: count ==311 [2024-12-19 02:41:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:41:04 - End Time 2024-12-19 02:41:04 [2024-12-19 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052495', 'tblTempUsageDetail_20' ) start [2024-12-19 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052495', 'tblTempUsageDetail_20' ) end [2024-12-19 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052495', 'tblTempVendorCDR_20' ) start [2024-12-19 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052495', 'tblTempVendorCDR_20' ) end [2024-12-19 02:41:17] Production.INFO: ProcessCDR(1,14052495,1,1,2) [2024-12-19 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052495', 'tblTempUsageDetail_20' ) start [2024-12-19 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052495', 'tblTempUsageDetail_20' ) end [2024-12-19 02:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:41:20] Production.INFO: ==29189== Releasing lock... [2024-12-19 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:41:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:42:05 [end_date_ymd] => 2024-12-19 02:42:05 [RateCDR] => 1 ) [2024-12-19 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:42:05' and `end` < '2024-12-19 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:42:17] Production.INFO: count ==311 [2024-12-19 02:42:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:42:05 - End Time 2024-12-19 02:42:05 [2024-12-19 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052500', 'tblTempUsageDetail_20' ) start [2024-12-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052500', 'tblTempUsageDetail_20' ) end [2024-12-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052500', 'tblTempVendorCDR_20' ) start [2024-12-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052500', 'tblTempVendorCDR_20' ) end [2024-12-19 02:42:17] Production.INFO: ProcessCDR(1,14052500,1,1,2) [2024-12-19 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052500', 'tblTempUsageDetail_20' ) start [2024-12-19 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052500', 'tblTempUsageDetail_20' ) end [2024-12-19 02:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:42:20] Production.INFO: ==29277== Releasing lock... [2024-12-19 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:42:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:43:05 [end_date_ymd] => 2024-12-19 02:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:43:18] Production.INFO: count ==307 [2024-12-19 02:43:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:43:05 - End Time 2024-12-19 02:43:05 [2024-12-19 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052505', 'tblTempUsageDetail_20' ) start [2024-12-19 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052505', 'tblTempUsageDetail_20' ) end [2024-12-19 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052505', 'tblTempVendorCDR_20' ) start [2024-12-19 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052505', 'tblTempVendorCDR_20' ) end [2024-12-19 02:43:18] Production.INFO: ProcessCDR(1,14052505,1,1,2) [2024-12-19 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052505', 'tblTempUsageDetail_20' ) start [2024-12-19 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052505', 'tblTempUsageDetail_20' ) end [2024-12-19 02:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:43:21] Production.INFO: ==29372== Releasing lock... [2024-12-19 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:43:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:44:05 [end_date_ymd] => 2024-12-19 02:44:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:44:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:44:17] Production.INFO: count ==305 [2024-12-19 02:44:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:44:05 - End Time 2024-12-19 02:44:05 [2024-12-19 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052510', 'tblTempUsageDetail_20' ) start [2024-12-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052510', 'tblTempUsageDetail_20' ) end [2024-12-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052510', 'tblTempVendorCDR_20' ) start [2024-12-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052510', 'tblTempVendorCDR_20' ) end [2024-12-19 02:44:17] Production.INFO: ProcessCDR(1,14052510,1,1,2) [2024-12-19 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052510', 'tblTempUsageDetail_20' ) start [2024-12-19 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052510', 'tblTempUsageDetail_20' ) end [2024-12-19 02:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:44:20] Production.INFO: ==29456== Releasing lock... [2024-12-19 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:44:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:45:05 [end_date_ymd] => 2024-12-19 02:45:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:45:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:45:17] Production.INFO: count ==305 [2024-12-19 02:45:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:45:05 - End Time 2024-12-19 02:45:05 [2024-12-19 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052515', 'tblTempUsageDetail_20' ) start [2024-12-19 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052515', 'tblTempUsageDetail_20' ) end [2024-12-19 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052515', 'tblTempVendorCDR_20' ) start [2024-12-19 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052515', 'tblTempVendorCDR_20' ) end [2024-12-19 02:45:17] Production.INFO: ProcessCDR(1,14052515,1,1,2) [2024-12-19 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052515', 'tblTempUsageDetail_20' ) start [2024-12-19 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052515', 'tblTempUsageDetail_20' ) end [2024-12-19 02:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:45:21] Production.INFO: ==29550== Releasing lock... [2024-12-19 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:45:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:46:04 [end_date_ymd] => 2024-12-19 02:46:04 [RateCDR] => 1 ) [2024-12-19 02:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:46:04' and `end` < '2024-12-19 02:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:46:16] Production.INFO: count ==302 [2024-12-19 02:46:16] Production.ERROR: pbx CDR StartTime 2024-12-18 23:46:04 - End Time 2024-12-19 02:46:04 [2024-12-19 02:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052520', 'tblTempUsageDetail_20' ) start [2024-12-19 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052520', 'tblTempUsageDetail_20' ) end [2024-12-19 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052520', 'tblTempVendorCDR_20' ) start [2024-12-19 02:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052520', 'tblTempVendorCDR_20' ) end [2024-12-19 02:46:16] Production.INFO: ProcessCDR(1,14052520,1,1,2) [2024-12-19 02:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:46:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052520', 'tblTempUsageDetail_20' ) start [2024-12-19 02:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052520', 'tblTempUsageDetail_20' ) end [2024-12-19 02:46:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:46:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:46:19] Production.INFO: ==29639== Releasing lock... [2024-12-19 02:46:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:46:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:47:04 [end_date_ymd] => 2024-12-19 02:47:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:47:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:47:17] Production.INFO: count ==301 [2024-12-19 02:47:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:47:04 - End Time 2024-12-19 02:47:04 [2024-12-19 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052525', 'tblTempUsageDetail_20' ) start [2024-12-19 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052525', 'tblTempUsageDetail_20' ) end [2024-12-19 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052525', 'tblTempVendorCDR_20' ) start [2024-12-19 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052525', 'tblTempVendorCDR_20' ) end [2024-12-19 02:47:17] Production.INFO: ProcessCDR(1,14052525,1,1,2) [2024-12-19 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052525', 'tblTempUsageDetail_20' ) start [2024-12-19 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052525', 'tblTempUsageDetail_20' ) end [2024-12-19 02:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:47:20] Production.INFO: ==29729== Releasing lock... [2024-12-19 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:47:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:48:05 [end_date_ymd] => 2024-12-19 02:48:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:48:17] Production.INFO: count ==300 [2024-12-19 02:48:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:48:05 - End Time 2024-12-19 02:48:05 [2024-12-19 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052530', 'tblTempUsageDetail_20' ) start [2024-12-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052530', 'tblTempUsageDetail_20' ) end [2024-12-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052530', 'tblTempVendorCDR_20' ) start [2024-12-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052530', 'tblTempVendorCDR_20' ) end [2024-12-19 02:48:17] Production.INFO: ProcessCDR(1,14052530,1,1,2) [2024-12-19 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052530', 'tblTempUsageDetail_20' ) start [2024-12-19 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052530', 'tblTempUsageDetail_20' ) end [2024-12-19 02:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:48:20] Production.INFO: ==29819== Releasing lock... [2024-12-19 02:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:48:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:49:04 [end_date_ymd] => 2024-12-19 02:49:04 [RateCDR] => 1 ) [2024-12-19 02: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` >= '2024-12-18 23:49:04' and `end` < '2024-12-19 02: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 ,'') [2024-12-19 02:49:17] Production.INFO: count ==300 [2024-12-19 02:49:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:49:04 - End Time 2024-12-19 02:49:04 [2024-12-19 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052535', 'tblTempUsageDetail_20' ) start [2024-12-19 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052535', 'tblTempUsageDetail_20' ) end [2024-12-19 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052535', 'tblTempVendorCDR_20' ) start [2024-12-19 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052535', 'tblTempVendorCDR_20' ) end [2024-12-19 02:49:17] Production.INFO: ProcessCDR(1,14052535,1,1,2) [2024-12-19 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052535', 'tblTempUsageDetail_20' ) start [2024-12-19 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052535', 'tblTempUsageDetail_20' ) end [2024-12-19 02:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:49:20] Production.INFO: ==29906== Releasing lock... [2024-12-19 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:49:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:50:05 [end_date_ymd] => 2024-12-19 02:50:05 [RateCDR] => 1 ) [2024-12-19 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:50:05' and `end` < '2024-12-19 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:50:18] Production.INFO: count ==304 [2024-12-19 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:50:05 - End Time 2024-12-19 02:50:05 [2024-12-19 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052541', 'tblTempUsageDetail_20' ) start [2024-12-19 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052541', 'tblTempUsageDetail_20' ) end [2024-12-19 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052541', 'tblTempVendorCDR_20' ) start [2024-12-19 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052541', 'tblTempVendorCDR_20' ) end [2024-12-19 02:50:19] Production.INFO: ProcessCDR(1,14052541,1,1,2) [2024-12-19 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052541', 'tblTempUsageDetail_20' ) start [2024-12-19 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052541', 'tblTempUsageDetail_20' ) end [2024-12-19 02:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:50:22] Production.INFO: ==30000== Releasing lock... [2024-12-19 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:50:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:51:04 [end_date_ymd] => 2024-12-19 02:51:04 [RateCDR] => 1 ) [2024-12-19 02: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` >= '2024-12-18 23:51:04' and `end` < '2024-12-19 02: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 ,'') [2024-12-19 02:51:16] Production.INFO: count ==302 [2024-12-19 02:51:16] Production.ERROR: pbx CDR StartTime 2024-12-18 23:51:04 - End Time 2024-12-19 02:51:04 [2024-12-19 02:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052546', 'tblTempUsageDetail_20' ) start [2024-12-19 02:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052546', 'tblTempUsageDetail_20' ) end [2024-12-19 02:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052546', 'tblTempVendorCDR_20' ) start [2024-12-19 02:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052546', 'tblTempVendorCDR_20' ) end [2024-12-19 02:51:16] Production.INFO: ProcessCDR(1,14052546,1,1,2) [2024-12-19 02:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052546', 'tblTempUsageDetail_20' ) start [2024-12-19 02:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052546', 'tblTempUsageDetail_20' ) end [2024-12-19 02:51:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:51:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:51:19] Production.INFO: ==30092== Releasing lock... [2024-12-19 02:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:51:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:52:04 [end_date_ymd] => 2024-12-19 02:52:04 [RateCDR] => 1 ) [2024-12-19 02:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-18 23:52:04' and `end` < '2024-12-19 02:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 02:52:16] Production.INFO: count ==300 [2024-12-19 02:52:16] Production.ERROR: pbx CDR StartTime 2024-12-18 23:52:04 - End Time 2024-12-19 02:52:04 [2024-12-19 02:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052551', 'tblTempUsageDetail_20' ) start [2024-12-19 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052551', 'tblTempUsageDetail_20' ) end [2024-12-19 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052551', 'tblTempVendorCDR_20' ) start [2024-12-19 02:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052551', 'tblTempVendorCDR_20' ) end [2024-12-19 02:52:16] Production.INFO: ProcessCDR(1,14052551,1,1,2) [2024-12-19 02:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:52:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052551', 'tblTempUsageDetail_20' ) start [2024-12-19 02:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052551', 'tblTempUsageDetail_20' ) end [2024-12-19 02:52:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:52:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:52:19] Production.INFO: ==30182== Releasing lock... [2024-12-19 02:52:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:52:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:53:05 [end_date_ymd] => 2024-12-19 02:53:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:53:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:53:18] Production.INFO: count ==299 [2024-12-19 02:53:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:53:05 - End Time 2024-12-19 02:53:05 [2024-12-19 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052556', 'tblTempUsageDetail_20' ) start [2024-12-19 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052556', 'tblTempUsageDetail_20' ) end [2024-12-19 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052556', 'tblTempVendorCDR_20' ) start [2024-12-19 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052556', 'tblTempVendorCDR_20' ) end [2024-12-19 02:53:18] Production.INFO: ProcessCDR(1,14052556,1,1,2) [2024-12-19 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052556', 'tblTempUsageDetail_20' ) start [2024-12-19 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052556', 'tblTempUsageDetail_20' ) end [2024-12-19 02:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:53:21] Production.INFO: ==30277== Releasing lock... [2024-12-19 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:53:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:54:05 [end_date_ymd] => 2024-12-19 02:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:54:18] Production.INFO: count ==299 [2024-12-19 02:54:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:54:05 - End Time 2024-12-19 02:54:05 [2024-12-19 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052561', 'tblTempUsageDetail_20' ) start [2024-12-19 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052561', 'tblTempUsageDetail_20' ) end [2024-12-19 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052561', 'tblTempVendorCDR_20' ) start [2024-12-19 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052561', 'tblTempVendorCDR_20' ) end [2024-12-19 02:54:18] Production.INFO: ProcessCDR(1,14052561,1,1,2) [2024-12-19 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052561', 'tblTempUsageDetail_20' ) start [2024-12-19 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052561', 'tblTempUsageDetail_20' ) end [2024-12-19 02:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:54:21] Production.INFO: ==30373== Releasing lock... [2024-12-19 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:54:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:55:06 [end_date_ymd] => 2024-12-19 02:55:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:55:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:55:18] Production.INFO: count ==299 [2024-12-19 02:55:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:55:06 - End Time 2024-12-19 02:55:06 [2024-12-19 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052566', 'tblTempUsageDetail_20' ) start [2024-12-19 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052566', 'tblTempUsageDetail_20' ) end [2024-12-19 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052566', 'tblTempVendorCDR_20' ) start [2024-12-19 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052566', 'tblTempVendorCDR_20' ) end [2024-12-19 02:55:18] Production.INFO: ProcessCDR(1,14052566,1,1,2) [2024-12-19 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052566', 'tblTempUsageDetail_20' ) start [2024-12-19 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052566', 'tblTempUsageDetail_20' ) end [2024-12-19 02:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:55:21] Production.INFO: ==30482== Releasing lock... [2024-12-19 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:55:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:56:05 [end_date_ymd] => 2024-12-19 02:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:56:17] Production.INFO: count ==298 [2024-12-19 02:56:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:56:05 - End Time 2024-12-19 02:56:05 [2024-12-19 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052571', 'tblTempUsageDetail_20' ) start [2024-12-19 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052571', 'tblTempUsageDetail_20' ) end [2024-12-19 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052571', 'tblTempVendorCDR_20' ) start [2024-12-19 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052571', 'tblTempVendorCDR_20' ) end [2024-12-19 02:56:17] Production.INFO: ProcessCDR(1,14052571,1,1,2) [2024-12-19 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052571', 'tblTempUsageDetail_20' ) start [2024-12-19 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052571', 'tblTempUsageDetail_20' ) end [2024-12-19 02:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:56:20] Production.INFO: ==30616== Releasing lock... [2024-12-19 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:56:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:57:05 [end_date_ymd] => 2024-12-19 02:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:57:17] Production.INFO: count ==297 [2024-12-19 02:57:17] Production.ERROR: pbx CDR StartTime 2024-12-18 23:57:05 - End Time 2024-12-19 02:57:05 [2024-12-19 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052575', 'tblTempUsageDetail_20' ) start [2024-12-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052575', 'tblTempUsageDetail_20' ) end [2024-12-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052575', 'tblTempVendorCDR_20' ) start [2024-12-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052575', 'tblTempVendorCDR_20' ) end [2024-12-19 02:57:17] Production.INFO: ProcessCDR(1,14052575,1,1,2) [2024-12-19 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052575', 'tblTempUsageDetail_20' ) start [2024-12-19 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052575', 'tblTempUsageDetail_20' ) end [2024-12-19 02:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:57:20] Production.INFO: ==30706== Releasing lock... [2024-12-19 02:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:57:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:58:05 [end_date_ymd] => 2024-12-19 02:58:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:58:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:58:18] Production.INFO: count ==296 [2024-12-19 02:58:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:58:05 - End Time 2024-12-19 02:58:05 [2024-12-19 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052581', 'tblTempUsageDetail_20' ) start [2024-12-19 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052581', 'tblTempUsageDetail_20' ) end [2024-12-19 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052581', 'tblTempVendorCDR_20' ) start [2024-12-19 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052581', 'tblTempVendorCDR_20' ) end [2024-12-19 02:58:18] Production.INFO: ProcessCDR(1,14052581,1,1,2) [2024-12-19 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052581', 'tblTempUsageDetail_20' ) start [2024-12-19 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052581', 'tblTempUsageDetail_20' ) end [2024-12-19 02:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:58:21] Production.INFO: ==30796== Releasing lock... [2024-12-19 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:58:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-18 23:59:05 [end_date_ymd] => 2024-12-19 02:59:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-18 23:59:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 02:59:18] Production.INFO: count ==296 [2024-12-19 02:59:18] Production.ERROR: pbx CDR StartTime 2024-12-18 23:59:05 - End Time 2024-12-19 02:59:05 [2024-12-19 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052586', 'tblTempUsageDetail_20' ) start [2024-12-19 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052586', 'tblTempUsageDetail_20' ) end [2024-12-19 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052586', 'tblTempVendorCDR_20' ) start [2024-12-19 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052586', 'tblTempVendorCDR_20' ) end [2024-12-19 02:59:18] Production.INFO: ProcessCDR(1,14052586,1,1,2) [2024-12-19 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052586', 'tblTempUsageDetail_20' ) start [2024-12-19 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052586', 'tblTempUsageDetail_20' ) end [2024-12-19 02:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 02:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 02:59:21] Production.INFO: ==30888== Releasing lock... [2024-12-19 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 02:59:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:00:05 [end_date_ymd] => 2024-12-19 03:00:05 [RateCDR] => 1 ) [2024-12-19 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:00:05' and `end` < '2024-12-19 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:00:18] Production.INFO: count ==298 [2024-12-19 03:00:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:00:05 - End Time 2024-12-19 03:00:05 [2024-12-19 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052592', 'tblTempUsageDetail_20' ) start [2024-12-19 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052592', 'tblTempUsageDetail_20' ) end [2024-12-19 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052592', 'tblTempVendorCDR_20' ) start [2024-12-19 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052592', 'tblTempVendorCDR_20' ) end [2024-12-19 03:00:18] Production.INFO: ProcessCDR(1,14052592,1,1,2) [2024-12-19 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052592', 'tblTempUsageDetail_20' ) start [2024-12-19 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052592', 'tblTempUsageDetail_20' ) end [2024-12-19 03:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:00:21] Production.INFO: ==30979== Releasing lock... [2024-12-19 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:00:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:01:05 [end_date_ymd] => 2024-12-19 03:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:01:18] Production.INFO: count ==297 [2024-12-19 03:01:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:01:05 - End Time 2024-12-19 03:01:05 [2024-12-19 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052597', 'tblTempUsageDetail_20' ) start [2024-12-19 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052597', 'tblTempUsageDetail_20' ) end [2024-12-19 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052597', 'tblTempVendorCDR_20' ) start [2024-12-19 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052597', 'tblTempVendorCDR_20' ) end [2024-12-19 03:01:18] Production.INFO: ProcessCDR(1,14052597,1,1,2) [2024-12-19 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052597', 'tblTempUsageDetail_20' ) start [2024-12-19 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052597', 'tblTempUsageDetail_20' ) end [2024-12-19 03:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:01:21] Production.INFO: ==31084== Releasing lock... [2024-12-19 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:01:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:02:05 [end_date_ymd] => 2024-12-19 03:02:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:02:18] Production.INFO: count ==296 [2024-12-19 03:02:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:02:05 - End Time 2024-12-19 03:02:05 [2024-12-19 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052602', 'tblTempUsageDetail_20' ) start [2024-12-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052602', 'tblTempUsageDetail_20' ) end [2024-12-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052602', 'tblTempVendorCDR_20' ) start [2024-12-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052602', 'tblTempVendorCDR_20' ) end [2024-12-19 03:02:18] Production.INFO: ProcessCDR(1,14052602,1,1,2) [2024-12-19 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052602', 'tblTempUsageDetail_20' ) start [2024-12-19 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052602', 'tblTempUsageDetail_20' ) end [2024-12-19 03:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:02:21] Production.INFO: ==31248== Releasing lock... [2024-12-19 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:02:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:03:05 [end_date_ymd] => 2024-12-19 03:03:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:03:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:03:17] Production.INFO: count ==296 [2024-12-19 03:03:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:03:05 - End Time 2024-12-19 03:03:05 [2024-12-19 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052607', 'tblTempUsageDetail_20' ) start [2024-12-19 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052607', 'tblTempUsageDetail_20' ) end [2024-12-19 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052607', 'tblTempVendorCDR_20' ) start [2024-12-19 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052607', 'tblTempVendorCDR_20' ) end [2024-12-19 03:03:17] Production.INFO: ProcessCDR(1,14052607,1,1,2) [2024-12-19 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052607', 'tblTempUsageDetail_20' ) start [2024-12-19 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052607', 'tblTempUsageDetail_20' ) end [2024-12-19 03:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:03:20] Production.INFO: ==31338== Releasing lock... [2024-12-19 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:03:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:04:05 [end_date_ymd] => 2024-12-19 03:04:05 [RateCDR] => 1 ) [2024-12-19 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:04:05' and `end` < '2024-12-19 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:04:18] Production.INFO: count ==296 [2024-12-19 03:04:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:04:05 - End Time 2024-12-19 03:04:05 [2024-12-19 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052612', 'tblTempUsageDetail_20' ) start [2024-12-19 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052612', 'tblTempUsageDetail_20' ) end [2024-12-19 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052612', 'tblTempVendorCDR_20' ) start [2024-12-19 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052612', 'tblTempVendorCDR_20' ) end [2024-12-19 03:04:18] Production.INFO: ProcessCDR(1,14052612,1,1,2) [2024-12-19 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052612', 'tblTempUsageDetail_20' ) start [2024-12-19 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052612', 'tblTempUsageDetail_20' ) end [2024-12-19 03:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:04:21] Production.INFO: ==31426== Releasing lock... [2024-12-19 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:04:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:05:05 [end_date_ymd] => 2024-12-19 03:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:05:17] Production.INFO: count ==293 [2024-12-19 03:05:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:05:05 - End Time 2024-12-19 03:05:05 [2024-12-19 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052617', 'tblTempUsageDetail_20' ) start [2024-12-19 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052617', 'tblTempUsageDetail_20' ) end [2024-12-19 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052617', 'tblTempVendorCDR_20' ) start [2024-12-19 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052617', 'tblTempVendorCDR_20' ) end [2024-12-19 03:05:17] Production.INFO: ProcessCDR(1,14052617,1,1,2) [2024-12-19 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052617', 'tblTempUsageDetail_20' ) start [2024-12-19 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052617', 'tblTempUsageDetail_20' ) end [2024-12-19 03:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:05:21] Production.INFO: ==31510== Releasing lock... [2024-12-19 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:05:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:06:05 [end_date_ymd] => 2024-12-19 03:06:05 [RateCDR] => 1 ) [2024-12-19 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:06:05' and `end` < '2024-12-19 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:06:17] Production.INFO: count ==292 [2024-12-19 03:06:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:06:05 - End Time 2024-12-19 03:06:05 [2024-12-19 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052622', 'tblTempUsageDetail_20' ) start [2024-12-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052622', 'tblTempUsageDetail_20' ) end [2024-12-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052622', 'tblTempVendorCDR_20' ) start [2024-12-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052622', 'tblTempVendorCDR_20' ) end [2024-12-19 03:06:17] Production.INFO: ProcessCDR(1,14052622,1,1,2) [2024-12-19 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052622', 'tblTempUsageDetail_20' ) start [2024-12-19 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052622', 'tblTempUsageDetail_20' ) end [2024-12-19 03:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:06:20] Production.INFO: ==31669== Releasing lock... [2024-12-19 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:06:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:07:04 [end_date_ymd] => 2024-12-19 03:07:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:07:04' and `end` < '2024-12-19 03: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 ,'') [2024-12-19 03:07:17] Production.INFO: count ==292 [2024-12-19 03:07:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:07:04 - End Time 2024-12-19 03:07:04 [2024-12-19 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052627', 'tblTempUsageDetail_20' ) start [2024-12-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052627', 'tblTempUsageDetail_20' ) end [2024-12-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052627', 'tblTempVendorCDR_20' ) start [2024-12-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052627', 'tblTempVendorCDR_20' ) end [2024-12-19 03:07:17] Production.INFO: ProcessCDR(1,14052627,1,1,2) [2024-12-19 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052627', 'tblTempUsageDetail_20' ) start [2024-12-19 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052627', 'tblTempUsageDetail_20' ) end [2024-12-19 03:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:07:20] Production.INFO: ==31756== Releasing lock... [2024-12-19 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:07:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:08:05 [end_date_ymd] => 2024-12-19 03:08:05 [RateCDR] => 1 ) [2024-12-19 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:08:05' and `end` < '2024-12-19 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:08:16] Production.INFO: count ==292 [2024-12-19 03:08:16] Production.ERROR: pbx CDR StartTime 2024-12-19 00:08:05 - End Time 2024-12-19 03:08:05 [2024-12-19 03:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052632', 'tblTempUsageDetail_20' ) start [2024-12-19 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052632', 'tblTempUsageDetail_20' ) end [2024-12-19 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052632', 'tblTempVendorCDR_20' ) start [2024-12-19 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052632', 'tblTempVendorCDR_20' ) end [2024-12-19 03:08:16] Production.INFO: ProcessCDR(1,14052632,1,1,2) [2024-12-19 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052632', 'tblTempUsageDetail_20' ) start [2024-12-19 03:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052632', 'tblTempUsageDetail_20' ) end [2024-12-19 03:08:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:08:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:08:19] Production.INFO: ==31843== Releasing lock... [2024-12-19 03:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:08:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:09:04 [end_date_ymd] => 2024-12-19 03:09:04 [RateCDR] => 1 ) [2024-12-19 03:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:09:04' and `end` < '2024-12-19 03:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:09:16] Production.INFO: count ==292 [2024-12-19 03:09:16] Production.ERROR: pbx CDR StartTime 2024-12-19 00:09:04 - End Time 2024-12-19 03:09:04 [2024-12-19 03:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052637', 'tblTempUsageDetail_20' ) start [2024-12-19 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052637', 'tblTempUsageDetail_20' ) end [2024-12-19 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052637', 'tblTempVendorCDR_20' ) start [2024-12-19 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052637', 'tblTempVendorCDR_20' ) end [2024-12-19 03:09:16] Production.INFO: ProcessCDR(1,14052637,1,1,2) [2024-12-19 03:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052637', 'tblTempUsageDetail_20' ) start [2024-12-19 03:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052637', 'tblTempUsageDetail_20' ) end [2024-12-19 03:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:09:19] Production.INFO: ==32003== Releasing lock... [2024-12-19 03:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:09:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:10:06 [end_date_ymd] => 2024-12-19 03:10:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:10:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:10:18] Production.INFO: count ==288 [2024-12-19 03:10:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:10:06 - End Time 2024-12-19 03:10:06 [2024-12-19 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052643', 'tblTempUsageDetail_20' ) start [2024-12-19 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052643', 'tblTempUsageDetail_20' ) end [2024-12-19 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052643', 'tblTempVendorCDR_20' ) start [2024-12-19 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052643', 'tblTempVendorCDR_20' ) end [2024-12-19 03:10:18] Production.INFO: ProcessCDR(1,14052643,1,1,2) [2024-12-19 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052643', 'tblTempUsageDetail_20' ) start [2024-12-19 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052643', 'tblTempUsageDetail_20' ) end [2024-12-19 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:10:21] Production.INFO: ==32088== Releasing lock... [2024-12-19 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:10:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:11:05 [end_date_ymd] => 2024-12-19 03:11:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:11:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:11:17] Production.INFO: count ==262 [2024-12-19 03:11:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:11:05 - End Time 2024-12-19 03:11:05 [2024-12-19 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052648', 'tblTempUsageDetail_20' ) start [2024-12-19 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052648', 'tblTempUsageDetail_20' ) end [2024-12-19 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052648', 'tblTempVendorCDR_20' ) start [2024-12-19 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052648', 'tblTempVendorCDR_20' ) end [2024-12-19 03:11:17] Production.INFO: ProcessCDR(1,14052648,1,1,2) [2024-12-19 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052648', 'tblTempUsageDetail_20' ) start [2024-12-19 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052648', 'tblTempUsageDetail_20' ) end [2024-12-19 03:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:11:20] Production.INFO: ==32177== Releasing lock... [2024-12-19 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:11:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 03:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:12:04 [end_date_ymd] => 2024-12-19 03:12:04 [RateCDR] => 1 ) [2024-12-19 03: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` >= '2024-12-19 00:12:04' and `end` < '2024-12-19 03: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 ,'') [2024-12-19 03:12:16] Production.INFO: count ==262 [2024-12-19 03:12:16] Production.ERROR: pbx CDR StartTime 2024-12-19 00:12:04 - End Time 2024-12-19 03:12:04 [2024-12-19 03:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052653', 'tblTempUsageDetail_20' ) start [2024-12-19 03:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052653', 'tblTempUsageDetail_20' ) end [2024-12-19 03:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052653', 'tblTempVendorCDR_20' ) start [2024-12-19 03:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052653', 'tblTempVendorCDR_20' ) end [2024-12-19 03:12:16] Production.INFO: ProcessCDR(1,14052653,1,1,2) [2024-12-19 03:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052653', 'tblTempUsageDetail_20' ) start [2024-12-19 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052653', 'tblTempUsageDetail_20' ) end [2024-12-19 03:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:12:20] Production.INFO: ==32295== Releasing lock... [2024-12-19 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:12:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:13:05 [end_date_ymd] => 2024-12-19 03:13:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:13:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:13:18] Production.INFO: count ==262 [2024-12-19 03:13:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:13:05 - End Time 2024-12-19 03:13:05 [2024-12-19 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052658', 'tblTempUsageDetail_20' ) start [2024-12-19 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052658', 'tblTempUsageDetail_20' ) end [2024-12-19 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052658', 'tblTempVendorCDR_20' ) start [2024-12-19 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052658', 'tblTempVendorCDR_20' ) end [2024-12-19 03:13:18] Production.INFO: ProcessCDR(1,14052658,1,1,2) [2024-12-19 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052658', 'tblTempUsageDetail_20' ) start [2024-12-19 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052658', 'tblTempUsageDetail_20' ) end [2024-12-19 03:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:13:21] Production.INFO: ==32455== Releasing lock... [2024-12-19 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:13:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:14:05 [end_date_ymd] => 2024-12-19 03:14:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:14:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:14:17] Production.INFO: count ==259 [2024-12-19 03:14:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:14:05 - End Time 2024-12-19 03:14:05 [2024-12-19 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052663', 'tblTempUsageDetail_20' ) start [2024-12-19 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052663', 'tblTempUsageDetail_20' ) end [2024-12-19 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052663', 'tblTempVendorCDR_20' ) start [2024-12-19 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052663', 'tblTempVendorCDR_20' ) end [2024-12-19 03:14:18] Production.INFO: ProcessCDR(1,14052663,1,1,2) [2024-12-19 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052663', 'tblTempUsageDetail_20' ) start [2024-12-19 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052663', 'tblTempUsageDetail_20' ) end [2024-12-19 03:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:14:21] Production.INFO: ==32534== Releasing lock... [2024-12-19 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:14:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:15:05 [end_date_ymd] => 2024-12-19 03:15:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:15:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:15:17] Production.INFO: count ==259 [2024-12-19 03:15:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:15:05 - End Time 2024-12-19 03:15:05 [2024-12-19 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052668', 'tblTempUsageDetail_20' ) start [2024-12-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052668', 'tblTempUsageDetail_20' ) end [2024-12-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052668', 'tblTempVendorCDR_20' ) start [2024-12-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052668', 'tblTempVendorCDR_20' ) end [2024-12-19 03:15:17] Production.INFO: ProcessCDR(1,14052668,1,1,2) [2024-12-19 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052668', 'tblTempUsageDetail_20' ) start [2024-12-19 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052668', 'tblTempUsageDetail_20' ) end [2024-12-19 03:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:15:20] Production.INFO: ==32615== Releasing lock... [2024-12-19 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:15:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:16:05 [end_date_ymd] => 2024-12-19 03:16:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:16:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:16:17] Production.INFO: count ==258 [2024-12-19 03:16:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:16:05 - End Time 2024-12-19 03:16:05 [2024-12-19 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052673', 'tblTempUsageDetail_20' ) start [2024-12-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052673', 'tblTempUsageDetail_20' ) end [2024-12-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052673', 'tblTempVendorCDR_20' ) start [2024-12-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052673', 'tblTempVendorCDR_20' ) end [2024-12-19 03:16:17] Production.INFO: ProcessCDR(1,14052673,1,1,2) [2024-12-19 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052673', 'tblTempUsageDetail_20' ) start [2024-12-19 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052673', 'tblTempUsageDetail_20' ) end [2024-12-19 03:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:16:20] Production.INFO: ==32701== Releasing lock... [2024-12-19 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:16:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:17:05 [end_date_ymd] => 2024-12-19 03:17:05 [RateCDR] => 1 ) [2024-12-19 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:17:05' and `end` < '2024-12-19 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:17:17] Production.INFO: count ==256 [2024-12-19 03:17:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:17:05 - End Time 2024-12-19 03:17:05 [2024-12-19 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052678', 'tblTempUsageDetail_20' ) start [2024-12-19 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052678', 'tblTempUsageDetail_20' ) end [2024-12-19 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052678', 'tblTempVendorCDR_20' ) start [2024-12-19 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052678', 'tblTempVendorCDR_20' ) end [2024-12-19 03:17:17] Production.INFO: ProcessCDR(1,14052678,1,1,2) [2024-12-19 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052678', 'tblTempUsageDetail_20' ) start [2024-12-19 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052678', 'tblTempUsageDetail_20' ) end [2024-12-19 03:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:17:20] Production.INFO: ==414== Releasing lock... [2024-12-19 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:17:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:18:05 [end_date_ymd] => 2024-12-19 03:18:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:18:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:18:18] Production.INFO: count ==255 [2024-12-19 03:18:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:18:05 - End Time 2024-12-19 03:18:05 [2024-12-19 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052683', 'tblTempUsageDetail_20' ) start [2024-12-19 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052683', 'tblTempUsageDetail_20' ) end [2024-12-19 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052683', 'tblTempVendorCDR_20' ) start [2024-12-19 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052683', 'tblTempVendorCDR_20' ) end [2024-12-19 03:18:18] Production.INFO: ProcessCDR(1,14052683,1,1,2) [2024-12-19 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052683', 'tblTempUsageDetail_20' ) start [2024-12-19 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052683', 'tblTempUsageDetail_20' ) end [2024-12-19 03:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:18:21] Production.INFO: ==499== Releasing lock... [2024-12-19 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:18:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:19:05 [end_date_ymd] => 2024-12-19 03:19:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:19:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:19:17] Production.INFO: count ==254 [2024-12-19 03:19:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:19:05 - End Time 2024-12-19 03:19:05 [2024-12-19 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052688', 'tblTempUsageDetail_20' ) start [2024-12-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052688', 'tblTempUsageDetail_20' ) end [2024-12-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052688', 'tblTempVendorCDR_20' ) start [2024-12-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052688', 'tblTempVendorCDR_20' ) end [2024-12-19 03:19:17] Production.INFO: ProcessCDR(1,14052688,1,1,2) [2024-12-19 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052688', 'tblTempUsageDetail_20' ) start [2024-12-19 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052688', 'tblTempUsageDetail_20' ) end [2024-12-19 03:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:19:21] Production.INFO: ==583== Releasing lock... [2024-12-19 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:19:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:20:05 [end_date_ymd] => 2024-12-19 03:20:05 [RateCDR] => 1 ) [2024-12-19 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:20:05' and `end` < '2024-12-19 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:20:17] Production.INFO: count ==252 [2024-12-19 03:20:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:20:05 - End Time 2024-12-19 03:20:05 [2024-12-19 03:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052694', 'tblTempUsageDetail_20' ) start [2024-12-19 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052694', 'tblTempUsageDetail_20' ) end [2024-12-19 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052694', 'tblTempVendorCDR_20' ) start [2024-12-19 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052694', 'tblTempVendorCDR_20' ) end [2024-12-19 03:20:17] Production.INFO: ProcessCDR(1,14052694,1,1,2) [2024-12-19 03:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052694', 'tblTempUsageDetail_20' ) start [2024-12-19 03:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052694', 'tblTempUsageDetail_20' ) end [2024-12-19 03:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:20:20] Production.INFO: ==697== Releasing lock... [2024-12-19 03:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:20:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:21:04 [end_date_ymd] => 2024-12-19 03:21:04 [RateCDR] => 1 ) [2024-12-19 03: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` >= '2024-12-19 00:21:04' and `end` < '2024-12-19 03: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 ,'') [2024-12-19 03:21:17] Production.INFO: count ==230 [2024-12-19 03:21:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:21:04 - End Time 2024-12-19 03:21:04 [2024-12-19 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052699', 'tblTempUsageDetail_20' ) start [2024-12-19 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052699', 'tblTempUsageDetail_20' ) end [2024-12-19 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052699', 'tblTempVendorCDR_20' ) start [2024-12-19 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052699', 'tblTempVendorCDR_20' ) end [2024-12-19 03:21:17] Production.INFO: ProcessCDR(1,14052699,1,1,2) [2024-12-19 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052699', 'tblTempUsageDetail_20' ) start [2024-12-19 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052699', 'tblTempUsageDetail_20' ) end [2024-12-19 03:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:21:20] Production.INFO: ==824== Releasing lock... [2024-12-19 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:21:20] Production.INFO: 29 MB #Memory Used# [2024-12-19 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:22:05 [end_date_ymd] => 2024-12-19 03:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:22:17] Production.INFO: count ==225 [2024-12-19 03:22:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:22:05 - End Time 2024-12-19 03:22:05 [2024-12-19 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052704', 'tblTempUsageDetail_20' ) start [2024-12-19 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052704', 'tblTempUsageDetail_20' ) end [2024-12-19 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052704', 'tblTempVendorCDR_20' ) start [2024-12-19 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052704', 'tblTempVendorCDR_20' ) end [2024-12-19 03:22:17] Production.INFO: ProcessCDR(1,14052704,1,1,2) [2024-12-19 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052704', 'tblTempUsageDetail_20' ) start [2024-12-19 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052704', 'tblTempUsageDetail_20' ) end [2024-12-19 03:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:22:21] Production.INFO: ==951== Releasing lock... [2024-12-19 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:22:21] Production.INFO: 29 MB #Memory Used# [2024-12-19 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:23:04 [end_date_ymd] => 2024-12-19 03:23:04 [RateCDR] => 1 ) [2024-12-19 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:23:04' and `end` < '2024-12-19 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:23:17] Production.INFO: count ==224 [2024-12-19 03:23:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:23:04 - End Time 2024-12-19 03:23:04 [2024-12-19 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052709', 'tblTempUsageDetail_20' ) start [2024-12-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052709', 'tblTempUsageDetail_20' ) end [2024-12-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052709', 'tblTempVendorCDR_20' ) start [2024-12-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052709', 'tblTempVendorCDR_20' ) end [2024-12-19 03:23:17] Production.INFO: ProcessCDR(1,14052709,1,1,2) [2024-12-19 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052709', 'tblTempUsageDetail_20' ) start [2024-12-19 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052709', 'tblTempUsageDetail_20' ) end [2024-12-19 03:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:23:20] Production.INFO: ==1035== Releasing lock... [2024-12-19 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:23:20] Production.INFO: 29 MB #Memory Used# [2024-12-19 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:24:05 [end_date_ymd] => 2024-12-19 03:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:24:17] Production.INFO: count ==221 [2024-12-19 03:24:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:24:05 - End Time 2024-12-19 03:24:05 [2024-12-19 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052714', 'tblTempUsageDetail_20' ) start [2024-12-19 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052714', 'tblTempUsageDetail_20' ) end [2024-12-19 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052714', 'tblTempVendorCDR_20' ) start [2024-12-19 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052714', 'tblTempVendorCDR_20' ) end [2024-12-19 03:24:17] Production.INFO: ProcessCDR(1,14052714,1,1,2) [2024-12-19 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052714', 'tblTempUsageDetail_20' ) start [2024-12-19 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052714', 'tblTempUsageDetail_20' ) end [2024-12-19 03:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:24:20] Production.INFO: ==1124== Releasing lock... [2024-12-19 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:24:20] Production.INFO: 29 MB #Memory Used# [2024-12-19 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:25:04 [end_date_ymd] => 2024-12-19 03:25:04 [RateCDR] => 1 ) [2024-12-19 03:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:25:04' and `end` < '2024-12-19 03:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:25:16] Production.INFO: count ==220 [2024-12-19 03:25:16] Production.ERROR: pbx CDR StartTime 2024-12-19 00:25:04 - End Time 2024-12-19 03:25:04 [2024-12-19 03:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052719', 'tblTempUsageDetail_20' ) start [2024-12-19 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052719', 'tblTempUsageDetail_20' ) end [2024-12-19 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052719', 'tblTempVendorCDR_20' ) start [2024-12-19 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052719', 'tblTempVendorCDR_20' ) end [2024-12-19 03:25:16] Production.INFO: ProcessCDR(1,14052719,1,1,2) [2024-12-19 03:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052719', 'tblTempUsageDetail_20' ) start [2024-12-19 03:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052719', 'tblTempUsageDetail_20' ) end [2024-12-19 03:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:25:19] Production.INFO: ==1215== Releasing lock... [2024-12-19 03:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:25:19] Production.INFO: 29 MB #Memory Used# [2024-12-19 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:26:05 [end_date_ymd] => 2024-12-19 03:26:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:26:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:26:18] Production.INFO: count ==220 [2024-12-19 03:26:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:26:05 - End Time 2024-12-19 03:26:05 [2024-12-19 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052724', 'tblTempUsageDetail_20' ) start [2024-12-19 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052724', 'tblTempUsageDetail_20' ) end [2024-12-19 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052724', 'tblTempVendorCDR_20' ) start [2024-12-19 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052724', 'tblTempVendorCDR_20' ) end [2024-12-19 03:26:18] Production.INFO: ProcessCDR(1,14052724,1,1,2) [2024-12-19 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052724', 'tblTempUsageDetail_20' ) start [2024-12-19 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052724', 'tblTempUsageDetail_20' ) end [2024-12-19 03:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:26:21] Production.INFO: ==1311== Releasing lock... [2024-12-19 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:26:21] Production.INFO: 29 MB #Memory Used# [2024-12-19 03:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:27:04 [end_date_ymd] => 2024-12-19 03:27:04 [RateCDR] => 1 ) [2024-12-19 03: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` >= '2024-12-19 00:27:04' and `end` < '2024-12-19 03: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 ,'') [2024-12-19 03:27:17] Production.INFO: count ==220 [2024-12-19 03:27:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:27:04 - End Time 2024-12-19 03:27:04 [2024-12-19 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052729', 'tblTempUsageDetail_20' ) start [2024-12-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052729', 'tblTempUsageDetail_20' ) end [2024-12-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052729', 'tblTempVendorCDR_20' ) start [2024-12-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052729', 'tblTempVendorCDR_20' ) end [2024-12-19 03:27:17] Production.INFO: ProcessCDR(1,14052729,1,1,2) [2024-12-19 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052729', 'tblTempUsageDetail_20' ) start [2024-12-19 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052729', 'tblTempUsageDetail_20' ) end [2024-12-19 03:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:27:20] Production.INFO: ==1393== Releasing lock... [2024-12-19 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:27:20] Production.INFO: 29 MB #Memory Used# [2024-12-19 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:28:05 [end_date_ymd] => 2024-12-19 03:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:28:18] Production.INFO: count ==219 [2024-12-19 03:28:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:28:05 - End Time 2024-12-19 03:28:05 [2024-12-19 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052734', 'tblTempUsageDetail_20' ) start [2024-12-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052734', 'tblTempUsageDetail_20' ) end [2024-12-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052734', 'tblTempVendorCDR_20' ) start [2024-12-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052734', 'tblTempVendorCDR_20' ) end [2024-12-19 03:28:18] Production.INFO: ProcessCDR(1,14052734,1,1,2) [2024-12-19 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052734', 'tblTempUsageDetail_20' ) start [2024-12-19 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052734', 'tblTempUsageDetail_20' ) end [2024-12-19 03:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:28:21] Production.INFO: ==1475== Releasing lock... [2024-12-19 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:28:21] Production.INFO: 29 MB #Memory Used# [2024-12-19 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:29:05 [end_date_ymd] => 2024-12-19 03:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:29:17] Production.INFO: count ==219 [2024-12-19 03:29:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:29:05 - End Time 2024-12-19 03:29:05 [2024-12-19 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052739', 'tblTempUsageDetail_20' ) start [2024-12-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052739', 'tblTempUsageDetail_20' ) end [2024-12-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052739', 'tblTempVendorCDR_20' ) start [2024-12-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052739', 'tblTempVendorCDR_20' ) end [2024-12-19 03:29:17] Production.INFO: ProcessCDR(1,14052739,1,1,2) [2024-12-19 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052739', 'tblTempUsageDetail_20' ) start [2024-12-19 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052739', 'tblTempUsageDetail_20' ) end [2024-12-19 03:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:29:20] Production.INFO: ==1636== Releasing lock... [2024-12-19 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:29:20] Production.INFO: 29 MB #Memory Used# [2024-12-19 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:30:05 [end_date_ymd] => 2024-12-19 03:30:05 [RateCDR] => 1 ) [2024-12-19 03:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:30:05' and `end` < '2024-12-19 03:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:30:17] Production.INFO: count ==214 [2024-12-19 03:30:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:30:05 - End Time 2024-12-19 03:30:05 [2024-12-19 03:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052745', 'tblTempUsageDetail_20' ) start [2024-12-19 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052745', 'tblTempUsageDetail_20' ) end [2024-12-19 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052745', 'tblTempVendorCDR_20' ) start [2024-12-19 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052745', 'tblTempVendorCDR_20' ) end [2024-12-19 03:30:17] Production.INFO: ProcessCDR(1,14052745,1,1,2) [2024-12-19 03:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052745', 'tblTempUsageDetail_20' ) start [2024-12-19 03:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052745', 'tblTempUsageDetail_20' ) end [2024-12-19 03:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:30:20] Production.INFO: ==1739== Releasing lock... [2024-12-19 03:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:30:20] Production.INFO: 29 MB #Memory Used# [2024-12-19 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:31:05 [end_date_ymd] => 2024-12-19 03:31:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:31:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:31:18] Production.INFO: count ==198 [2024-12-19 03:31:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:31:05 - End Time 2024-12-19 03:31:05 [2024-12-19 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052750', 'tblTempUsageDetail_20' ) start [2024-12-19 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052750', 'tblTempUsageDetail_20' ) end [2024-12-19 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052750', 'tblTempVendorCDR_20' ) start [2024-12-19 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052750', 'tblTempVendorCDR_20' ) end [2024-12-19 03:31:18] Production.INFO: ProcessCDR(1,14052750,1,1,2) [2024-12-19 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052750', 'tblTempUsageDetail_20' ) start [2024-12-19 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052750', 'tblTempUsageDetail_20' ) end [2024-12-19 03:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:31:21] Production.INFO: ==1857== Releasing lock... [2024-12-19 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:31:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:32:05 [end_date_ymd] => 2024-12-19 03:32:05 [RateCDR] => 1 ) [2024-12-19 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:32:05' and `end` < '2024-12-19 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:32:17] Production.INFO: count ==197 [2024-12-19 03:32:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:32:05 - End Time 2024-12-19 03:32:05 [2024-12-19 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052755', 'tblTempUsageDetail_20' ) start [2024-12-19 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052755', 'tblTempUsageDetail_20' ) end [2024-12-19 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052755', 'tblTempVendorCDR_20' ) start [2024-12-19 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052755', 'tblTempVendorCDR_20' ) end [2024-12-19 03:32:17] Production.INFO: ProcessCDR(1,14052755,1,1,2) [2024-12-19 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052755', 'tblTempUsageDetail_20' ) start [2024-12-19 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052755', 'tblTempUsageDetail_20' ) end [2024-12-19 03:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:32:20] Production.INFO: ==1945== Releasing lock... [2024-12-19 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:32:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:33:05 [end_date_ymd] => 2024-12-19 03:33:05 [RateCDR] => 1 ) [2024-12-19 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:33:05' and `end` < '2024-12-19 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:33:18] Production.INFO: count ==197 [2024-12-19 03:33:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:33:05 - End Time 2024-12-19 03:33:05 [2024-12-19 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052760', 'tblTempUsageDetail_20' ) start [2024-12-19 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052760', 'tblTempUsageDetail_20' ) end [2024-12-19 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052760', 'tblTempVendorCDR_20' ) start [2024-12-19 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052760', 'tblTempVendorCDR_20' ) end [2024-12-19 03:33:18] Production.INFO: ProcessCDR(1,14052760,1,1,2) [2024-12-19 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052760', 'tblTempUsageDetail_20' ) start [2024-12-19 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052760', 'tblTempUsageDetail_20' ) end [2024-12-19 03:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:33:21] Production.INFO: ==2047== Releasing lock... [2024-12-19 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:33:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:34:05 [end_date_ymd] => 2024-12-19 03:34:05 [RateCDR] => 1 ) [2024-12-19 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:34:05' and `end` < '2024-12-19 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:34:18] Production.INFO: count ==197 [2024-12-19 03:34:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:34:05 - End Time 2024-12-19 03:34:05 [2024-12-19 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052765', 'tblTempUsageDetail_20' ) start [2024-12-19 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052765', 'tblTempUsageDetail_20' ) end [2024-12-19 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052765', 'tblTempVendorCDR_20' ) start [2024-12-19 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052765', 'tblTempVendorCDR_20' ) end [2024-12-19 03:34:18] Production.INFO: ProcessCDR(1,14052765,1,1,2) [2024-12-19 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052765', 'tblTempUsageDetail_20' ) start [2024-12-19 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052765', 'tblTempUsageDetail_20' ) end [2024-12-19 03:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:34:21] Production.INFO: ==2143== Releasing lock... [2024-12-19 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:34:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:35:05 [end_date_ymd] => 2024-12-19 03:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:35:17] Production.INFO: count ==197 [2024-12-19 03:35:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:35:05 - End Time 2024-12-19 03:35:05 [2024-12-19 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052770', 'tblTempUsageDetail_20' ) start [2024-12-19 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052770', 'tblTempUsageDetail_20' ) end [2024-12-19 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052770', 'tblTempVendorCDR_20' ) start [2024-12-19 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052770', 'tblTempVendorCDR_20' ) end [2024-12-19 03:35:17] Production.INFO: ProcessCDR(1,14052770,1,1,2) [2024-12-19 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052770', 'tblTempUsageDetail_20' ) start [2024-12-19 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052770', 'tblTempUsageDetail_20' ) end [2024-12-19 03:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:35:20] Production.INFO: ==2237== Releasing lock... [2024-12-19 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:35:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:36:05 [end_date_ymd] => 2024-12-19 03:36:05 [RateCDR] => 1 ) [2024-12-19 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:36:05' and `end` < '2024-12-19 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:36:18] Production.INFO: count ==197 [2024-12-19 03:36:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:36:05 - End Time 2024-12-19 03:36:05 [2024-12-19 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052775', 'tblTempUsageDetail_20' ) start [2024-12-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052775', 'tblTempUsageDetail_20' ) end [2024-12-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052775', 'tblTempVendorCDR_20' ) start [2024-12-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052775', 'tblTempVendorCDR_20' ) end [2024-12-19 03:36:18] Production.INFO: ProcessCDR(1,14052775,1,1,2) [2024-12-19 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052775', 'tblTempUsageDetail_20' ) start [2024-12-19 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052775', 'tblTempUsageDetail_20' ) end [2024-12-19 03:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:36:21] Production.INFO: ==2341== Releasing lock... [2024-12-19 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:36:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:37:05 [end_date_ymd] => 2024-12-19 03:37:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:37:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:37:17] Production.INFO: count ==197 [2024-12-19 03:37:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:37:05 - End Time 2024-12-19 03:37:05 [2024-12-19 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052780', 'tblTempUsageDetail_20' ) start [2024-12-19 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052780', 'tblTempUsageDetail_20' ) end [2024-12-19 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052780', 'tblTempVendorCDR_20' ) start [2024-12-19 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052780', 'tblTempVendorCDR_20' ) end [2024-12-19 03:37:17] Production.INFO: ProcessCDR(1,14052780,1,1,2) [2024-12-19 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052780', 'tblTempUsageDetail_20' ) start [2024-12-19 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052780', 'tblTempUsageDetail_20' ) end [2024-12-19 03:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:37:20] Production.INFO: ==2439== Releasing lock... [2024-12-19 03:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:37:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:38:05 [end_date_ymd] => 2024-12-19 03:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:38:17] Production.INFO: count ==196 [2024-12-19 03:38:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:38:05 - End Time 2024-12-19 03:38:05 [2024-12-19 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052785', 'tblTempUsageDetail_20' ) start [2024-12-19 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052785', 'tblTempUsageDetail_20' ) end [2024-12-19 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052785', 'tblTempVendorCDR_20' ) start [2024-12-19 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052785', 'tblTempVendorCDR_20' ) end [2024-12-19 03:38:17] Production.INFO: ProcessCDR(1,14052785,1,1,2) [2024-12-19 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052785', 'tblTempUsageDetail_20' ) start [2024-12-19 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052785', 'tblTempUsageDetail_20' ) end [2024-12-19 03:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:38:21] Production.INFO: ==2543== Releasing lock... [2024-12-19 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:38:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 03:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:39:04 [end_date_ymd] => 2024-12-19 03:39:04 [RateCDR] => 1 ) [2024-12-19 03: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` >= '2024-12-19 00:39:04' and `end` < '2024-12-19 03: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 ,'') [2024-12-19 03:39:17] Production.INFO: count ==195 [2024-12-19 03:39:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:39:04 - End Time 2024-12-19 03:39:04 [2024-12-19 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052790', 'tblTempUsageDetail_20' ) start [2024-12-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052790', 'tblTempUsageDetail_20' ) end [2024-12-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052790', 'tblTempVendorCDR_20' ) start [2024-12-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052790', 'tblTempVendorCDR_20' ) end [2024-12-19 03:39:17] Production.INFO: ProcessCDR(1,14052790,1,1,2) [2024-12-19 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052790', 'tblTempUsageDetail_20' ) start [2024-12-19 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052790', 'tblTempUsageDetail_20' ) end [2024-12-19 03:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:39:20] Production.INFO: ==2635== Releasing lock... [2024-12-19 03:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:39:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:40:05 [end_date_ymd] => 2024-12-19 03:40:05 [RateCDR] => 1 ) [2024-12-19 03:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:40:05' and `end` < '2024-12-19 03:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:40:18] Production.INFO: count ==191 [2024-12-19 03:40:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:40:05 - End Time 2024-12-19 03:40:05 [2024-12-19 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052795', 'tblTempUsageDetail_20' ) start [2024-12-19 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052795', 'tblTempUsageDetail_20' ) end [2024-12-19 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052795', 'tblTempVendorCDR_20' ) start [2024-12-19 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052795', 'tblTempVendorCDR_20' ) end [2024-12-19 03:40:18] Production.INFO: ProcessCDR(1,14052795,1,1,2) [2024-12-19 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052795', 'tblTempUsageDetail_20' ) start [2024-12-19 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052795', 'tblTempUsageDetail_20' ) end [2024-12-19 03:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:40:21] Production.INFO: ==2726== Releasing lock... [2024-12-19 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:40:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 03:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:41:04 [end_date_ymd] => 2024-12-19 03:41:04 [RateCDR] => 1 ) [2024-12-19 03:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:41:04' and `end` < '2024-12-19 03:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:41:16] Production.INFO: count ==164 [2024-12-19 03:41:16] Production.ERROR: pbx CDR StartTime 2024-12-19 00:41:04 - End Time 2024-12-19 03:41:04 [2024-12-19 03:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052801', 'tblTempUsageDetail_20' ) start [2024-12-19 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052801', 'tblTempUsageDetail_20' ) end [2024-12-19 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052801', 'tblTempVendorCDR_20' ) start [2024-12-19 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052801', 'tblTempVendorCDR_20' ) end [2024-12-19 03:41:16] Production.INFO: ProcessCDR(1,14052801,1,1,2) [2024-12-19 03:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052801', 'tblTempUsageDetail_20' ) start [2024-12-19 03:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052801', 'tblTempUsageDetail_20' ) end [2024-12-19 03:41:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:41:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:41:19] Production.INFO: ==2817== Releasing lock... [2024-12-19 03:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:41:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:42:05 [end_date_ymd] => 2024-12-19 03:42:05 [RateCDR] => 1 ) [2024-12-19 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:42:05' and `end` < '2024-12-19 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:42:17] Production.INFO: count ==163 [2024-12-19 03:42:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:42:05 - End Time 2024-12-19 03:42:05 [2024-12-19 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052806', 'tblTempUsageDetail_20' ) start [2024-12-19 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052806', 'tblTempUsageDetail_20' ) end [2024-12-19 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052806', 'tblTempVendorCDR_20' ) start [2024-12-19 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052806', 'tblTempVendorCDR_20' ) end [2024-12-19 03:42:17] Production.INFO: ProcessCDR(1,14052806,1,1,2) [2024-12-19 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052806', 'tblTempUsageDetail_20' ) start [2024-12-19 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052806', 'tblTempUsageDetail_20' ) end [2024-12-19 03:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:42:20] Production.INFO: ==2905== Releasing lock... [2024-12-19 03:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:42:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:43:04 [end_date_ymd] => 2024-12-19 03:43:04 [RateCDR] => 1 ) [2024-12-19 03:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:43:04' and `end` < '2024-12-19 03:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:43:16] Production.INFO: count ==163 [2024-12-19 03:43:16] Production.ERROR: pbx CDR StartTime 2024-12-19 00:43:04 - End Time 2024-12-19 03:43:04 [2024-12-19 03:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052811', 'tblTempUsageDetail_20' ) start [2024-12-19 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052811', 'tblTempUsageDetail_20' ) end [2024-12-19 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052811', 'tblTempVendorCDR_20' ) start [2024-12-19 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052811', 'tblTempVendorCDR_20' ) end [2024-12-19 03:43:16] Production.INFO: ProcessCDR(1,14052811,1,1,2) [2024-12-19 03:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052811', 'tblTempUsageDetail_20' ) start [2024-12-19 03:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052811', 'tblTempUsageDetail_20' ) end [2024-12-19 03:43:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:43:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:43:19] Production.INFO: ==2993== Releasing lock... [2024-12-19 03:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:43:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:44:05 [end_date_ymd] => 2024-12-19 03:44:05 [RateCDR] => 1 ) [2024-12-19 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:44:05' and `end` < '2024-12-19 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:44:18] Production.INFO: count ==162 [2024-12-19 03:44:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:44:05 - End Time 2024-12-19 03:44:05 [2024-12-19 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052816', 'tblTempUsageDetail_20' ) start [2024-12-19 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052816', 'tblTempUsageDetail_20' ) end [2024-12-19 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052816', 'tblTempVendorCDR_20' ) start [2024-12-19 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052816', 'tblTempVendorCDR_20' ) end [2024-12-19 03:44:18] Production.INFO: ProcessCDR(1,14052816,1,1,2) [2024-12-19 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052816', 'tblTempUsageDetail_20' ) start [2024-12-19 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052816', 'tblTempUsageDetail_20' ) end [2024-12-19 03:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:44:21] Production.INFO: ==3118== Releasing lock... [2024-12-19 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:44:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:45:05 [end_date_ymd] => 2024-12-19 03:45:05 [RateCDR] => 1 ) [2024-12-19 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:45:05' and `end` < '2024-12-19 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:45:17] Production.INFO: count ==159 [2024-12-19 03:45:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:45:05 - End Time 2024-12-19 03:45:05 [2024-12-19 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052821', 'tblTempUsageDetail_20' ) start [2024-12-19 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052821', 'tblTempUsageDetail_20' ) end [2024-12-19 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052821', 'tblTempVendorCDR_20' ) start [2024-12-19 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052821', 'tblTempVendorCDR_20' ) end [2024-12-19 03:45:17] Production.INFO: ProcessCDR(1,14052821,1,1,2) [2024-12-19 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052821', 'tblTempUsageDetail_20' ) start [2024-12-19 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052821', 'tblTempUsageDetail_20' ) end [2024-12-19 03:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:45:20] Production.INFO: ==3213== Releasing lock... [2024-12-19 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:45:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:46:05 [end_date_ymd] => 2024-12-19 03:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:46:17] Production.INFO: count ==159 [2024-12-19 03:46:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:46:05 - End Time 2024-12-19 03:46:05 [2024-12-19 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052826', 'tblTempUsageDetail_20' ) start [2024-12-19 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052826', 'tblTempUsageDetail_20' ) end [2024-12-19 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052826', 'tblTempVendorCDR_20' ) start [2024-12-19 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052826', 'tblTempVendorCDR_20' ) end [2024-12-19 03:46:17] Production.INFO: ProcessCDR(1,14052826,1,1,2) [2024-12-19 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052826', 'tblTempUsageDetail_20' ) start [2024-12-19 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052826', 'tblTempUsageDetail_20' ) end [2024-12-19 03:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:46:20] Production.INFO: ==3305== Releasing lock... [2024-12-19 03:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:46:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:47:05 [end_date_ymd] => 2024-12-19 03:47:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:47:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:47:17] Production.INFO: count ==159 [2024-12-19 03:47:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:47:05 - End Time 2024-12-19 03:47:05 [2024-12-19 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052831', 'tblTempUsageDetail_20' ) start [2024-12-19 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052831', 'tblTempUsageDetail_20' ) end [2024-12-19 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052831', 'tblTempVendorCDR_20' ) start [2024-12-19 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052831', 'tblTempVendorCDR_20' ) end [2024-12-19 03:47:17] Production.INFO: ProcessCDR(1,14052831,1,1,2) [2024-12-19 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052831', 'tblTempUsageDetail_20' ) start [2024-12-19 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052831', 'tblTempUsageDetail_20' ) end [2024-12-19 03:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:47:20] Production.INFO: ==3390== Releasing lock... [2024-12-19 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:47:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:48:05 [end_date_ymd] => 2024-12-19 03:48:05 [RateCDR] => 1 ) [2024-12-19 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:48:05' and `end` < '2024-12-19 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:48:17] Production.INFO: count ==158 [2024-12-19 03:48:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:48:05 - End Time 2024-12-19 03:48:05 [2024-12-19 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052836', 'tblTempUsageDetail_20' ) start [2024-12-19 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052836', 'tblTempUsageDetail_20' ) end [2024-12-19 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052836', 'tblTempVendorCDR_20' ) start [2024-12-19 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052836', 'tblTempVendorCDR_20' ) end [2024-12-19 03:48:17] Production.INFO: ProcessCDR(1,14052836,1,1,2) [2024-12-19 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052836', 'tblTempUsageDetail_20' ) start [2024-12-19 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052836', 'tblTempUsageDetail_20' ) end [2024-12-19 03:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:48:20] Production.INFO: ==3481== Releasing lock... [2024-12-19 03:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:48:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:49:04 [end_date_ymd] => 2024-12-19 03:49:04 [RateCDR] => 1 ) [2024-12-19 03: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` >= '2024-12-19 00:49:04' and `end` < '2024-12-19 03: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 ,'') [2024-12-19 03:49:17] Production.INFO: count ==158 [2024-12-19 03:49:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:49:04 - End Time 2024-12-19 03:49:04 [2024-12-19 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052841', 'tblTempUsageDetail_20' ) start [2024-12-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052841', 'tblTempUsageDetail_20' ) end [2024-12-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052841', 'tblTempVendorCDR_20' ) start [2024-12-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052841', 'tblTempVendorCDR_20' ) end [2024-12-19 03:49:17] Production.INFO: ProcessCDR(1,14052841,1,1,2) [2024-12-19 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052841', 'tblTempUsageDetail_20' ) start [2024-12-19 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052841', 'tblTempUsageDetail_20' ) end [2024-12-19 03:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:49:20] Production.INFO: ==3574== Releasing lock... [2024-12-19 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:49:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:50:06 [end_date_ymd] => 2024-12-19 03:50:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:50:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:50:18] Production.INFO: count ==152 [2024-12-19 03:50:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:50:06 - End Time 2024-12-19 03:50:06 [2024-12-19 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052847', 'tblTempUsageDetail_20' ) start [2024-12-19 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052847', 'tblTempUsageDetail_20' ) end [2024-12-19 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052847', 'tblTempVendorCDR_20' ) start [2024-12-19 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052847', 'tblTempVendorCDR_20' ) end [2024-12-19 03:50:18] Production.INFO: ProcessCDR(1,14052847,1,1,2) [2024-12-19 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052847', 'tblTempUsageDetail_20' ) start [2024-12-19 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052847', 'tblTempUsageDetail_20' ) end [2024-12-19 03:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:50:21] Production.INFO: ==3662== Releasing lock... [2024-12-19 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:50:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:51:05 [end_date_ymd] => 2024-12-19 03:51:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:51:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:51:18] Production.INFO: count ==150 [2024-12-19 03:51:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:51:05 - End Time 2024-12-19 03:51:05 [2024-12-19 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052852', 'tblTempUsageDetail_20' ) start [2024-12-19 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052852', 'tblTempUsageDetail_20' ) end [2024-12-19 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052852', 'tblTempVendorCDR_20' ) start [2024-12-19 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052852', 'tblTempVendorCDR_20' ) end [2024-12-19 03:51:18] Production.INFO: ProcessCDR(1,14052852,1,1,2) [2024-12-19 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052852', 'tblTempUsageDetail_20' ) start [2024-12-19 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052852', 'tblTempUsageDetail_20' ) end [2024-12-19 03:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:51:21] Production.INFO: ==3756== Releasing lock... [2024-12-19 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:51:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:52:04 [end_date_ymd] => 2024-12-19 03:52:04 [RateCDR] => 1 ) [2024-12-19 03: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` >= '2024-12-19 00:52:04' and `end` < '2024-12-19 03: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 ,'') [2024-12-19 03:52:17] Production.INFO: count ==150 [2024-12-19 03:52:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:52:04 - End Time 2024-12-19 03:52:04 [2024-12-19 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052857', 'tblTempUsageDetail_20' ) start [2024-12-19 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052857', 'tblTempUsageDetail_20' ) end [2024-12-19 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052857', 'tblTempVendorCDR_20' ) start [2024-12-19 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052857', 'tblTempVendorCDR_20' ) end [2024-12-19 03:52:17] Production.INFO: ProcessCDR(1,14052857,1,1,2) [2024-12-19 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052857', 'tblTempUsageDetail_20' ) start [2024-12-19 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052857', 'tblTempUsageDetail_20' ) end [2024-12-19 03:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:52:20] Production.INFO: ==3844== Releasing lock... [2024-12-19 03:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:52:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:53:05 [end_date_ymd] => 2024-12-19 03:53:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:53:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:53:17] Production.INFO: count ==150 [2024-12-19 03:53:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:53:05 - End Time 2024-12-19 03:53:05 [2024-12-19 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052862', 'tblTempUsageDetail_20' ) start [2024-12-19 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052862', 'tblTempUsageDetail_20' ) end [2024-12-19 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052862', 'tblTempVendorCDR_20' ) start [2024-12-19 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052862', 'tblTempVendorCDR_20' ) end [2024-12-19 03:53:17] Production.INFO: ProcessCDR(1,14052862,1,1,2) [2024-12-19 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052862', 'tblTempUsageDetail_20' ) start [2024-12-19 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052862', 'tblTempUsageDetail_20' ) end [2024-12-19 03:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:53:20] Production.INFO: ==3931== Releasing lock... [2024-12-19 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:53:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:54:04 [end_date_ymd] => 2024-12-19 03:54:04 [RateCDR] => 1 ) [2024-12-19 03:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:54:04' and `end` < '2024-12-19 03:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:54:17] Production.INFO: count ==150 [2024-12-19 03:54:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:54:04 - End Time 2024-12-19 03:54:04 [2024-12-19 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052867', 'tblTempUsageDetail_20' ) start [2024-12-19 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052867', 'tblTempUsageDetail_20' ) end [2024-12-19 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052867', 'tblTempVendorCDR_20' ) start [2024-12-19 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052867', 'tblTempVendorCDR_20' ) end [2024-12-19 03:54:17] Production.INFO: ProcessCDR(1,14052867,1,1,2) [2024-12-19 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052867', 'tblTempUsageDetail_20' ) start [2024-12-19 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052867', 'tblTempUsageDetail_20' ) end [2024-12-19 03:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:54:20] Production.INFO: ==4022== Releasing lock... [2024-12-19 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:54:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:55:04 [end_date_ymd] => 2024-12-19 03:55:04 [RateCDR] => 1 ) [2024-12-19 03:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:55:04' and `end` < '2024-12-19 03:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:55:17] Production.INFO: count ==149 [2024-12-19 03:55:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:55:04 - End Time 2024-12-19 03:55:04 [2024-12-19 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052872', 'tblTempUsageDetail_20' ) start [2024-12-19 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052872', 'tblTempUsageDetail_20' ) end [2024-12-19 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052872', 'tblTempVendorCDR_20' ) start [2024-12-19 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052872', 'tblTempVendorCDR_20' ) end [2024-12-19 03:55:17] Production.INFO: ProcessCDR(1,14052872,1,1,2) [2024-12-19 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052872', 'tblTempUsageDetail_20' ) start [2024-12-19 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052872', 'tblTempUsageDetail_20' ) end [2024-12-19 03:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:55:20] Production.INFO: ==4110== Releasing lock... [2024-12-19 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:55:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:56:05 [end_date_ymd] => 2024-12-19 03:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:56:18] Production.INFO: count ==146 [2024-12-19 03:56:18] Production.ERROR: pbx CDR StartTime 2024-12-19 00:56:05 - End Time 2024-12-19 03:56:05 [2024-12-19 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052877', 'tblTempUsageDetail_20' ) start [2024-12-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052877', 'tblTempUsageDetail_20' ) end [2024-12-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052877', 'tblTempVendorCDR_20' ) start [2024-12-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052877', 'tblTempVendorCDR_20' ) end [2024-12-19 03:56:18] Production.INFO: ProcessCDR(1,14052877,1,1,2) [2024-12-19 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052877', 'tblTempUsageDetail_20' ) start [2024-12-19 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052877', 'tblTempUsageDetail_20' ) end [2024-12-19 03:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:56:21] Production.INFO: ==4201== Releasing lock... [2024-12-19 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:56:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:57:04 [end_date_ymd] => 2024-12-19 03:57:04 [RateCDR] => 1 ) [2024-12-19 03: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` >= '2024-12-19 00:57:04' and `end` < '2024-12-19 03: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 ,'') [2024-12-19 03:57:16] Production.INFO: count ==146 [2024-12-19 03:57:16] Production.ERROR: pbx CDR StartTime 2024-12-19 00:57:04 - End Time 2024-12-19 03:57:04 [2024-12-19 03:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052882', 'tblTempUsageDetail_20' ) start [2024-12-19 03:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052882', 'tblTempUsageDetail_20' ) end [2024-12-19 03:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052882', 'tblTempVendorCDR_20' ) start [2024-12-19 03:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052882', 'tblTempVendorCDR_20' ) end [2024-12-19 03:57:16] Production.INFO: ProcessCDR(1,14052882,1,1,2) [2024-12-19 03:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052882', 'tblTempUsageDetail_20' ) start [2024-12-19 03:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052882', 'tblTempUsageDetail_20' ) end [2024-12-19 03:57:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:57:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:57:19] Production.INFO: ==4290== Releasing lock... [2024-12-19 03:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:57:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:58:05 [end_date_ymd] => 2024-12-19 03:58:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 00:58:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 03:58:17] Production.INFO: count ==146 [2024-12-19 03:58:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:58:05 - End Time 2024-12-19 03:58:05 [2024-12-19 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052887', 'tblTempUsageDetail_20' ) start [2024-12-19 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052887', 'tblTempUsageDetail_20' ) end [2024-12-19 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052887', 'tblTempVendorCDR_20' ) start [2024-12-19 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052887', 'tblTempVendorCDR_20' ) end [2024-12-19 03:58:17] Production.INFO: ProcessCDR(1,14052887,1,1,2) [2024-12-19 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052887', 'tblTempUsageDetail_20' ) start [2024-12-19 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052887', 'tblTempUsageDetail_20' ) end [2024-12-19 03:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:58:20] Production.INFO: ==4375== Releasing lock... [2024-12-19 03:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:58:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 00:59:04 [end_date_ymd] => 2024-12-19 03:59:04 [RateCDR] => 1 ) [2024-12-19 03:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 00:59:04' and `end` < '2024-12-19 03:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 03:59:17] Production.INFO: count ==146 [2024-12-19 03:59:17] Production.ERROR: pbx CDR StartTime 2024-12-19 00:59:04 - End Time 2024-12-19 03:59:04 [2024-12-19 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052892', 'tblTempUsageDetail_20' ) start [2024-12-19 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052892', 'tblTempUsageDetail_20' ) end [2024-12-19 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052892', 'tblTempVendorCDR_20' ) start [2024-12-19 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052892', 'tblTempVendorCDR_20' ) end [2024-12-19 03:59:17] Production.INFO: ProcessCDR(1,14052892,1,1,2) [2024-12-19 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052892', 'tblTempUsageDetail_20' ) start [2024-12-19 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052892', 'tblTempUsageDetail_20' ) end [2024-12-19 03:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 03:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 03:59:20] Production.INFO: ==4469== Releasing lock... [2024-12-19 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 03:59:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:00:06 [end_date_ymd] => 2024-12-19 04:00:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:00:06' and `end` < '2024-12-19 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:00:18] Production.INFO: count ==140 [2024-12-19 04:00:19] Production.ERROR: pbx CDR StartTime 2024-12-19 01:00:06 - End Time 2024-12-19 04:00:06 [2024-12-19 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052899', 'tblTempUsageDetail_20' ) start [2024-12-19 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052899', 'tblTempUsageDetail_20' ) end [2024-12-19 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052899', 'tblTempVendorCDR_20' ) start [2024-12-19 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052899', 'tblTempVendorCDR_20' ) end [2024-12-19 04:00:19] Production.INFO: ProcessCDR(1,14052899,1,1,2) [2024-12-19 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052899', 'tblTempUsageDetail_20' ) start [2024-12-19 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052899', 'tblTempUsageDetail_20' ) end [2024-12-19 04:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:00:22] Production.INFO: ==4604== Releasing lock... [2024-12-19 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:00:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:01:04 [end_date_ymd] => 2024-12-19 04:01:04 [RateCDR] => 1 ) [2024-12-19 04:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:01:04' and `end` < '2024-12-19 04:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:01:18] Production.INFO: count ==134 [2024-12-19 04:01:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:01:04 - End Time 2024-12-19 04:01:04 [2024-12-19 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052904', 'tblTempUsageDetail_20' ) start [2024-12-19 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052904', 'tblTempUsageDetail_20' ) end [2024-12-19 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052904', 'tblTempVendorCDR_20' ) start [2024-12-19 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052904', 'tblTempVendorCDR_20' ) end [2024-12-19 04:01:18] Production.INFO: ProcessCDR(1,14052904,1,1,2) [2024-12-19 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052904', 'tblTempUsageDetail_20' ) start [2024-12-19 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052904', 'tblTempUsageDetail_20' ) end [2024-12-19 04:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:01:21] Production.INFO: ==4702== Releasing lock... [2024-12-19 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:01:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:02:05 [end_date_ymd] => 2024-12-19 04:02:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:02:17] Production.INFO: count ==134 [2024-12-19 04:02:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:02:05 - End Time 2024-12-19 04:02:05 [2024-12-19 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052909', 'tblTempUsageDetail_20' ) start [2024-12-19 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052909', 'tblTempUsageDetail_20' ) end [2024-12-19 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052909', 'tblTempVendorCDR_20' ) start [2024-12-19 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052909', 'tblTempVendorCDR_20' ) end [2024-12-19 04:02:18] Production.INFO: ProcessCDR(1,14052909,1,1,2) [2024-12-19 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052909', 'tblTempUsageDetail_20' ) start [2024-12-19 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052909', 'tblTempUsageDetail_20' ) end [2024-12-19 04:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:02:21] Production.INFO: ==4786== Releasing lock... [2024-12-19 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:02:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:03:04 [end_date_ymd] => 2024-12-19 04:03:04 [RateCDR] => 1 ) [2024-12-19 04: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` >= '2024-12-19 01:03:04' and `end` < '2024-12-19 04: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 ,'') [2024-12-19 04:03:17] Production.INFO: count ==134 [2024-12-19 04:03:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:03:04 - End Time 2024-12-19 04:03:04 [2024-12-19 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052914', 'tblTempUsageDetail_20' ) start [2024-12-19 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052914', 'tblTempUsageDetail_20' ) end [2024-12-19 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052914', 'tblTempVendorCDR_20' ) start [2024-12-19 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052914', 'tblTempVendorCDR_20' ) end [2024-12-19 04:03:17] Production.INFO: ProcessCDR(1,14052914,1,1,2) [2024-12-19 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052914', 'tblTempUsageDetail_20' ) start [2024-12-19 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052914', 'tblTempUsageDetail_20' ) end [2024-12-19 04:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:03:20] Production.INFO: ==4870== Releasing lock... [2024-12-19 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:03:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:04:05 [end_date_ymd] => 2024-12-19 04:04:05 [RateCDR] => 1 ) [2024-12-19 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:04:05' and `end` < '2024-12-19 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:04:18] Production.INFO: count ==134 [2024-12-19 04:04:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:04:05 - End Time 2024-12-19 04:04:05 [2024-12-19 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052919', 'tblTempUsageDetail_20' ) start [2024-12-19 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052919', 'tblTempUsageDetail_20' ) end [2024-12-19 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052919', 'tblTempVendorCDR_20' ) start [2024-12-19 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052919', 'tblTempVendorCDR_20' ) end [2024-12-19 04:04:18] Production.INFO: ProcessCDR(1,14052919,1,1,2) [2024-12-19 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052919', 'tblTempUsageDetail_20' ) start [2024-12-19 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052919', 'tblTempUsageDetail_20' ) end [2024-12-19 04:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:04:21] Production.INFO: ==4949== Releasing lock... [2024-12-19 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:04:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:05:04 [end_date_ymd] => 2024-12-19 04:05:04 [RateCDR] => 1 ) [2024-12-19 04:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:05:04' and `end` < '2024-12-19 04:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:05:17] Production.INFO: count ==134 [2024-12-19 04:05:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:05:04 - End Time 2024-12-19 04:05:04 [2024-12-19 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052924', 'tblTempUsageDetail_20' ) start [2024-12-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052924', 'tblTempUsageDetail_20' ) end [2024-12-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052924', 'tblTempVendorCDR_20' ) start [2024-12-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052924', 'tblTempVendorCDR_20' ) end [2024-12-19 04:05:17] Production.INFO: ProcessCDR(1,14052924,1,1,2) [2024-12-19 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052924', 'tblTempUsageDetail_20' ) start [2024-12-19 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052924', 'tblTempUsageDetail_20' ) end [2024-12-19 04:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:05:20] Production.INFO: ==5031== Releasing lock... [2024-12-19 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:05:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:06:05 [end_date_ymd] => 2024-12-19 04:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:06:17] Production.INFO: count ==134 [2024-12-19 04:06:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:06:05 - End Time 2024-12-19 04:06:05 [2024-12-19 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052929', 'tblTempUsageDetail_20' ) start [2024-12-19 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052929', 'tblTempUsageDetail_20' ) end [2024-12-19 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052929', 'tblTempVendorCDR_20' ) start [2024-12-19 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052929', 'tblTempVendorCDR_20' ) end [2024-12-19 04:06:17] Production.INFO: ProcessCDR(1,14052929,1,1,2) [2024-12-19 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052929', 'tblTempUsageDetail_20' ) start [2024-12-19 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052929', 'tblTempUsageDetail_20' ) end [2024-12-19 04:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:06:20] Production.INFO: ==5119== Releasing lock... [2024-12-19 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:06:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:07:06 [end_date_ymd] => 2024-12-19 04:07:06 [RateCDR] => 1 ) [2024-12-19 04:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:07:06' and `end` < '2024-12-19 04:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:07:19] Production.INFO: count ==134 [2024-12-19 04:07:19] Production.ERROR: pbx CDR StartTime 2024-12-19 01:07:06 - End Time 2024-12-19 04:07:06 [2024-12-19 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052934', 'tblTempUsageDetail_20' ) start [2024-12-19 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052934', 'tblTempUsageDetail_20' ) end [2024-12-19 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052934', 'tblTempVendorCDR_20' ) start [2024-12-19 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052934', 'tblTempVendorCDR_20' ) end [2024-12-19 04:07:19] Production.INFO: ProcessCDR(1,14052934,1,1,2) [2024-12-19 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052934', 'tblTempUsageDetail_20' ) start [2024-12-19 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052934', 'tblTempUsageDetail_20' ) end [2024-12-19 04:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:07:22] Production.INFO: ==5199== Releasing lock... [2024-12-19 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:07:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:08:05 [end_date_ymd] => 2024-12-19 04:08:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:08:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:08:17] Production.INFO: count ==134 [2024-12-19 04:08:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:08:05 - End Time 2024-12-19 04:08:05 [2024-12-19 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052939', 'tblTempUsageDetail_20' ) start [2024-12-19 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052939', 'tblTempUsageDetail_20' ) end [2024-12-19 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052939', 'tblTempVendorCDR_20' ) start [2024-12-19 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052939', 'tblTempVendorCDR_20' ) end [2024-12-19 04:08:17] Production.INFO: ProcessCDR(1,14052939,1,1,2) [2024-12-19 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052939', 'tblTempUsageDetail_20' ) start [2024-12-19 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052939', 'tblTempUsageDetail_20' ) end [2024-12-19 04:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:08:20] Production.INFO: ==5284== Releasing lock... [2024-12-19 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:08:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:09:05 [end_date_ymd] => 2024-12-19 04:09:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:09:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:09:17] Production.INFO: count ==134 [2024-12-19 04:09:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:09:05 - End Time 2024-12-19 04:09:05 [2024-12-19 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052944', 'tblTempUsageDetail_20' ) start [2024-12-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052944', 'tblTempUsageDetail_20' ) end [2024-12-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052944', 'tblTempVendorCDR_20' ) start [2024-12-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052944', 'tblTempVendorCDR_20' ) end [2024-12-19 04:09:17] Production.INFO: ProcessCDR(1,14052944,1,1,2) [2024-12-19 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052944', 'tblTempUsageDetail_20' ) start [2024-12-19 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052944', 'tblTempUsageDetail_20' ) end [2024-12-19 04:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:09:20] Production.INFO: ==5369== Releasing lock... [2024-12-19 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:09:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:10:05 [end_date_ymd] => 2024-12-19 04:10:05 [RateCDR] => 1 ) [2024-12-19 04:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:10:05' and `end` < '2024-12-19 04:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:10:17] Production.INFO: count ==129 [2024-12-19 04:10:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:10:05 - End Time 2024-12-19 04:10:05 [2024-12-19 04:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052950', 'tblTempUsageDetail_20' ) start [2024-12-19 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052950', 'tblTempUsageDetail_20' ) end [2024-12-19 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052950', 'tblTempVendorCDR_20' ) start [2024-12-19 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052950', 'tblTempVendorCDR_20' ) end [2024-12-19 04:10:17] Production.INFO: ProcessCDR(1,14052950,1,1,2) [2024-12-19 04:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052950', 'tblTempUsageDetail_20' ) start [2024-12-19 04:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052950', 'tblTempUsageDetail_20' ) end [2024-12-19 04:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:10:20] Production.INFO: ==5453== Releasing lock... [2024-12-19 04:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:10:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:11:05 [end_date_ymd] => 2024-12-19 04:11:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:11:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:11:18] Production.INFO: count ==116 [2024-12-19 04:11:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:11:05 - End Time 2024-12-19 04:11:05 [2024-12-19 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052955', 'tblTempUsageDetail_20' ) start [2024-12-19 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052955', 'tblTempUsageDetail_20' ) end [2024-12-19 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052955', 'tblTempVendorCDR_20' ) start [2024-12-19 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052955', 'tblTempVendorCDR_20' ) end [2024-12-19 04:11:18] Production.INFO: ProcessCDR(1,14052955,1,1,2) [2024-12-19 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052955', 'tblTempUsageDetail_20' ) start [2024-12-19 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052955', 'tblTempUsageDetail_20' ) end [2024-12-19 04:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:11:21] Production.INFO: ==5540== Releasing lock... [2024-12-19 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:11:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:12:04 [end_date_ymd] => 2024-12-19 04:12:04 [RateCDR] => 1 ) [2024-12-19 04: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` >= '2024-12-19 01:12:04' and `end` < '2024-12-19 04: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 ,'') [2024-12-19 04:12:17] Production.INFO: count ==116 [2024-12-19 04:12:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:12:04 - End Time 2024-12-19 04:12:04 [2024-12-19 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052960', 'tblTempUsageDetail_20' ) start [2024-12-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052960', 'tblTempUsageDetail_20' ) end [2024-12-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052960', 'tblTempVendorCDR_20' ) start [2024-12-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052960', 'tblTempVendorCDR_20' ) end [2024-12-19 04:12:17] Production.INFO: ProcessCDR(1,14052960,1,1,2) [2024-12-19 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052960', 'tblTempUsageDetail_20' ) start [2024-12-19 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052960', 'tblTempUsageDetail_20' ) end [2024-12-19 04:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:12:20] Production.INFO: ==5622== Releasing lock... [2024-12-19 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:12:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:13:05 [end_date_ymd] => 2024-12-19 04:13:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:13:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:13:18] Production.INFO: count ==116 [2024-12-19 04:13:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:13:05 - End Time 2024-12-19 04:13:05 [2024-12-19 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052965', 'tblTempUsageDetail_20' ) start [2024-12-19 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052965', 'tblTempUsageDetail_20' ) end [2024-12-19 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052965', 'tblTempVendorCDR_20' ) start [2024-12-19 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052965', 'tblTempVendorCDR_20' ) end [2024-12-19 04:13:18] Production.INFO: ProcessCDR(1,14052965,1,1,2) [2024-12-19 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052965', 'tblTempUsageDetail_20' ) start [2024-12-19 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052965', 'tblTempUsageDetail_20' ) end [2024-12-19 04:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:13:21] Production.INFO: ==5707== Releasing lock... [2024-12-19 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:13:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:14:04 [end_date_ymd] => 2024-12-19 04:14:04 [RateCDR] => 1 ) [2024-12-19 04: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` >= '2024-12-19 01:14:04' and `end` < '2024-12-19 04: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 ,'') [2024-12-19 04:14:16] Production.INFO: count ==116 [2024-12-19 04:14:16] Production.ERROR: pbx CDR StartTime 2024-12-19 01:14:04 - End Time 2024-12-19 04:14:04 [2024-12-19 04:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052970', 'tblTempUsageDetail_20' ) start [2024-12-19 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052970', 'tblTempUsageDetail_20' ) end [2024-12-19 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052970', 'tblTempVendorCDR_20' ) start [2024-12-19 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052970', 'tblTempVendorCDR_20' ) end [2024-12-19 04:14:16] Production.INFO: ProcessCDR(1,14052970,1,1,2) [2024-12-19 04:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:14:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052970', 'tblTempUsageDetail_20' ) start [2024-12-19 04:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052970', 'tblTempUsageDetail_20' ) end [2024-12-19 04:14:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:14:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:14:19] Production.INFO: ==5790== Releasing lock... [2024-12-19 04:14:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:14:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:15:05 [end_date_ymd] => 2024-12-19 04:15:05 [RateCDR] => 1 ) [2024-12-19 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:15:05' and `end` < '2024-12-19 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:15:18] Production.INFO: count ==116 [2024-12-19 04:15:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:15:05 - End Time 2024-12-19 04:15:05 [2024-12-19 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052975', 'tblTempUsageDetail_20' ) start [2024-12-19 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052975', 'tblTempUsageDetail_20' ) end [2024-12-19 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052975', 'tblTempVendorCDR_20' ) start [2024-12-19 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052975', 'tblTempVendorCDR_20' ) end [2024-12-19 04:15:18] Production.INFO: ProcessCDR(1,14052975,1,1,2) [2024-12-19 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052975', 'tblTempUsageDetail_20' ) start [2024-12-19 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052975', 'tblTempUsageDetail_20' ) end [2024-12-19 04:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:15:21] Production.INFO: ==5874== Releasing lock... [2024-12-19 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:15:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:16:05 [end_date_ymd] => 2024-12-19 04:16:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:16:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:16:18] Production.INFO: count ==116 [2024-12-19 04:16:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:16:05 - End Time 2024-12-19 04:16:05 [2024-12-19 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052980', 'tblTempUsageDetail_20' ) start [2024-12-19 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052980', 'tblTempUsageDetail_20' ) end [2024-12-19 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052980', 'tblTempVendorCDR_20' ) start [2024-12-19 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052980', 'tblTempVendorCDR_20' ) end [2024-12-19 04:16:18] Production.INFO: ProcessCDR(1,14052980,1,1,2) [2024-12-19 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052980', 'tblTempUsageDetail_20' ) start [2024-12-19 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052980', 'tblTempUsageDetail_20' ) end [2024-12-19 04:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:16:21] Production.INFO: ==5996== Releasing lock... [2024-12-19 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:16:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:17:04 [end_date_ymd] => 2024-12-19 04:17:04 [RateCDR] => 1 ) [2024-12-19 04:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:17:04' and `end` < '2024-12-19 04:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:17:16] Production.INFO: count ==116 [2024-12-19 04:17:16] Production.ERROR: pbx CDR StartTime 2024-12-19 01:17:04 - End Time 2024-12-19 04:17:04 [2024-12-19 04:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052985', 'tblTempUsageDetail_20' ) start [2024-12-19 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052985', 'tblTempUsageDetail_20' ) end [2024-12-19 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052985', 'tblTempVendorCDR_20' ) start [2024-12-19 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052985', 'tblTempVendorCDR_20' ) end [2024-12-19 04:17:16] Production.INFO: ProcessCDR(1,14052985,1,1,2) [2024-12-19 04:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052985', 'tblTempUsageDetail_20' ) start [2024-12-19 04:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052985', 'tblTempUsageDetail_20' ) end [2024-12-19 04:17:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:17:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:17:19] Production.INFO: ==6080== Releasing lock... [2024-12-19 04:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:17:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:18:05 [end_date_ymd] => 2024-12-19 04:18:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:18:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:18:17] Production.INFO: count ==116 [2024-12-19 04:18:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:18:05 - End Time 2024-12-19 04:18:05 [2024-12-19 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052990', 'tblTempUsageDetail_20' ) start [2024-12-19 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052990', 'tblTempUsageDetail_20' ) end [2024-12-19 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052990', 'tblTempVendorCDR_20' ) start [2024-12-19 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052990', 'tblTempVendorCDR_20' ) end [2024-12-19 04:18:17] Production.INFO: ProcessCDR(1,14052990,1,1,2) [2024-12-19 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052990', 'tblTempUsageDetail_20' ) start [2024-12-19 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052990', 'tblTempUsageDetail_20' ) end [2024-12-19 04:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:18:21] Production.INFO: ==6152== Releasing lock... [2024-12-19 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:18:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:19:04 [end_date_ymd] => 2024-12-19 04:19:04 [RateCDR] => 1 ) [2024-12-19 04:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:19:04' and `end` < '2024-12-19 04:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:19:17] Production.INFO: count ==116 [2024-12-19 04:19:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:19:04 - End Time 2024-12-19 04:19:04 [2024-12-19 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052995', 'tblTempUsageDetail_20' ) start [2024-12-19 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14052995', 'tblTempUsageDetail_20' ) end [2024-12-19 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052995', 'tblTempVendorCDR_20' ) start [2024-12-19 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14052995', 'tblTempVendorCDR_20' ) end [2024-12-19 04:19:17] Production.INFO: ProcessCDR(1,14052995,1,1,2) [2024-12-19 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14052995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14052995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14052995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14052995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052995', 'tblTempUsageDetail_20' ) start [2024-12-19 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14052995', 'tblTempUsageDetail_20' ) end [2024-12-19 04:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:19:20] Production.INFO: ==6225== Releasing lock... [2024-12-19 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:19:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:20:05 [end_date_ymd] => 2024-12-19 04:20:05 [RateCDR] => 1 ) [2024-12-19 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:20:05' and `end` < '2024-12-19 04:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:20:18] Production.INFO: count ==116 [2024-12-19 04:20:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:20:05 - End Time 2024-12-19 04:20:05 [2024-12-19 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053000', 'tblTempUsageDetail_20' ) start [2024-12-19 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053000', 'tblTempUsageDetail_20' ) end [2024-12-19 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053000', 'tblTempVendorCDR_20' ) start [2024-12-19 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053000', 'tblTempVendorCDR_20' ) end [2024-12-19 04:20:18] Production.INFO: ProcessCDR(1,14053000,1,1,2) [2024-12-19 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053000', 'tblTempUsageDetail_20' ) start [2024-12-19 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053000', 'tblTempUsageDetail_20' ) end [2024-12-19 04:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:20:21] Production.INFO: ==6300== Releasing lock... [2024-12-19 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:20:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:21:05 [end_date_ymd] => 2024-12-19 04:21:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:21:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:21:17] Production.INFO: count ==114 [2024-12-19 04:21:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:21:05 - End Time 2024-12-19 04:21:05 [2024-12-19 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053006', 'tblTempUsageDetail_20' ) start [2024-12-19 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053006', 'tblTempUsageDetail_20' ) end [2024-12-19 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053006', 'tblTempVendorCDR_20' ) start [2024-12-19 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053006', 'tblTempVendorCDR_20' ) end [2024-12-19 04:21:17] Production.INFO: ProcessCDR(1,14053006,1,1,2) [2024-12-19 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053006', 'tblTempUsageDetail_20' ) start [2024-12-19 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053006', 'tblTempUsageDetail_20' ) end [2024-12-19 04:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:21:20] Production.INFO: ==6373== Releasing lock... [2024-12-19 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:21:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:22:04 [end_date_ymd] => 2024-12-19 04:22:04 [RateCDR] => 1 ) [2024-12-19 04: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` >= '2024-12-19 01:22:04' and `end` < '2024-12-19 04: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 ,'') [2024-12-19 04:22:16] Production.INFO: count ==114 [2024-12-19 04:22:16] Production.ERROR: pbx CDR StartTime 2024-12-19 01:22:04 - End Time 2024-12-19 04:22:04 [2024-12-19 04:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053011', 'tblTempUsageDetail_20' ) start [2024-12-19 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053011', 'tblTempUsageDetail_20' ) end [2024-12-19 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053011', 'tblTempVendorCDR_20' ) start [2024-12-19 04:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053011', 'tblTempVendorCDR_20' ) end [2024-12-19 04:22:16] Production.INFO: ProcessCDR(1,14053011,1,1,2) [2024-12-19 04:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:22:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053011', 'tblTempUsageDetail_20' ) start [2024-12-19 04:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053011', 'tblTempUsageDetail_20' ) end [2024-12-19 04:22:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:22:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:22:19] Production.INFO: ==6445== Releasing lock... [2024-12-19 04:22:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:22:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:23:05 [end_date_ymd] => 2024-12-19 04:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:23:17] Production.INFO: count ==114 [2024-12-19 04:23:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:23:05 - End Time 2024-12-19 04:23:05 [2024-12-19 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053016', 'tblTempUsageDetail_20' ) start [2024-12-19 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053016', 'tblTempUsageDetail_20' ) end [2024-12-19 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053016', 'tblTempVendorCDR_20' ) start [2024-12-19 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053016', 'tblTempVendorCDR_20' ) end [2024-12-19 04:23:17] Production.INFO: ProcessCDR(1,14053016,1,1,2) [2024-12-19 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053016', 'tblTempUsageDetail_20' ) start [2024-12-19 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053016', 'tblTempUsageDetail_20' ) end [2024-12-19 04:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:23:20] Production.INFO: ==6526== Releasing lock... [2024-12-19 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:23:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:24:04 [end_date_ymd] => 2024-12-19 04:24:04 [RateCDR] => 1 ) [2024-12-19 04: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` >= '2024-12-19 01:24:04' and `end` < '2024-12-19 04: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 ,'') [2024-12-19 04:24:17] Production.INFO: count ==114 [2024-12-19 04:24:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:24:04 - End Time 2024-12-19 04:24:04 [2024-12-19 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053021', 'tblTempUsageDetail_20' ) start [2024-12-19 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053021', 'tblTempUsageDetail_20' ) end [2024-12-19 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053021', 'tblTempVendorCDR_20' ) start [2024-12-19 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053021', 'tblTempVendorCDR_20' ) end [2024-12-19 04:24:17] Production.INFO: ProcessCDR(1,14053021,1,1,2) [2024-12-19 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053021', 'tblTempUsageDetail_20' ) start [2024-12-19 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053021', 'tblTempUsageDetail_20' ) end [2024-12-19 04:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:24:20] Production.INFO: ==6596== Releasing lock... [2024-12-19 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:24:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:25:05 [end_date_ymd] => 2024-12-19 04:25:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:25:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:25:18] Production.INFO: count ==114 [2024-12-19 04:25:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:25:05 - End Time 2024-12-19 04:25:05 [2024-12-19 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053026', 'tblTempUsageDetail_20' ) start [2024-12-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053026', 'tblTempUsageDetail_20' ) end [2024-12-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053026', 'tblTempVendorCDR_20' ) start [2024-12-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053026', 'tblTempVendorCDR_20' ) end [2024-12-19 04:25:18] Production.INFO: ProcessCDR(1,14053026,1,1,2) [2024-12-19 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053026', 'tblTempUsageDetail_20' ) start [2024-12-19 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053026', 'tblTempUsageDetail_20' ) end [2024-12-19 04:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:25:21] Production.INFO: ==6672== Releasing lock... [2024-12-19 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:25:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:26:05 [end_date_ymd] => 2024-12-19 04:26:05 [RateCDR] => 1 ) [2024-12-19 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:26:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:26:17] Production.INFO: count ==114 [2024-12-19 04:26:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:26:05 - End Time 2024-12-19 04:26:05 [2024-12-19 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053031', 'tblTempUsageDetail_20' ) start [2024-12-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053031', 'tblTempUsageDetail_20' ) end [2024-12-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053031', 'tblTempVendorCDR_20' ) start [2024-12-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053031', 'tblTempVendorCDR_20' ) end [2024-12-19 04:26:17] Production.INFO: ProcessCDR(1,14053031,1,1,2) [2024-12-19 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053031', 'tblTempUsageDetail_20' ) start [2024-12-19 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053031', 'tblTempUsageDetail_20' ) end [2024-12-19 04:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:26:20] Production.INFO: ==6752== Releasing lock... [2024-12-19 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:26:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:27:05 [end_date_ymd] => 2024-12-19 04:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:27:17] Production.INFO: count ==114 [2024-12-19 04:27:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:27:05 - End Time 2024-12-19 04:27:05 [2024-12-19 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053036', 'tblTempUsageDetail_20' ) start [2024-12-19 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053036', 'tblTempUsageDetail_20' ) end [2024-12-19 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053036', 'tblTempVendorCDR_20' ) start [2024-12-19 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053036', 'tblTempVendorCDR_20' ) end [2024-12-19 04:27:17] Production.INFO: ProcessCDR(1,14053036,1,1,2) [2024-12-19 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053036', 'tblTempUsageDetail_20' ) start [2024-12-19 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053036', 'tblTempUsageDetail_20' ) end [2024-12-19 04:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:27:20] Production.INFO: ==6826== Releasing lock... [2024-12-19 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:27:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:28:05 [end_date_ymd] => 2024-12-19 04:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:28:17] Production.INFO: count ==114 [2024-12-19 04:28:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:28:05 - End Time 2024-12-19 04:28:05 [2024-12-19 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053041', 'tblTempUsageDetail_20' ) start [2024-12-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053041', 'tblTempUsageDetail_20' ) end [2024-12-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053041', 'tblTempVendorCDR_20' ) start [2024-12-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053041', 'tblTempVendorCDR_20' ) end [2024-12-19 04:28:17] Production.INFO: ProcessCDR(1,14053041,1,1,2) [2024-12-19 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053041', 'tblTempUsageDetail_20' ) start [2024-12-19 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053041', 'tblTempUsageDetail_20' ) end [2024-12-19 04:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:28:20] Production.INFO: ==6898== Releasing lock... [2024-12-19 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:28:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:29:04 [end_date_ymd] => 2024-12-19 04:29:04 [RateCDR] => 1 ) [2024-12-19 04: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` >= '2024-12-19 01:29:04' and `end` < '2024-12-19 04: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 ,'') [2024-12-19 04:29:18] Production.INFO: count ==114 [2024-12-19 04:29:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:29:04 - End Time 2024-12-19 04:29:04 [2024-12-19 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053046', 'tblTempUsageDetail_20' ) start [2024-12-19 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053046', 'tblTempUsageDetail_20' ) end [2024-12-19 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053046', 'tblTempVendorCDR_20' ) start [2024-12-19 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053046', 'tblTempVendorCDR_20' ) end [2024-12-19 04:29:18] Production.INFO: ProcessCDR(1,14053046,1,1,2) [2024-12-19 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053046', 'tblTempUsageDetail_20' ) start [2024-12-19 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053046', 'tblTempUsageDetail_20' ) end [2024-12-19 04:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:29:21] Production.INFO: ==6975== Releasing lock... [2024-12-19 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:29:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:30:06 [end_date_ymd] => 2024-12-19 04:30:06 [RateCDR] => 1 ) [2024-12-19 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:30:06' and `end` < '2024-12-19 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:30:18] Production.INFO: count ==114 [2024-12-19 04:30:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:30:06 - End Time 2024-12-19 04:30:06 [2024-12-19 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053053', 'tblTempUsageDetail_20' ) start [2024-12-19 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053053', 'tblTempUsageDetail_20' ) end [2024-12-19 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053053', 'tblTempVendorCDR_20' ) start [2024-12-19 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053053', 'tblTempVendorCDR_20' ) end [2024-12-19 04:30:18] Production.INFO: ProcessCDR(1,14053053,1,1,2) [2024-12-19 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053053', 'tblTempUsageDetail_20' ) start [2024-12-19 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053053', 'tblTempUsageDetail_20' ) end [2024-12-19 04:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:30:22] Production.INFO: ==7060== Releasing lock... [2024-12-19 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:30:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:31:04 [end_date_ymd] => 2024-12-19 04:31:04 [RateCDR] => 1 ) [2024-12-19 04: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` >= '2024-12-19 01:31:04' and `end` < '2024-12-19 04: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 ,'') [2024-12-19 04:31:17] Production.INFO: count ==115 [2024-12-19 04:31:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:31:04 - End Time 2024-12-19 04:31:04 [2024-12-19 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053058', 'tblTempUsageDetail_20' ) start [2024-12-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053058', 'tblTempUsageDetail_20' ) end [2024-12-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053058', 'tblTempVendorCDR_20' ) start [2024-12-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053058', 'tblTempVendorCDR_20' ) end [2024-12-19 04:31:17] Production.INFO: ProcessCDR(1,14053058,1,1,2) [2024-12-19 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053058', 'tblTempUsageDetail_20' ) start [2024-12-19 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053058', 'tblTempUsageDetail_20' ) end [2024-12-19 04:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:31:21] Production.INFO: ==7237== Releasing lock... [2024-12-19 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:31:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:32:05 [end_date_ymd] => 2024-12-19 04:32:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:32:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:32:17] Production.INFO: count ==115 [2024-12-19 04:32:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:32:05 - End Time 2024-12-19 04:32:05 [2024-12-19 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053063', 'tblTempUsageDetail_20' ) start [2024-12-19 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053063', 'tblTempUsageDetail_20' ) end [2024-12-19 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053063', 'tblTempVendorCDR_20' ) start [2024-12-19 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053063', 'tblTempVendorCDR_20' ) end [2024-12-19 04:32:17] Production.INFO: ProcessCDR(1,14053063,1,1,2) [2024-12-19 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053063', 'tblTempUsageDetail_20' ) start [2024-12-19 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053063', 'tblTempUsageDetail_20' ) end [2024-12-19 04:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:32:20] Production.INFO: ==7353== Releasing lock... [2024-12-19 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:32:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:33:04 [end_date_ymd] => 2024-12-19 04:33:04 [RateCDR] => 1 ) [2024-12-19 04: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` >= '2024-12-19 01:33:04' and `end` < '2024-12-19 04: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 ,'') [2024-12-19 04:33:16] Production.INFO: count ==115 [2024-12-19 04:33:16] Production.ERROR: pbx CDR StartTime 2024-12-19 01:33:04 - End Time 2024-12-19 04:33:04 [2024-12-19 04:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053068', 'tblTempUsageDetail_20' ) start [2024-12-19 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053068', 'tblTempUsageDetail_20' ) end [2024-12-19 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053068', 'tblTempVendorCDR_20' ) start [2024-12-19 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053068', 'tblTempVendorCDR_20' ) end [2024-12-19 04:33:16] Production.INFO: ProcessCDR(1,14053068,1,1,2) [2024-12-19 04:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053068', 'tblTempUsageDetail_20' ) start [2024-12-19 04:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053068', 'tblTempUsageDetail_20' ) end [2024-12-19 04:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:33:19] Production.INFO: ==7428== Releasing lock... [2024-12-19 04:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:33:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:34:04 [end_date_ymd] => 2024-12-19 04:34:04 [RateCDR] => 1 ) [2024-12-19 04:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:34:04' and `end` < '2024-12-19 04:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:34:17] Production.INFO: count ==115 [2024-12-19 04:34:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:34:04 - End Time 2024-12-19 04:34:04 [2024-12-19 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053073', 'tblTempUsageDetail_20' ) start [2024-12-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053073', 'tblTempUsageDetail_20' ) end [2024-12-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053073', 'tblTempVendorCDR_20' ) start [2024-12-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053073', 'tblTempVendorCDR_20' ) end [2024-12-19 04:34:17] Production.INFO: ProcessCDR(1,14053073,1,1,2) [2024-12-19 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053073', 'tblTempUsageDetail_20' ) start [2024-12-19 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053073', 'tblTempUsageDetail_20' ) end [2024-12-19 04:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:34:20] Production.INFO: ==7507== Releasing lock... [2024-12-19 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:34:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:35:05 [end_date_ymd] => 2024-12-19 04:35:05 [RateCDR] => 1 ) [2024-12-19 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:35:05' and `end` < '2024-12-19 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:35:17] Production.INFO: count ==115 [2024-12-19 04:35:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:35:05 - End Time 2024-12-19 04:35:05 [2024-12-19 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053078', 'tblTempUsageDetail_20' ) start [2024-12-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053078', 'tblTempUsageDetail_20' ) end [2024-12-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053078', 'tblTempVendorCDR_20' ) start [2024-12-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053078', 'tblTempVendorCDR_20' ) end [2024-12-19 04:35:17] Production.INFO: ProcessCDR(1,14053078,1,1,2) [2024-12-19 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053078', 'tblTempUsageDetail_20' ) start [2024-12-19 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053078', 'tblTempUsageDetail_20' ) end [2024-12-19 04:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:35:20] Production.INFO: ==7587== Releasing lock... [2024-12-19 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:35:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:36:04 [end_date_ymd] => 2024-12-19 04:36:04 [RateCDR] => 1 ) [2024-12-19 04:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:36:04' and `end` < '2024-12-19 04:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:36:17] Production.INFO: count ==115 [2024-12-19 04:36:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:36:04 - End Time 2024-12-19 04:36:04 [2024-12-19 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053083', 'tblTempUsageDetail_20' ) start [2024-12-19 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053083', 'tblTempUsageDetail_20' ) end [2024-12-19 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053083', 'tblTempVendorCDR_20' ) start [2024-12-19 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053083', 'tblTempVendorCDR_20' ) end [2024-12-19 04:36:17] Production.INFO: ProcessCDR(1,14053083,1,1,2) [2024-12-19 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053083', 'tblTempUsageDetail_20' ) start [2024-12-19 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053083', 'tblTempUsageDetail_20' ) end [2024-12-19 04:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:36:20] Production.INFO: ==7664== Releasing lock... [2024-12-19 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:36:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:37:05 [end_date_ymd] => 2024-12-19 04:37:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:37:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:37:18] Production.INFO: count ==115 [2024-12-19 04:37:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:37:05 - End Time 2024-12-19 04:37:05 [2024-12-19 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053088', 'tblTempUsageDetail_20' ) start [2024-12-19 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053088', 'tblTempUsageDetail_20' ) end [2024-12-19 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053088', 'tblTempVendorCDR_20' ) start [2024-12-19 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053088', 'tblTempVendorCDR_20' ) end [2024-12-19 04:37:18] Production.INFO: ProcessCDR(1,14053088,1,1,2) [2024-12-19 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053088', 'tblTempUsageDetail_20' ) start [2024-12-19 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053088', 'tblTempUsageDetail_20' ) end [2024-12-19 04:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:37:21] Production.INFO: ==7743== Releasing lock... [2024-12-19 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:37:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:38:05 [end_date_ymd] => 2024-12-19 04:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:38:17] Production.INFO: count ==115 [2024-12-19 04:38:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:38:05 - End Time 2024-12-19 04:38:05 [2024-12-19 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053093', 'tblTempUsageDetail_20' ) start [2024-12-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053093', 'tblTempUsageDetail_20' ) end [2024-12-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053093', 'tblTempVendorCDR_20' ) start [2024-12-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053093', 'tblTempVendorCDR_20' ) end [2024-12-19 04:38:17] Production.INFO: ProcessCDR(1,14053093,1,1,2) [2024-12-19 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053093', 'tblTempUsageDetail_20' ) start [2024-12-19 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053093', 'tblTempUsageDetail_20' ) end [2024-12-19 04:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:38:21] Production.INFO: ==7821== Releasing lock... [2024-12-19 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:38:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:39:04 [end_date_ymd] => 2024-12-19 04:39:04 [RateCDR] => 1 ) [2024-12-19 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:39:04' and `end` < '2024-12-19 04:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:39:16] Production.INFO: count ==115 [2024-12-19 04:39:16] Production.ERROR: pbx CDR StartTime 2024-12-19 01:39:04 - End Time 2024-12-19 04:39:04 [2024-12-19 04:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053098', 'tblTempUsageDetail_20' ) start [2024-12-19 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053098', 'tblTempUsageDetail_20' ) end [2024-12-19 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053098', 'tblTempVendorCDR_20' ) start [2024-12-19 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053098', 'tblTempVendorCDR_20' ) end [2024-12-19 04:39:16] Production.INFO: ProcessCDR(1,14053098,1,1,2) [2024-12-19 04:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053098', 'tblTempUsageDetail_20' ) start [2024-12-19 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053098', 'tblTempUsageDetail_20' ) end [2024-12-19 04:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:39:20] Production.INFO: ==7900== Releasing lock... [2024-12-19 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:39:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:40:05 [end_date_ymd] => 2024-12-19 04:40:05 [RateCDR] => 1 ) [2024-12-19 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:40:05' and `end` < '2024-12-19 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:40:17] Production.INFO: count ==113 [2024-12-19 04:40:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:40:05 - End Time 2024-12-19 04:40:05 [2024-12-19 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053104', 'tblTempUsageDetail_20' ) start [2024-12-19 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053104', 'tblTempUsageDetail_20' ) end [2024-12-19 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053104', 'tblTempVendorCDR_20' ) start [2024-12-19 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053104', 'tblTempVendorCDR_20' ) end [2024-12-19 04:40:17] Production.INFO: ProcessCDR(1,14053104,1,1,2) [2024-12-19 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053104', 'tblTempUsageDetail_20' ) start [2024-12-19 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053104', 'tblTempUsageDetail_20' ) end [2024-12-19 04:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:40:20] Production.INFO: ==7981== Releasing lock... [2024-12-19 04:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:40:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:41:04 [end_date_ymd] => 2024-12-19 04:41:04 [RateCDR] => 1 ) [2024-12-19 04:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:41:04' and `end` < '2024-12-19 04:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:41:16] Production.INFO: count ==113 [2024-12-19 04:41:16] Production.ERROR: pbx CDR StartTime 2024-12-19 01:41:04 - End Time 2024-12-19 04:41:04 [2024-12-19 04:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053109', 'tblTempUsageDetail_20' ) start [2024-12-19 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053109', 'tblTempUsageDetail_20' ) end [2024-12-19 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053109', 'tblTempVendorCDR_20' ) start [2024-12-19 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053109', 'tblTempVendorCDR_20' ) end [2024-12-19 04:41:16] Production.INFO: ProcessCDR(1,14053109,1,1,2) [2024-12-19 04:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053109', 'tblTempUsageDetail_20' ) start [2024-12-19 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053109', 'tblTempUsageDetail_20' ) end [2024-12-19 04:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:41:20] Production.INFO: ==8063== Releasing lock... [2024-12-19 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:41:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:42:05 [end_date_ymd] => 2024-12-19 04:42:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:42:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:42:18] Production.INFO: count ==113 [2024-12-19 04:42:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:42:05 - End Time 2024-12-19 04:42:05 [2024-12-19 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053114', 'tblTempUsageDetail_20' ) start [2024-12-19 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053114', 'tblTempUsageDetail_20' ) end [2024-12-19 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053114', 'tblTempVendorCDR_20' ) start [2024-12-19 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053114', 'tblTempVendorCDR_20' ) end [2024-12-19 04:42:18] Production.INFO: ProcessCDR(1,14053114,1,1,2) [2024-12-19 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053114', 'tblTempUsageDetail_20' ) start [2024-12-19 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053114', 'tblTempUsageDetail_20' ) end [2024-12-19 04:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:42:21] Production.INFO: ==8142== Releasing lock... [2024-12-19 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:42:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:43:04 [end_date_ymd] => 2024-12-19 04:43:04 [RateCDR] => 1 ) [2024-12-19 04: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` >= '2024-12-19 01:43:04' and `end` < '2024-12-19 04: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 ,'') [2024-12-19 04:43:16] Production.INFO: count ==113 [2024-12-19 04:43:16] Production.ERROR: pbx CDR StartTime 2024-12-19 01:43:04 - End Time 2024-12-19 04:43:04 [2024-12-19 04:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053119', 'tblTempUsageDetail_20' ) start [2024-12-19 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053119', 'tblTempUsageDetail_20' ) end [2024-12-19 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053119', 'tblTempVendorCDR_20' ) start [2024-12-19 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053119', 'tblTempVendorCDR_20' ) end [2024-12-19 04:43:16] Production.INFO: ProcessCDR(1,14053119,1,1,2) [2024-12-19 04:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053119', 'tblTempUsageDetail_20' ) start [2024-12-19 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053119', 'tblTempUsageDetail_20' ) end [2024-12-19 04:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:43:20] Production.INFO: ==8224== Releasing lock... [2024-12-19 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:43:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:44:05 [end_date_ymd] => 2024-12-19 04:44:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:44:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:44:17] Production.INFO: count ==113 [2024-12-19 04:44:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:44:05 - End Time 2024-12-19 04:44:05 [2024-12-19 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053124', 'tblTempUsageDetail_20' ) start [2024-12-19 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053124', 'tblTempUsageDetail_20' ) end [2024-12-19 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053124', 'tblTempVendorCDR_20' ) start [2024-12-19 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053124', 'tblTempVendorCDR_20' ) end [2024-12-19 04:44:17] Production.INFO: ProcessCDR(1,14053124,1,1,2) [2024-12-19 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053124', 'tblTempUsageDetail_20' ) start [2024-12-19 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053124', 'tblTempUsageDetail_20' ) end [2024-12-19 04:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:44:20] Production.INFO: ==8330== Releasing lock... [2024-12-19 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:44:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:45:04 [end_date_ymd] => 2024-12-19 04:45:04 [RateCDR] => 1 ) [2024-12-19 04:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:45:04' and `end` < '2024-12-19 04:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:45:16] Production.INFO: count ==113 [2024-12-19 04:45:16] Production.ERROR: pbx CDR StartTime 2024-12-19 01:45:04 - End Time 2024-12-19 04:45:04 [2024-12-19 04:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053129', 'tblTempUsageDetail_20' ) start [2024-12-19 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053129', 'tblTempUsageDetail_20' ) end [2024-12-19 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053129', 'tblTempVendorCDR_20' ) start [2024-12-19 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053129', 'tblTempVendorCDR_20' ) end [2024-12-19 04:45:16] Production.INFO: ProcessCDR(1,14053129,1,1,2) [2024-12-19 04:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053129', 'tblTempUsageDetail_20' ) start [2024-12-19 04:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053129', 'tblTempUsageDetail_20' ) end [2024-12-19 04:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:45:19] Production.INFO: ==8409== Releasing lock... [2024-12-19 04:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:45:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:46:05 [end_date_ymd] => 2024-12-19 04:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:46:20] Production.INFO: count ==113 [2024-12-19 04:46:20] Production.ERROR: pbx CDR StartTime 2024-12-19 01:46:05 - End Time 2024-12-19 04:46:05 [2024-12-19 04:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053134', 'tblTempUsageDetail_20' ) start [2024-12-19 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053134', 'tblTempUsageDetail_20' ) end [2024-12-19 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053134', 'tblTempVendorCDR_20' ) start [2024-12-19 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053134', 'tblTempVendorCDR_20' ) end [2024-12-19 04:46:20] Production.INFO: ProcessCDR(1,14053134,1,1,2) [2024-12-19 04:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053134', 'tblTempUsageDetail_20' ) start [2024-12-19 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053134', 'tblTempUsageDetail_20' ) end [2024-12-19 04:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:46:23] Production.INFO: ==8486== Releasing lock... [2024-12-19 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:46:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:47:05 [end_date_ymd] => 2024-12-19 04:47:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:47:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:47:18] Production.INFO: count ==113 [2024-12-19 04:47:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:47:05 - End Time 2024-12-19 04:47:05 [2024-12-19 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053139', 'tblTempUsageDetail_20' ) start [2024-12-19 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053139', 'tblTempUsageDetail_20' ) end [2024-12-19 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053139', 'tblTempVendorCDR_20' ) start [2024-12-19 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053139', 'tblTempVendorCDR_20' ) end [2024-12-19 04:47:18] Production.INFO: ProcessCDR(1,14053139,1,1,2) [2024-12-19 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053139', 'tblTempUsageDetail_20' ) start [2024-12-19 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053139', 'tblTempUsageDetail_20' ) end [2024-12-19 04:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:47:21] Production.INFO: ==8604== Releasing lock... [2024-12-19 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:47:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:48:04 [end_date_ymd] => 2024-12-19 04:48:04 [RateCDR] => 1 ) [2024-12-19 04: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` >= '2024-12-19 01:48:04' and `end` < '2024-12-19 04: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 ,'') [2024-12-19 04:48:17] Production.INFO: count ==113 [2024-12-19 04:48:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:48:04 - End Time 2024-12-19 04:48:04 [2024-12-19 04:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053144', 'tblTempUsageDetail_20' ) start [2024-12-19 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053144', 'tblTempUsageDetail_20' ) end [2024-12-19 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053144', 'tblTempVendorCDR_20' ) start [2024-12-19 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053144', 'tblTempVendorCDR_20' ) end [2024-12-19 04:48:17] Production.INFO: ProcessCDR(1,14053144,1,1,2) [2024-12-19 04:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053144', 'tblTempUsageDetail_20' ) start [2024-12-19 04:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053144', 'tblTempUsageDetail_20' ) end [2024-12-19 04:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:48:20] Production.INFO: ==8679== Releasing lock... [2024-12-19 04:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:48:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:49:05 [end_date_ymd] => 2024-12-19 04:49:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:49:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:49:17] Production.INFO: count ==113 [2024-12-19 04:49:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:49:05 - End Time 2024-12-19 04:49:05 [2024-12-19 04:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053149', 'tblTempUsageDetail_20' ) start [2024-12-19 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053149', 'tblTempUsageDetail_20' ) end [2024-12-19 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053149', 'tblTempVendorCDR_20' ) start [2024-12-19 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053149', 'tblTempVendorCDR_20' ) end [2024-12-19 04:49:17] Production.INFO: ProcessCDR(1,14053149,1,1,2) [2024-12-19 04:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053149', 'tblTempUsageDetail_20' ) start [2024-12-19 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053149', 'tblTempUsageDetail_20' ) end [2024-12-19 04:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:49:20] Production.INFO: ==8758== Releasing lock... [2024-12-19 04:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:49:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:50:05 [end_date_ymd] => 2024-12-19 04:50:05 [RateCDR] => 1 ) [2024-12-19 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:50:05' and `end` < '2024-12-19 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:50:18] Production.INFO: count ==109 [2024-12-19 04:50:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:50:05 - End Time 2024-12-19 04:50:05 [2024-12-19 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053155', 'tblTempUsageDetail_20' ) start [2024-12-19 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053155', 'tblTempUsageDetail_20' ) end [2024-12-19 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053155', 'tblTempVendorCDR_20' ) start [2024-12-19 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053155', 'tblTempVendorCDR_20' ) end [2024-12-19 04:50:18] Production.INFO: ProcessCDR(1,14053155,1,1,2) [2024-12-19 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053155', 'tblTempUsageDetail_20' ) start [2024-12-19 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053155', 'tblTempUsageDetail_20' ) end [2024-12-19 04:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:50:21] Production.INFO: ==8840== Releasing lock... [2024-12-19 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:50:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:51:04 [end_date_ymd] => 2024-12-19 04:51:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:51:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:51:17] Production.INFO: count ==103 [2024-12-19 04:51:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:51:04 - End Time 2024-12-19 04:51:04 [2024-12-19 04:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053160', 'tblTempUsageDetail_20' ) start [2024-12-19 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053160', 'tblTempUsageDetail_20' ) end [2024-12-19 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053160', 'tblTempVendorCDR_20' ) start [2024-12-19 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053160', 'tblTempVendorCDR_20' ) end [2024-12-19 04:51:17] Production.INFO: ProcessCDR(1,14053160,1,1,2) [2024-12-19 04:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053160', 'tblTempUsageDetail_20' ) start [2024-12-19 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053160', 'tblTempUsageDetail_20' ) end [2024-12-19 04:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:51:20] Production.INFO: ==8919== Releasing lock... [2024-12-19 04:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:51:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:52:06 [end_date_ymd] => 2024-12-19 04:52:06 [RateCDR] => 1 ) [2024-12-19 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:52:06' and `end` < '2024-12-19 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:52:18] Production.INFO: count ==103 [2024-12-19 04:52:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:52:06 - End Time 2024-12-19 04:52:06 [2024-12-19 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053165', 'tblTempUsageDetail_20' ) start [2024-12-19 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053165', 'tblTempUsageDetail_20' ) end [2024-12-19 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053165', 'tblTempVendorCDR_20' ) start [2024-12-19 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053165', 'tblTempVendorCDR_20' ) end [2024-12-19 04:52:18] Production.INFO: ProcessCDR(1,14053165,1,1,2) [2024-12-19 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053165', 'tblTempUsageDetail_20' ) start [2024-12-19 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053165', 'tblTempUsageDetail_20' ) end [2024-12-19 04:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:52:22] Production.INFO: ==8999== Releasing lock... [2024-12-19 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:52:22] Production.INFO: 28 MB #Memory Used# [2024-12-19 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:53:04 [end_date_ymd] => 2024-12-19 04:53:04 [RateCDR] => 1 ) [2024-12-19 04:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:53:04' and `end` < '2024-12-19 04:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:53:18] Production.INFO: count ==103 [2024-12-19 04:53:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:53:04 - End Time 2024-12-19 04:53:04 [2024-12-19 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053170', 'tblTempUsageDetail_20' ) start [2024-12-19 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053170', 'tblTempUsageDetail_20' ) end [2024-12-19 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053170', 'tblTempVendorCDR_20' ) start [2024-12-19 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053170', 'tblTempVendorCDR_20' ) end [2024-12-19 04:53:18] Production.INFO: ProcessCDR(1,14053170,1,1,2) [2024-12-19 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053170', 'tblTempUsageDetail_20' ) start [2024-12-19 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053170', 'tblTempUsageDetail_20' ) end [2024-12-19 04:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:53:21] Production.INFO: ==9076== Releasing lock... [2024-12-19 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:53:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:54:05 [end_date_ymd] => 2024-12-19 04:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:54:19] Production.INFO: count ==103 [2024-12-19 04:54:19] Production.ERROR: pbx CDR StartTime 2024-12-19 01:54:05 - End Time 2024-12-19 04:54:05 [2024-12-19 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053175', 'tblTempUsageDetail_20' ) start [2024-12-19 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053175', 'tblTempUsageDetail_20' ) end [2024-12-19 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053175', 'tblTempVendorCDR_20' ) start [2024-12-19 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053175', 'tblTempVendorCDR_20' ) end [2024-12-19 04:54:19] Production.INFO: ProcessCDR(1,14053175,1,1,2) [2024-12-19 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053175', 'tblTempUsageDetail_20' ) start [2024-12-19 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053175', 'tblTempUsageDetail_20' ) end [2024-12-19 04:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:54:22] Production.INFO: ==9148== Releasing lock... [2024-12-19 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:54:22] Production.INFO: 28 MB #Memory Used# [2024-12-19 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:55:05 [end_date_ymd] => 2024-12-19 04:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:55:18] Production.INFO: count ==103 [2024-12-19 04:55:18] Production.ERROR: pbx CDR StartTime 2024-12-19 01:55:05 - End Time 2024-12-19 04:55:05 [2024-12-19 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053180', 'tblTempUsageDetail_20' ) start [2024-12-19 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053180', 'tblTempUsageDetail_20' ) end [2024-12-19 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053180', 'tblTempVendorCDR_20' ) start [2024-12-19 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053180', 'tblTempVendorCDR_20' ) end [2024-12-19 04:55:18] Production.INFO: ProcessCDR(1,14053180,1,1,2) [2024-12-19 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053180', 'tblTempUsageDetail_20' ) start [2024-12-19 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053180', 'tblTempUsageDetail_20' ) end [2024-12-19 04:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:55:21] Production.INFO: ==9222== Releasing lock... [2024-12-19 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:55:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:56:05 [end_date_ymd] => 2024-12-19 04:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 01:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 04:56:19] Production.INFO: count ==103 [2024-12-19 04:56:19] Production.ERROR: pbx CDR StartTime 2024-12-19 01:56:05 - End Time 2024-12-19 04:56:05 [2024-12-19 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053185', 'tblTempUsageDetail_20' ) start [2024-12-19 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053185', 'tblTempUsageDetail_20' ) end [2024-12-19 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053185', 'tblTempVendorCDR_20' ) start [2024-12-19 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053185', 'tblTempVendorCDR_20' ) end [2024-12-19 04:56:19] Production.INFO: ProcessCDR(1,14053185,1,1,2) [2024-12-19 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053185', 'tblTempUsageDetail_20' ) start [2024-12-19 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053185', 'tblTempUsageDetail_20' ) end [2024-12-19 04:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:56:22] Production.INFO: ==9296== Releasing lock... [2024-12-19 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:56:22] Production.INFO: 28 MB #Memory Used# [2024-12-19 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:57:04 [end_date_ymd] => 2024-12-19 04:57:04 [RateCDR] => 1 ) [2024-12-19 04: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` >= '2024-12-19 01:57:04' and `end` < '2024-12-19 04: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 ,'') [2024-12-19 04:57:17] Production.INFO: count ==103 [2024-12-19 04:57:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:57:04 - End Time 2024-12-19 04:57:04 [2024-12-19 04:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053190', 'tblTempUsageDetail_20' ) start [2024-12-19 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053190', 'tblTempUsageDetail_20' ) end [2024-12-19 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053190', 'tblTempVendorCDR_20' ) start [2024-12-19 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053190', 'tblTempVendorCDR_20' ) end [2024-12-19 04:57:17] Production.INFO: ProcessCDR(1,14053190,1,1,2) [2024-12-19 04:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053190', 'tblTempUsageDetail_20' ) start [2024-12-19 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053190', 'tblTempUsageDetail_20' ) end [2024-12-19 04:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:57:20] Production.INFO: ==9368== Releasing lock... [2024-12-19 04:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:57:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:58:05 [end_date_ymd] => 2024-12-19 04:58:05 [RateCDR] => 1 ) [2024-12-19 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:58:05' and `end` < '2024-12-19 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:58:20] Production.INFO: count ==103 [2024-12-19 04:58:20] Production.ERROR: pbx CDR StartTime 2024-12-19 01:58:05 - End Time 2024-12-19 04:58:05 [2024-12-19 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053195', 'tblTempUsageDetail_20' ) start [2024-12-19 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053195', 'tblTempUsageDetail_20' ) end [2024-12-19 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053195', 'tblTempVendorCDR_20' ) start [2024-12-19 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053195', 'tblTempVendorCDR_20' ) end [2024-12-19 04:58:20] Production.INFO: ProcessCDR(1,14053195,1,1,2) [2024-12-19 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053195', 'tblTempUsageDetail_20' ) start [2024-12-19 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053195', 'tblTempUsageDetail_20' ) end [2024-12-19 04:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:58:23] Production.INFO: ==9438== Releasing lock... [2024-12-19 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:58:23] Production.INFO: 28 MB #Memory Used# [2024-12-19 04:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 01:59:04 [end_date_ymd] => 2024-12-19 04:59:04 [RateCDR] => 1 ) [2024-12-19 04:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 01:59:04' and `end` < '2024-12-19 04:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 04:59:17] Production.INFO: count ==103 [2024-12-19 04:59:17] Production.ERROR: pbx CDR StartTime 2024-12-19 01:59:04 - End Time 2024-12-19 04:59:04 [2024-12-19 04:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053200', 'tblTempUsageDetail_20' ) start [2024-12-19 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053200', 'tblTempUsageDetail_20' ) end [2024-12-19 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053200', 'tblTempVendorCDR_20' ) start [2024-12-19 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053200', 'tblTempVendorCDR_20' ) end [2024-12-19 04:59:17] Production.INFO: ProcessCDR(1,14053200,1,1,2) [2024-12-19 04:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 04:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 04:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053200', 'tblTempUsageDetail_20' ) start [2024-12-19 04:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053200', 'tblTempUsageDetail_20' ) end [2024-12-19 04:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 04:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 04:59:20] Production.INFO: ==9509== Releasing lock... [2024-12-19 04:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 04:59:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:00:05 [end_date_ymd] => 2024-12-19 05:00:05 [RateCDR] => 1 ) [2024-12-19 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:00:05' and `end` < '2024-12-19 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:00:18] Production.INFO: count ==100 [2024-12-19 05:00:18] Production.ERROR: pbx CDR StartTime 2024-12-19 02:00:05 - End Time 2024-12-19 05:00:05 [2024-12-19 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053205', 'tblTempUsageDetail_20' ) start [2024-12-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053205', 'tblTempUsageDetail_20' ) end [2024-12-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053205', 'tblTempVendorCDR_20' ) start [2024-12-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053205', 'tblTempVendorCDR_20' ) end [2024-12-19 05:00:18] Production.INFO: ProcessCDR(1,14053205,1,1,2) [2024-12-19 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053205', 'tblTempUsageDetail_20' ) start [2024-12-19 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053205', 'tblTempUsageDetail_20' ) end [2024-12-19 05:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:00:21] Production.INFO: ==9584== Releasing lock... [2024-12-19 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:00:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:01:05 [end_date_ymd] => 2024-12-19 05:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:01:20] Production.INFO: count ==86 [2024-12-19 05:01:20] Production.ERROR: pbx CDR StartTime 2024-12-19 02:01:05 - End Time 2024-12-19 05:01:05 [2024-12-19 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053211', 'tblTempUsageDetail_20' ) start [2024-12-19 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053211', 'tblTempUsageDetail_20' ) end [2024-12-19 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053211', 'tblTempVendorCDR_20' ) start [2024-12-19 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053211', 'tblTempVendorCDR_20' ) end [2024-12-19 05:01:20] Production.INFO: ProcessCDR(1,14053211,1,1,2) [2024-12-19 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053211', 'tblTempUsageDetail_20' ) start [2024-12-19 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053211', 'tblTempUsageDetail_20' ) end [2024-12-19 05:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:01:23] Production.INFO: ==9669== Releasing lock... [2024-12-19 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:01:23] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:02:05 [end_date_ymd] => 2024-12-19 05:02:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:02:17] Production.INFO: count ==86 [2024-12-19 05:02:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:02:05 - End Time 2024-12-19 05:02:05 [2024-12-19 05:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053216', 'tblTempUsageDetail_20' ) start [2024-12-19 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053216', 'tblTempUsageDetail_20' ) end [2024-12-19 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053216', 'tblTempVendorCDR_20' ) start [2024-12-19 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053216', 'tblTempVendorCDR_20' ) end [2024-12-19 05:02:17] Production.INFO: ProcessCDR(1,14053216,1,1,2) [2024-12-19 05:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053216', 'tblTempUsageDetail_20' ) start [2024-12-19 05:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053216', 'tblTempUsageDetail_20' ) end [2024-12-19 05:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:02:20] Production.INFO: ==9744== Releasing lock... [2024-12-19 05:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:02:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:03:05 [end_date_ymd] => 2024-12-19 05:03:05 [RateCDR] => 1 ) [2024-12-19 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:03:05' and `end` < '2024-12-19 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:03:17] Production.INFO: count ==86 [2024-12-19 05:03:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:03:05 - End Time 2024-12-19 05:03:05 [2024-12-19 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053221', 'tblTempUsageDetail_20' ) start [2024-12-19 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053221', 'tblTempUsageDetail_20' ) end [2024-12-19 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053221', 'tblTempVendorCDR_20' ) start [2024-12-19 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053221', 'tblTempVendorCDR_20' ) end [2024-12-19 05:03:17] Production.INFO: ProcessCDR(1,14053221,1,1,2) [2024-12-19 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053221', 'tblTempUsageDetail_20' ) start [2024-12-19 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053221', 'tblTempUsageDetail_20' ) end [2024-12-19 05:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:03:20] Production.INFO: ==9864== Releasing lock... [2024-12-19 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:03:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:04:04 [end_date_ymd] => 2024-12-19 05:04:04 [RateCDR] => 1 ) [2024-12-19 05:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:04:04' and `end` < '2024-12-19 05:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:04:16] Production.INFO: count ==84 [2024-12-19 05:04:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:04:04 - End Time 2024-12-19 05:04:04 [2024-12-19 05:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053226', 'tblTempUsageDetail_20' ) start [2024-12-19 05:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053226', 'tblTempUsageDetail_20' ) end [2024-12-19 05:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053226', 'tblTempVendorCDR_20' ) start [2024-12-19 05:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053226', 'tblTempVendorCDR_20' ) end [2024-12-19 05:04:16] Production.INFO: ProcessCDR(1,14053226,1,1,2) [2024-12-19 05:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:04:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053226', 'tblTempUsageDetail_20' ) start [2024-12-19 05:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053226', 'tblTempUsageDetail_20' ) end [2024-12-19 05:04:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:04:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:04:19] Production.INFO: ==9935== Releasing lock... [2024-12-19 05:04:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:04:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:05:05 [end_date_ymd] => 2024-12-19 05:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:05:17] Production.INFO: count ==83 [2024-12-19 05:05:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:05:05 - End Time 2024-12-19 05:05:05 [2024-12-19 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053231', 'tblTempUsageDetail_20' ) start [2024-12-19 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053231', 'tblTempUsageDetail_20' ) end [2024-12-19 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053231', 'tblTempVendorCDR_20' ) start [2024-12-19 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053231', 'tblTempVendorCDR_20' ) end [2024-12-19 05:05:17] Production.INFO: ProcessCDR(1,14053231,1,1,2) [2024-12-19 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053231', 'tblTempUsageDetail_20' ) start [2024-12-19 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053231', 'tblTempUsageDetail_20' ) end [2024-12-19 05:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:05:20] Production.INFO: ==10013== Releasing lock... [2024-12-19 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:05:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:06:04 [end_date_ymd] => 2024-12-19 05:06:04 [RateCDR] => 1 ) [2024-12-19 05:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:06:04' and `end` < '2024-12-19 05:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:06:35] Production.INFO: count ==83 [2024-12-19 05:06:35] Production.ERROR: pbx CDR StartTime 2024-12-19 02:06:04 - End Time 2024-12-19 05:06:04 [2024-12-19 05:06:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053236', 'tblTempUsageDetail_20' ) start [2024-12-19 05:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053236', 'tblTempUsageDetail_20' ) end [2024-12-19 05:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053236', 'tblTempVendorCDR_20' ) start [2024-12-19 05:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053236', 'tblTempVendorCDR_20' ) end [2024-12-19 05:06:35] Production.INFO: ProcessCDR(1,14053236,1,1,2) [2024-12-19 05:06:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:06:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:06:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053236', 'tblTempUsageDetail_20' ) start [2024-12-19 05:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053236', 'tblTempUsageDetail_20' ) end [2024-12-19 05:06:38] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:06:38] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:06:38] Production.INFO: ==10095== Releasing lock... [2024-12-19 05:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:06:38] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:07:05 [end_date_ymd] => 2024-12-19 05:07:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:07:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:07:18] Production.INFO: count ==83 [2024-12-19 05:07:18] Production.ERROR: pbx CDR StartTime 2024-12-19 02:07:05 - End Time 2024-12-19 05:07:05 [2024-12-19 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053241', 'tblTempUsageDetail_20' ) start [2024-12-19 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053241', 'tblTempUsageDetail_20' ) end [2024-12-19 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053241', 'tblTempVendorCDR_20' ) start [2024-12-19 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053241', 'tblTempVendorCDR_20' ) end [2024-12-19 05:07:18] Production.INFO: ProcessCDR(1,14053241,1,1,2) [2024-12-19 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053241', 'tblTempUsageDetail_20' ) start [2024-12-19 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053241', 'tblTempUsageDetail_20' ) end [2024-12-19 05:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:07:21] Production.INFO: ==10175== Releasing lock... [2024-12-19 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:07:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:08:04 [end_date_ymd] => 2024-12-19 05:08:04 [RateCDR] => 1 ) [2024-12-19 05:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:08:04' and `end` < '2024-12-19 05: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 ,'') [2024-12-19 05:08:17] Production.INFO: count ==83 [2024-12-19 05:08:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:08:04 - End Time 2024-12-19 05:08:04 [2024-12-19 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053246', 'tblTempUsageDetail_20' ) start [2024-12-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053246', 'tblTempUsageDetail_20' ) end [2024-12-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053246', 'tblTempVendorCDR_20' ) start [2024-12-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053246', 'tblTempVendorCDR_20' ) end [2024-12-19 05:08:17] Production.INFO: ProcessCDR(1,14053246,1,1,2) [2024-12-19 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053246', 'tblTempUsageDetail_20' ) start [2024-12-19 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053246', 'tblTempUsageDetail_20' ) end [2024-12-19 05:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:08:20] Production.INFO: ==10260== Releasing lock... [2024-12-19 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:08:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:09:04 [end_date_ymd] => 2024-12-19 05:09:04 [RateCDR] => 1 ) [2024-12-19 05:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:09:04' and `end` < '2024-12-19 05:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:09:16] Production.INFO: count ==83 [2024-12-19 05:09:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:09:04 - End Time 2024-12-19 05:09:04 [2024-12-19 05:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053251', 'tblTempUsageDetail_20' ) start [2024-12-19 05:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053251', 'tblTempUsageDetail_20' ) end [2024-12-19 05:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053251', 'tblTempVendorCDR_20' ) start [2024-12-19 05:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053251', 'tblTempVendorCDR_20' ) end [2024-12-19 05:09:16] Production.INFO: ProcessCDR(1,14053251,1,1,2) [2024-12-19 05:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053251', 'tblTempUsageDetail_20' ) start [2024-12-19 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053251', 'tblTempUsageDetail_20' ) end [2024-12-19 05:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:09:20] Production.INFO: ==10345== Releasing lock... [2024-12-19 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:09:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:10:06 [end_date_ymd] => 2024-12-19 05:10:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:10:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:10:18] Production.INFO: count ==77 [2024-12-19 05:10:18] Production.ERROR: pbx CDR StartTime 2024-12-19 02:10:06 - End Time 2024-12-19 05:10:06 [2024-12-19 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053257', 'tblTempUsageDetail_20' ) start [2024-12-19 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053257', 'tblTempUsageDetail_20' ) end [2024-12-19 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053257', 'tblTempVendorCDR_20' ) start [2024-12-19 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053257', 'tblTempVendorCDR_20' ) end [2024-12-19 05:10:18] Production.INFO: ProcessCDR(1,14053257,1,1,2) [2024-12-19 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053257', 'tblTempUsageDetail_20' ) start [2024-12-19 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053257', 'tblTempUsageDetail_20' ) end [2024-12-19 05:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:10:21] Production.INFO: ==10421== Releasing lock... [2024-12-19 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:10:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:11:04 [end_date_ymd] => 2024-12-19 05:11:04 [RateCDR] => 1 ) [2024-12-19 05: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` >= '2024-12-19 02:11:04' and `end` < '2024-12-19 05: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 ,'') [2024-12-19 05:11:16] Production.INFO: count ==67 [2024-12-19 05:11:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:11:04 - End Time 2024-12-19 05:11:04 [2024-12-19 05:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053262', 'tblTempUsageDetail_20' ) start [2024-12-19 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053262', 'tblTempUsageDetail_20' ) end [2024-12-19 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053262', 'tblTempVendorCDR_20' ) start [2024-12-19 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053262', 'tblTempVendorCDR_20' ) end [2024-12-19 05:11:16] Production.INFO: ProcessCDR(1,14053262,1,1,2) [2024-12-19 05:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053262', 'tblTempUsageDetail_20' ) start [2024-12-19 05:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053262', 'tblTempUsageDetail_20' ) end [2024-12-19 05:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:11:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:11:19] Production.INFO: ==10503== Releasing lock... [2024-12-19 05:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:11:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:12:05 [end_date_ymd] => 2024-12-19 05:12:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:12:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:12:17] Production.INFO: count ==67 [2024-12-19 05:12:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:12:05 - End Time 2024-12-19 05:12:05 [2024-12-19 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053267', 'tblTempUsageDetail_20' ) start [2024-12-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053267', 'tblTempUsageDetail_20' ) end [2024-12-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053267', 'tblTempVendorCDR_20' ) start [2024-12-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053267', 'tblTempVendorCDR_20' ) end [2024-12-19 05:12:17] Production.INFO: ProcessCDR(1,14053267,1,1,2) [2024-12-19 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053267', 'tblTempUsageDetail_20' ) start [2024-12-19 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053267', 'tblTempUsageDetail_20' ) end [2024-12-19 05:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:12:20] Production.INFO: ==10590== Releasing lock... [2024-12-19 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:12:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:13:04 [end_date_ymd] => 2024-12-19 05:13:04 [RateCDR] => 1 ) [2024-12-19 05: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` >= '2024-12-19 02:13:04' and `end` < '2024-12-19 05: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 ,'') [2024-12-19 05:13:17] Production.INFO: count ==67 [2024-12-19 05:13:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:13:04 - End Time 2024-12-19 05:13:04 [2024-12-19 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053272', 'tblTempUsageDetail_20' ) start [2024-12-19 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053272', 'tblTempUsageDetail_20' ) end [2024-12-19 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053272', 'tblTempVendorCDR_20' ) start [2024-12-19 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053272', 'tblTempVendorCDR_20' ) end [2024-12-19 05:13:17] Production.INFO: ProcessCDR(1,14053272,1,1,2) [2024-12-19 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053272', 'tblTempUsageDetail_20' ) start [2024-12-19 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053272', 'tblTempUsageDetail_20' ) end [2024-12-19 05:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:13:20] Production.INFO: ==10671== Releasing lock... [2024-12-19 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:13:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:14:04 [end_date_ymd] => 2024-12-19 05:14:04 [RateCDR] => 1 ) [2024-12-19 05:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:14:04' and `end` < '2024-12-19 05:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:14:17] Production.INFO: count ==67 [2024-12-19 05:14:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:14:04 - End Time 2024-12-19 05:14:04 [2024-12-19 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053277', 'tblTempUsageDetail_20' ) start [2024-12-19 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053277', 'tblTempUsageDetail_20' ) end [2024-12-19 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053277', 'tblTempVendorCDR_20' ) start [2024-12-19 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053277', 'tblTempVendorCDR_20' ) end [2024-12-19 05:14:17] Production.INFO: ProcessCDR(1,14053277,1,1,2) [2024-12-19 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053277', 'tblTempUsageDetail_20' ) start [2024-12-19 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053277', 'tblTempUsageDetail_20' ) end [2024-12-19 05:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:14:20] Production.INFO: ==10756== Releasing lock... [2024-12-19 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:14:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:15:05 [end_date_ymd] => 2024-12-19 05:15:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:15:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:15:17] Production.INFO: count ==67 [2024-12-19 05:15:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:15:05 - End Time 2024-12-19 05:15:05 [2024-12-19 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053282', 'tblTempUsageDetail_20' ) start [2024-12-19 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053282', 'tblTempUsageDetail_20' ) end [2024-12-19 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053282', 'tblTempVendorCDR_20' ) start [2024-12-19 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053282', 'tblTempVendorCDR_20' ) end [2024-12-19 05:15:17] Production.INFO: ProcessCDR(1,14053282,1,1,2) [2024-12-19 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053282', 'tblTempUsageDetail_20' ) start [2024-12-19 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053282', 'tblTempUsageDetail_20' ) end [2024-12-19 05:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:15:20] Production.INFO: ==10834== Releasing lock... [2024-12-19 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:15:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:16:04 [end_date_ymd] => 2024-12-19 05:16:04 [RateCDR] => 1 ) [2024-12-19 05: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` >= '2024-12-19 02:16:04' and `end` < '2024-12-19 05: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 ,'') [2024-12-19 05:16:16] Production.INFO: count ==67 [2024-12-19 05:16:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:16:04 - End Time 2024-12-19 05:16:04 [2024-12-19 05:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053287', 'tblTempUsageDetail_20' ) start [2024-12-19 05:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053287', 'tblTempUsageDetail_20' ) end [2024-12-19 05:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053287', 'tblTempVendorCDR_20' ) start [2024-12-19 05:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053287', 'tblTempVendorCDR_20' ) end [2024-12-19 05:16:16] Production.INFO: ProcessCDR(1,14053287,1,1,2) [2024-12-19 05:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:16:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053287', 'tblTempUsageDetail_20' ) start [2024-12-19 05:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053287', 'tblTempUsageDetail_20' ) end [2024-12-19 05:16:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:16:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:16:19] Production.INFO: ==10924== Releasing lock... [2024-12-19 05:16:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:16:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:17:05 [end_date_ymd] => 2024-12-19 05:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:17:17] Production.INFO: count ==67 [2024-12-19 05:17:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:17:05 - End Time 2024-12-19 05:17:05 [2024-12-19 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053292', 'tblTempUsageDetail_20' ) start [2024-12-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053292', 'tblTempUsageDetail_20' ) end [2024-12-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053292', 'tblTempVendorCDR_20' ) start [2024-12-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053292', 'tblTempVendorCDR_20' ) end [2024-12-19 05:17:17] Production.INFO: ProcessCDR(1,14053292,1,1,2) [2024-12-19 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053292', 'tblTempUsageDetail_20' ) start [2024-12-19 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053292', 'tblTempUsageDetail_20' ) end [2024-12-19 05:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:17:20] Production.INFO: ==11011== Releasing lock... [2024-12-19 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:17:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:18:04 [end_date_ymd] => 2024-12-19 05:18:04 [RateCDR] => 1 ) [2024-12-19 05:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:18:04' and `end` < '2024-12-19 05:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:18:16] Production.INFO: count ==67 [2024-12-19 05:18:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:18:04 - End Time 2024-12-19 05:18:04 [2024-12-19 05:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053297', 'tblTempUsageDetail_20' ) start [2024-12-19 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053297', 'tblTempUsageDetail_20' ) end [2024-12-19 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053297', 'tblTempVendorCDR_20' ) start [2024-12-19 05:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053297', 'tblTempVendorCDR_20' ) end [2024-12-19 05:18:16] Production.INFO: ProcessCDR(1,14053297,1,1,2) [2024-12-19 05:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053297', 'tblTempUsageDetail_20' ) start [2024-12-19 05:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053297', 'tblTempUsageDetail_20' ) end [2024-12-19 05:18:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:18:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:18:19] Production.INFO: ==11093== Releasing lock... [2024-12-19 05:18:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:18:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:19:05 [end_date_ymd] => 2024-12-19 05:19:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:19:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:19:18] Production.INFO: count ==67 [2024-12-19 05:19:18] Production.ERROR: pbx CDR StartTime 2024-12-19 02:19:05 - End Time 2024-12-19 05:19:05 [2024-12-19 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053302', 'tblTempUsageDetail_20' ) start [2024-12-19 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053302', 'tblTempUsageDetail_20' ) end [2024-12-19 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053302', 'tblTempVendorCDR_20' ) start [2024-12-19 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053302', 'tblTempVendorCDR_20' ) end [2024-12-19 05:19:18] Production.INFO: ProcessCDR(1,14053302,1,1,2) [2024-12-19 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053302', 'tblTempUsageDetail_20' ) start [2024-12-19 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053302', 'tblTempUsageDetail_20' ) end [2024-12-19 05:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:19:21] Production.INFO: ==11212== Releasing lock... [2024-12-19 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:19:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:20:05 [end_date_ymd] => 2024-12-19 05:20:05 [RateCDR] => 1 ) [2024-12-19 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:20:05' and `end` < '2024-12-19 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:20:19] Production.INFO: count ==63 [2024-12-19 05:20:19] Production.ERROR: pbx CDR StartTime 2024-12-19 02:20:05 - End Time 2024-12-19 05:20:05 [2024-12-19 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053307', 'tblTempUsageDetail_20' ) start [2024-12-19 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053307', 'tblTempUsageDetail_20' ) end [2024-12-19 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053307', 'tblTempVendorCDR_20' ) start [2024-12-19 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053307', 'tblTempVendorCDR_20' ) end [2024-12-19 05:20:19] Production.INFO: ProcessCDR(1,14053307,1,1,2) [2024-12-19 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053307', 'tblTempUsageDetail_20' ) start [2024-12-19 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053307', 'tblTempUsageDetail_20' ) end [2024-12-19 05:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:20:22] Production.INFO: ==11299== Releasing lock... [2024-12-19 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:20:22] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:21:04 [end_date_ymd] => 2024-12-19 05:21:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:21:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:21:16] Production.INFO: count ==63 [2024-12-19 05:21:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:21:04 - End Time 2024-12-19 05:21:04 [2024-12-19 05:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053313', 'tblTempUsageDetail_20' ) start [2024-12-19 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053313', 'tblTempUsageDetail_20' ) end [2024-12-19 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053313', 'tblTempVendorCDR_20' ) start [2024-12-19 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053313', 'tblTempVendorCDR_20' ) end [2024-12-19 05:21:16] Production.INFO: ProcessCDR(1,14053313,1,1,2) [2024-12-19 05:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053313', 'tblTempUsageDetail_20' ) start [2024-12-19 05:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053313', 'tblTempUsageDetail_20' ) end [2024-12-19 05:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:21:19] Production.INFO: ==11386== Releasing lock... [2024-12-19 05:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:21:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:22:05 [end_date_ymd] => 2024-12-19 05:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:22:18] Production.INFO: count ==63 [2024-12-19 05:22:18] Production.ERROR: pbx CDR StartTime 2024-12-19 02:22:05 - End Time 2024-12-19 05:22:05 [2024-12-19 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053318', 'tblTempUsageDetail_20' ) start [2024-12-19 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053318', 'tblTempUsageDetail_20' ) end [2024-12-19 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053318', 'tblTempVendorCDR_20' ) start [2024-12-19 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053318', 'tblTempVendorCDR_20' ) end [2024-12-19 05:22:18] Production.INFO: ProcessCDR(1,14053318,1,1,2) [2024-12-19 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053318', 'tblTempUsageDetail_20' ) start [2024-12-19 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053318', 'tblTempUsageDetail_20' ) end [2024-12-19 05:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:22:21] Production.INFO: ==11472== Releasing lock... [2024-12-19 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:22:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:23:04 [end_date_ymd] => 2024-12-19 05:23:04 [RateCDR] => 1 ) [2024-12-19 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:23:04' and `end` < '2024-12-19 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:23:16] Production.INFO: count ==63 [2024-12-19 05:23:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:23:04 - End Time 2024-12-19 05:23:04 [2024-12-19 05:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053323', 'tblTempUsageDetail_20' ) start [2024-12-19 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053323', 'tblTempUsageDetail_20' ) end [2024-12-19 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053323', 'tblTempVendorCDR_20' ) start [2024-12-19 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053323', 'tblTempVendorCDR_20' ) end [2024-12-19 05:23:16] Production.INFO: ProcessCDR(1,14053323,1,1,2) [2024-12-19 05:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053323', 'tblTempUsageDetail_20' ) start [2024-12-19 05:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053323', 'tblTempUsageDetail_20' ) end [2024-12-19 05:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:23:19] Production.INFO: ==11557== Releasing lock... [2024-12-19 05:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:23:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:24:05 [end_date_ymd] => 2024-12-19 05:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:24:17] Production.INFO: count ==63 [2024-12-19 05:24:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:24:05 - End Time 2024-12-19 05:24:05 [2024-12-19 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053328', 'tblTempUsageDetail_20' ) start [2024-12-19 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053328', 'tblTempUsageDetail_20' ) end [2024-12-19 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053328', 'tblTempVendorCDR_20' ) start [2024-12-19 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053328', 'tblTempVendorCDR_20' ) end [2024-12-19 05:24:17] Production.INFO: ProcessCDR(1,14053328,1,1,2) [2024-12-19 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053328', 'tblTempUsageDetail_20' ) start [2024-12-19 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053328', 'tblTempUsageDetail_20' ) end [2024-12-19 05:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:24:20] Production.INFO: ==11647== Releasing lock... [2024-12-19 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:24:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:25:04 [end_date_ymd] => 2024-12-19 05:25:04 [RateCDR] => 1 ) [2024-12-19 05:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:25:04' and `end` < '2024-12-19 05:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:25:17] Production.INFO: count ==63 [2024-12-19 05:25:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:25:04 - End Time 2024-12-19 05:25:04 [2024-12-19 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053333', 'tblTempUsageDetail_20' ) start [2024-12-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053333', 'tblTempUsageDetail_20' ) end [2024-12-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053333', 'tblTempVendorCDR_20' ) start [2024-12-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053333', 'tblTempVendorCDR_20' ) end [2024-12-19 05:25:17] Production.INFO: ProcessCDR(1,14053333,1,1,2) [2024-12-19 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053333', 'tblTempUsageDetail_20' ) start [2024-12-19 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053333', 'tblTempUsageDetail_20' ) end [2024-12-19 05:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:25:20] Production.INFO: ==11730== Releasing lock... [2024-12-19 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:25:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:26:04 [end_date_ymd] => 2024-12-19 05:26:04 [RateCDR] => 1 ) [2024-12-19 05:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:26:04' and `end` < '2024-12-19 05:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:26:17] Production.INFO: count ==63 [2024-12-19 05:26:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:26:04 - End Time 2024-12-19 05:26:04 [2024-12-19 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053338', 'tblTempUsageDetail_20' ) start [2024-12-19 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053338', 'tblTempUsageDetail_20' ) end [2024-12-19 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053338', 'tblTempVendorCDR_20' ) start [2024-12-19 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053338', 'tblTempVendorCDR_20' ) end [2024-12-19 05:26:17] Production.INFO: ProcessCDR(1,14053338,1,1,2) [2024-12-19 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053338', 'tblTempUsageDetail_20' ) start [2024-12-19 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053338', 'tblTempUsageDetail_20' ) end [2024-12-19 05:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:26:20] Production.INFO: ==11810== Releasing lock... [2024-12-19 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:26:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:27:04 [end_date_ymd] => 2024-12-19 05:27:04 [RateCDR] => 1 ) [2024-12-19 05:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:27:04' and `end` < '2024-12-19 05:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:27:16] Production.INFO: count ==63 [2024-12-19 05:27:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:27:04 - End Time 2024-12-19 05:27:04 [2024-12-19 05:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053343', 'tblTempUsageDetail_20' ) start [2024-12-19 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053343', 'tblTempUsageDetail_20' ) end [2024-12-19 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053343', 'tblTempVendorCDR_20' ) start [2024-12-19 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053343', 'tblTempVendorCDR_20' ) end [2024-12-19 05:27:16] Production.INFO: ProcessCDR(1,14053343,1,1,2) [2024-12-19 05:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053343', 'tblTempUsageDetail_20' ) start [2024-12-19 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053343', 'tblTempUsageDetail_20' ) end [2024-12-19 05:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:27:20] Production.INFO: ==11893== Releasing lock... [2024-12-19 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:27:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:28:04 [end_date_ymd] => 2024-12-19 05:28:04 [RateCDR] => 1 ) [2024-12-19 05:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:28:04' and `end` < '2024-12-19 05:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:28:16] Production.INFO: count ==63 [2024-12-19 05:28:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:28:04 - End Time 2024-12-19 05:28:04 [2024-12-19 05:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053348', 'tblTempUsageDetail_20' ) start [2024-12-19 05:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053348', 'tblTempUsageDetail_20' ) end [2024-12-19 05:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053348', 'tblTempVendorCDR_20' ) start [2024-12-19 05:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053348', 'tblTempVendorCDR_20' ) end [2024-12-19 05:28:16] Production.INFO: ProcessCDR(1,14053348,1,1,2) [2024-12-19 05:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053348', 'tblTempUsageDetail_20' ) start [2024-12-19 05:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053348', 'tblTempUsageDetail_20' ) end [2024-12-19 05:28:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:28:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:28:19] Production.INFO: ==11974== Releasing lock... [2024-12-19 05:28:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:28:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:29:05 [end_date_ymd] => 2024-12-19 05:29:05 [RateCDR] => 1 ) [2024-12-19 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:29:05' and `end` < '2024-12-19 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:29:17] Production.INFO: count ==63 [2024-12-19 05:29:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:29:05 - End Time 2024-12-19 05:29:05 [2024-12-19 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053353', 'tblTempUsageDetail_20' ) start [2024-12-19 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053353', 'tblTempUsageDetail_20' ) end [2024-12-19 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053353', 'tblTempVendorCDR_20' ) start [2024-12-19 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053353', 'tblTempVendorCDR_20' ) end [2024-12-19 05:29:17] Production.INFO: ProcessCDR(1,14053353,1,1,2) [2024-12-19 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053353', 'tblTempUsageDetail_20' ) start [2024-12-19 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053353', 'tblTempUsageDetail_20' ) end [2024-12-19 05:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:29:20] Production.INFO: ==12062== Releasing lock... [2024-12-19 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:29:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:30:05 [end_date_ymd] => 2024-12-19 05:30:05 [RateCDR] => 1 ) [2024-12-19 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:30:05' and `end` < '2024-12-19 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:30:17] Production.INFO: count ==60 [2024-12-19 05:30:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:30:05 - End Time 2024-12-19 05:30:05 [2024-12-19 05:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053359', 'tblTempUsageDetail_20' ) start [2024-12-19 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053359', 'tblTempUsageDetail_20' ) end [2024-12-19 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053359', 'tblTempVendorCDR_20' ) start [2024-12-19 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053359', 'tblTempVendorCDR_20' ) end [2024-12-19 05:30:17] Production.INFO: ProcessCDR(1,14053359,1,1,2) [2024-12-19 05:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053359', 'tblTempUsageDetail_20' ) start [2024-12-19 05:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053359', 'tblTempUsageDetail_20' ) end [2024-12-19 05:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:30:20] Production.INFO: ==12141== Releasing lock... [2024-12-19 05:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:30:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:31:05 [end_date_ymd] => 2024-12-19 05:31:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:31:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:31:17] Production.INFO: count ==60 [2024-12-19 05:31:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:31:05 - End Time 2024-12-19 05:31:05 [2024-12-19 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053364', 'tblTempUsageDetail_20' ) start [2024-12-19 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053364', 'tblTempUsageDetail_20' ) end [2024-12-19 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053364', 'tblTempVendorCDR_20' ) start [2024-12-19 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053364', 'tblTempVendorCDR_20' ) end [2024-12-19 05:31:17] Production.INFO: ProcessCDR(1,14053364,1,1,2) [2024-12-19 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053364', 'tblTempUsageDetail_20' ) start [2024-12-19 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053364', 'tblTempUsageDetail_20' ) end [2024-12-19 05:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:31:20] Production.INFO: ==12223== Releasing lock... [2024-12-19 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:31:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:32:04 [end_date_ymd] => 2024-12-19 05:32:04 [RateCDR] => 1 ) [2024-12-19 05:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:32:04' and `end` < '2024-12-19 05:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:32:18] Production.INFO: count ==60 [2024-12-19 05:32:18] Production.ERROR: pbx CDR StartTime 2024-12-19 02:32:04 - End Time 2024-12-19 05:32:04 [2024-12-19 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053369', 'tblTempUsageDetail_20' ) start [2024-12-19 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053369', 'tblTempUsageDetail_20' ) end [2024-12-19 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053369', 'tblTempVendorCDR_20' ) start [2024-12-19 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053369', 'tblTempVendorCDR_20' ) end [2024-12-19 05:32:18] Production.INFO: ProcessCDR(1,14053369,1,1,2) [2024-12-19 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053369', 'tblTempUsageDetail_20' ) start [2024-12-19 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053369', 'tblTempUsageDetail_20' ) end [2024-12-19 05:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:32:21] Production.INFO: ==12307== Releasing lock... [2024-12-19 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:32:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:33:05 [end_date_ymd] => 2024-12-19 05:33:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:33:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:33:17] Production.INFO: count ==60 [2024-12-19 05:33:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:33:05 - End Time 2024-12-19 05:33:05 [2024-12-19 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053374', 'tblTempUsageDetail_20' ) start [2024-12-19 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053374', 'tblTempUsageDetail_20' ) end [2024-12-19 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053374', 'tblTempVendorCDR_20' ) start [2024-12-19 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053374', 'tblTempVendorCDR_20' ) end [2024-12-19 05:33:17] Production.INFO: ProcessCDR(1,14053374,1,1,2) [2024-12-19 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053374', 'tblTempUsageDetail_20' ) start [2024-12-19 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053374', 'tblTempUsageDetail_20' ) end [2024-12-19 05:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:33:20] Production.INFO: ==12382== Releasing lock... [2024-12-19 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:33:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:34:05 [end_date_ymd] => 2024-12-19 05:34:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:34:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:34:18] Production.INFO: count ==60 [2024-12-19 05:34:18] Production.ERROR: pbx CDR StartTime 2024-12-19 02:34:05 - End Time 2024-12-19 05:34:05 [2024-12-19 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053379', 'tblTempUsageDetail_20' ) start [2024-12-19 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053379', 'tblTempUsageDetail_20' ) end [2024-12-19 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053379', 'tblTempVendorCDR_20' ) start [2024-12-19 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053379', 'tblTempVendorCDR_20' ) end [2024-12-19 05:34:18] Production.INFO: ProcessCDR(1,14053379,1,1,2) [2024-12-19 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053379', 'tblTempUsageDetail_20' ) start [2024-12-19 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053379', 'tblTempUsageDetail_20' ) end [2024-12-19 05:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:34:21] Production.INFO: ==12494== Releasing lock... [2024-12-19 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:34:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:35:05 [end_date_ymd] => 2024-12-19 05:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:35:17] Production.INFO: count ==60 [2024-12-19 05:35:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:35:05 - End Time 2024-12-19 05:35:05 [2024-12-19 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053384', 'tblTempUsageDetail_20' ) start [2024-12-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053384', 'tblTempUsageDetail_20' ) end [2024-12-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053384', 'tblTempVendorCDR_20' ) start [2024-12-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053384', 'tblTempVendorCDR_20' ) end [2024-12-19 05:35:17] Production.INFO: ProcessCDR(1,14053384,1,1,2) [2024-12-19 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053384', 'tblTempUsageDetail_20' ) start [2024-12-19 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053384', 'tblTempUsageDetail_20' ) end [2024-12-19 05:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:35:20] Production.INFO: ==12573== Releasing lock... [2024-12-19 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:35:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:36:04 [end_date_ymd] => 2024-12-19 05:36:04 [RateCDR] => 1 ) [2024-12-19 05:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:36:04' and `end` < '2024-12-19 05:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:36:17] Production.INFO: count ==60 [2024-12-19 05:36:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:36:04 - End Time 2024-12-19 05:36:04 [2024-12-19 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053389', 'tblTempUsageDetail_20' ) start [2024-12-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053389', 'tblTempUsageDetail_20' ) end [2024-12-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053389', 'tblTempVendorCDR_20' ) start [2024-12-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053389', 'tblTempVendorCDR_20' ) end [2024-12-19 05:36:17] Production.INFO: ProcessCDR(1,14053389,1,1,2) [2024-12-19 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053389', 'tblTempUsageDetail_20' ) start [2024-12-19 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053389', 'tblTempUsageDetail_20' ) end [2024-12-19 05:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:36:20] Production.INFO: ==12645== Releasing lock... [2024-12-19 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:36:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:37:04 [end_date_ymd] => 2024-12-19 05:37:04 [RateCDR] => 1 ) [2024-12-19 05:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:37:04' and `end` < '2024-12-19 05:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:37:16] Production.INFO: count ==60 [2024-12-19 05:37:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:37:04 - End Time 2024-12-19 05:37:04 [2024-12-19 05:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053394', 'tblTempUsageDetail_20' ) start [2024-12-19 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053394', 'tblTempUsageDetail_20' ) end [2024-12-19 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053394', 'tblTempVendorCDR_20' ) start [2024-12-19 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053394', 'tblTempVendorCDR_20' ) end [2024-12-19 05:37:16] Production.INFO: ProcessCDR(1,14053394,1,1,2) [2024-12-19 05:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053394', 'tblTempUsageDetail_20' ) start [2024-12-19 05:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053394', 'tblTempUsageDetail_20' ) end [2024-12-19 05:37:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:37:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:37:20] Production.INFO: ==12722== Releasing lock... [2024-12-19 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:37:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:38:05 [end_date_ymd] => 2024-12-19 05:38:05 [RateCDR] => 1 ) [2024-12-19 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:38:05' and `end` < '2024-12-19 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:38:17] Production.INFO: count ==61 [2024-12-19 05:38:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:38:05 - End Time 2024-12-19 05:38:05 [2024-12-19 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053399', 'tblTempUsageDetail_20' ) start [2024-12-19 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053399', 'tblTempUsageDetail_20' ) end [2024-12-19 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053399', 'tblTempVendorCDR_20' ) start [2024-12-19 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053399', 'tblTempVendorCDR_20' ) end [2024-12-19 05:38:17] Production.INFO: ProcessCDR(1,14053399,1,1,2) [2024-12-19 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053399', 'tblTempUsageDetail_20' ) start [2024-12-19 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053399', 'tblTempUsageDetail_20' ) end [2024-12-19 05:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:38:22] Production.INFO: ==12795== Releasing lock... [2024-12-19 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:38:22] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:39:05 [end_date_ymd] => 2024-12-19 05:39:05 [RateCDR] => 1 ) [2024-12-19 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:39:05' and `end` < '2024-12-19 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:39:17] Production.INFO: count ==61 [2024-12-19 05:39:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:39:05 - End Time 2024-12-19 05:39:05 [2024-12-19 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053404', 'tblTempUsageDetail_20' ) start [2024-12-19 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053404', 'tblTempUsageDetail_20' ) end [2024-12-19 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053404', 'tblTempVendorCDR_20' ) start [2024-12-19 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053404', 'tblTempVendorCDR_20' ) end [2024-12-19 05:39:17] Production.INFO: ProcessCDR(1,14053404,1,1,2) [2024-12-19 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053404', 'tblTempUsageDetail_20' ) start [2024-12-19 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053404', 'tblTempUsageDetail_20' ) end [2024-12-19 05:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:39:21] Production.INFO: ==12869== Releasing lock... [2024-12-19 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:39:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:40:06 [end_date_ymd] => 2024-12-19 05:40:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:40:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:40:18] Production.INFO: count ==58 [2024-12-19 05:40:18] Production.ERROR: pbx CDR StartTime 2024-12-19 02:40:06 - End Time 2024-12-19 05:40:06 [2024-12-19 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053410', 'tblTempUsageDetail_20' ) start [2024-12-19 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053410', 'tblTempUsageDetail_20' ) end [2024-12-19 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053410', 'tblTempVendorCDR_20' ) start [2024-12-19 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053410', 'tblTempVendorCDR_20' ) end [2024-12-19 05:40:18] Production.INFO: ProcessCDR(1,14053410,1,1,2) [2024-12-19 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053410', 'tblTempUsageDetail_20' ) start [2024-12-19 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053410', 'tblTempUsageDetail_20' ) end [2024-12-19 05:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:40:21] Production.INFO: ==12948== Releasing lock... [2024-12-19 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:40:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:41:05 [end_date_ymd] => 2024-12-19 05:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:41:17] Production.INFO: count ==58 [2024-12-19 05:41:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:41:05 - End Time 2024-12-19 05:41:05 [2024-12-19 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053415', 'tblTempUsageDetail_20' ) start [2024-12-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053415', 'tblTempUsageDetail_20' ) end [2024-12-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053415', 'tblTempVendorCDR_20' ) start [2024-12-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053415', 'tblTempVendorCDR_20' ) end [2024-12-19 05:41:17] Production.INFO: ProcessCDR(1,14053415,1,1,2) [2024-12-19 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053415', 'tblTempUsageDetail_20' ) start [2024-12-19 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053415', 'tblTempUsageDetail_20' ) end [2024-12-19 05:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:41:20] Production.INFO: ==13020== Releasing lock... [2024-12-19 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:41:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:42:05 [end_date_ymd] => 2024-12-19 05:42:05 [RateCDR] => 1 ) [2024-12-19 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:42:05' and `end` < '2024-12-19 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:42:17] Production.INFO: count ==58 [2024-12-19 05:42:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:42:05 - End Time 2024-12-19 05:42:05 [2024-12-19 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053420', 'tblTempUsageDetail_20' ) start [2024-12-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053420', 'tblTempUsageDetail_20' ) end [2024-12-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053420', 'tblTempVendorCDR_20' ) start [2024-12-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053420', 'tblTempVendorCDR_20' ) end [2024-12-19 05:42:17] Production.INFO: ProcessCDR(1,14053420,1,1,2) [2024-12-19 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053420', 'tblTempUsageDetail_20' ) start [2024-12-19 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053420', 'tblTempUsageDetail_20' ) end [2024-12-19 05:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:42:20] Production.INFO: ==13096== Releasing lock... [2024-12-19 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:43:05 [end_date_ymd] => 2024-12-19 05:43:05 [RateCDR] => 1 ) [2024-12-19 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:43:05' and `end` < '2024-12-19 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:43:17] Production.INFO: count ==59 [2024-12-19 05:43:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:43:05 - End Time 2024-12-19 05:43:05 [2024-12-19 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053425', 'tblTempUsageDetail_20' ) start [2024-12-19 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053425', 'tblTempUsageDetail_20' ) end [2024-12-19 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053425', 'tblTempVendorCDR_20' ) start [2024-12-19 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053425', 'tblTempVendorCDR_20' ) end [2024-12-19 05:43:17] Production.INFO: ProcessCDR(1,14053425,1,1,2) [2024-12-19 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053425', 'tblTempUsageDetail_20' ) start [2024-12-19 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053425', 'tblTempUsageDetail_20' ) end [2024-12-19 05:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:43:21] Production.INFO: ==13169== Releasing lock... [2024-12-19 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:43:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:44:05 [end_date_ymd] => 2024-12-19 05:44:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:44:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:44:17] Production.INFO: count ==59 [2024-12-19 05:44:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:44:05 - End Time 2024-12-19 05:44:05 [2024-12-19 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053430', 'tblTempUsageDetail_20' ) start [2024-12-19 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053430', 'tblTempUsageDetail_20' ) end [2024-12-19 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053430', 'tblTempVendorCDR_20' ) start [2024-12-19 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053430', 'tblTempVendorCDR_20' ) end [2024-12-19 05:44:17] Production.INFO: ProcessCDR(1,14053430,1,1,2) [2024-12-19 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053430', 'tblTempUsageDetail_20' ) start [2024-12-19 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053430', 'tblTempUsageDetail_20' ) end [2024-12-19 05:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:44:20] Production.INFO: ==13240== Releasing lock... [2024-12-19 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:44:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:45:05 [end_date_ymd] => 2024-12-19 05:45:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:45:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:45:17] Production.INFO: count ==59 [2024-12-19 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:45:05 - End Time 2024-12-19 05:45:05 [2024-12-19 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053435', 'tblTempUsageDetail_20' ) start [2024-12-19 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053435', 'tblTempUsageDetail_20' ) end [2024-12-19 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053435', 'tblTempVendorCDR_20' ) start [2024-12-19 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053435', 'tblTempVendorCDR_20' ) end [2024-12-19 05:45:17] Production.INFO: ProcessCDR(1,14053435,1,1,2) [2024-12-19 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053435', 'tblTempUsageDetail_20' ) start [2024-12-19 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053435', 'tblTempUsageDetail_20' ) end [2024-12-19 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:45:20] Production.INFO: ==13316== Releasing lock... [2024-12-19 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:46:05 [end_date_ymd] => 2024-12-19 05:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:46:18] Production.INFO: count ==59 [2024-12-19 05:46:18] Production.ERROR: pbx CDR StartTime 2024-12-19 02:46:05 - End Time 2024-12-19 05:46:05 [2024-12-19 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053440', 'tblTempUsageDetail_20' ) start [2024-12-19 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053440', 'tblTempUsageDetail_20' ) end [2024-12-19 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053440', 'tblTempVendorCDR_20' ) start [2024-12-19 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053440', 'tblTempVendorCDR_20' ) end [2024-12-19 05:46:18] Production.INFO: ProcessCDR(1,14053440,1,1,2) [2024-12-19 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053440', 'tblTempUsageDetail_20' ) start [2024-12-19 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053440', 'tblTempUsageDetail_20' ) end [2024-12-19 05:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:46:21] Production.INFO: ==13390== Releasing lock... [2024-12-19 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:46:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:47:04 [end_date_ymd] => 2024-12-19 05:47:04 [RateCDR] => 1 ) [2024-12-19 05: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` >= '2024-12-19 02:47:04' and `end` < '2024-12-19 05: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 ,'') [2024-12-19 05:47:16] Production.INFO: count ==59 [2024-12-19 05:47:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:47:04 - End Time 2024-12-19 05:47:04 [2024-12-19 05:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053445', 'tblTempUsageDetail_20' ) start [2024-12-19 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053445', 'tblTempUsageDetail_20' ) end [2024-12-19 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053445', 'tblTempVendorCDR_20' ) start [2024-12-19 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053445', 'tblTempVendorCDR_20' ) end [2024-12-19 05:47:16] Production.INFO: ProcessCDR(1,14053445,1,1,2) [2024-12-19 05:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053445', 'tblTempUsageDetail_20' ) start [2024-12-19 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053445', 'tblTempUsageDetail_20' ) end [2024-12-19 05:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:47:20] Production.INFO: ==13463== Releasing lock... [2024-12-19 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:47:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:48:04 [end_date_ymd] => 2024-12-19 05:48:04 [RateCDR] => 1 ) [2024-12-19 05: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` >= '2024-12-19 02:48:04' and `end` < '2024-12-19 05: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 ,'') [2024-12-19 05:48:17] Production.INFO: count ==60 [2024-12-19 05:48:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:48:04 - End Time 2024-12-19 05:48:04 [2024-12-19 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053450', 'tblTempUsageDetail_20' ) start [2024-12-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053450', 'tblTempUsageDetail_20' ) end [2024-12-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053450', 'tblTempVendorCDR_20' ) start [2024-12-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053450', 'tblTempVendorCDR_20' ) end [2024-12-19 05:48:17] Production.INFO: ProcessCDR(1,14053450,1,1,2) [2024-12-19 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053450', 'tblTempUsageDetail_20' ) start [2024-12-19 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053450', 'tblTempUsageDetail_20' ) end [2024-12-19 05:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:48:20] Production.INFO: ==13537== Releasing lock... [2024-12-19 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:48:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:49:04 [end_date_ymd] => 2024-12-19 05:49:04 [RateCDR] => 1 ) [2024-12-19 05:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:49:04' and `end` < '2024-12-19 05:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:49:17] Production.INFO: count ==60 [2024-12-19 05:49:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:49:04 - End Time 2024-12-19 05:49:04 [2024-12-19 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053455', 'tblTempUsageDetail_20' ) start [2024-12-19 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053455', 'tblTempUsageDetail_20' ) end [2024-12-19 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053455', 'tblTempVendorCDR_20' ) start [2024-12-19 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053455', 'tblTempVendorCDR_20' ) end [2024-12-19 05:49:17] Production.INFO: ProcessCDR(1,14053455,1,1,2) [2024-12-19 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053455', 'tblTempUsageDetail_20' ) start [2024-12-19 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053455', 'tblTempUsageDetail_20' ) end [2024-12-19 05:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:49:20] Production.INFO: ==13610== Releasing lock... [2024-12-19 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:49:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:50:06 [end_date_ymd] => 2024-12-19 05:50:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:50:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:50:18] Production.INFO: count ==58 [2024-12-19 05:50:18] Production.ERROR: pbx CDR StartTime 2024-12-19 02:50:06 - End Time 2024-12-19 05:50:06 [2024-12-19 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053460', 'tblTempUsageDetail_20' ) start [2024-12-19 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053460', 'tblTempUsageDetail_20' ) end [2024-12-19 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053460', 'tblTempVendorCDR_20' ) start [2024-12-19 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053460', 'tblTempVendorCDR_20' ) end [2024-12-19 05:50:18] Production.INFO: ProcessCDR(1,14053460,1,1,2) [2024-12-19 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053460', 'tblTempUsageDetail_20' ) start [2024-12-19 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053460', 'tblTempUsageDetail_20' ) end [2024-12-19 05:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:50:21] Production.INFO: ==13722== Releasing lock... [2024-12-19 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:50:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:51:05 [end_date_ymd] => 2024-12-19 05:51:05 [RateCDR] => 1 ) [2024-12-19 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:51:05' and `end` < '2024-12-19 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:51:17] Production.INFO: count ==58 [2024-12-19 05:51:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:51:05 - End Time 2024-12-19 05:51:05 [2024-12-19 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053466', 'tblTempUsageDetail_20' ) start [2024-12-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053466', 'tblTempUsageDetail_20' ) end [2024-12-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053466', 'tblTempVendorCDR_20' ) start [2024-12-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053466', 'tblTempVendorCDR_20' ) end [2024-12-19 05:51:17] Production.INFO: ProcessCDR(1,14053466,1,1,2) [2024-12-19 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053466', 'tblTempUsageDetail_20' ) start [2024-12-19 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053466', 'tblTempUsageDetail_20' ) end [2024-12-19 05:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:51:20] Production.INFO: ==13797== Releasing lock... [2024-12-19 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:51:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:52:05 [end_date_ymd] => 2024-12-19 05:52:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:52:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:52:17] Production.INFO: count ==58 [2024-12-19 05:52:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:52:05 - End Time 2024-12-19 05:52:05 [2024-12-19 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053471', 'tblTempUsageDetail_20' ) start [2024-12-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053471', 'tblTempUsageDetail_20' ) end [2024-12-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053471', 'tblTempVendorCDR_20' ) start [2024-12-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053471', 'tblTempVendorCDR_20' ) end [2024-12-19 05:52:17] Production.INFO: ProcessCDR(1,14053471,1,1,2) [2024-12-19 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053471', 'tblTempUsageDetail_20' ) start [2024-12-19 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053471', 'tblTempUsageDetail_20' ) end [2024-12-19 05:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:52:21] Production.INFO: ==13872== Releasing lock... [2024-12-19 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:52:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:53:04 [end_date_ymd] => 2024-12-19 05:53:04 [RateCDR] => 1 ) [2024-12-19 05:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:53:04' and `end` < '2024-12-19 05:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:53:16] Production.INFO: count ==58 [2024-12-19 05:53:16] Production.ERROR: pbx CDR StartTime 2024-12-19 02:53:04 - End Time 2024-12-19 05:53:04 [2024-12-19 05:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053476', 'tblTempUsageDetail_20' ) start [2024-12-19 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053476', 'tblTempUsageDetail_20' ) end [2024-12-19 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053476', 'tblTempVendorCDR_20' ) start [2024-12-19 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053476', 'tblTempVendorCDR_20' ) end [2024-12-19 05:53:16] Production.INFO: ProcessCDR(1,14053476,1,1,2) [2024-12-19 05:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053476', 'tblTempUsageDetail_20' ) start [2024-12-19 05:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053476', 'tblTempUsageDetail_20' ) end [2024-12-19 05:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:53:19] Production.INFO: ==13942== Releasing lock... [2024-12-19 05:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:53:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:54:05 [end_date_ymd] => 2024-12-19 05:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:54:17] Production.INFO: count ==58 [2024-12-19 05:54:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:54:05 - End Time 2024-12-19 05:54:05 [2024-12-19 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053481', 'tblTempUsageDetail_20' ) start [2024-12-19 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053481', 'tblTempUsageDetail_20' ) end [2024-12-19 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053481', 'tblTempVendorCDR_20' ) start [2024-12-19 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053481', 'tblTempVendorCDR_20' ) end [2024-12-19 05:54:17] Production.INFO: ProcessCDR(1,14053481,1,1,2) [2024-12-19 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053481', 'tblTempUsageDetail_20' ) start [2024-12-19 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053481', 'tblTempUsageDetail_20' ) end [2024-12-19 05:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:54:20] Production.INFO: ==14014== Releasing lock... [2024-12-19 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:54:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:55:04 [end_date_ymd] => 2024-12-19 05:55:04 [RateCDR] => 1 ) [2024-12-19 05:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:55:04' and `end` < '2024-12-19 05:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:55:17] Production.INFO: count ==58 [2024-12-19 05:55:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:55:04 - End Time 2024-12-19 05:55:04 [2024-12-19 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053486', 'tblTempUsageDetail_20' ) start [2024-12-19 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053486', 'tblTempUsageDetail_20' ) end [2024-12-19 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053486', 'tblTempVendorCDR_20' ) start [2024-12-19 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053486', 'tblTempVendorCDR_20' ) end [2024-12-19 05:55:17] Production.INFO: ProcessCDR(1,14053486,1,1,2) [2024-12-19 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053486', 'tblTempUsageDetail_20' ) start [2024-12-19 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053486', 'tblTempUsageDetail_20' ) end [2024-12-19 05:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:55:21] Production.INFO: ==14087== Releasing lock... [2024-12-19 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:55:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:56:04 [end_date_ymd] => 2024-12-19 05:56:04 [RateCDR] => 1 ) [2024-12-19 05:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 02:56:04' and `end` < '2024-12-19 05:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 05:56:17] Production.INFO: count ==58 [2024-12-19 05:56:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:56:04 - End Time 2024-12-19 05:56:04 [2024-12-19 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053491', 'tblTempUsageDetail_20' ) start [2024-12-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053491', 'tblTempUsageDetail_20' ) end [2024-12-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053491', 'tblTempVendorCDR_20' ) start [2024-12-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053491', 'tblTempVendorCDR_20' ) end [2024-12-19 05:56:17] Production.INFO: ProcessCDR(1,14053491,1,1,2) [2024-12-19 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053491', 'tblTempUsageDetail_20' ) start [2024-12-19 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053491', 'tblTempUsageDetail_20' ) end [2024-12-19 05:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:56:20] Production.INFO: ==14162== Releasing lock... [2024-12-19 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:56:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:57:05 [end_date_ymd] => 2024-12-19 05:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:57:17] Production.INFO: count ==58 [2024-12-19 05:57:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:57:05 - End Time 2024-12-19 05:57:05 [2024-12-19 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053496', 'tblTempUsageDetail_20' ) start [2024-12-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053496', 'tblTempUsageDetail_20' ) end [2024-12-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053496', 'tblTempVendorCDR_20' ) start [2024-12-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053496', 'tblTempVendorCDR_20' ) end [2024-12-19 05:57:17] Production.INFO: ProcessCDR(1,14053496,1,1,2) [2024-12-19 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053496', 'tblTempUsageDetail_20' ) start [2024-12-19 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053496', 'tblTempUsageDetail_20' ) end [2024-12-19 05:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:57:20] Production.INFO: ==14239== Releasing lock... [2024-12-19 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:57:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:58:04 [end_date_ymd] => 2024-12-19 05:58:04 [RateCDR] => 1 ) [2024-12-19 05: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` >= '2024-12-19 02:58:04' and `end` < '2024-12-19 05: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 ,'') [2024-12-19 05:58:17] Production.INFO: count ==58 [2024-12-19 05:58:17] Production.ERROR: pbx CDR StartTime 2024-12-19 02:58:04 - End Time 2024-12-19 05:58:04 [2024-12-19 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053501', 'tblTempUsageDetail_20' ) start [2024-12-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053501', 'tblTempUsageDetail_20' ) end [2024-12-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053501', 'tblTempVendorCDR_20' ) start [2024-12-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053501', 'tblTempVendorCDR_20' ) end [2024-12-19 05:58:17] Production.INFO: ProcessCDR(1,14053501,1,1,2) [2024-12-19 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053501', 'tblTempUsageDetail_20' ) start [2024-12-19 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053501', 'tblTempUsageDetail_20' ) end [2024-12-19 05:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:58:20] Production.INFO: ==14311== Releasing lock... [2024-12-19 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:58:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 02:59:05 [end_date_ymd] => 2024-12-19 05:59:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 02:59:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 05:59:18] Production.INFO: count ==58 [2024-12-19 05:59:18] Production.ERROR: pbx CDR StartTime 2024-12-19 02:59:05 - End Time 2024-12-19 05:59:05 [2024-12-19 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053506', 'tblTempUsageDetail_20' ) start [2024-12-19 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053506', 'tblTempUsageDetail_20' ) end [2024-12-19 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053506', 'tblTempVendorCDR_20' ) start [2024-12-19 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053506', 'tblTempVendorCDR_20' ) end [2024-12-19 05:59:18] Production.INFO: ProcessCDR(1,14053506,1,1,2) [2024-12-19 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053506', 'tblTempUsageDetail_20' ) start [2024-12-19 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053506', 'tblTempUsageDetail_20' ) end [2024-12-19 05:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 05:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 05:59:21] Production.INFO: ==14389== Releasing lock... [2024-12-19 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 05:59:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:00:05 [end_date_ymd] => 2024-12-19 06:00:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:00:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:00:17] Production.INFO: count ==58 [2024-12-19 06:00:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:00:05 - End Time 2024-12-19 06:00:05 [2024-12-19 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053512', 'tblTempUsageDetail_20' ) start [2024-12-19 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053512', 'tblTempUsageDetail_20' ) end [2024-12-19 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053512', 'tblTempVendorCDR_20' ) start [2024-12-19 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053512', 'tblTempVendorCDR_20' ) end [2024-12-19 06:00:17] Production.INFO: ProcessCDR(1,14053512,1,1,2) [2024-12-19 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053512', 'tblTempUsageDetail_20' ) start [2024-12-19 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053512', 'tblTempUsageDetail_20' ) end [2024-12-19 06:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:00:20] Production.INFO: ==14466== Releasing lock... [2024-12-19 06:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:00:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:01:05 [end_date_ymd] => 2024-12-19 06:01:05 [RateCDR] => 1 ) [2024-12-19 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:01:05' and `end` < '2024-12-19 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:01:18] Production.INFO: count ==58 [2024-12-19 06:01:18] Production.ERROR: pbx CDR StartTime 2024-12-19 03:01:05 - End Time 2024-12-19 06:01:05 [2024-12-19 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053517', 'tblTempUsageDetail_20' ) start [2024-12-19 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053517', 'tblTempUsageDetail_20' ) end [2024-12-19 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053517', 'tblTempVendorCDR_20' ) start [2024-12-19 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053517', 'tblTempVendorCDR_20' ) end [2024-12-19 06:01:18] Production.INFO: ProcessCDR(1,14053517,1,1,2) [2024-12-19 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053517', 'tblTempUsageDetail_20' ) start [2024-12-19 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053517', 'tblTempUsageDetail_20' ) end [2024-12-19 06:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:01:21] Production.INFO: ==14553== Releasing lock... [2024-12-19 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:01:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:02:04 [end_date_ymd] => 2024-12-19 06:02:04 [RateCDR] => 1 ) [2024-12-19 06:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:02:04' and `end` < '2024-12-19 06:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:02:16] Production.INFO: count ==58 [2024-12-19 06:02:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:02:04 - End Time 2024-12-19 06:02:04 [2024-12-19 06:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053522', 'tblTempUsageDetail_20' ) start [2024-12-19 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053522', 'tblTempUsageDetail_20' ) end [2024-12-19 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053522', 'tblTempVendorCDR_20' ) start [2024-12-19 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053522', 'tblTempVendorCDR_20' ) end [2024-12-19 06:02:16] Production.INFO: ProcessCDR(1,14053522,1,1,2) [2024-12-19 06:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:02:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:02:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053522', 'tblTempUsageDetail_20' ) start [2024-12-19 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053522', 'tblTempUsageDetail_20' ) end [2024-12-19 06:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:02:20] Production.INFO: ==14630== Releasing lock... [2024-12-19 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:02:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:03:04 [end_date_ymd] => 2024-12-19 06:03:04 [RateCDR] => 1 ) [2024-12-19 06:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:03:04' and `end` < '2024-12-19 06:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:03:16] Production.INFO: count ==58 [2024-12-19 06:03:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:03:04 - End Time 2024-12-19 06:03:04 [2024-12-19 06:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053527', 'tblTempUsageDetail_20' ) start [2024-12-19 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053527', 'tblTempUsageDetail_20' ) end [2024-12-19 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053527', 'tblTempVendorCDR_20' ) start [2024-12-19 06:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053527', 'tblTempVendorCDR_20' ) end [2024-12-19 06:03:16] Production.INFO: ProcessCDR(1,14053527,1,1,2) [2024-12-19 06:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053527', 'tblTempUsageDetail_20' ) start [2024-12-19 06:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053527', 'tblTempUsageDetail_20' ) end [2024-12-19 06:03:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:03:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:03:19] Production.INFO: ==14709== Releasing lock... [2024-12-19 06:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:03:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:04:05 [end_date_ymd] => 2024-12-19 06:04:05 [RateCDR] => 1 ) [2024-12-19 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:04:05' and `end` < '2024-12-19 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:04:18] Production.INFO: count ==58 [2024-12-19 06:04:18] Production.ERROR: pbx CDR StartTime 2024-12-19 03:04:05 - End Time 2024-12-19 06:04:05 [2024-12-19 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053532', 'tblTempUsageDetail_20' ) start [2024-12-19 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053532', 'tblTempUsageDetail_20' ) end [2024-12-19 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053532', 'tblTempVendorCDR_20' ) start [2024-12-19 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053532', 'tblTempVendorCDR_20' ) end [2024-12-19 06:04:18] Production.INFO: ProcessCDR(1,14053532,1,1,2) [2024-12-19 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053532', 'tblTempUsageDetail_20' ) start [2024-12-19 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053532', 'tblTempUsageDetail_20' ) end [2024-12-19 06:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:04:21] Production.INFO: ==14789== Releasing lock... [2024-12-19 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:04:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:05:05 [end_date_ymd] => 2024-12-19 06:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:05:17] Production.INFO: count ==58 [2024-12-19 06:05:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:05:05 - End Time 2024-12-19 06:05:05 [2024-12-19 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053537', 'tblTempUsageDetail_20' ) start [2024-12-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053537', 'tblTempUsageDetail_20' ) end [2024-12-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053537', 'tblTempVendorCDR_20' ) start [2024-12-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053537', 'tblTempVendorCDR_20' ) end [2024-12-19 06:05:17] Production.INFO: ProcessCDR(1,14053537,1,1,2) [2024-12-19 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053537', 'tblTempUsageDetail_20' ) start [2024-12-19 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053537', 'tblTempUsageDetail_20' ) end [2024-12-19 06:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:05:20] Production.INFO: ==14865== Releasing lock... [2024-12-19 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:05:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:06:05 [end_date_ymd] => 2024-12-19 06:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:06:18] Production.INFO: count ==58 [2024-12-19 06:06:18] Production.ERROR: pbx CDR StartTime 2024-12-19 03:06:05 - End Time 2024-12-19 06:06:05 [2024-12-19 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053542', 'tblTempUsageDetail_20' ) start [2024-12-19 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053542', 'tblTempUsageDetail_20' ) end [2024-12-19 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053542', 'tblTempVendorCDR_20' ) start [2024-12-19 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053542', 'tblTempVendorCDR_20' ) end [2024-12-19 06:06:18] Production.INFO: ProcessCDR(1,14053542,1,1,2) [2024-12-19 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053542', 'tblTempUsageDetail_20' ) start [2024-12-19 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053542', 'tblTempUsageDetail_20' ) end [2024-12-19 06:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:06:21] Production.INFO: ==14986== Releasing lock... [2024-12-19 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:06:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:07:05 [end_date_ymd] => 2024-12-19 06:07:05 [RateCDR] => 1 ) [2024-12-19 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:07:05' and `end` < '2024-12-19 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:07:17] Production.INFO: count ==58 [2024-12-19 06:07:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:07:05 - End Time 2024-12-19 06:07:05 [2024-12-19 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053547', 'tblTempUsageDetail_20' ) start [2024-12-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053547', 'tblTempUsageDetail_20' ) end [2024-12-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053547', 'tblTempVendorCDR_20' ) start [2024-12-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053547', 'tblTempVendorCDR_20' ) end [2024-12-19 06:07:17] Production.INFO: ProcessCDR(1,14053547,1,1,2) [2024-12-19 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053547', 'tblTempUsageDetail_20' ) start [2024-12-19 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053547', 'tblTempUsageDetail_20' ) end [2024-12-19 06:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:07:20] Production.INFO: ==15068== Releasing lock... [2024-12-19 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:07:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:08:05 [end_date_ymd] => 2024-12-19 06:08:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:08:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:08:17] Production.INFO: count ==58 [2024-12-19 06:08:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:08:05 - End Time 2024-12-19 06:08:05 [2024-12-19 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053552', 'tblTempUsageDetail_20' ) start [2024-12-19 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053552', 'tblTempUsageDetail_20' ) end [2024-12-19 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053552', 'tblTempVendorCDR_20' ) start [2024-12-19 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053552', 'tblTempVendorCDR_20' ) end [2024-12-19 06:08:17] Production.INFO: ProcessCDR(1,14053552,1,1,2) [2024-12-19 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053552', 'tblTempUsageDetail_20' ) start [2024-12-19 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053552', 'tblTempUsageDetail_20' ) end [2024-12-19 06:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:08:20] Production.INFO: ==15153== Releasing lock... [2024-12-19 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:08:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:09:04 [end_date_ymd] => 2024-12-19 06:09:04 [RateCDR] => 1 ) [2024-12-19 06:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:09:04' and `end` < '2024-12-19 06:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:09:16] Production.INFO: count ==58 [2024-12-19 06:09:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:09:04 - End Time 2024-12-19 06:09:04 [2024-12-19 06:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053557', 'tblTempUsageDetail_20' ) start [2024-12-19 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053557', 'tblTempUsageDetail_20' ) end [2024-12-19 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053557', 'tblTempVendorCDR_20' ) start [2024-12-19 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053557', 'tblTempVendorCDR_20' ) end [2024-12-19 06:09:16] Production.INFO: ProcessCDR(1,14053557,1,1,2) [2024-12-19 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053557', 'tblTempUsageDetail_20' ) start [2024-12-19 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053557', 'tblTempUsageDetail_20' ) end [2024-12-19 06:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:09:20] Production.INFO: ==15240== Releasing lock... [2024-12-19 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:09:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:10:06 [end_date_ymd] => 2024-12-19 06:10:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:10:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:10:19] Production.INFO: count ==56 [2024-12-19 06:10:19] Production.ERROR: pbx CDR StartTime 2024-12-19 03:10:06 - End Time 2024-12-19 06:10:06 [2024-12-19 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053563', 'tblTempUsageDetail_20' ) start [2024-12-19 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053563', 'tblTempUsageDetail_20' ) end [2024-12-19 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053563', 'tblTempVendorCDR_20' ) start [2024-12-19 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053563', 'tblTempVendorCDR_20' ) end [2024-12-19 06:10:19] Production.INFO: ProcessCDR(1,14053563,1,1,2) [2024-12-19 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053563', 'tblTempUsageDetail_20' ) start [2024-12-19 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053563', 'tblTempUsageDetail_20' ) end [2024-12-19 06:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:10:22] Production.INFO: ==15317== Releasing lock... [2024-12-19 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:10:22] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:11:05 [end_date_ymd] => 2024-12-19 06:11:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:11:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:11:18] Production.INFO: count ==56 [2024-12-19 06:11:18] Production.ERROR: pbx CDR StartTime 2024-12-19 03:11:05 - End Time 2024-12-19 06:11:05 [2024-12-19 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053568', 'tblTempUsageDetail_20' ) start [2024-12-19 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053568', 'tblTempUsageDetail_20' ) end [2024-12-19 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053568', 'tblTempVendorCDR_20' ) start [2024-12-19 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053568', 'tblTempVendorCDR_20' ) end [2024-12-19 06:11:18] Production.INFO: ProcessCDR(1,14053568,1,1,2) [2024-12-19 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053568', 'tblTempUsageDetail_20' ) start [2024-12-19 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053568', 'tblTempUsageDetail_20' ) end [2024-12-19 06:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:11:21] Production.INFO: ==15397== Releasing lock... [2024-12-19 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:11:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:12:04 [end_date_ymd] => 2024-12-19 06:12:04 [RateCDR] => 1 ) [2024-12-19 06: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` >= '2024-12-19 03:12:04' and `end` < '2024-12-19 06: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 ,'') [2024-12-19 06:12:17] Production.INFO: count ==56 [2024-12-19 06:12:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:12:04 - End Time 2024-12-19 06:12:04 [2024-12-19 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053573', 'tblTempUsageDetail_20' ) start [2024-12-19 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053573', 'tblTempUsageDetail_20' ) end [2024-12-19 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053573', 'tblTempVendorCDR_20' ) start [2024-12-19 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053573', 'tblTempVendorCDR_20' ) end [2024-12-19 06:12:17] Production.INFO: ProcessCDR(1,14053573,1,1,2) [2024-12-19 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053573', 'tblTempUsageDetail_20' ) start [2024-12-19 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053573', 'tblTempUsageDetail_20' ) end [2024-12-19 06:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:12:20] Production.INFO: ==15476== Releasing lock... [2024-12-19 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:12:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:13:05 [end_date_ymd] => 2024-12-19 06:13:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:13:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:13:17] Production.INFO: count ==57 [2024-12-19 06:13:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:13:05 - End Time 2024-12-19 06:13:05 [2024-12-19 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053578', 'tblTempUsageDetail_20' ) start [2024-12-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053578', 'tblTempUsageDetail_20' ) end [2024-12-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053578', 'tblTempVendorCDR_20' ) start [2024-12-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053578', 'tblTempVendorCDR_20' ) end [2024-12-19 06:13:17] Production.INFO: ProcessCDR(1,14053578,1,1,2) [2024-12-19 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053578', 'tblTempUsageDetail_20' ) start [2024-12-19 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053578', 'tblTempUsageDetail_20' ) end [2024-12-19 06:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:13:22] Production.INFO: ==15556== Releasing lock... [2024-12-19 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:13:22] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:14:04 [end_date_ymd] => 2024-12-19 06:14:04 [RateCDR] => 1 ) [2024-12-19 06: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` >= '2024-12-19 03:14:04' and `end` < '2024-12-19 06: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 ,'') [2024-12-19 06:14:16] Production.INFO: count ==57 [2024-12-19 06:14:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:14:04 - End Time 2024-12-19 06:14:04 [2024-12-19 06:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053583', 'tblTempUsageDetail_20' ) start [2024-12-19 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053583', 'tblTempUsageDetail_20' ) end [2024-12-19 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053583', 'tblTempVendorCDR_20' ) start [2024-12-19 06:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053583', 'tblTempVendorCDR_20' ) end [2024-12-19 06:14:16] Production.INFO: ProcessCDR(1,14053583,1,1,2) [2024-12-19 06:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:14:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053583', 'tblTempUsageDetail_20' ) start [2024-12-19 06:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053583', 'tblTempUsageDetail_20' ) end [2024-12-19 06:14:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:14:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:14:19] Production.INFO: ==15634== Releasing lock... [2024-12-19 06:14:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:14:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:15:05 [end_date_ymd] => 2024-12-19 06:15:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:15:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:15:17] Production.INFO: count ==57 [2024-12-19 06:15:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:15:05 - End Time 2024-12-19 06:15:05 [2024-12-19 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053588', 'tblTempUsageDetail_20' ) start [2024-12-19 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053588', 'tblTempUsageDetail_20' ) end [2024-12-19 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053588', 'tblTempVendorCDR_20' ) start [2024-12-19 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053588', 'tblTempVendorCDR_20' ) end [2024-12-19 06:15:17] Production.INFO: ProcessCDR(1,14053588,1,1,2) [2024-12-19 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053588', 'tblTempUsageDetail_20' ) start [2024-12-19 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053588', 'tblTempUsageDetail_20' ) end [2024-12-19 06:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:15:20] Production.INFO: ==15714== Releasing lock... [2024-12-19 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:15:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:16:04 [end_date_ymd] => 2024-12-19 06:16:04 [RateCDR] => 1 ) [2024-12-19 06: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` >= '2024-12-19 03:16:04' and `end` < '2024-12-19 06: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 ,'') [2024-12-19 06:16:16] Production.INFO: count ==57 [2024-12-19 06:16:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:16:04 - End Time 2024-12-19 06:16:04 [2024-12-19 06:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053593', 'tblTempUsageDetail_20' ) start [2024-12-19 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053593', 'tblTempUsageDetail_20' ) end [2024-12-19 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053593', 'tblTempVendorCDR_20' ) start [2024-12-19 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053593', 'tblTempVendorCDR_20' ) end [2024-12-19 06:16:16] Production.INFO: ProcessCDR(1,14053593,1,1,2) [2024-12-19 06:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:16:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053593', 'tblTempUsageDetail_20' ) start [2024-12-19 06:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053593', 'tblTempUsageDetail_20' ) end [2024-12-19 06:16:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:16:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:16:19] Production.INFO: ==15788== Releasing lock... [2024-12-19 06:16:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:16:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:17:05 [end_date_ymd] => 2024-12-19 06:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:17:17] Production.INFO: count ==57 [2024-12-19 06:17:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:17:05 - End Time 2024-12-19 06:17:05 [2024-12-19 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053598', 'tblTempUsageDetail_20' ) start [2024-12-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053598', 'tblTempUsageDetail_20' ) end [2024-12-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053598', 'tblTempVendorCDR_20' ) start [2024-12-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053598', 'tblTempVendorCDR_20' ) end [2024-12-19 06:17:17] Production.INFO: ProcessCDR(1,14053598,1,1,2) [2024-12-19 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053598', 'tblTempUsageDetail_20' ) start [2024-12-19 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053598', 'tblTempUsageDetail_20' ) end [2024-12-19 06:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:17:20] Production.INFO: ==15875== Releasing lock... [2024-12-19 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:17:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:18:05 [end_date_ymd] => 2024-12-19 06:18:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:18:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:18:17] Production.INFO: count ==57 [2024-12-19 06:18:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:18:05 - End Time 2024-12-19 06:18:05 [2024-12-19 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053603', 'tblTempUsageDetail_20' ) start [2024-12-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053603', 'tblTempUsageDetail_20' ) end [2024-12-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053603', 'tblTempVendorCDR_20' ) start [2024-12-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053603', 'tblTempVendorCDR_20' ) end [2024-12-19 06:18:17] Production.INFO: ProcessCDR(1,14053603,1,1,2) [2024-12-19 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053603', 'tblTempUsageDetail_20' ) start [2024-12-19 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053603', 'tblTempUsageDetail_20' ) end [2024-12-19 06:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:18:20] Production.INFO: ==15950== Releasing lock... [2024-12-19 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:18:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:19:04 [end_date_ymd] => 2024-12-19 06:19:04 [RateCDR] => 1 ) [2024-12-19 06:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:19:04' and `end` < '2024-12-19 06:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:19:16] Production.INFO: count ==57 [2024-12-19 06:19:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:19:04 - End Time 2024-12-19 06:19:04 [2024-12-19 06:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053608', 'tblTempUsageDetail_20' ) start [2024-12-19 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053608', 'tblTempUsageDetail_20' ) end [2024-12-19 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053608', 'tblTempVendorCDR_20' ) start [2024-12-19 06:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053608', 'tblTempVendorCDR_20' ) end [2024-12-19 06:19:16] Production.INFO: ProcessCDR(1,14053608,1,1,2) [2024-12-19 06:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053608', 'tblTempUsageDetail_20' ) start [2024-12-19 06:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053608', 'tblTempUsageDetail_20' ) end [2024-12-19 06:19:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:19:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:19:19] Production.INFO: ==16033== Releasing lock... [2024-12-19 06:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:19:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:20:06 [end_date_ymd] => 2024-12-19 06:20:06 [RateCDR] => 1 ) [2024-12-19 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:20:06' and `end` < '2024-12-19 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:20:18] Production.INFO: count ==57 [2024-12-19 06:20:18] Production.ERROR: pbx CDR StartTime 2024-12-19 03:20:06 - End Time 2024-12-19 06:20:06 [2024-12-19 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053613', 'tblTempUsageDetail_20' ) start [2024-12-19 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053613', 'tblTempUsageDetail_20' ) end [2024-12-19 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053613', 'tblTempVendorCDR_20' ) start [2024-12-19 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053613', 'tblTempVendorCDR_20' ) end [2024-12-19 06:20:18] Production.INFO: ProcessCDR(1,14053613,1,1,2) [2024-12-19 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053613', 'tblTempUsageDetail_20' ) start [2024-12-19 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053613', 'tblTempUsageDetail_20' ) end [2024-12-19 06:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:20:21] Production.INFO: ==16117== Releasing lock... [2024-12-19 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:20:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:21:05 [end_date_ymd] => 2024-12-19 06:21:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:21:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:21:17] Production.INFO: count ==57 [2024-12-19 06:21:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:21:05 - End Time 2024-12-19 06:21:05 [2024-12-19 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053619', 'tblTempUsageDetail_20' ) start [2024-12-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053619', 'tblTempUsageDetail_20' ) end [2024-12-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053619', 'tblTempVendorCDR_20' ) start [2024-12-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053619', 'tblTempVendorCDR_20' ) end [2024-12-19 06:21:17] Production.INFO: ProcessCDR(1,14053619,1,1,2) [2024-12-19 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053619', 'tblTempUsageDetail_20' ) start [2024-12-19 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053619', 'tblTempUsageDetail_20' ) end [2024-12-19 06:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:21:20] Production.INFO: ==16239== Releasing lock... [2024-12-19 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:21:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:22:05 [end_date_ymd] => 2024-12-19 06:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:22:17] Production.INFO: count ==57 [2024-12-19 06:22:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:22:05 - End Time 2024-12-19 06:22:05 [2024-12-19 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053624', 'tblTempUsageDetail_20' ) start [2024-12-19 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053624', 'tblTempUsageDetail_20' ) end [2024-12-19 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053624', 'tblTempVendorCDR_20' ) start [2024-12-19 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053624', 'tblTempVendorCDR_20' ) end [2024-12-19 06:22:17] Production.INFO: ProcessCDR(1,14053624,1,1,2) [2024-12-19 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053624', 'tblTempUsageDetail_20' ) start [2024-12-19 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053624', 'tblTempUsageDetail_20' ) end [2024-12-19 06:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:22:20] Production.INFO: ==16318== Releasing lock... [2024-12-19 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:22:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:23:04 [end_date_ymd] => 2024-12-19 06:23:04 [RateCDR] => 1 ) [2024-12-19 06:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:23:04' and `end` < '2024-12-19 06:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:23:17] Production.INFO: count ==57 [2024-12-19 06:23:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:23:04 - End Time 2024-12-19 06:23:04 [2024-12-19 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053629', 'tblTempUsageDetail_20' ) start [2024-12-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053629', 'tblTempUsageDetail_20' ) end [2024-12-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053629', 'tblTempVendorCDR_20' ) start [2024-12-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053629', 'tblTempVendorCDR_20' ) end [2024-12-19 06:23:17] Production.INFO: ProcessCDR(1,14053629,1,1,2) [2024-12-19 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053629', 'tblTempUsageDetail_20' ) start [2024-12-19 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053629', 'tblTempUsageDetail_20' ) end [2024-12-19 06:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:23:20] Production.INFO: ==16396== Releasing lock... [2024-12-19 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:23:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:24:05 [end_date_ymd] => 2024-12-19 06:24:05 [RateCDR] => 1 ) [2024-12-19 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:24:05' and `end` < '2024-12-19 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:24:17] Production.INFO: count ==57 [2024-12-19 06:24:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:24:05 - End Time 2024-12-19 06:24:05 [2024-12-19 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053634', 'tblTempUsageDetail_20' ) start [2024-12-19 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053634', 'tblTempUsageDetail_20' ) end [2024-12-19 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053634', 'tblTempVendorCDR_20' ) start [2024-12-19 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053634', 'tblTempVendorCDR_20' ) end [2024-12-19 06:24:17] Production.INFO: ProcessCDR(1,14053634,1,1,2) [2024-12-19 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053634', 'tblTempUsageDetail_20' ) start [2024-12-19 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053634', 'tblTempUsageDetail_20' ) end [2024-12-19 06:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:24:20] Production.INFO: ==16476== Releasing lock... [2024-12-19 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:24:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:25:05 [end_date_ymd] => 2024-12-19 06:25:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:25:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:25:17] Production.INFO: count ==57 [2024-12-19 06:25:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:25:05 - End Time 2024-12-19 06:25:05 [2024-12-19 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053639', 'tblTempUsageDetail_20' ) start [2024-12-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053639', 'tblTempUsageDetail_20' ) end [2024-12-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053639', 'tblTempVendorCDR_20' ) start [2024-12-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053639', 'tblTempVendorCDR_20' ) end [2024-12-19 06:25:17] Production.INFO: ProcessCDR(1,14053639,1,1,2) [2024-12-19 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053639', 'tblTempUsageDetail_20' ) start [2024-12-19 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053639', 'tblTempUsageDetail_20' ) end [2024-12-19 06:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:25:20] Production.INFO: ==16554== Releasing lock... [2024-12-19 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:25:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:26:04 [end_date_ymd] => 2024-12-19 06:26:04 [RateCDR] => 1 ) [2024-12-19 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:26:04' and `end` < '2024-12-19 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:26:17] Production.INFO: count ==57 [2024-12-19 06:26:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:26:04 - End Time 2024-12-19 06:26:04 [2024-12-19 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053644', 'tblTempUsageDetail_20' ) start [2024-12-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053644', 'tblTempUsageDetail_20' ) end [2024-12-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053644', 'tblTempVendorCDR_20' ) start [2024-12-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053644', 'tblTempVendorCDR_20' ) end [2024-12-19 06:26:17] Production.INFO: ProcessCDR(1,14053644,1,1,2) [2024-12-19 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053644', 'tblTempUsageDetail_20' ) start [2024-12-19 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053644', 'tblTempUsageDetail_20' ) end [2024-12-19 06:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:26:20] Production.INFO: ==16635== Releasing lock... [2024-12-19 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:26:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:27:05 [end_date_ymd] => 2024-12-19 06:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:27:17] Production.INFO: count ==57 [2024-12-19 06:27:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:27:05 - End Time 2024-12-19 06:27:05 [2024-12-19 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053649', 'tblTempUsageDetail_20' ) start [2024-12-19 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053649', 'tblTempUsageDetail_20' ) end [2024-12-19 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053649', 'tblTempVendorCDR_20' ) start [2024-12-19 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053649', 'tblTempVendorCDR_20' ) end [2024-12-19 06:27:17] Production.INFO: ProcessCDR(1,14053649,1,1,2) [2024-12-19 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053649', 'tblTempUsageDetail_20' ) start [2024-12-19 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053649', 'tblTempUsageDetail_20' ) end [2024-12-19 06:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:27:20] Production.INFO: ==16736== Releasing lock... [2024-12-19 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:27:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:28:04 [end_date_ymd] => 2024-12-19 06:28:04 [RateCDR] => 1 ) [2024-12-19 06:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:28:04' and `end` < '2024-12-19 06:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:28:17] Production.INFO: count ==57 [2024-12-19 06:28:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:28:04 - End Time 2024-12-19 06:28:04 [2024-12-19 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053654', 'tblTempUsageDetail_20' ) start [2024-12-19 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053654', 'tblTempUsageDetail_20' ) end [2024-12-19 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053654', 'tblTempVendorCDR_20' ) start [2024-12-19 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053654', 'tblTempVendorCDR_20' ) end [2024-12-19 06:28:17] Production.INFO: ProcessCDR(1,14053654,1,1,2) [2024-12-19 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053654', 'tblTempUsageDetail_20' ) start [2024-12-19 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053654', 'tblTempUsageDetail_20' ) end [2024-12-19 06:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:28:20] Production.INFO: ==16829== Releasing lock... [2024-12-19 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:28:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:29:05 [end_date_ymd] => 2024-12-19 06:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:29:17] Production.INFO: count ==57 [2024-12-19 06:29:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:29:05 - End Time 2024-12-19 06:29:05 [2024-12-19 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053659', 'tblTempUsageDetail_20' ) start [2024-12-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053659', 'tblTempUsageDetail_20' ) end [2024-12-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053659', 'tblTempVendorCDR_20' ) start [2024-12-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053659', 'tblTempVendorCDR_20' ) end [2024-12-19 06:29:17] Production.INFO: ProcessCDR(1,14053659,1,1,2) [2024-12-19 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053659', 'tblTempUsageDetail_20' ) start [2024-12-19 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053659', 'tblTempUsageDetail_20' ) end [2024-12-19 06:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:29:20] Production.INFO: ==16933== Releasing lock... [2024-12-19 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:29:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:30:05 [end_date_ymd] => 2024-12-19 06:30:05 [RateCDR] => 1 ) [2024-12-19 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:30:05' and `end` < '2024-12-19 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:30:17] Production.INFO: count ==59 [2024-12-19 06:30:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:30:05 - End Time 2024-12-19 06:30:05 [2024-12-19 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053665', 'tblTempUsageDetail_20' ) start [2024-12-19 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053665', 'tblTempUsageDetail_20' ) end [2024-12-19 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053665', 'tblTempVendorCDR_20' ) start [2024-12-19 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053665', 'tblTempVendorCDR_20' ) end [2024-12-19 06:30:17] Production.INFO: ProcessCDR(1,14053665,1,1,2) [2024-12-19 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053665', 'tblTempUsageDetail_20' ) start [2024-12-19 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053665', 'tblTempUsageDetail_20' ) end [2024-12-19 06:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:30:20] Production.INFO: ==17034== Releasing lock... [2024-12-19 06:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:30:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:31:04 [end_date_ymd] => 2024-12-19 06:31:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:31:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:31:17] Production.INFO: count ==60 [2024-12-19 06:31:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:31:04 - End Time 2024-12-19 06:31:04 [2024-12-19 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053670', 'tblTempUsageDetail_20' ) start [2024-12-19 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053670', 'tblTempUsageDetail_20' ) end [2024-12-19 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053670', 'tblTempVendorCDR_20' ) start [2024-12-19 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053670', 'tblTempVendorCDR_20' ) end [2024-12-19 06:31:17] Production.INFO: ProcessCDR(1,14053670,1,1,2) [2024-12-19 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053670', 'tblTempUsageDetail_20' ) start [2024-12-19 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053670', 'tblTempUsageDetail_20' ) end [2024-12-19 06:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:31:20] Production.INFO: ==17138== Releasing lock... [2024-12-19 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:31:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:32:05 [end_date_ymd] => 2024-12-19 06:32:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:32:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:32:17] Production.INFO: count ==60 [2024-12-19 06:32:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:32:05 - End Time 2024-12-19 06:32:05 [2024-12-19 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053675', 'tblTempUsageDetail_20' ) start [2024-12-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053675', 'tblTempUsageDetail_20' ) end [2024-12-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053675', 'tblTempVendorCDR_20' ) start [2024-12-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053675', 'tblTempVendorCDR_20' ) end [2024-12-19 06:32:17] Production.INFO: ProcessCDR(1,14053675,1,1,2) [2024-12-19 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053675', 'tblTempUsageDetail_20' ) start [2024-12-19 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053675', 'tblTempUsageDetail_20' ) end [2024-12-19 06:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:32:20] Production.INFO: ==17238== Releasing lock... [2024-12-19 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:32:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:33:04 [end_date_ymd] => 2024-12-19 06:33:04 [RateCDR] => 1 ) [2024-12-19 06:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:33:04' and `end` < '2024-12-19 06:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:33:16] Production.INFO: count ==60 [2024-12-19 06:33:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:33:04 - End Time 2024-12-19 06:33:04 [2024-12-19 06:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053680', 'tblTempUsageDetail_20' ) start [2024-12-19 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053680', 'tblTempUsageDetail_20' ) end [2024-12-19 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053680', 'tblTempVendorCDR_20' ) start [2024-12-19 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053680', 'tblTempVendorCDR_20' ) end [2024-12-19 06:33:16] Production.INFO: ProcessCDR(1,14053680,1,1,2) [2024-12-19 06:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053680', 'tblTempUsageDetail_20' ) start [2024-12-19 06:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053680', 'tblTempUsageDetail_20' ) end [2024-12-19 06:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:33:19] Production.INFO: ==17340== Releasing lock... [2024-12-19 06:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:33:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:34:05 [end_date_ymd] => 2024-12-19 06:34:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:34:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:34:17] Production.INFO: count ==60 [2024-12-19 06:34:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:34:05 - End Time 2024-12-19 06:34:05 [2024-12-19 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053685', 'tblTempUsageDetail_20' ) start [2024-12-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053685', 'tblTempUsageDetail_20' ) end [2024-12-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053685', 'tblTempVendorCDR_20' ) start [2024-12-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053685', 'tblTempVendorCDR_20' ) end [2024-12-19 06:34:17] Production.INFO: ProcessCDR(1,14053685,1,1,2) [2024-12-19 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053685', 'tblTempUsageDetail_20' ) start [2024-12-19 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053685', 'tblTempUsageDetail_20' ) end [2024-12-19 06:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:34:20] Production.INFO: ==17439== Releasing lock... [2024-12-19 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:34:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:35:05 [end_date_ymd] => 2024-12-19 06:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:35:18] Production.INFO: count ==60 [2024-12-19 06:35:18] Production.ERROR: pbx CDR StartTime 2024-12-19 03:35:05 - End Time 2024-12-19 06:35:05 [2024-12-19 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053690', 'tblTempUsageDetail_20' ) start [2024-12-19 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053690', 'tblTempUsageDetail_20' ) end [2024-12-19 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053690', 'tblTempVendorCDR_20' ) start [2024-12-19 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053690', 'tblTempVendorCDR_20' ) end [2024-12-19 06:35:18] Production.INFO: ProcessCDR(1,14053690,1,1,2) [2024-12-19 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053690', 'tblTempUsageDetail_20' ) start [2024-12-19 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053690', 'tblTempUsageDetail_20' ) end [2024-12-19 06:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:35:21] Production.INFO: ==17539== Releasing lock... [2024-12-19 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:35:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:36:04 [end_date_ymd] => 2024-12-19 06:36:04 [RateCDR] => 1 ) [2024-12-19 06:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:36:04' and `end` < '2024-12-19 06:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:36:16] Production.INFO: count ==60 [2024-12-19 06:36:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:36:04 - End Time 2024-12-19 06:36:04 [2024-12-19 06:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053695', 'tblTempUsageDetail_20' ) start [2024-12-19 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053695', 'tblTempUsageDetail_20' ) end [2024-12-19 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053695', 'tblTempVendorCDR_20' ) start [2024-12-19 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053695', 'tblTempVendorCDR_20' ) end [2024-12-19 06:36:16] Production.INFO: ProcessCDR(1,14053695,1,1,2) [2024-12-19 06:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053695', 'tblTempUsageDetail_20' ) start [2024-12-19 06:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053695', 'tblTempUsageDetail_20' ) end [2024-12-19 06:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:36:19] Production.INFO: ==17639== Releasing lock... [2024-12-19 06:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:36:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:37:05 [end_date_ymd] => 2024-12-19 06:37:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:37:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:37:17] Production.INFO: count ==60 [2024-12-19 06:37:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:37:05 - End Time 2024-12-19 06:37:05 [2024-12-19 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053700', 'tblTempUsageDetail_20' ) start [2024-12-19 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053700', 'tblTempUsageDetail_20' ) end [2024-12-19 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053700', 'tblTempVendorCDR_20' ) start [2024-12-19 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053700', 'tblTempVendorCDR_20' ) end [2024-12-19 06:37:17] Production.INFO: ProcessCDR(1,14053700,1,1,2) [2024-12-19 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053700', 'tblTempUsageDetail_20' ) start [2024-12-19 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053700', 'tblTempUsageDetail_20' ) end [2024-12-19 06:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:37:20] Production.INFO: ==17777== Releasing lock... [2024-12-19 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:37:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:38:05 [end_date_ymd] => 2024-12-19 06:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:38:17] Production.INFO: count ==60 [2024-12-19 06:38:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:38:05 - End Time 2024-12-19 06:38:05 [2024-12-19 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053705', 'tblTempUsageDetail_20' ) start [2024-12-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053705', 'tblTempUsageDetail_20' ) end [2024-12-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053705', 'tblTempVendorCDR_20' ) start [2024-12-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053705', 'tblTempVendorCDR_20' ) end [2024-12-19 06:38:17] Production.INFO: ProcessCDR(1,14053705,1,1,2) [2024-12-19 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053705', 'tblTempUsageDetail_20' ) start [2024-12-19 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053705', 'tblTempUsageDetail_20' ) end [2024-12-19 06:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:38:20] Production.INFO: ==17872== Releasing lock... [2024-12-19 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:38:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:39:05 [end_date_ymd] => 2024-12-19 06:39:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:39:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:39:17] Production.INFO: count ==60 [2024-12-19 06:39:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:39:05 - End Time 2024-12-19 06:39:05 [2024-12-19 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053710', 'tblTempUsageDetail_20' ) start [2024-12-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053710', 'tblTempUsageDetail_20' ) end [2024-12-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053710', 'tblTempVendorCDR_20' ) start [2024-12-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053710', 'tblTempVendorCDR_20' ) end [2024-12-19 06:39:17] Production.INFO: ProcessCDR(1,14053710,1,1,2) [2024-12-19 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053710', 'tblTempUsageDetail_20' ) start [2024-12-19 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053710', 'tblTempUsageDetail_20' ) end [2024-12-19 06:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:39:20] Production.INFO: ==17969== Releasing lock... [2024-12-19 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:39:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:40:06 [end_date_ymd] => 2024-12-19 06:40:06 [RateCDR] => 1 ) [2024-12-19 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:40:06' and `end` < '2024-12-19 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:40:18] Production.INFO: count ==58 [2024-12-19 06:40:18] Production.ERROR: pbx CDR StartTime 2024-12-19 03:40:06 - End Time 2024-12-19 06:40:06 [2024-12-19 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053715', 'tblTempUsageDetail_20' ) start [2024-12-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053715', 'tblTempUsageDetail_20' ) end [2024-12-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053715', 'tblTempVendorCDR_20' ) start [2024-12-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053715', 'tblTempVendorCDR_20' ) end [2024-12-19 06:40:18] Production.INFO: ProcessCDR(1,14053715,1,1,2) [2024-12-19 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053715', 'tblTempUsageDetail_20' ) start [2024-12-19 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053715', 'tblTempUsageDetail_20' ) end [2024-12-19 06:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:40:21] Production.INFO: ==18066== Releasing lock... [2024-12-19 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:40:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:41:04 [end_date_ymd] => 2024-12-19 06:41:04 [RateCDR] => 1 ) [2024-12-19 06:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:41:04' and `end` < '2024-12-19 06:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:41:16] Production.INFO: count ==58 [2024-12-19 06:41:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:41:04 - End Time 2024-12-19 06:41:04 [2024-12-19 06:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053721', 'tblTempUsageDetail_20' ) start [2024-12-19 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053721', 'tblTempUsageDetail_20' ) end [2024-12-19 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053721', 'tblTempVendorCDR_20' ) start [2024-12-19 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053721', 'tblTempVendorCDR_20' ) end [2024-12-19 06:41:16] Production.INFO: ProcessCDR(1,14053721,1,1,2) [2024-12-19 06:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053721', 'tblTempUsageDetail_20' ) start [2024-12-19 06:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053721', 'tblTempUsageDetail_20' ) end [2024-12-19 06:41:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:41:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:41:19] Production.INFO: ==18161== Releasing lock... [2024-12-19 06:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:41:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:42:05 [end_date_ymd] => 2024-12-19 06:42:05 [RateCDR] => 1 ) [2024-12-19 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:42:05' and `end` < '2024-12-19 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:42:17] Production.INFO: count ==58 [2024-12-19 06:42:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:42:05 - End Time 2024-12-19 06:42:05 [2024-12-19 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053726', 'tblTempUsageDetail_20' ) start [2024-12-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053726', 'tblTempUsageDetail_20' ) end [2024-12-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053726', 'tblTempVendorCDR_20' ) start [2024-12-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053726', 'tblTempVendorCDR_20' ) end [2024-12-19 06:42:17] Production.INFO: ProcessCDR(1,14053726,1,1,2) [2024-12-19 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053726', 'tblTempUsageDetail_20' ) start [2024-12-19 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053726', 'tblTempUsageDetail_20' ) end [2024-12-19 06:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:42:20] Production.INFO: ==18256== Releasing lock... [2024-12-19 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:43:04 [end_date_ymd] => 2024-12-19 06:43:04 [RateCDR] => 1 ) [2024-12-19 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:43:04' and `end` < '2024-12-19 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:43:17] Production.INFO: count ==58 [2024-12-19 06:43:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:43:04 - End Time 2024-12-19 06:43:04 [2024-12-19 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053730', 'tblTempUsageDetail_20' ) start [2024-12-19 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053730', 'tblTempUsageDetail_20' ) end [2024-12-19 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053730', 'tblTempVendorCDR_20' ) start [2024-12-19 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053730', 'tblTempVendorCDR_20' ) end [2024-12-19 06:43:17] Production.INFO: ProcessCDR(1,14053730,1,1,2) [2024-12-19 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053730', 'tblTempUsageDetail_20' ) start [2024-12-19 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053730', 'tblTempUsageDetail_20' ) end [2024-12-19 06:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:43:20] Production.INFO: ==18351== Releasing lock... [2024-12-19 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:43:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:44:05 [end_date_ymd] => 2024-12-19 06:44:05 [RateCDR] => 1 ) [2024-12-19 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:44:05' and `end` < '2024-12-19 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:44:17] Production.INFO: count ==58 [2024-12-19 06:44:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:44:05 - End Time 2024-12-19 06:44:05 [2024-12-19 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053736', 'tblTempUsageDetail_20' ) start [2024-12-19 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053736', 'tblTempUsageDetail_20' ) end [2024-12-19 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053736', 'tblTempVendorCDR_20' ) start [2024-12-19 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053736', 'tblTempVendorCDR_20' ) end [2024-12-19 06:44:17] Production.INFO: ProcessCDR(1,14053736,1,1,2) [2024-12-19 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053736', 'tblTempUsageDetail_20' ) start [2024-12-19 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053736', 'tblTempUsageDetail_20' ) end [2024-12-19 06:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:44:20] Production.INFO: ==18445== Releasing lock... [2024-12-19 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:44:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:45:04 [end_date_ymd] => 2024-12-19 06:45:04 [RateCDR] => 1 ) [2024-12-19 06: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` >= '2024-12-19 03:45:04' and `end` < '2024-12-19 06: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 ,'') [2024-12-19 06:45:16] Production.INFO: count ==58 [2024-12-19 06:45:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:45:04 - End Time 2024-12-19 06:45:04 [2024-12-19 06:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053741', 'tblTempUsageDetail_20' ) start [2024-12-19 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053741', 'tblTempUsageDetail_20' ) end [2024-12-19 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053741', 'tblTempVendorCDR_20' ) start [2024-12-19 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053741', 'tblTempVendorCDR_20' ) end [2024-12-19 06:45:16] Production.INFO: ProcessCDR(1,14053741,1,1,2) [2024-12-19 06:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053741', 'tblTempUsageDetail_20' ) start [2024-12-19 06:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053741', 'tblTempUsageDetail_20' ) end [2024-12-19 06:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:45:19] Production.INFO: ==18541== Releasing lock... [2024-12-19 06:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:45:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:46:05 [end_date_ymd] => 2024-12-19 06:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:46:18] Production.INFO: count ==58 [2024-12-19 06:46:18] Production.ERROR: pbx CDR StartTime 2024-12-19 03:46:05 - End Time 2024-12-19 06:46:05 [2024-12-19 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053746', 'tblTempUsageDetail_20' ) start [2024-12-19 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053746', 'tblTempUsageDetail_20' ) end [2024-12-19 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053746', 'tblTempVendorCDR_20' ) start [2024-12-19 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053746', 'tblTempVendorCDR_20' ) end [2024-12-19 06:46:18] Production.INFO: ProcessCDR(1,14053746,1,1,2) [2024-12-19 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053746', 'tblTempUsageDetail_20' ) start [2024-12-19 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053746', 'tblTempUsageDetail_20' ) end [2024-12-19 06:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:46:21] Production.INFO: ==18635== Releasing lock... [2024-12-19 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:46:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:47:04 [end_date_ymd] => 2024-12-19 06:47:04 [RateCDR] => 1 ) [2024-12-19 06: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` >= '2024-12-19 03:47:04' and `end` < '2024-12-19 06: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 ,'') [2024-12-19 06:47:16] Production.INFO: count ==58 [2024-12-19 06:47:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:47:04 - End Time 2024-12-19 06:47:04 [2024-12-19 06:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053751', 'tblTempUsageDetail_20' ) start [2024-12-19 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053751', 'tblTempUsageDetail_20' ) end [2024-12-19 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053751', 'tblTempVendorCDR_20' ) start [2024-12-19 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053751', 'tblTempVendorCDR_20' ) end [2024-12-19 06:47:16] Production.INFO: ProcessCDR(1,14053751,1,1,2) [2024-12-19 06:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053751', 'tblTempUsageDetail_20' ) start [2024-12-19 06:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053751', 'tblTempUsageDetail_20' ) end [2024-12-19 06:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:47:19] Production.INFO: ==18729== Releasing lock... [2024-12-19 06:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:47:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:48:05 [end_date_ymd] => 2024-12-19 06:48:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:48:17] Production.INFO: count ==58 [2024-12-19 06:48:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:48:05 - End Time 2024-12-19 06:48:05 [2024-12-19 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053756', 'tblTempUsageDetail_20' ) start [2024-12-19 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053756', 'tblTempUsageDetail_20' ) end [2024-12-19 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053756', 'tblTempVendorCDR_20' ) start [2024-12-19 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053756', 'tblTempVendorCDR_20' ) end [2024-12-19 06:48:17] Production.INFO: ProcessCDR(1,14053756,1,1,2) [2024-12-19 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053756', 'tblTempUsageDetail_20' ) start [2024-12-19 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053756', 'tblTempUsageDetail_20' ) end [2024-12-19 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:48:20] Production.INFO: ==18821== Releasing lock... [2024-12-19 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:48:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:49:05 [end_date_ymd] => 2024-12-19 06:49:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:49:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:49:18] Production.INFO: count ==58 [2024-12-19 06:49:18] Production.ERROR: pbx CDR StartTime 2024-12-19 03:49:05 - End Time 2024-12-19 06:49:05 [2024-12-19 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053761', 'tblTempUsageDetail_20' ) start [2024-12-19 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053761', 'tblTempUsageDetail_20' ) end [2024-12-19 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053761', 'tblTempVendorCDR_20' ) start [2024-12-19 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053761', 'tblTempVendorCDR_20' ) end [2024-12-19 06:49:18] Production.INFO: ProcessCDR(1,14053761,1,1,2) [2024-12-19 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053761', 'tblTempUsageDetail_20' ) start [2024-12-19 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053761', 'tblTempUsageDetail_20' ) end [2024-12-19 06:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:49:21] Production.INFO: ==18902== Releasing lock... [2024-12-19 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:49:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:50:05 [end_date_ymd] => 2024-12-19 06:50:05 [RateCDR] => 1 ) [2024-12-19 06: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` >= '2024-12-19 03:50:05' and `end` < '2024-12-19 06: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 ,'') [2024-12-19 06:50:17] Production.INFO: count ==58 [2024-12-19 06:50:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:50:05 - End Time 2024-12-19 06:50:05 [2024-12-19 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053767', 'tblTempUsageDetail_20' ) start [2024-12-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053767', 'tblTempUsageDetail_20' ) end [2024-12-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053767', 'tblTempVendorCDR_20' ) start [2024-12-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053767', 'tblTempVendorCDR_20' ) end [2024-12-19 06:50:17] Production.INFO: ProcessCDR(1,14053767,1,1,2) [2024-12-19 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053767', 'tblTempUsageDetail_20' ) start [2024-12-19 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053767', 'tblTempUsageDetail_20' ) end [2024-12-19 06:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:50:20] Production.INFO: ==18975== Releasing lock... [2024-12-19 06:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:50:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:51:05 [end_date_ymd] => 2024-12-19 06:51:05 [RateCDR] => 1 ) [2024-12-19 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:51:05' and `end` < '2024-12-19 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:51:17] Production.INFO: count ==58 [2024-12-19 06:51:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:51:05 - End Time 2024-12-19 06:51:05 [2024-12-19 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053772', 'tblTempUsageDetail_20' ) start [2024-12-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053772', 'tblTempUsageDetail_20' ) end [2024-12-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053772', 'tblTempVendorCDR_20' ) start [2024-12-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053772', 'tblTempVendorCDR_20' ) end [2024-12-19 06:51:17] Production.INFO: ProcessCDR(1,14053772,1,1,2) [2024-12-19 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053772', 'tblTempUsageDetail_20' ) start [2024-12-19 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053772', 'tblTempUsageDetail_20' ) end [2024-12-19 06:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:51:20] Production.INFO: ==19055== Releasing lock... [2024-12-19 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:51:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:52:04 [end_date_ymd] => 2024-12-19 06:52:04 [RateCDR] => 1 ) [2024-12-19 06: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` >= '2024-12-19 03:52:04' and `end` < '2024-12-19 06: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 ,'') [2024-12-19 06:52:17] Production.INFO: count ==58 [2024-12-19 06:52:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:52:04 - End Time 2024-12-19 06:52:04 [2024-12-19 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053777', 'tblTempUsageDetail_20' ) start [2024-12-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053777', 'tblTempUsageDetail_20' ) end [2024-12-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053777', 'tblTempVendorCDR_20' ) start [2024-12-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053777', 'tblTempVendorCDR_20' ) end [2024-12-19 06:52:17] Production.INFO: ProcessCDR(1,14053777,1,1,2) [2024-12-19 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053777', 'tblTempUsageDetail_20' ) start [2024-12-19 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053777', 'tblTempUsageDetail_20' ) end [2024-12-19 06:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:52:20] Production.INFO: ==19126== Releasing lock... [2024-12-19 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:52:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:53:04 [end_date_ymd] => 2024-12-19 06:53:04 [RateCDR] => 1 ) [2024-12-19 06:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:53:04' and `end` < '2024-12-19 06:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:53:17] Production.INFO: count ==58 [2024-12-19 06:53:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:53:04 - End Time 2024-12-19 06:53:04 [2024-12-19 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053782', 'tblTempUsageDetail_20' ) start [2024-12-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053782', 'tblTempUsageDetail_20' ) end [2024-12-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053782', 'tblTempVendorCDR_20' ) start [2024-12-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053782', 'tblTempVendorCDR_20' ) end [2024-12-19 06:53:17] Production.INFO: ProcessCDR(1,14053782,1,1,2) [2024-12-19 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053782', 'tblTempUsageDetail_20' ) start [2024-12-19 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053782', 'tblTempUsageDetail_20' ) end [2024-12-19 06:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:53:20] Production.INFO: ==19238== Releasing lock... [2024-12-19 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:53:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:54:05 [end_date_ymd] => 2024-12-19 06:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:54:17] Production.INFO: count ==58 [2024-12-19 06:54:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:54:05 - End Time 2024-12-19 06:54:05 [2024-12-19 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053787', 'tblTempUsageDetail_20' ) start [2024-12-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053787', 'tblTempUsageDetail_20' ) end [2024-12-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053787', 'tblTempVendorCDR_20' ) start [2024-12-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053787', 'tblTempVendorCDR_20' ) end [2024-12-19 06:54:17] Production.INFO: ProcessCDR(1,14053787,1,1,2) [2024-12-19 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053787', 'tblTempUsageDetail_20' ) start [2024-12-19 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053787', 'tblTempUsageDetail_20' ) end [2024-12-19 06:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:54:20] Production.INFO: ==19313== Releasing lock... [2024-12-19 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:54:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:55:04 [end_date_ymd] => 2024-12-19 06:55:04 [RateCDR] => 1 ) [2024-12-19 06:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:55:04' and `end` < '2024-12-19 06:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:55:16] Production.INFO: count ==58 [2024-12-19 06:55:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:55:04 - End Time 2024-12-19 06:55:04 [2024-12-19 06:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053792', 'tblTempUsageDetail_20' ) start [2024-12-19 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053792', 'tblTempUsageDetail_20' ) end [2024-12-19 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053792', 'tblTempVendorCDR_20' ) start [2024-12-19 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053792', 'tblTempVendorCDR_20' ) end [2024-12-19 06:55:16] Production.INFO: ProcessCDR(1,14053792,1,1,2) [2024-12-19 06:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053792', 'tblTempUsageDetail_20' ) start [2024-12-19 06:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053792', 'tblTempUsageDetail_20' ) end [2024-12-19 06:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:55:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:55:19] Production.INFO: ==19382== Releasing lock... [2024-12-19 06:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:55:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:56:05 [end_date_ymd] => 2024-12-19 06:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:56:17] Production.INFO: count ==58 [2024-12-19 06:56:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:56:05 - End Time 2024-12-19 06:56:05 [2024-12-19 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053797', 'tblTempUsageDetail_20' ) start [2024-12-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053797', 'tblTempUsageDetail_20' ) end [2024-12-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053797', 'tblTempVendorCDR_20' ) start [2024-12-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053797', 'tblTempVendorCDR_20' ) end [2024-12-19 06:56:17] Production.INFO: ProcessCDR(1,14053797,1,1,2) [2024-12-19 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053797', 'tblTempUsageDetail_20' ) start [2024-12-19 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053797', 'tblTempUsageDetail_20' ) end [2024-12-19 06:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:56:20] Production.INFO: ==19455== Releasing lock... [2024-12-19 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:56:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:57:04 [end_date_ymd] => 2024-12-19 06:57:04 [RateCDR] => 1 ) [2024-12-19 06:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 03:57:04' and `end` < '2024-12-19 06:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 06:57:16] Production.INFO: count ==58 [2024-12-19 06:57:16] Production.ERROR: pbx CDR StartTime 2024-12-19 03:57:04 - End Time 2024-12-19 06:57:04 [2024-12-19 06:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053802', 'tblTempUsageDetail_20' ) start [2024-12-19 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053802', 'tblTempUsageDetail_20' ) end [2024-12-19 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053802', 'tblTempVendorCDR_20' ) start [2024-12-19 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053802', 'tblTempVendorCDR_20' ) end [2024-12-19 06:57:16] Production.INFO: ProcessCDR(1,14053802,1,1,2) [2024-12-19 06:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053802', 'tblTempUsageDetail_20' ) start [2024-12-19 06:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053802', 'tblTempUsageDetail_20' ) end [2024-12-19 06:57:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:57:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:57:19] Production.INFO: ==19527== Releasing lock... [2024-12-19 06:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:57:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:58:05 [end_date_ymd] => 2024-12-19 06:58:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 03:58:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 06:58:18] Production.INFO: count ==58 [2024-12-19 06:58:18] Production.ERROR: pbx CDR StartTime 2024-12-19 03:58:05 - End Time 2024-12-19 06:58:05 [2024-12-19 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053807', 'tblTempUsageDetail_20' ) start [2024-12-19 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053807', 'tblTempUsageDetail_20' ) end [2024-12-19 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053807', 'tblTempVendorCDR_20' ) start [2024-12-19 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053807', 'tblTempVendorCDR_20' ) end [2024-12-19 06:58:18] Production.INFO: ProcessCDR(1,14053807,1,1,2) [2024-12-19 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053807', 'tblTempUsageDetail_20' ) start [2024-12-19 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053807', 'tblTempUsageDetail_20' ) end [2024-12-19 06:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:58:21] Production.INFO: ==19600== Releasing lock... [2024-12-19 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:58:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 03:59:04 [end_date_ymd] => 2024-12-19 06:59:04 [RateCDR] => 1 ) [2024-12-19 06: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` >= '2024-12-19 03:59:04' and `end` < '2024-12-19 06: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 ,'') [2024-12-19 06:59:17] Production.INFO: count ==58 [2024-12-19 06:59:17] Production.ERROR: pbx CDR StartTime 2024-12-19 03:59:04 - End Time 2024-12-19 06:59:04 [2024-12-19 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053812', 'tblTempUsageDetail_20' ) start [2024-12-19 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053812', 'tblTempUsageDetail_20' ) end [2024-12-19 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053812', 'tblTempVendorCDR_20' ) start [2024-12-19 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053812', 'tblTempVendorCDR_20' ) end [2024-12-19 06:59:17] Production.INFO: ProcessCDR(1,14053812,1,1,2) [2024-12-19 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053812', 'tblTempUsageDetail_20' ) start [2024-12-19 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053812', 'tblTempUsageDetail_20' ) end [2024-12-19 06:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 06:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 06:59:20] Production.INFO: ==19676== Releasing lock... [2024-12-19 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 06:59:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:00:05 [end_date_ymd] => 2024-12-19 07:00:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:00:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:00:17] Production.INFO: count ==58 [2024-12-19 07:00:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:00:05 - End Time 2024-12-19 07:00:05 [2024-12-19 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053818', 'tblTempUsageDetail_20' ) start [2024-12-19 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053818', 'tblTempUsageDetail_20' ) end [2024-12-19 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053818', 'tblTempVendorCDR_20' ) start [2024-12-19 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053818', 'tblTempVendorCDR_20' ) end [2024-12-19 07:00:17] Production.INFO: ProcessCDR(1,14053818,1,1,2) [2024-12-19 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053818', 'tblTempUsageDetail_20' ) start [2024-12-19 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053818', 'tblTempUsageDetail_20' ) end [2024-12-19 07:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:00:20] Production.INFO: ==19750== Releasing lock... [2024-12-19 07:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:00:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:01:05 [end_date_ymd] => 2024-12-19 07:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:01:18] Production.INFO: count ==58 [2024-12-19 07:01:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:01:05 - End Time 2024-12-19 07:01:05 [2024-12-19 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053823', 'tblTempUsageDetail_20' ) start [2024-12-19 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053823', 'tblTempUsageDetail_20' ) end [2024-12-19 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053823', 'tblTempVendorCDR_20' ) start [2024-12-19 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053823', 'tblTempVendorCDR_20' ) end [2024-12-19 07:01:18] Production.INFO: ProcessCDR(1,14053823,1,1,2) [2024-12-19 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053823', 'tblTempUsageDetail_20' ) start [2024-12-19 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053823', 'tblTempUsageDetail_20' ) end [2024-12-19 07:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:01:21] Production.INFO: ==19914== Releasing lock... [2024-12-19 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:01:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:02:04 [end_date_ymd] => 2024-12-19 07:02:04 [RateCDR] => 1 ) [2024-12-19 07:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:02:04' and `end` < '2024-12-19 07:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:02:17] Production.INFO: count ==58 [2024-12-19 07:02:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:02:04 - End Time 2024-12-19 07:02:04 [2024-12-19 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053828', 'tblTempUsageDetail_20' ) start [2024-12-19 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053828', 'tblTempUsageDetail_20' ) end [2024-12-19 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053828', 'tblTempVendorCDR_20' ) start [2024-12-19 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053828', 'tblTempVendorCDR_20' ) end [2024-12-19 07:02:17] Production.INFO: ProcessCDR(1,14053828,1,1,2) [2024-12-19 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053828', 'tblTempUsageDetail_20' ) start [2024-12-19 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053828', 'tblTempUsageDetail_20' ) end [2024-12-19 07:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:02:20] Production.INFO: ==19986== Releasing lock... [2024-12-19 07:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:02:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:03:05 [end_date_ymd] => 2024-12-19 07:03:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:03:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:03:17] Production.INFO: count ==58 [2024-12-19 07:03:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:03:05 - End Time 2024-12-19 07:03:05 [2024-12-19 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053833', 'tblTempUsageDetail_20' ) start [2024-12-19 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053833', 'tblTempUsageDetail_20' ) end [2024-12-19 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053833', 'tblTempVendorCDR_20' ) start [2024-12-19 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053833', 'tblTempVendorCDR_20' ) end [2024-12-19 07:03:17] Production.INFO: ProcessCDR(1,14053833,1,1,2) [2024-12-19 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053833', 'tblTempUsageDetail_20' ) start [2024-12-19 07:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053833', 'tblTempUsageDetail_20' ) end [2024-12-19 07:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:03:20] Production.INFO: ==20060== Releasing lock... [2024-12-19 07:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:03:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:04:04 [end_date_ymd] => 2024-12-19 07:04:04 [RateCDR] => 1 ) [2024-12-19 07:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:04:04' and `end` < '2024-12-19 07:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:04:17] Production.INFO: count ==58 [2024-12-19 07:04:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:04:04 - End Time 2024-12-19 07:04:04 [2024-12-19 07:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053838', 'tblTempUsageDetail_20' ) start [2024-12-19 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053838', 'tblTempUsageDetail_20' ) end [2024-12-19 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053838', 'tblTempVendorCDR_20' ) start [2024-12-19 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053838', 'tblTempVendorCDR_20' ) end [2024-12-19 07:04:17] Production.INFO: ProcessCDR(1,14053838,1,1,2) [2024-12-19 07:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053838', 'tblTempUsageDetail_20' ) start [2024-12-19 07:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053838', 'tblTempUsageDetail_20' ) end [2024-12-19 07:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:04:20] Production.INFO: ==20130== Releasing lock... [2024-12-19 07:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:04:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:05:05 [end_date_ymd] => 2024-12-19 07:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:05:16] Production.INFO: count ==58 [2024-12-19 07:05:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:05:05 - End Time 2024-12-19 07:05:05 [2024-12-19 07:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053843', 'tblTempUsageDetail_20' ) start [2024-12-19 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053843', 'tblTempUsageDetail_20' ) end [2024-12-19 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053843', 'tblTempVendorCDR_20' ) start [2024-12-19 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053843', 'tblTempVendorCDR_20' ) end [2024-12-19 07:05:17] Production.INFO: ProcessCDR(1,14053843,1,1,2) [2024-12-19 07:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053843', 'tblTempUsageDetail_20' ) start [2024-12-19 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053843', 'tblTempUsageDetail_20' ) end [2024-12-19 07:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:05:20] Production.INFO: ==20284== Releasing lock... [2024-12-19 07:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:05:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:06:05 [end_date_ymd] => 2024-12-19 07:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:06:17] Production.INFO: count ==58 [2024-12-19 07:06:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:06:05 - End Time 2024-12-19 07:06:05 [2024-12-19 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053848', 'tblTempUsageDetail_20' ) start [2024-12-19 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053848', 'tblTempUsageDetail_20' ) end [2024-12-19 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053848', 'tblTempVendorCDR_20' ) start [2024-12-19 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053848', 'tblTempVendorCDR_20' ) end [2024-12-19 07:06:17] Production.INFO: ProcessCDR(1,14053848,1,1,2) [2024-12-19 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053848', 'tblTempUsageDetail_20' ) start [2024-12-19 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053848', 'tblTempUsageDetail_20' ) end [2024-12-19 07:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:06:20] Production.INFO: ==20359== Releasing lock... [2024-12-19 07:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:06:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:07:04 [end_date_ymd] => 2024-12-19 07:07:04 [RateCDR] => 1 ) [2024-12-19 07: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` >= '2024-12-19 04:07:04' and `end` < '2024-12-19 07: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 ,'') [2024-12-19 07:07:17] Production.INFO: count ==58 [2024-12-19 07:07:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:07:04 - End Time 2024-12-19 07:07:04 [2024-12-19 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053853', 'tblTempUsageDetail_20' ) start [2024-12-19 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053853', 'tblTempUsageDetail_20' ) end [2024-12-19 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053853', 'tblTempVendorCDR_20' ) start [2024-12-19 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053853', 'tblTempVendorCDR_20' ) end [2024-12-19 07:07:17] Production.INFO: ProcessCDR(1,14053853,1,1,2) [2024-12-19 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053853', 'tblTempUsageDetail_20' ) start [2024-12-19 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053853', 'tblTempUsageDetail_20' ) end [2024-12-19 07:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:07:20] Production.INFO: ==20432== Releasing lock... [2024-12-19 07:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:07:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:08:06 [end_date_ymd] => 2024-12-19 07:08:06 [RateCDR] => 1 ) [2024-12-19 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:08:06' and `end` < '2024-12-19 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:08:18] Production.INFO: count ==58 [2024-12-19 07:08:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:08:06 - End Time 2024-12-19 07:08:06 [2024-12-19 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053858', 'tblTempUsageDetail_20' ) start [2024-12-19 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053858', 'tblTempUsageDetail_20' ) end [2024-12-19 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053858', 'tblTempVendorCDR_20' ) start [2024-12-19 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053858', 'tblTempVendorCDR_20' ) end [2024-12-19 07:08:18] Production.INFO: ProcessCDR(1,14053858,1,1,2) [2024-12-19 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053858', 'tblTempUsageDetail_20' ) start [2024-12-19 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053858', 'tblTempUsageDetail_20' ) end [2024-12-19 07:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:08:21] Production.INFO: ==20632== Releasing lock... [2024-12-19 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:08:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:09:04 [end_date_ymd] => 2024-12-19 07:09:04 [RateCDR] => 1 ) [2024-12-19 07:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:09:04' and `end` < '2024-12-19 07:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:09:16] Production.INFO: count ==58 [2024-12-19 07:09:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:09:04 - End Time 2024-12-19 07:09:04 [2024-12-19 07:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053863', 'tblTempUsageDetail_20' ) start [2024-12-19 07:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053863', 'tblTempUsageDetail_20' ) end [2024-12-19 07:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053863', 'tblTempVendorCDR_20' ) start [2024-12-19 07:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053863', 'tblTempVendorCDR_20' ) end [2024-12-19 07:09:16] Production.INFO: ProcessCDR(1,14053863,1,1,2) [2024-12-19 07:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053863', 'tblTempUsageDetail_20' ) start [2024-12-19 07:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053863', 'tblTempUsageDetail_20' ) end [2024-12-19 07:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:09:19] Production.INFO: ==20703== Releasing lock... [2024-12-19 07:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:09:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:10:05 [end_date_ymd] => 2024-12-19 07:10:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:10:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:10:18] Production.INFO: count ==58 [2024-12-19 07:10:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:10:05 - End Time 2024-12-19 07:10:05 [2024-12-19 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053869', 'tblTempUsageDetail_20' ) start [2024-12-19 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053869', 'tblTempUsageDetail_20' ) end [2024-12-19 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053869', 'tblTempVendorCDR_20' ) start [2024-12-19 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053869', 'tblTempVendorCDR_20' ) end [2024-12-19 07:10:18] Production.INFO: ProcessCDR(1,14053869,1,1,2) [2024-12-19 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053869', 'tblTempUsageDetail_20' ) start [2024-12-19 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053869', 'tblTempUsageDetail_20' ) end [2024-12-19 07:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:10:21] Production.INFO: ==20778== Releasing lock... [2024-12-19 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:10:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:11:04 [end_date_ymd] => 2024-12-19 07:11:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:11:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:11:17] Production.INFO: count ==58 [2024-12-19 07:11:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:11:04 - End Time 2024-12-19 07:11:04 [2024-12-19 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053874', 'tblTempUsageDetail_20' ) start [2024-12-19 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053874', 'tblTempUsageDetail_20' ) end [2024-12-19 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053874', 'tblTempVendorCDR_20' ) start [2024-12-19 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053874', 'tblTempVendorCDR_20' ) end [2024-12-19 07:11:17] Production.INFO: ProcessCDR(1,14053874,1,1,2) [2024-12-19 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053874', 'tblTempUsageDetail_20' ) start [2024-12-19 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053874', 'tblTempUsageDetail_20' ) end [2024-12-19 07:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:11:21] Production.INFO: ==20863== Releasing lock... [2024-12-19 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:11:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:12:04 [end_date_ymd] => 2024-12-19 07:12:04 [RateCDR] => 1 ) [2024-12-19 07: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` >= '2024-12-19 04:12:04' and `end` < '2024-12-19 07: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 ,'') [2024-12-19 07:12:16] Production.INFO: count ==58 [2024-12-19 07:12:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:12:04 - End Time 2024-12-19 07:12:04 [2024-12-19 07:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053879', 'tblTempUsageDetail_20' ) start [2024-12-19 07:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053879', 'tblTempUsageDetail_20' ) end [2024-12-19 07:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053879', 'tblTempVendorCDR_20' ) start [2024-12-19 07:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053879', 'tblTempVendorCDR_20' ) end [2024-12-19 07:12:16] Production.INFO: ProcessCDR(1,14053879,1,1,2) [2024-12-19 07:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053879', 'tblTempUsageDetail_20' ) start [2024-12-19 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053879', 'tblTempUsageDetail_20' ) end [2024-12-19 07:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:12:20] Production.INFO: ==21025== Releasing lock... [2024-12-19 07:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:12:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:13:05 [end_date_ymd] => 2024-12-19 07:13:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:13:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:13:18] Production.INFO: count ==58 [2024-12-19 07:13:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:13:05 - End Time 2024-12-19 07:13:05 [2024-12-19 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053884', 'tblTempUsageDetail_20' ) start [2024-12-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053884', 'tblTempUsageDetail_20' ) end [2024-12-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053884', 'tblTempVendorCDR_20' ) start [2024-12-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053884', 'tblTempVendorCDR_20' ) end [2024-12-19 07:13:18] Production.INFO: ProcessCDR(1,14053884,1,1,2) [2024-12-19 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053884', 'tblTempUsageDetail_20' ) start [2024-12-19 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053884', 'tblTempUsageDetail_20' ) end [2024-12-19 07:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:13:21] Production.INFO: ==21104== Releasing lock... [2024-12-19 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:13:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:14:05 [end_date_ymd] => 2024-12-19 07:14:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:14:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:14:18] Production.INFO: count ==58 [2024-12-19 07:14:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:14:05 - End Time 2024-12-19 07:14:05 [2024-12-19 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053889', 'tblTempUsageDetail_20' ) start [2024-12-19 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053889', 'tblTempUsageDetail_20' ) end [2024-12-19 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053889', 'tblTempVendorCDR_20' ) start [2024-12-19 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053889', 'tblTempVendorCDR_20' ) end [2024-12-19 07:14:18] Production.INFO: ProcessCDR(1,14053889,1,1,2) [2024-12-19 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053889', 'tblTempUsageDetail_20' ) start [2024-12-19 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053889', 'tblTempUsageDetail_20' ) end [2024-12-19 07:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:14:21] Production.INFO: ==21177== Releasing lock... [2024-12-19 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:14:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:15:05 [end_date_ymd] => 2024-12-19 07:15:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:15:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:15:17] Production.INFO: count ==58 [2024-12-19 07:15:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:15:05 - End Time 2024-12-19 07:15:05 [2024-12-19 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053894', 'tblTempUsageDetail_20' ) start [2024-12-19 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053894', 'tblTempUsageDetail_20' ) end [2024-12-19 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053894', 'tblTempVendorCDR_20' ) start [2024-12-19 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053894', 'tblTempVendorCDR_20' ) end [2024-12-19 07:15:17] Production.INFO: ProcessCDR(1,14053894,1,1,2) [2024-12-19 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053894', 'tblTempUsageDetail_20' ) start [2024-12-19 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053894', 'tblTempUsageDetail_20' ) end [2024-12-19 07:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:15:20] Production.INFO: ==21331== Releasing lock... [2024-12-19 07:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:15:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:16:05 [end_date_ymd] => 2024-12-19 07:16:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:16:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:16:17] Production.INFO: count ==59 [2024-12-19 07:16:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:16:05 - End Time 2024-12-19 07:16:05 [2024-12-19 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053899', 'tblTempUsageDetail_20' ) start [2024-12-19 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053899', 'tblTempUsageDetail_20' ) end [2024-12-19 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053899', 'tblTempVendorCDR_20' ) start [2024-12-19 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053899', 'tblTempVendorCDR_20' ) end [2024-12-19 07:16:17] Production.INFO: ProcessCDR(1,14053899,1,1,2) [2024-12-19 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053899', 'tblTempUsageDetail_20' ) start [2024-12-19 07:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053899', 'tblTempUsageDetail_20' ) end [2024-12-19 07:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:16:20] Production.INFO: ==21409== Releasing lock... [2024-12-19 07:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:16:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:17:05 [end_date_ymd] => 2024-12-19 07:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:17:18] Production.INFO: count ==59 [2024-12-19 07:17:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:17:05 - End Time 2024-12-19 07:17:05 [2024-12-19 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053903', 'tblTempUsageDetail_20' ) start [2024-12-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053903', 'tblTempUsageDetail_20' ) end [2024-12-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053903', 'tblTempVendorCDR_20' ) start [2024-12-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053903', 'tblTempVendorCDR_20' ) end [2024-12-19 07:17:18] Production.INFO: ProcessCDR(1,14053903,1,1,2) [2024-12-19 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053903', 'tblTempUsageDetail_20' ) start [2024-12-19 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053903', 'tblTempUsageDetail_20' ) end [2024-12-19 07:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:17:21] Production.INFO: ==21495== Releasing lock... [2024-12-19 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:17:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:18:04 [end_date_ymd] => 2024-12-19 07:18:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:18:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:18:16] Production.INFO: count ==59 [2024-12-19 07:18:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:18:04 - End Time 2024-12-19 07:18:04 [2024-12-19 07:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053909', 'tblTempUsageDetail_20' ) start [2024-12-19 07:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053909', 'tblTempUsageDetail_20' ) end [2024-12-19 07:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053909', 'tblTempVendorCDR_20' ) start [2024-12-19 07:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053909', 'tblTempVendorCDR_20' ) end [2024-12-19 07:18:16] Production.INFO: ProcessCDR(1,14053909,1,1,2) [2024-12-19 07:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053909', 'tblTempUsageDetail_20' ) start [2024-12-19 07:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053909', 'tblTempUsageDetail_20' ) end [2024-12-19 07:18:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:18:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:18:19] Production.INFO: ==21569== Releasing lock... [2024-12-19 07:18:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:18:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:19:05 [end_date_ymd] => 2024-12-19 07:19:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:19:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:19:18] Production.INFO: count ==65 [2024-12-19 07:19:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:19:05 - End Time 2024-12-19 07:19:05 [2024-12-19 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053914', 'tblTempUsageDetail_20' ) start [2024-12-19 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053914', 'tblTempUsageDetail_20' ) end [2024-12-19 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053914', 'tblTempVendorCDR_20' ) start [2024-12-19 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053914', 'tblTempVendorCDR_20' ) end [2024-12-19 07:19:18] Production.INFO: ProcessCDR(1,14053914,1,1,2) [2024-12-19 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053914', 'tblTempUsageDetail_20' ) start [2024-12-19 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053914', 'tblTempUsageDetail_20' ) end [2024-12-19 07:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:19:21] Production.INFO: ==21668== Releasing lock... [2024-12-19 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:19:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:20:05 [end_date_ymd] => 2024-12-19 07:20:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:20:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:20:18] Production.INFO: count ==70 [2024-12-19 07:20:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:20:05 - End Time 2024-12-19 07:20:05 [2024-12-19 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053920', 'tblTempUsageDetail_20' ) start [2024-12-19 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053920', 'tblTempUsageDetail_20' ) end [2024-12-19 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053920', 'tblTempVendorCDR_20' ) start [2024-12-19 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053920', 'tblTempVendorCDR_20' ) end [2024-12-19 07:20:18] Production.INFO: ProcessCDR(1,14053920,1,1,2) [2024-12-19 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053920', 'tblTempUsageDetail_20' ) start [2024-12-19 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053920', 'tblTempUsageDetail_20' ) end [2024-12-19 07:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:20:21] Production.INFO: ==21748== Releasing lock... [2024-12-19 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:20:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:21:04 [end_date_ymd] => 2024-12-19 07:21:04 [RateCDR] => 1 ) [2024-12-19 07:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:21:04' and `end` < '2024-12-19 07:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:21:16] Production.INFO: count ==68 [2024-12-19 07:21:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:21:04 - End Time 2024-12-19 07:21:04 [2024-12-19 07:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053925', 'tblTempUsageDetail_20' ) start [2024-12-19 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053925', 'tblTempUsageDetail_20' ) end [2024-12-19 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053925', 'tblTempVendorCDR_20' ) start [2024-12-19 07:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053925', 'tblTempVendorCDR_20' ) end [2024-12-19 07:21:16] Production.INFO: ProcessCDR(1,14053925,1,1,2) [2024-12-19 07:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053925', 'tblTempUsageDetail_20' ) start [2024-12-19 07:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053925', 'tblTempUsageDetail_20' ) end [2024-12-19 07:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:21:19] Production.INFO: ==21829== Releasing lock... [2024-12-19 07:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:21:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:22:05 [end_date_ymd] => 2024-12-19 07:22:05 [RateCDR] => 1 ) [2024-12-19 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:22:05' and `end` < '2024-12-19 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:22:17] Production.INFO: count ==69 [2024-12-19 07:22:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:22:05 - End Time 2024-12-19 07:22:05 [2024-12-19 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053930', 'tblTempUsageDetail_20' ) start [2024-12-19 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053930', 'tblTempUsageDetail_20' ) end [2024-12-19 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053930', 'tblTempVendorCDR_20' ) start [2024-12-19 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053930', 'tblTempVendorCDR_20' ) end [2024-12-19 07:22:17] Production.INFO: ProcessCDR(1,14053930,1,1,2) [2024-12-19 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053930', 'tblTempUsageDetail_20' ) start [2024-12-19 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053930', 'tblTempUsageDetail_20' ) end [2024-12-19 07:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:22:21] Production.INFO: ==21912== Releasing lock... [2024-12-19 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:22:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:23:05 [end_date_ymd] => 2024-12-19 07:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:23:17] Production.INFO: count ==69 [2024-12-19 07:23:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:23:05 - End Time 2024-12-19 07:23:05 [2024-12-19 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053935', 'tblTempUsageDetail_20' ) start [2024-12-19 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053935', 'tblTempUsageDetail_20' ) end [2024-12-19 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053935', 'tblTempVendorCDR_20' ) start [2024-12-19 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053935', 'tblTempVendorCDR_20' ) end [2024-12-19 07:23:17] Production.INFO: ProcessCDR(1,14053935,1,1,2) [2024-12-19 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053935', 'tblTempUsageDetail_20' ) start [2024-12-19 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053935', 'tblTempUsageDetail_20' ) end [2024-12-19 07:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:23:20] Production.INFO: ==21987== Releasing lock... [2024-12-19 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:23:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:24:05 [end_date_ymd] => 2024-12-19 07:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:24:18] Production.INFO: count ==69 [2024-12-19 07:24:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:24:05 - End Time 2024-12-19 07:24:05 [2024-12-19 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053940', 'tblTempUsageDetail_20' ) start [2024-12-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053940', 'tblTempUsageDetail_20' ) end [2024-12-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053940', 'tblTempVendorCDR_20' ) start [2024-12-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053940', 'tblTempVendorCDR_20' ) end [2024-12-19 07:24:18] Production.INFO: ProcessCDR(1,14053940,1,1,2) [2024-12-19 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053940', 'tblTempUsageDetail_20' ) start [2024-12-19 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053940', 'tblTempUsageDetail_20' ) end [2024-12-19 07:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:24:21] Production.INFO: ==22105== Releasing lock... [2024-12-19 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:24:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:25:04 [end_date_ymd] => 2024-12-19 07:25:04 [RateCDR] => 1 ) [2024-12-19 07:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:25:04' and `end` < '2024-12-19 07:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:25:16] Production.INFO: count ==69 [2024-12-19 07:25:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:25:04 - End Time 2024-12-19 07:25:04 [2024-12-19 07:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053945', 'tblTempUsageDetail_20' ) start [2024-12-19 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053945', 'tblTempUsageDetail_20' ) end [2024-12-19 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053945', 'tblTempVendorCDR_20' ) start [2024-12-19 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053945', 'tblTempVendorCDR_20' ) end [2024-12-19 07:25:16] Production.INFO: ProcessCDR(1,14053945,1,1,2) [2024-12-19 07:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053945', 'tblTempUsageDetail_20' ) start [2024-12-19 07:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053945', 'tblTempUsageDetail_20' ) end [2024-12-19 07:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:25:19] Production.INFO: ==22180== Releasing lock... [2024-12-19 07:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:25:19] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:26:05 [end_date_ymd] => 2024-12-19 07:26:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:26:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:26:17] Production.INFO: count ==70 [2024-12-19 07:26:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:26:05 - End Time 2024-12-19 07:26:05 [2024-12-19 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053950', 'tblTempUsageDetail_20' ) start [2024-12-19 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053950', 'tblTempUsageDetail_20' ) end [2024-12-19 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053950', 'tblTempVendorCDR_20' ) start [2024-12-19 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053950', 'tblTempVendorCDR_20' ) end [2024-12-19 07:26:17] Production.INFO: ProcessCDR(1,14053950,1,1,2) [2024-12-19 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053950', 'tblTempUsageDetail_20' ) start [2024-12-19 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053950', 'tblTempUsageDetail_20' ) end [2024-12-19 07:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:26:22] Production.INFO: ==22258== Releasing lock... [2024-12-19 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:26:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:27:05 [end_date_ymd] => 2024-12-19 07:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:27:17] Production.INFO: count ==70 [2024-12-19 07:27:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:27:05 - End Time 2024-12-19 07:27:05 [2024-12-19 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053955', 'tblTempUsageDetail_20' ) start [2024-12-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053955', 'tblTempUsageDetail_20' ) end [2024-12-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053955', 'tblTempVendorCDR_20' ) start [2024-12-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053955', 'tblTempVendorCDR_20' ) end [2024-12-19 07:27:17] Production.INFO: ProcessCDR(1,14053955,1,1,2) [2024-12-19 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053955', 'tblTempUsageDetail_20' ) start [2024-12-19 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053955', 'tblTempUsageDetail_20' ) end [2024-12-19 07:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:27:20] Production.INFO: ==22339== Releasing lock... [2024-12-19 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:27:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:28:05 [end_date_ymd] => 2024-12-19 07:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:28:17] Production.INFO: count ==70 [2024-12-19 07:28:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:28:05 - End Time 2024-12-19 07:28:05 [2024-12-19 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053960', 'tblTempUsageDetail_20' ) start [2024-12-19 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053960', 'tblTempUsageDetail_20' ) end [2024-12-19 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053960', 'tblTempVendorCDR_20' ) start [2024-12-19 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053960', 'tblTempVendorCDR_20' ) end [2024-12-19 07:28:17] Production.INFO: ProcessCDR(1,14053960,1,1,2) [2024-12-19 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053960', 'tblTempUsageDetail_20' ) start [2024-12-19 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053960', 'tblTempUsageDetail_20' ) end [2024-12-19 07:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:28:20] Production.INFO: ==22420== Releasing lock... [2024-12-19 07:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:28:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:29:05 [end_date_ymd] => 2024-12-19 07:29:05 [RateCDR] => 1 ) [2024-12-19 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:29:05' and `end` < '2024-12-19 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:29:17] Production.INFO: count ==70 [2024-12-19 07:29:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:29:05 - End Time 2024-12-19 07:29:05 [2024-12-19 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053965', 'tblTempUsageDetail_20' ) start [2024-12-19 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053965', 'tblTempUsageDetail_20' ) end [2024-12-19 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053965', 'tblTempVendorCDR_20' ) start [2024-12-19 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053965', 'tblTempVendorCDR_20' ) end [2024-12-19 07:29:17] Production.INFO: ProcessCDR(1,14053965,1,1,2) [2024-12-19 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053965', 'tblTempUsageDetail_20' ) start [2024-12-19 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053965', 'tblTempUsageDetail_20' ) end [2024-12-19 07:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:29:20] Production.INFO: ==22493== Releasing lock... [2024-12-19 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:29:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:30:05 [end_date_ymd] => 2024-12-19 07:30:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:30:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:30:17] Production.INFO: count ==65 [2024-12-19 07:30:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:30:05 - End Time 2024-12-19 07:30:05 [2024-12-19 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053971', 'tblTempUsageDetail_20' ) start [2024-12-19 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053971', 'tblTempUsageDetail_20' ) end [2024-12-19 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053971', 'tblTempVendorCDR_20' ) start [2024-12-19 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053971', 'tblTempVendorCDR_20' ) end [2024-12-19 07:30:17] Production.INFO: ProcessCDR(1,14053971,1,1,2) [2024-12-19 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053971', 'tblTempUsageDetail_20' ) start [2024-12-19 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053971', 'tblTempUsageDetail_20' ) end [2024-12-19 07:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:30:20] Production.INFO: ==22570== Releasing lock... [2024-12-19 07:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:30:20] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:31:05 [end_date_ymd] => 2024-12-19 07:31:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:31:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:31:19] Production.INFO: count ==65 [2024-12-19 07:31:19] Production.ERROR: pbx CDR StartTime 2024-12-19 04:31:05 - End Time 2024-12-19 07:31:05 [2024-12-19 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053976', 'tblTempUsageDetail_20' ) start [2024-12-19 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053976', 'tblTempUsageDetail_20' ) end [2024-12-19 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053976', 'tblTempVendorCDR_20' ) start [2024-12-19 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053976', 'tblTempVendorCDR_20' ) end [2024-12-19 07:31:19] Production.INFO: ProcessCDR(1,14053976,1,1,2) [2024-12-19 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053976', 'tblTempUsageDetail_20' ) start [2024-12-19 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053976', 'tblTempUsageDetail_20' ) end [2024-12-19 07:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:31:22] Production.INFO: ==22655== Releasing lock... [2024-12-19 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:31:22] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:32:05 [end_date_ymd] => 2024-12-19 07:32:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:32:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:32:18] Production.INFO: count ==65 [2024-12-19 07:32:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:32:05 - End Time 2024-12-19 07:32:05 [2024-12-19 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053981', 'tblTempUsageDetail_20' ) start [2024-12-19 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053981', 'tblTempUsageDetail_20' ) end [2024-12-19 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053981', 'tblTempVendorCDR_20' ) start [2024-12-19 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053981', 'tblTempVendorCDR_20' ) end [2024-12-19 07:32:18] Production.INFO: ProcessCDR(1,14053981,1,1,2) [2024-12-19 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053981', 'tblTempUsageDetail_20' ) start [2024-12-19 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053981', 'tblTempUsageDetail_20' ) end [2024-12-19 07:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:32:21] Production.INFO: ==22734== Releasing lock... [2024-12-19 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:32:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:33:05 [end_date_ymd] => 2024-12-19 07:33:05 [RateCDR] => 1 ) [2024-12-19 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:33:05' and `end` < '2024-12-19 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:33:18] Production.INFO: count ==65 [2024-12-19 07:33:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:33:05 - End Time 2024-12-19 07:33:05 [2024-12-19 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053986', 'tblTempUsageDetail_20' ) start [2024-12-19 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053986', 'tblTempUsageDetail_20' ) end [2024-12-19 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053986', 'tblTempVendorCDR_20' ) start [2024-12-19 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053986', 'tblTempVendorCDR_20' ) end [2024-12-19 07:33:18] Production.INFO: ProcessCDR(1,14053986,1,1,2) [2024-12-19 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053986', 'tblTempUsageDetail_20' ) start [2024-12-19 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053986', 'tblTempUsageDetail_20' ) end [2024-12-19 07:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:33:21] Production.INFO: ==22814== Releasing lock... [2024-12-19 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:33:21] Production.INFO: 28 MB #Memory Used# [2024-12-19 07:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:34:04 [end_date_ymd] => 2024-12-19 07:34:04 [RateCDR] => 1 ) [2024-12-19 07:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:34:04' and `end` < '2024-12-19 07:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:34:16] Production.INFO: count ==68 [2024-12-19 07:34:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:34:04 - End Time 2024-12-19 07:34:04 [2024-12-19 07:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053991', 'tblTempUsageDetail_20' ) start [2024-12-19 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053991', 'tblTempUsageDetail_20' ) end [2024-12-19 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053991', 'tblTempVendorCDR_20' ) start [2024-12-19 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053991', 'tblTempVendorCDR_20' ) end [2024-12-19 07:34:16] Production.INFO: ProcessCDR(1,14053991,1,1,2) [2024-12-19 07:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053991', 'tblTempUsageDetail_20' ) start [2024-12-19 07:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053991', 'tblTempUsageDetail_20' ) end [2024-12-19 07:34:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:34:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:34:19] Production.INFO: ==22893== Releasing lock... [2024-12-19 07:34:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:34:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:35:05 [end_date_ymd] => 2024-12-19 07:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:35:18] Production.INFO: count ==68 [2024-12-19 07:35:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:35:05 - End Time 2024-12-19 07:35:05 [2024-12-19 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053996', 'tblTempUsageDetail_20' ) start [2024-12-19 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14053996', 'tblTempUsageDetail_20' ) end [2024-12-19 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053996', 'tblTempVendorCDR_20' ) start [2024-12-19 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14053996', 'tblTempVendorCDR_20' ) end [2024-12-19 07:35:18] Production.INFO: ProcessCDR(1,14053996,1,1,2) [2024-12-19 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14053996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14053996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14053996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14053996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053996', 'tblTempUsageDetail_20' ) start [2024-12-19 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14053996', 'tblTempUsageDetail_20' ) end [2024-12-19 07:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:35:21] Production.INFO: ==22970== Releasing lock... [2024-12-19 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:35:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:36:05 [end_date_ymd] => 2024-12-19 07:36:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:36:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:36:17] Production.INFO: count ==69 [2024-12-19 07:36:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:36:05 - End Time 2024-12-19 07:36:05 [2024-12-19 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054001', 'tblTempUsageDetail_20' ) start [2024-12-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054001', 'tblTempUsageDetail_20' ) end [2024-12-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054001', 'tblTempVendorCDR_20' ) start [2024-12-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054001', 'tblTempVendorCDR_20' ) end [2024-12-19 07:36:17] Production.INFO: ProcessCDR(1,14054001,1,1,2) [2024-12-19 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054001', 'tblTempUsageDetail_20' ) start [2024-12-19 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054001', 'tblTempUsageDetail_20' ) end [2024-12-19 07:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:36:21] Production.INFO: ==23047== Releasing lock... [2024-12-19 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:36:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:37:05 [end_date_ymd] => 2024-12-19 07:37:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:37:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:37:17] Production.INFO: count ==69 [2024-12-19 07:37:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:37:05 - End Time 2024-12-19 07:37:05 [2024-12-19 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054006', 'tblTempUsageDetail_20' ) start [2024-12-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054006', 'tblTempUsageDetail_20' ) end [2024-12-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054006', 'tblTempVendorCDR_20' ) start [2024-12-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054006', 'tblTempVendorCDR_20' ) end [2024-12-19 07:37:17] Production.INFO: ProcessCDR(1,14054006,1,1,2) [2024-12-19 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054006', 'tblTempUsageDetail_20' ) start [2024-12-19 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054006', 'tblTempUsageDetail_20' ) end [2024-12-19 07:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:37:20] Production.INFO: ==23123== Releasing lock... [2024-12-19 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:37:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:38:05 [end_date_ymd] => 2024-12-19 07:38:05 [RateCDR] => 1 ) [2024-12-19 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:38:05' and `end` < '2024-12-19 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:38:17] Production.INFO: count ==69 [2024-12-19 07:38:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:38:05 - End Time 2024-12-19 07:38:05 [2024-12-19 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054011', 'tblTempUsageDetail_20' ) start [2024-12-19 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054011', 'tblTempUsageDetail_20' ) end [2024-12-19 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054011', 'tblTempVendorCDR_20' ) start [2024-12-19 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054011', 'tblTempVendorCDR_20' ) end [2024-12-19 07:38:17] Production.INFO: ProcessCDR(1,14054011,1,1,2) [2024-12-19 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054011', 'tblTempUsageDetail_20' ) start [2024-12-19 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054011', 'tblTempUsageDetail_20' ) end [2024-12-19 07:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:38:20] Production.INFO: ==23202== Releasing lock... [2024-12-19 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:38:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:39:04 [end_date_ymd] => 2024-12-19 07:39:04 [RateCDR] => 1 ) [2024-12-19 07: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` >= '2024-12-19 04:39:04' and `end` < '2024-12-19 07: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 ,'') [2024-12-19 07:39:16] Production.INFO: count ==69 [2024-12-19 07:39:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:39:04 - End Time 2024-12-19 07:39:04 [2024-12-19 07:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054016', 'tblTempUsageDetail_20' ) start [2024-12-19 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054016', 'tblTempUsageDetail_20' ) end [2024-12-19 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054016', 'tblTempVendorCDR_20' ) start [2024-12-19 07:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054016', 'tblTempVendorCDR_20' ) end [2024-12-19 07:39:16] Production.INFO: ProcessCDR(1,14054016,1,1,2) [2024-12-19 07:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054016', 'tblTempUsageDetail_20' ) start [2024-12-19 07:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054016', 'tblTempUsageDetail_20' ) end [2024-12-19 07:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:39:19] Production.INFO: ==23281== Releasing lock... [2024-12-19 07:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:39:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:40:06 [end_date_ymd] => 2024-12-19 07:40:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:40:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:40:18] Production.INFO: count ==78 [2024-12-19 07:40:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:40:06 - End Time 2024-12-19 07:40:06 [2024-12-19 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054022', 'tblTempUsageDetail_20' ) start [2024-12-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054022', 'tblTempUsageDetail_20' ) end [2024-12-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054022', 'tblTempVendorCDR_20' ) start [2024-12-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054022', 'tblTempVendorCDR_20' ) end [2024-12-19 07:40:18] Production.INFO: ProcessCDR(1,14054022,1,1,2) [2024-12-19 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054022', 'tblTempUsageDetail_20' ) start [2024-12-19 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054022', 'tblTempUsageDetail_20' ) end [2024-12-19 07:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:40:21] Production.INFO: ==23399== Releasing lock... [2024-12-19 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:40:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:41:04 [end_date_ymd] => 2024-12-19 07:41:04 [RateCDR] => 1 ) [2024-12-19 07:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:41:04' and `end` < '2024-12-19 07:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:41:16] Production.INFO: count ==86 [2024-12-19 07:41:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:41:04 - End Time 2024-12-19 07:41:04 [2024-12-19 07:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054027', 'tblTempUsageDetail_20' ) start [2024-12-19 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054027', 'tblTempUsageDetail_20' ) end [2024-12-19 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054027', 'tblTempVendorCDR_20' ) start [2024-12-19 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054027', 'tblTempVendorCDR_20' ) end [2024-12-19 07:41:16] Production.INFO: ProcessCDR(1,14054027,1,1,2) [2024-12-19 07:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054027', 'tblTempUsageDetail_20' ) start [2024-12-19 07:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054027', 'tblTempUsageDetail_20' ) end [2024-12-19 07:41:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:41:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:41:19] Production.INFO: ==23475== Releasing lock... [2024-12-19 07:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:41:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:42:05 [end_date_ymd] => 2024-12-19 07:42:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:42:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:42:17] Production.INFO: count ==94 [2024-12-19 07:42:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:42:05 - End Time 2024-12-19 07:42:05 [2024-12-19 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054032', 'tblTempUsageDetail_20' ) start [2024-12-19 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054032', 'tblTempUsageDetail_20' ) end [2024-12-19 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054032', 'tblTempVendorCDR_20' ) start [2024-12-19 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054032', 'tblTempVendorCDR_20' ) end [2024-12-19 07:42:17] Production.INFO: ProcessCDR(1,14054032,1,1,2) [2024-12-19 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054032', 'tblTempUsageDetail_20' ) start [2024-12-19 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054032', 'tblTempUsageDetail_20' ) end [2024-12-19 07:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:42:20] Production.INFO: ==23555== Releasing lock... [2024-12-19 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:42:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:43:05 [end_date_ymd] => 2024-12-19 07:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:43:17] Production.INFO: count ==94 [2024-12-19 07:43:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:43:05 - End Time 2024-12-19 07:43:05 [2024-12-19 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054037', 'tblTempUsageDetail_20' ) start [2024-12-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054037', 'tblTempUsageDetail_20' ) end [2024-12-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054037', 'tblTempVendorCDR_20' ) start [2024-12-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054037', 'tblTempVendorCDR_20' ) end [2024-12-19 07:43:17] Production.INFO: ProcessCDR(1,14054037,1,1,2) [2024-12-19 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054037', 'tblTempUsageDetail_20' ) start [2024-12-19 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054037', 'tblTempUsageDetail_20' ) end [2024-12-19 07:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:43:20] Production.INFO: ==23633== Releasing lock... [2024-12-19 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:43:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:44:04 [end_date_ymd] => 2024-12-19 07:44:04 [RateCDR] => 1 ) [2024-12-19 07:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:44:04' and `end` < '2024-12-19 07:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:44:16] Production.INFO: count ==94 [2024-12-19 07:44:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:44:04 - End Time 2024-12-19 07:44:04 [2024-12-19 07:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054042', 'tblTempUsageDetail_20' ) start [2024-12-19 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054042', 'tblTempUsageDetail_20' ) end [2024-12-19 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054042', 'tblTempVendorCDR_20' ) start [2024-12-19 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054042', 'tblTempVendorCDR_20' ) end [2024-12-19 07:44:16] Production.INFO: ProcessCDR(1,14054042,1,1,2) [2024-12-19 07:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054042', 'tblTempUsageDetail_20' ) start [2024-12-19 07:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054042', 'tblTempUsageDetail_20' ) end [2024-12-19 07:44:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:44:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:44:19] Production.INFO: ==23711== Releasing lock... [2024-12-19 07:44:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:44:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:45:05 [end_date_ymd] => 2024-12-19 07:45:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:45:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:45:17] Production.INFO: count ==94 [2024-12-19 07:45:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:45:05 - End Time 2024-12-19 07:45:05 [2024-12-19 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054047', 'tblTempUsageDetail_20' ) start [2024-12-19 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054047', 'tblTempUsageDetail_20' ) end [2024-12-19 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054047', 'tblTempVendorCDR_20' ) start [2024-12-19 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054047', 'tblTempVendorCDR_20' ) end [2024-12-19 07:45:17] Production.INFO: ProcessCDR(1,14054047,1,1,2) [2024-12-19 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054047', 'tblTempUsageDetail_20' ) start [2024-12-19 07:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054047', 'tblTempUsageDetail_20' ) end [2024-12-19 07:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:45:20] Production.INFO: ==23789== Releasing lock... [2024-12-19 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:45:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:46:04 [end_date_ymd] => 2024-12-19 07:46:04 [RateCDR] => 1 ) [2024-12-19 07:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:46:04' and `end` < '2024-12-19 07:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:46:16] Production.INFO: count ==96 [2024-12-19 07:46:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:46:04 - End Time 2024-12-19 07:46:04 [2024-12-19 07:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054052', 'tblTempUsageDetail_20' ) start [2024-12-19 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054052', 'tblTempUsageDetail_20' ) end [2024-12-19 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054052', 'tblTempVendorCDR_20' ) start [2024-12-19 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054052', 'tblTempVendorCDR_20' ) end [2024-12-19 07:46:16] Production.INFO: ProcessCDR(1,14054052,1,1,2) [2024-12-19 07:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054052', 'tblTempUsageDetail_20' ) start [2024-12-19 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054052', 'tblTempUsageDetail_20' ) end [2024-12-19 07:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:46:21] Production.INFO: ==23862== Releasing lock... [2024-12-19 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:47:05 [end_date_ymd] => 2024-12-19 07:47:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:47:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:47:18] Production.INFO: count ==96 [2024-12-19 07:47:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:47:05 - End Time 2024-12-19 07:47:05 [2024-12-19 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054057', 'tblTempUsageDetail_20' ) start [2024-12-19 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054057', 'tblTempUsageDetail_20' ) end [2024-12-19 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054057', 'tblTempVendorCDR_20' ) start [2024-12-19 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054057', 'tblTempVendorCDR_20' ) end [2024-12-19 07:47:18] Production.INFO: ProcessCDR(1,14054057,1,1,2) [2024-12-19 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054057', 'tblTempUsageDetail_20' ) start [2024-12-19 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054057', 'tblTempUsageDetail_20' ) end [2024-12-19 07:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:47:21] Production.INFO: ==23937== Releasing lock... [2024-12-19 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:47:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:48:05 [end_date_ymd] => 2024-12-19 07:48:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:48:17] Production.INFO: count ==97 [2024-12-19 07:48:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:48:05 - End Time 2024-12-19 07:48:05 [2024-12-19 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054062', 'tblTempUsageDetail_20' ) start [2024-12-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054062', 'tblTempUsageDetail_20' ) end [2024-12-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054062', 'tblTempVendorCDR_20' ) start [2024-12-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054062', 'tblTempVendorCDR_20' ) end [2024-12-19 07:48:17] Production.INFO: ProcessCDR(1,14054062,1,1,2) [2024-12-19 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054062', 'tblTempUsageDetail_20' ) start [2024-12-19 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054062', 'tblTempUsageDetail_20' ) end [2024-12-19 07:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:48:22] Production.INFO: ==24010== Releasing lock... [2024-12-19 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:48:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:49:05 [end_date_ymd] => 2024-12-19 07:49:05 [RateCDR] => 1 ) [2024-12-19 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:49:05' and `end` < '2024-12-19 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:49:18] Production.INFO: count ==99 [2024-12-19 07:49:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:49:05 - End Time 2024-12-19 07:49:05 [2024-12-19 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054067', 'tblTempUsageDetail_20' ) start [2024-12-19 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054067', 'tblTempUsageDetail_20' ) end [2024-12-19 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054067', 'tblTempVendorCDR_20' ) start [2024-12-19 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054067', 'tblTempVendorCDR_20' ) end [2024-12-19 07:49:18] Production.INFO: ProcessCDR(1,14054067,1,1,2) [2024-12-19 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054067', 'tblTempUsageDetail_20' ) start [2024-12-19 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054067', 'tblTempUsageDetail_20' ) end [2024-12-19 07:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:49:22] Production.INFO: ==24083== Releasing lock... [2024-12-19 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:49:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-19 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:50:06 [end_date_ymd] => 2024-12-19 07:50:06 [RateCDR] => 1 ) [2024-12-19 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:50:06' and `end` < '2024-12-19 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:50:18] Production.INFO: count ==106 [2024-12-19 07:50:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:50:06 - End Time 2024-12-19 07:50:06 [2024-12-19 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054073', 'tblTempUsageDetail_20' ) start [2024-12-19 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054073', 'tblTempUsageDetail_20' ) end [2024-12-19 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054073', 'tblTempVendorCDR_20' ) start [2024-12-19 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054073', 'tblTempVendorCDR_20' ) end [2024-12-19 07:50:18] Production.INFO: ProcessCDR(1,14054073,1,1,2) [2024-12-19 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054073', 'tblTempUsageDetail_20' ) start [2024-12-19 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054073', 'tblTempUsageDetail_20' ) end [2024-12-19 07:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:50:21] Production.INFO: ==24159== Releasing lock... [2024-12-19 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:50:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:51:04 [end_date_ymd] => 2024-12-19 07:51:04 [RateCDR] => 1 ) [2024-12-19 07:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:51:04' and `end` < '2024-12-19 07:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:51:16] Production.INFO: count ==108 [2024-12-19 07:51:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:51:04 - End Time 2024-12-19 07:51:04 [2024-12-19 07:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054078', 'tblTempUsageDetail_20' ) start [2024-12-19 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054078', 'tblTempUsageDetail_20' ) end [2024-12-19 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054078', 'tblTempVendorCDR_20' ) start [2024-12-19 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054078', 'tblTempVendorCDR_20' ) end [2024-12-19 07:51:17] Production.INFO: ProcessCDR(1,14054078,1,1,2) [2024-12-19 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054078', 'tblTempUsageDetail_20' ) start [2024-12-19 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054078', 'tblTempUsageDetail_20' ) end [2024-12-19 07:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:51:20] Production.INFO: ==24229== Releasing lock... [2024-12-19 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:51:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 07:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:52:04 [end_date_ymd] => 2024-12-19 07:52:04 [RateCDR] => 1 ) [2024-12-19 07:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:52:04' and `end` < '2024-12-19 07:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:52:16] Production.INFO: count ==115 [2024-12-19 07:52:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:52:04 - End Time 2024-12-19 07:52:04 [2024-12-19 07:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054083', 'tblTempUsageDetail_20' ) start [2024-12-19 07:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054083', 'tblTempUsageDetail_20' ) end [2024-12-19 07:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054083', 'tblTempVendorCDR_20' ) start [2024-12-19 07:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054083', 'tblTempVendorCDR_20' ) end [2024-12-19 07:52:16] Production.INFO: ProcessCDR(1,14054083,1,1,2) [2024-12-19 07:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:52:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054083', 'tblTempUsageDetail_20' ) start [2024-12-19 07:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054083', 'tblTempUsageDetail_20' ) end [2024-12-19 07:52:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:52:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:52:19] Production.INFO: ==24301== Releasing lock... [2024-12-19 07:52:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:52:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:53:04 [end_date_ymd] => 2024-12-19 07:53:04 [RateCDR] => 1 ) [2024-12-19 07:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:53:04' and `end` < '2024-12-19 07:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:53:16] Production.INFO: count ==115 [2024-12-19 07:53:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:53:04 - End Time 2024-12-19 07:53:04 [2024-12-19 07:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054088', 'tblTempUsageDetail_20' ) start [2024-12-19 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054088', 'tblTempUsageDetail_20' ) end [2024-12-19 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054088', 'tblTempVendorCDR_20' ) start [2024-12-19 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054088', 'tblTempVendorCDR_20' ) end [2024-12-19 07:53:16] Production.INFO: ProcessCDR(1,14054088,1,1,2) [2024-12-19 07:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054088', 'tblTempUsageDetail_20' ) start [2024-12-19 07:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054088', 'tblTempUsageDetail_20' ) end [2024-12-19 07:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:53:19] Production.INFO: ==24374== Releasing lock... [2024-12-19 07:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:53:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:54:05 [end_date_ymd] => 2024-12-19 07:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:54:17] Production.INFO: count ==115 [2024-12-19 07:54:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:54:05 - End Time 2024-12-19 07:54:05 [2024-12-19 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054093', 'tblTempUsageDetail_20' ) start [2024-12-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054093', 'tblTempUsageDetail_20' ) end [2024-12-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054093', 'tblTempVendorCDR_20' ) start [2024-12-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054093', 'tblTempVendorCDR_20' ) end [2024-12-19 07:54:17] Production.INFO: ProcessCDR(1,14054093,1,1,2) [2024-12-19 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054093', 'tblTempUsageDetail_20' ) start [2024-12-19 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054093', 'tblTempUsageDetail_20' ) end [2024-12-19 07:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:54:20] Production.INFO: ==24444== Releasing lock... [2024-12-19 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:54:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:55:05 [end_date_ymd] => 2024-12-19 07:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:55:17] Production.INFO: count ==116 [2024-12-19 07:55:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:55:05 - End Time 2024-12-19 07:55:05 [2024-12-19 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054098', 'tblTempUsageDetail_20' ) start [2024-12-19 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054098', 'tblTempUsageDetail_20' ) end [2024-12-19 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054098', 'tblTempVendorCDR_20' ) start [2024-12-19 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054098', 'tblTempVendorCDR_20' ) end [2024-12-19 07:55:17] Production.INFO: ProcessCDR(1,14054098,1,1,2) [2024-12-19 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054098', 'tblTempUsageDetail_20' ) start [2024-12-19 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054098', 'tblTempUsageDetail_20' ) end [2024-12-19 07:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:55:20] Production.INFO: ==24517== Releasing lock... [2024-12-19 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:55:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-19 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:56:05 [end_date_ymd] => 2024-12-19 07:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:56:18] Production.INFO: count ==127 [2024-12-19 07:56:18] Production.ERROR: pbx CDR StartTime 2024-12-19 04:56:05 - End Time 2024-12-19 07:56:05 [2024-12-19 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054103', 'tblTempUsageDetail_20' ) start [2024-12-19 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054103', 'tblTempUsageDetail_20' ) end [2024-12-19 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054103', 'tblTempVendorCDR_20' ) start [2024-12-19 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054103', 'tblTempVendorCDR_20' ) end [2024-12-19 07:56:18] Production.INFO: ProcessCDR(1,14054103,1,1,2) [2024-12-19 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054103', 'tblTempUsageDetail_20' ) start [2024-12-19 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054103', 'tblTempUsageDetail_20' ) end [2024-12-19 07:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:56:21] Production.INFO: ==24629== Releasing lock... [2024-12-19 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:56:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:57:05 [end_date_ymd] => 2024-12-19 07:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:57:17] Production.INFO: count ==127 [2024-12-19 07:57:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:57:05 - End Time 2024-12-19 07:57:05 [2024-12-19 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054108', 'tblTempUsageDetail_20' ) start [2024-12-19 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054108', 'tblTempUsageDetail_20' ) end [2024-12-19 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054108', 'tblTempVendorCDR_20' ) start [2024-12-19 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054108', 'tblTempVendorCDR_20' ) end [2024-12-19 07:57:17] Production.INFO: ProcessCDR(1,14054108,1,1,2) [2024-12-19 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054108', 'tblTempUsageDetail_20' ) start [2024-12-19 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054108', 'tblTempUsageDetail_20' ) end [2024-12-19 07:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:57:20] Production.INFO: ==24699== Releasing lock... [2024-12-19 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:57:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 07:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:58:04 [end_date_ymd] => 2024-12-19 07:58:04 [RateCDR] => 1 ) [2024-12-19 07:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 04:58:04' and `end` < '2024-12-19 07:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 07:58:16] Production.INFO: count ==128 [2024-12-19 07:58:16] Production.ERROR: pbx CDR StartTime 2024-12-19 04:58:04 - End Time 2024-12-19 07:58:04 [2024-12-19 07:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054113', 'tblTempUsageDetail_20' ) start [2024-12-19 07:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054113', 'tblTempUsageDetail_20' ) end [2024-12-19 07:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054113', 'tblTempVendorCDR_20' ) start [2024-12-19 07:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054113', 'tblTempVendorCDR_20' ) end [2024-12-19 07:58:16] Production.INFO: ProcessCDR(1,14054113,1,1,2) [2024-12-19 07:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054113', 'tblTempUsageDetail_20' ) start [2024-12-19 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054113', 'tblTempUsageDetail_20' ) end [2024-12-19 07:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:58:21] Production.INFO: ==24770== Releasing lock... [2024-12-19 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:58:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 04:59:05 [end_date_ymd] => 2024-12-19 07:59:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 04:59:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 07:59:17] Production.INFO: count ==133 [2024-12-19 07:59:17] Production.ERROR: pbx CDR StartTime 2024-12-19 04:59:05 - End Time 2024-12-19 07:59:05 [2024-12-19 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054118', 'tblTempUsageDetail_20' ) start [2024-12-19 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054118', 'tblTempUsageDetail_20' ) end [2024-12-19 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054118', 'tblTempVendorCDR_20' ) start [2024-12-19 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054118', 'tblTempVendorCDR_20' ) end [2024-12-19 07:59:17] Production.INFO: ProcessCDR(1,14054118,1,1,2) [2024-12-19 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054118', 'tblTempUsageDetail_20' ) start [2024-12-19 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054118', 'tblTempUsageDetail_20' ) end [2024-12-19 07:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 07:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 07:59:20] Production.INFO: ==24844== Releasing lock... [2024-12-19 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 07:59:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:00:05 [end_date_ymd] => 2024-12-19 08:00:05 [RateCDR] => 1 ) [2024-12-19 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:00:05' and `end` < '2024-12-19 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:00:17] Production.INFO: count ==131 [2024-12-19 08:00:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:00:05 - End Time 2024-12-19 08:00:05 [2024-12-19 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054124', 'tblTempUsageDetail_20' ) start [2024-12-19 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054124', 'tblTempUsageDetail_20' ) end [2024-12-19 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054124', 'tblTempVendorCDR_20' ) start [2024-12-19 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054124', 'tblTempVendorCDR_20' ) end [2024-12-19 08:00:17] Production.INFO: ProcessCDR(1,14054124,1,1,2) [2024-12-19 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054124', 'tblTempUsageDetail_20' ) start [2024-12-19 08:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054124', 'tblTempUsageDetail_20' ) end [2024-12-19 08:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:00:20] Production.INFO: ==24917== Releasing lock... [2024-12-19 08:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:00:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:01:05 [end_date_ymd] => 2024-12-19 08:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:01:18] Production.INFO: count ==131 [2024-12-19 08:01:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:01:05 - End Time 2024-12-19 08:01:05 [2024-12-19 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054129', 'tblTempUsageDetail_20' ) start [2024-12-19 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054129', 'tblTempUsageDetail_20' ) end [2024-12-19 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054129', 'tblTempVendorCDR_20' ) start [2024-12-19 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054129', 'tblTempVendorCDR_20' ) end [2024-12-19 08:01:18] Production.INFO: ProcessCDR(1,14054129,1,1,2) [2024-12-19 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054129', 'tblTempUsageDetail_20' ) start [2024-12-19 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054129', 'tblTempUsageDetail_20' ) end [2024-12-19 08:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:01:21] Production.INFO: ==25004== Releasing lock... [2024-12-19 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:01:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 08:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:02:04 [end_date_ymd] => 2024-12-19 08:02:04 [RateCDR] => 1 ) [2024-12-19 08: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` >= '2024-12-19 05:02:04' and `end` < '2024-12-19 08: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 ,'') [2024-12-19 08:02:17] Production.INFO: count ==132 [2024-12-19 08:02:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:02:04 - End Time 2024-12-19 08:02:04 [2024-12-19 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054134', 'tblTempUsageDetail_20' ) start [2024-12-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054134', 'tblTempUsageDetail_20' ) end [2024-12-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054134', 'tblTempVendorCDR_20' ) start [2024-12-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054134', 'tblTempVendorCDR_20' ) end [2024-12-19 08:02:17] Production.INFO: ProcessCDR(1,14054134,1,1,2) [2024-12-19 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054134', 'tblTempUsageDetail_20' ) start [2024-12-19 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054134', 'tblTempUsageDetail_20' ) end [2024-12-19 08:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:02:20] Production.INFO: ==25076== Releasing lock... [2024-12-19 08:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:02:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:03:05 [end_date_ymd] => 2024-12-19 08:03:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:03:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:03:17] Production.INFO: count ==134 [2024-12-19 08:03:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:03:05 - End Time 2024-12-19 08:03:05 [2024-12-19 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054139', 'tblTempUsageDetail_20' ) start [2024-12-19 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054139', 'tblTempUsageDetail_20' ) end [2024-12-19 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054139', 'tblTempVendorCDR_20' ) start [2024-12-19 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054139', 'tblTempVendorCDR_20' ) end [2024-12-19 08:03:17] Production.INFO: ProcessCDR(1,14054139,1,1,2) [2024-12-19 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054139', 'tblTempUsageDetail_20' ) start [2024-12-19 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054139', 'tblTempUsageDetail_20' ) end [2024-12-19 08:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:03:21] Production.INFO: ==25148== Releasing lock... [2024-12-19 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:03:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:04:05 [end_date_ymd] => 2024-12-19 08:04:05 [RateCDR] => 1 ) [2024-12-19 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:04:05' and `end` < '2024-12-19 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:04:17] Production.INFO: count ==135 [2024-12-19 08:04:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:04:05 - End Time 2024-12-19 08:04:05 [2024-12-19 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054144', 'tblTempUsageDetail_20' ) start [2024-12-19 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054144', 'tblTempUsageDetail_20' ) end [2024-12-19 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054144', 'tblTempVendorCDR_20' ) start [2024-12-19 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054144', 'tblTempVendorCDR_20' ) end [2024-12-19 08:04:17] Production.INFO: ProcessCDR(1,14054144,1,1,2) [2024-12-19 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054144', 'tblTempUsageDetail_20' ) start [2024-12-19 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054144', 'tblTempUsageDetail_20' ) end [2024-12-19 08:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:04:22] Production.INFO: ==25224== Releasing lock... [2024-12-19 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:04:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-19 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:05:05 [end_date_ymd] => 2024-12-19 08:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:05:17] Production.INFO: count ==151 [2024-12-19 08:05:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:05:05 - End Time 2024-12-19 08:05:05 [2024-12-19 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054149', 'tblTempUsageDetail_20' ) start [2024-12-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054149', 'tblTempUsageDetail_20' ) end [2024-12-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054149', 'tblTempVendorCDR_20' ) start [2024-12-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054149', 'tblTempVendorCDR_20' ) end [2024-12-19 08:05:17] Production.INFO: ProcessCDR(1,14054149,1,1,2) [2024-12-19 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054149', 'tblTempUsageDetail_20' ) start [2024-12-19 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054149', 'tblTempUsageDetail_20' ) end [2024-12-19 08:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:05:22] Production.INFO: ==25299== Releasing lock... [2024-12-19 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:05:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:06:05 [end_date_ymd] => 2024-12-19 08:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:06:17] Production.INFO: count ==152 [2024-12-19 08:06:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:06:05 - End Time 2024-12-19 08:06:05 [2024-12-19 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054154', 'tblTempUsageDetail_20' ) start [2024-12-19 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054154', 'tblTempUsageDetail_20' ) end [2024-12-19 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054154', 'tblTempVendorCDR_20' ) start [2024-12-19 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054154', 'tblTempVendorCDR_20' ) end [2024-12-19 08:06:17] Production.INFO: ProcessCDR(1,14054154,1,1,2) [2024-12-19 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054154', 'tblTempUsageDetail_20' ) start [2024-12-19 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054154', 'tblTempUsageDetail_20' ) end [2024-12-19 08:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:06:20] Production.INFO: ==25370== Releasing lock... [2024-12-19 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:06:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:07:04 [end_date_ymd] => 2024-12-19 08:07:04 [RateCDR] => 1 ) [2024-12-19 08:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:07:04' and `end` < '2024-12-19 08:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:07:17] Production.INFO: count ==164 [2024-12-19 08:07:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:07:04 - End Time 2024-12-19 08:07:04 [2024-12-19 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054159', 'tblTempUsageDetail_20' ) start [2024-12-19 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054159', 'tblTempUsageDetail_20' ) end [2024-12-19 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054159', 'tblTempVendorCDR_20' ) start [2024-12-19 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054159', 'tblTempVendorCDR_20' ) end [2024-12-19 08:07:17] Production.INFO: ProcessCDR(1,14054159,1,1,2) [2024-12-19 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054159', 'tblTempUsageDetail_20' ) start [2024-12-19 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054159', 'tblTempUsageDetail_20' ) end [2024-12-19 08:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:07:21] Production.INFO: ==25444== Releasing lock... [2024-12-19 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:07:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:08:05 [end_date_ymd] => 2024-12-19 08:08:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:08:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:08:17] Production.INFO: count ==174 [2024-12-19 08:08:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:08:05 - End Time 2024-12-19 08:08:05 [2024-12-19 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054164', 'tblTempUsageDetail_20' ) start [2024-12-19 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054164', 'tblTempUsageDetail_20' ) end [2024-12-19 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054164', 'tblTempVendorCDR_20' ) start [2024-12-19 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054164', 'tblTempVendorCDR_20' ) end [2024-12-19 08:08:17] Production.INFO: ProcessCDR(1,14054164,1,1,2) [2024-12-19 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054164', 'tblTempUsageDetail_20' ) start [2024-12-19 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054164', 'tblTempUsageDetail_20' ) end [2024-12-19 08:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:08:21] Production.INFO: ==25518== Releasing lock... [2024-12-19 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:08:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-19 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:09:04 [end_date_ymd] => 2024-12-19 08:09:04 [RateCDR] => 1 ) [2024-12-19 08:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:09:04' and `end` < '2024-12-19 08:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:09:16] Production.INFO: count ==184 [2024-12-19 08:09:16] Production.ERROR: pbx CDR StartTime 2024-12-19 05:09:04 - End Time 2024-12-19 08:09:04 [2024-12-19 08:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054169', 'tblTempUsageDetail_20' ) start [2024-12-19 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054169', 'tblTempUsageDetail_20' ) end [2024-12-19 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054169', 'tblTempVendorCDR_20' ) start [2024-12-19 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054169', 'tblTempVendorCDR_20' ) end [2024-12-19 08:09:16] Production.INFO: ProcessCDR(1,14054169,1,1,2) [2024-12-19 08:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054169', 'tblTempUsageDetail_20' ) start [2024-12-19 08:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054169', 'tblTempUsageDetail_20' ) end [2024-12-19 08:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:09:19] Production.INFO: ==25587== Releasing lock... [2024-12-19 08:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:09:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:10:05 [end_date_ymd] => 2024-12-19 08:10:05 [RateCDR] => 1 ) [2024-12-19 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:10:05' and `end` < '2024-12-19 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:10:17] Production.INFO: count ==205 [2024-12-19 08:10:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:10:05 - End Time 2024-12-19 08:10:05 [2024-12-19 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054175', 'tblTempUsageDetail_20' ) start [2024-12-19 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054175', 'tblTempUsageDetail_20' ) end [2024-12-19 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054175', 'tblTempVendorCDR_20' ) start [2024-12-19 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054175', 'tblTempVendorCDR_20' ) end [2024-12-19 08:10:17] Production.INFO: ProcessCDR(1,14054175,1,1,2) [2024-12-19 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054175', 'tblTempUsageDetail_20' ) start [2024-12-19 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054175', 'tblTempUsageDetail_20' ) end [2024-12-19 08:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:10:22] Production.INFO: ==25660== Releasing lock... [2024-12-19 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:10:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-19 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:11:05 [end_date_ymd] => 2024-12-19 08:11:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:11:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:11:17] Production.INFO: count ==228 [2024-12-19 08:11:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:11:05 - End Time 2024-12-19 08:11:05 [2024-12-19 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054180', 'tblTempUsageDetail_20' ) start [2024-12-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054180', 'tblTempUsageDetail_20' ) end [2024-12-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054180', 'tblTempVendorCDR_20' ) start [2024-12-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054180', 'tblTempVendorCDR_20' ) end [2024-12-19 08:11:17] Production.INFO: ProcessCDR(1,14054180,1,1,2) [2024-12-19 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054180', 'tblTempUsageDetail_20' ) start [2024-12-19 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054180', 'tblTempUsageDetail_20' ) end [2024-12-19 08:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:11:20] Production.INFO: ==25773== Releasing lock... [2024-12-19 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:11:20] Production.INFO: 30 MB #Memory Used# [2024-12-19 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:12:04 [end_date_ymd] => 2024-12-19 08:12:04 [RateCDR] => 1 ) [2024-12-19 08: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` >= '2024-12-19 05:12:04' and `end` < '2024-12-19 08: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 ,'') [2024-12-19 08:12:17] Production.INFO: count ==236 [2024-12-19 08:12:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:12:04 - End Time 2024-12-19 08:12:04 [2024-12-19 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054185', 'tblTempUsageDetail_20' ) start [2024-12-19 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054185', 'tblTempUsageDetail_20' ) end [2024-12-19 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054185', 'tblTempVendorCDR_20' ) start [2024-12-19 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054185', 'tblTempVendorCDR_20' ) end [2024-12-19 08:12:17] Production.INFO: ProcessCDR(1,14054185,1,1,2) [2024-12-19 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054185', 'tblTempUsageDetail_20' ) start [2024-12-19 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054185', 'tblTempUsageDetail_20' ) end [2024-12-19 08:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:12:20] Production.INFO: ==25851== Releasing lock... [2024-12-19 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:12:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-19 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:13:04 [end_date_ymd] => 2024-12-19 08:13:04 [RateCDR] => 1 ) [2024-12-19 08:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:13:04' and `end` < '2024-12-19 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:13:18] Production.INFO: count ==236 [2024-12-19 08:13:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:13:04 - End Time 2024-12-19 08:13:04 [2024-12-19 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054190', 'tblTempUsageDetail_20' ) start [2024-12-19 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054190', 'tblTempUsageDetail_20' ) end [2024-12-19 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054190', 'tblTempVendorCDR_20' ) start [2024-12-19 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054190', 'tblTempVendorCDR_20' ) end [2024-12-19 08:13:18] Production.INFO: ProcessCDR(1,14054190,1,1,2) [2024-12-19 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054190', 'tblTempUsageDetail_20' ) start [2024-12-19 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054190', 'tblTempUsageDetail_20' ) end [2024-12-19 08:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:13:21] Production.INFO: ==25926== Releasing lock... [2024-12-19 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:13:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-19 08:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:14:04 [end_date_ymd] => 2024-12-19 08:14:04 [RateCDR] => 1 ) [2024-12-19 08: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` >= '2024-12-19 05:14:04' and `end` < '2024-12-19 08: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 ,'') [2024-12-19 08:14:17] Production.INFO: count ==243 [2024-12-19 08:14:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:14:04 - End Time 2024-12-19 08:14:04 [2024-12-19 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054195', 'tblTempUsageDetail_20' ) start [2024-12-19 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054195', 'tblTempUsageDetail_20' ) end [2024-12-19 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054195', 'tblTempVendorCDR_20' ) start [2024-12-19 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054195', 'tblTempVendorCDR_20' ) end [2024-12-19 08:14:17] Production.INFO: ProcessCDR(1,14054195,1,1,2) [2024-12-19 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054195', 'tblTempUsageDetail_20' ) start [2024-12-19 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054195', 'tblTempUsageDetail_20' ) end [2024-12-19 08:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:14:20] Production.INFO: ==26016== Releasing lock... [2024-12-19 08:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:14:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-19 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:15:04 [end_date_ymd] => 2024-12-19 08:15:04 [RateCDR] => 1 ) [2024-12-19 08:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:15:04' and `end` < '2024-12-19 08:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:15:16] Production.INFO: count ==254 [2024-12-19 08:15:16] Production.ERROR: pbx CDR StartTime 2024-12-19 05:15:04 - End Time 2024-12-19 08:15:04 [2024-12-19 08:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054200', 'tblTempUsageDetail_20' ) start [2024-12-19 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054200', 'tblTempUsageDetail_20' ) end [2024-12-19 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054200', 'tblTempVendorCDR_20' ) start [2024-12-19 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054200', 'tblTempVendorCDR_20' ) end [2024-12-19 08:15:17] Production.INFO: ProcessCDR(1,14054200,1,1,2) [2024-12-19 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054200', 'tblTempUsageDetail_20' ) start [2024-12-19 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054200', 'tblTempUsageDetail_20' ) end [2024-12-19 08:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:15:20] Production.INFO: ==26119== Releasing lock... [2024-12-19 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:15:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-19 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:16:05 [end_date_ymd] => 2024-12-19 08:16:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:16:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:16:18] Production.INFO: count ==272 [2024-12-19 08:16:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:16:05 - End Time 2024-12-19 08:16:05 [2024-12-19 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054205', 'tblTempUsageDetail_20' ) start [2024-12-19 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054205', 'tblTempUsageDetail_20' ) end [2024-12-19 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054205', 'tblTempVendorCDR_20' ) start [2024-12-19 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054205', 'tblTempVendorCDR_20' ) end [2024-12-19 08:16:18] Production.INFO: ProcessCDR(1,14054205,1,1,2) [2024-12-19 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054205', 'tblTempUsageDetail_20' ) start [2024-12-19 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054205', 'tblTempUsageDetail_20' ) end [2024-12-19 08:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:16:21] Production.INFO: ==26194== Releasing lock... [2024-12-19 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:16:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-19 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:17:04 [end_date_ymd] => 2024-12-19 08:17:04 [RateCDR] => 1 ) [2024-12-19 08:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:17:04' and `end` < '2024-12-19 08:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:17:19] Production.INFO: count ==293 [2024-12-19 08:17:19] Production.ERROR: pbx CDR StartTime 2024-12-19 05:17:04 - End Time 2024-12-19 08:17:04 [2024-12-19 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054210', 'tblTempUsageDetail_20' ) start [2024-12-19 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054210', 'tblTempUsageDetail_20' ) end [2024-12-19 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054210', 'tblTempVendorCDR_20' ) start [2024-12-19 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054210', 'tblTempVendorCDR_20' ) end [2024-12-19 08:17:19] Production.INFO: ProcessCDR(1,14054210,1,1,2) [2024-12-19 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054210', 'tblTempUsageDetail_20' ) start [2024-12-19 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054210', 'tblTempUsageDetail_20' ) end [2024-12-19 08:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:17:23] Production.INFO: ==26274== Releasing lock... [2024-12-19 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:17:23] Production.INFO: 30.75 MB #Memory Used# [2024-12-19 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:18:05 [end_date_ymd] => 2024-12-19 08:18:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:18:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:18:17] Production.INFO: count ==299 [2024-12-19 08:18:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:18:05 - End Time 2024-12-19 08:18:05 [2024-12-19 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054215', 'tblTempUsageDetail_20' ) start [2024-12-19 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054215', 'tblTempUsageDetail_20' ) end [2024-12-19 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054215', 'tblTempVendorCDR_20' ) start [2024-12-19 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054215', 'tblTempVendorCDR_20' ) end [2024-12-19 08:18:17] Production.INFO: ProcessCDR(1,14054215,1,1,2) [2024-12-19 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054215', 'tblTempUsageDetail_20' ) start [2024-12-19 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054215', 'tblTempUsageDetail_20' ) end [2024-12-19 08:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:18:20] Production.INFO: ==26348== Releasing lock... [2024-12-19 08:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:18:20] Production.INFO: 31 MB #Memory Used# [2024-12-19 08:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:19:04 [end_date_ymd] => 2024-12-19 08:19:04 [RateCDR] => 1 ) [2024-12-19 08: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` >= '2024-12-19 05:19:04' and `end` < '2024-12-19 08: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 ,'') [2024-12-19 08:19:17] Production.INFO: count ==306 [2024-12-19 08:19:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:19:04 - End Time 2024-12-19 08:19:04 [2024-12-19 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054220', 'tblTempUsageDetail_20' ) start [2024-12-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054220', 'tblTempUsageDetail_20' ) end [2024-12-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054220', 'tblTempVendorCDR_20' ) start [2024-12-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054220', 'tblTempVendorCDR_20' ) end [2024-12-19 08:19:17] Production.INFO: ProcessCDR(1,14054220,1,1,2) [2024-12-19 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054220', 'tblTempUsageDetail_20' ) start [2024-12-19 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054220', 'tblTempUsageDetail_20' ) end [2024-12-19 08:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:19:22] Production.INFO: ==26422== Releasing lock... [2024-12-19 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:19:22] Production.INFO: 31 MB #Memory Used# [2024-12-19 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:20:05 [end_date_ymd] => 2024-12-19 08:20:05 [RateCDR] => 1 ) [2024-12-19 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:20:05' and `end` < '2024-12-19 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:20:18] Production.INFO: count ==318 [2024-12-19 08:20:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:20:05 - End Time 2024-12-19 08:20:05 [2024-12-19 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054226', 'tblTempUsageDetail_20' ) start [2024-12-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054226', 'tblTempUsageDetail_20' ) end [2024-12-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054226', 'tblTempVendorCDR_20' ) start [2024-12-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054226', 'tblTempVendorCDR_20' ) end [2024-12-19 08:20:18] Production.INFO: ProcessCDR(1,14054226,1,1,2) [2024-12-19 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054226', 'tblTempUsageDetail_20' ) start [2024-12-19 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054226', 'tblTempUsageDetail_20' ) end [2024-12-19 08:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:20:22] Production.INFO: ==26495== Releasing lock... [2024-12-19 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:20:22] Production.INFO: 31 MB #Memory Used# [2024-12-19 08:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:21:04 [end_date_ymd] => 2024-12-19 08:21:04 [RateCDR] => 1 ) [2024-12-19 08: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` >= '2024-12-19 05:21:04' and `end` < '2024-12-19 08: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 ,'') [2024-12-19 08:21:16] Production.INFO: count ==341 [2024-12-19 08:21:16] Production.ERROR: pbx CDR StartTime 2024-12-19 05:21:04 - End Time 2024-12-19 08:21:04 [2024-12-19 08:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054231', 'tblTempUsageDetail_20' ) start [2024-12-19 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054231', 'tblTempUsageDetail_20' ) end [2024-12-19 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054231', 'tblTempVendorCDR_20' ) start [2024-12-19 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054231', 'tblTempVendorCDR_20' ) end [2024-12-19 08:21:16] Production.INFO: ProcessCDR(1,14054231,1,1,2) [2024-12-19 08:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054231', 'tblTempUsageDetail_20' ) start [2024-12-19 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054231', 'tblTempUsageDetail_20' ) end [2024-12-19 08:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:21:21] Production.INFO: ==26570== Releasing lock... [2024-12-19 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:21:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-19 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:22:05 [end_date_ymd] => 2024-12-19 08:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:22:17] Production.INFO: count ==360 [2024-12-19 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:22:05 - End Time 2024-12-19 08:22:05 [2024-12-19 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054236', 'tblTempUsageDetail_20' ) start [2024-12-19 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054236', 'tblTempUsageDetail_20' ) end [2024-12-19 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054236', 'tblTempVendorCDR_20' ) start [2024-12-19 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054236', 'tblTempVendorCDR_20' ) end [2024-12-19 08:22:17] Production.INFO: ProcessCDR(1,14054236,1,1,2) [2024-12-19 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054236', 'tblTempUsageDetail_20' ) start [2024-12-19 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054236', 'tblTempUsageDetail_20' ) end [2024-12-19 08:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:22:21] Production.INFO: ==26643== Releasing lock... [2024-12-19 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:22:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-19 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:23:05 [end_date_ymd] => 2024-12-19 08:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:23:17] Production.INFO: count ==365 [2024-12-19 08:23:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:23:05 - End Time 2024-12-19 08:23:05 [2024-12-19 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054241', 'tblTempUsageDetail_20' ) start [2024-12-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054241', 'tblTempUsageDetail_20' ) end [2024-12-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054241', 'tblTempVendorCDR_20' ) start [2024-12-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054241', 'tblTempVendorCDR_20' ) end [2024-12-19 08:23:17] Production.INFO: ProcessCDR(1,14054241,1,1,2) [2024-12-19 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054241', 'tblTempUsageDetail_20' ) start [2024-12-19 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054241', 'tblTempUsageDetail_20' ) end [2024-12-19 08:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:23:20] Production.INFO: ==26713== Releasing lock... [2024-12-19 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:23:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-19 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:24:05 [end_date_ymd] => 2024-12-19 08:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:24:17] Production.INFO: count ==365 [2024-12-19 08:24:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:24:05 - End Time 2024-12-19 08:24:05 [2024-12-19 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054246', 'tblTempUsageDetail_20' ) start [2024-12-19 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054246', 'tblTempUsageDetail_20' ) end [2024-12-19 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054246', 'tblTempVendorCDR_20' ) start [2024-12-19 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054246', 'tblTempVendorCDR_20' ) end [2024-12-19 08:24:17] Production.INFO: ProcessCDR(1,14054246,1,1,2) [2024-12-19 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054246', 'tblTempUsageDetail_20' ) start [2024-12-19 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054246', 'tblTempUsageDetail_20' ) end [2024-12-19 08:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:24:20] Production.INFO: ==26785== Releasing lock... [2024-12-19 08:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:24:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-19 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:25:05 [end_date_ymd] => 2024-12-19 08:25:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:25:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:25:17] Production.INFO: count ==366 [2024-12-19 08:25:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:25:05 - End Time 2024-12-19 08:25:05 [2024-12-19 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054251', 'tblTempUsageDetail_20' ) start [2024-12-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054251', 'tblTempUsageDetail_20' ) end [2024-12-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054251', 'tblTempVendorCDR_20' ) start [2024-12-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054251', 'tblTempVendorCDR_20' ) end [2024-12-19 08:25:17] Production.INFO: ProcessCDR(1,14054251,1,1,2) [2024-12-19 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054251', 'tblTempUsageDetail_20' ) start [2024-12-19 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054251', 'tblTempUsageDetail_20' ) end [2024-12-19 08:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:25:20] Production.INFO: ==26856== Releasing lock... [2024-12-19 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:25:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-19 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:26:05 [end_date_ymd] => 2024-12-19 08:26:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:26:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:26:17] Production.INFO: count ==373 [2024-12-19 08:26:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:26:05 - End Time 2024-12-19 08:26:05 [2024-12-19 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054256', 'tblTempUsageDetail_20' ) start [2024-12-19 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054256', 'tblTempUsageDetail_20' ) end [2024-12-19 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054256', 'tblTempVendorCDR_20' ) start [2024-12-19 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054256', 'tblTempVendorCDR_20' ) end [2024-12-19 08:26:17] Production.INFO: ProcessCDR(1,14054256,1,1,2) [2024-12-19 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054256', 'tblTempUsageDetail_20' ) start [2024-12-19 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054256', 'tblTempUsageDetail_20' ) end [2024-12-19 08:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:26:22] Production.INFO: ==26932== Releasing lock... [2024-12-19 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:26:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-19 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:27:05 [end_date_ymd] => 2024-12-19 08:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:27:18] Production.INFO: count ==377 [2024-12-19 08:27:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:27:05 - End Time 2024-12-19 08:27:05 [2024-12-19 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054261', 'tblTempUsageDetail_20' ) start [2024-12-19 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054261', 'tblTempUsageDetail_20' ) end [2024-12-19 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054261', 'tblTempVendorCDR_20' ) start [2024-12-19 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054261', 'tblTempVendorCDR_20' ) end [2024-12-19 08:27:18] Production.INFO: ProcessCDR(1,14054261,1,1,2) [2024-12-19 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054261', 'tblTempUsageDetail_20' ) start [2024-12-19 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054261', 'tblTempUsageDetail_20' ) end [2024-12-19 08:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:27:21] Production.INFO: ==27044== Releasing lock... [2024-12-19 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:27:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-19 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:28:05 [end_date_ymd] => 2024-12-19 08:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:28:17] Production.INFO: count ==389 [2024-12-19 08:28:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:28:05 - End Time 2024-12-19 08:28:05 [2024-12-19 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054266', 'tblTempUsageDetail_20' ) start [2024-12-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054266', 'tblTempUsageDetail_20' ) end [2024-12-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054266', 'tblTempVendorCDR_20' ) start [2024-12-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054266', 'tblTempVendorCDR_20' ) end [2024-12-19 08:28:17] Production.INFO: ProcessCDR(1,14054266,1,1,2) [2024-12-19 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054266', 'tblTempUsageDetail_20' ) start [2024-12-19 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054266', 'tblTempUsageDetail_20' ) end [2024-12-19 08:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:28:20] Production.INFO: ==27115== Releasing lock... [2024-12-19 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:28:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-19 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:29:05 [end_date_ymd] => 2024-12-19 08:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:29:18] Production.INFO: count ==397 [2024-12-19 08:29:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:29:05 - End Time 2024-12-19 08:29:05 [2024-12-19 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054271', 'tblTempUsageDetail_20' ) start [2024-12-19 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054271', 'tblTempUsageDetail_20' ) end [2024-12-19 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054271', 'tblTempVendorCDR_20' ) start [2024-12-19 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054271', 'tblTempVendorCDR_20' ) end [2024-12-19 08:29:18] Production.INFO: ProcessCDR(1,14054271,1,1,2) [2024-12-19 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054271', 'tblTempUsageDetail_20' ) start [2024-12-19 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054271', 'tblTempUsageDetail_20' ) end [2024-12-19 08:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:29:23] Production.INFO: ==27190== Releasing lock... [2024-12-19 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:29:23] Production.INFO: 31.75 MB #Memory Used# [2024-12-19 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:30:06 [end_date_ymd] => 2024-12-19 08:30:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:30:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:30:18] Production.INFO: count ==403 [2024-12-19 08:30:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:30:06 - End Time 2024-12-19 08:30:06 [2024-12-19 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054277', 'tblTempUsageDetail_20' ) start [2024-12-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054277', 'tblTempUsageDetail_20' ) end [2024-12-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054277', 'tblTempVendorCDR_20' ) start [2024-12-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054277', 'tblTempVendorCDR_20' ) end [2024-12-19 08:30:18] Production.INFO: ProcessCDR(1,14054277,1,1,2) [2024-12-19 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054277', 'tblTempUsageDetail_20' ) start [2024-12-19 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054277', 'tblTempUsageDetail_20' ) end [2024-12-19 08:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:30:21] Production.INFO: ==27272== Releasing lock... [2024-12-19 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:30:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-19 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:31:04 [end_date_ymd] => 2024-12-19 08:31:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:31:04' and `end` < '2024-12-19 08:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:31:17] Production.INFO: count ==436 [2024-12-19 08:31:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:31:04 - End Time 2024-12-19 08:31:04 [2024-12-19 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054282', 'tblTempUsageDetail_20' ) start [2024-12-19 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054282', 'tblTempUsageDetail_20' ) end [2024-12-19 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054282', 'tblTempVendorCDR_20' ) start [2024-12-19 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054282', 'tblTempVendorCDR_20' ) end [2024-12-19 08:31:17] Production.INFO: ProcessCDR(1,14054282,1,1,2) [2024-12-19 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054282', 'tblTempUsageDetail_20' ) start [2024-12-19 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054282', 'tblTempUsageDetail_20' ) end [2024-12-19 08:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:31:20] Production.INFO: ==27352== Releasing lock... [2024-12-19 08:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:31:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-19 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:32:05 [end_date_ymd] => 2024-12-19 08:32:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:32:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:32:18] Production.INFO: count ==436 [2024-12-19 08:32:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:32:05 - End Time 2024-12-19 08:32:05 [2024-12-19 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054287', 'tblTempUsageDetail_20' ) start [2024-12-19 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054287', 'tblTempUsageDetail_20' ) end [2024-12-19 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054287', 'tblTempVendorCDR_20' ) start [2024-12-19 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054287', 'tblTempVendorCDR_20' ) end [2024-12-19 08:32:18] Production.INFO: ProcessCDR(1,14054287,1,1,2) [2024-12-19 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054287', 'tblTempUsageDetail_20' ) start [2024-12-19 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054287', 'tblTempUsageDetail_20' ) end [2024-12-19 08:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:32:21] Production.INFO: ==27430== Releasing lock... [2024-12-19 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:32:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-19 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:33:04 [end_date_ymd] => 2024-12-19 08:33:04 [RateCDR] => 1 ) [2024-12-19 08:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:33:04' and `end` < '2024-12-19 08:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:33:16] Production.INFO: count ==436 [2024-12-19 08:33:16] Production.ERROR: pbx CDR StartTime 2024-12-19 05:33:04 - End Time 2024-12-19 08:33:04 [2024-12-19 08:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054292', 'tblTempUsageDetail_20' ) start [2024-12-19 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054292', 'tblTempUsageDetail_20' ) end [2024-12-19 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054292', 'tblTempVendorCDR_20' ) start [2024-12-19 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054292', 'tblTempVendorCDR_20' ) end [2024-12-19 08:33:16] Production.INFO: ProcessCDR(1,14054292,1,1,2) [2024-12-19 08:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054292', 'tblTempUsageDetail_20' ) start [2024-12-19 08:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054292', 'tblTempUsageDetail_20' ) end [2024-12-19 08:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:33:19] Production.INFO: ==27510== Releasing lock... [2024-12-19 08:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:33:19] Production.INFO: 31.5 MB #Memory Used# [2024-12-19 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:34:04 [end_date_ymd] => 2024-12-19 08:34:04 [RateCDR] => 1 ) [2024-12-19 08:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:34:04' and `end` < '2024-12-19 08:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:34:16] Production.INFO: count ==441 [2024-12-19 08:34:16] Production.ERROR: pbx CDR StartTime 2024-12-19 05:34:04 - End Time 2024-12-19 08:34:04 [2024-12-19 08:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054296', 'tblTempUsageDetail_20' ) start [2024-12-19 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054296', 'tblTempUsageDetail_20' ) end [2024-12-19 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054296', 'tblTempVendorCDR_20' ) start [2024-12-19 08:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054296', 'tblTempVendorCDR_20' ) end [2024-12-19 08:34:16] Production.INFO: ProcessCDR(1,14054296,1,1,2) [2024-12-19 08:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054296', 'tblTempUsageDetail_20' ) start [2024-12-19 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054296', 'tblTempUsageDetail_20' ) end [2024-12-19 08:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:34:21] Production.INFO: ==27590== Releasing lock... [2024-12-19 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:34:21] Production.INFO: 32 MB #Memory Used# [2024-12-19 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:35:05 [end_date_ymd] => 2024-12-19 08:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:35:17] Production.INFO: count ==442 [2024-12-19 08:35:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:35:05 - End Time 2024-12-19 08:35:05 [2024-12-19 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054302', 'tblTempUsageDetail_20' ) start [2024-12-19 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054302', 'tblTempUsageDetail_20' ) end [2024-12-19 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054302', 'tblTempVendorCDR_20' ) start [2024-12-19 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054302', 'tblTempVendorCDR_20' ) end [2024-12-19 08:35:17] Production.INFO: ProcessCDR(1,14054302,1,1,2) [2024-12-19 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054302', 'tblTempUsageDetail_20' ) start [2024-12-19 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054302', 'tblTempUsageDetail_20' ) end [2024-12-19 08:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:35:21] Production.INFO: ==27675== Releasing lock... [2024-12-19 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:35:21] Production.INFO: 32 MB #Memory Used# [2024-12-19 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:36:05 [end_date_ymd] => 2024-12-19 08:36:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:36:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:36:17] Production.INFO: count ==451 [2024-12-19 08:36:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:36:05 - End Time 2024-12-19 08:36:05 [2024-12-19 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054307', 'tblTempUsageDetail_20' ) start [2024-12-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054307', 'tblTempUsageDetail_20' ) end [2024-12-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054307', 'tblTempVendorCDR_20' ) start [2024-12-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054307', 'tblTempVendorCDR_20' ) end [2024-12-19 08:36:17] Production.INFO: ProcessCDR(1,14054307,1,1,2) [2024-12-19 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054307', 'tblTempUsageDetail_20' ) start [2024-12-19 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054307', 'tblTempUsageDetail_20' ) end [2024-12-19 08:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:36:22] Production.INFO: ==27761== Releasing lock... [2024-12-19 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:36:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-19 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:37:04 [end_date_ymd] => 2024-12-19 08:37:04 [RateCDR] => 1 ) [2024-12-19 08: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` >= '2024-12-19 05:37:04' and `end` < '2024-12-19 08: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 ,'') [2024-12-19 08:37:16] Production.INFO: count ==492 [2024-12-19 08:37:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:37:04 - End Time 2024-12-19 08:37:04 [2024-12-19 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054312', 'tblTempUsageDetail_20' ) start [2024-12-19 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054312', 'tblTempUsageDetail_20' ) end [2024-12-19 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054312', 'tblTempVendorCDR_20' ) start [2024-12-19 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054312', 'tblTempVendorCDR_20' ) end [2024-12-19 08:37:17] Production.INFO: ProcessCDR(1,14054312,1,1,2) [2024-12-19 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054312', 'tblTempUsageDetail_20' ) start [2024-12-19 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054312', 'tblTempUsageDetail_20' ) end [2024-12-19 08:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:37:21] Production.INFO: ==27843== Releasing lock... [2024-12-19 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:37:21] Production.INFO: 32 MB #Memory Used# [2024-12-19 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:38:05 [end_date_ymd] => 2024-12-19 08:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:38:18] Production.INFO: count ==497 [2024-12-19 08:38:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:38:05 - End Time 2024-12-19 08:38:05 [2024-12-19 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054317', 'tblTempUsageDetail_20' ) start [2024-12-19 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054317', 'tblTempUsageDetail_20' ) end [2024-12-19 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054317', 'tblTempVendorCDR_20' ) start [2024-12-19 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054317', 'tblTempVendorCDR_20' ) end [2024-12-19 08:38:18] Production.INFO: ProcessCDR(1,14054317,1,1,2) [2024-12-19 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054317', 'tblTempUsageDetail_20' ) start [2024-12-19 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054317', 'tblTempUsageDetail_20' ) end [2024-12-19 08:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:38:21] Production.INFO: ==27920== Releasing lock... [2024-12-19 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:38:21] Production.INFO: 32 MB #Memory Used# [2024-12-19 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:39:05 [end_date_ymd] => 2024-12-19 08:39:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:39:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:39:17] Production.INFO: count ==511 [2024-12-19 08:39:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:39:05 - End Time 2024-12-19 08:39:05 [2024-12-19 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054322', 'tblTempUsageDetail_20' ) start [2024-12-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054322', 'tblTempUsageDetail_20' ) end [2024-12-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054322', 'tblTempVendorCDR_20' ) start [2024-12-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054322', 'tblTempVendorCDR_20' ) end [2024-12-19 08:39:17] Production.INFO: ProcessCDR(1,14054322,1,1,2) [2024-12-19 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054322', 'tblTempUsageDetail_20' ) start [2024-12-19 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054322', 'tblTempUsageDetail_20' ) end [2024-12-19 08:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:39:21] Production.INFO: ==28009== Releasing lock... [2024-12-19 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:39:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-19 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:40:06 [end_date_ymd] => 2024-12-19 08:40:06 [RateCDR] => 1 ) [2024-12-19 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:40:06' and `end` < '2024-12-19 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:40:18] Production.INFO: count ==525 [2024-12-19 08:40:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:40:06 - End Time 2024-12-19 08:40:06 [2024-12-19 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054327', 'tblTempUsageDetail_20' ) start [2024-12-19 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054327', 'tblTempUsageDetail_20' ) end [2024-12-19 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054327', 'tblTempVendorCDR_20' ) start [2024-12-19 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054327', 'tblTempVendorCDR_20' ) end [2024-12-19 08:40:18] Production.INFO: ProcessCDR(1,14054327,1,1,2) [2024-12-19 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054327', 'tblTempUsageDetail_20' ) start [2024-12-19 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054327', 'tblTempUsageDetail_20' ) end [2024-12-19 08:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:40:23] Production.INFO: ==28094== Releasing lock... [2024-12-19 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:40:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:41:05 [end_date_ymd] => 2024-12-19 08:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:41:19] Production.INFO: count ==596 [2024-12-19 08:41:19] Production.ERROR: pbx CDR StartTime 2024-12-19 05:41:05 - End Time 2024-12-19 08:41:05 [2024-12-19 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054333', 'tblTempUsageDetail_20' ) start [2024-12-19 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054333', 'tblTempUsageDetail_20' ) end [2024-12-19 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054333', 'tblTempVendorCDR_20' ) start [2024-12-19 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054333', 'tblTempVendorCDR_20' ) end [2024-12-19 08:41:19] Production.INFO: ProcessCDR(1,14054333,1,1,2) [2024-12-19 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054333', 'tblTempUsageDetail_20' ) start [2024-12-19 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054333', 'tblTempUsageDetail_20' ) end [2024-12-19 08:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:41:24] Production.INFO: ==28182== Releasing lock... [2024-12-19 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:41:24] Production.INFO: 33 MB #Memory Used# [2024-12-19 08:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:42:04 [end_date_ymd] => 2024-12-19 08:42:04 [RateCDR] => 1 ) [2024-12-19 08: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` >= '2024-12-19 05:42:04' and `end` < '2024-12-19 08: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 ,'') [2024-12-19 08:42:17] Production.INFO: count ==603 [2024-12-19 08:42:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:42:04 - End Time 2024-12-19 08:42:04 [2024-12-19 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054338', 'tblTempUsageDetail_20' ) start [2024-12-19 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054338', 'tblTempUsageDetail_20' ) end [2024-12-19 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054338', 'tblTempVendorCDR_20' ) start [2024-12-19 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054338', 'tblTempVendorCDR_20' ) end [2024-12-19 08:42:17] Production.INFO: ProcessCDR(1,14054338,1,1,2) [2024-12-19 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054338', 'tblTempUsageDetail_20' ) start [2024-12-19 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054338', 'tblTempUsageDetail_20' ) end [2024-12-19 08:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:42:22] Production.INFO: ==28267== Releasing lock... [2024-12-19 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:42:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-19 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:43:05 [end_date_ymd] => 2024-12-19 08:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:43:17] Production.INFO: count ==609 [2024-12-19 08:43:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:43:05 - End Time 2024-12-19 08:43:05 [2024-12-19 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054343', 'tblTempUsageDetail_20' ) start [2024-12-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054343', 'tblTempUsageDetail_20' ) end [2024-12-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054343', 'tblTempVendorCDR_20' ) start [2024-12-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054343', 'tblTempVendorCDR_20' ) end [2024-12-19 08:43:17] Production.INFO: ProcessCDR(1,14054343,1,1,2) [2024-12-19 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054343', 'tblTempUsageDetail_20' ) start [2024-12-19 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054343', 'tblTempUsageDetail_20' ) end [2024-12-19 08:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:43:21] Production.INFO: ==28389== Releasing lock... [2024-12-19 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:43:21] Production.INFO: 33 MB #Memory Used# [2024-12-19 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:44:05 [end_date_ymd] => 2024-12-19 08:44:05 [RateCDR] => 1 ) [2024-12-19 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:44:05' and `end` < '2024-12-19 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:44:18] Production.INFO: count ==612 [2024-12-19 08:44:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:44:05 - End Time 2024-12-19 08:44:05 [2024-12-19 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054348', 'tblTempUsageDetail_20' ) start [2024-12-19 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054348', 'tblTempUsageDetail_20' ) end [2024-12-19 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054348', 'tblTempVendorCDR_20' ) start [2024-12-19 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054348', 'tblTempVendorCDR_20' ) end [2024-12-19 08:44:18] Production.INFO: ProcessCDR(1,14054348,1,1,2) [2024-12-19 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054348', 'tblTempUsageDetail_20' ) start [2024-12-19 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054348', 'tblTempUsageDetail_20' ) end [2024-12-19 08:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:44:21] Production.INFO: ==28475== Releasing lock... [2024-12-19 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:44:21] Production.INFO: 33 MB #Memory Used# [2024-12-19 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:45:04 [end_date_ymd] => 2024-12-19 08:45:04 [RateCDR] => 1 ) [2024-12-19 08: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` >= '2024-12-19 05:45:04' and `end` < '2024-12-19 08: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 ,'') [2024-12-19 08:45:16] Production.INFO: count ==622 [2024-12-19 08:45:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:45:04 - End Time 2024-12-19 08:45:04 [2024-12-19 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054353', 'tblTempUsageDetail_20' ) start [2024-12-19 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054353', 'tblTempUsageDetail_20' ) end [2024-12-19 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054353', 'tblTempVendorCDR_20' ) start [2024-12-19 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054353', 'tblTempVendorCDR_20' ) end [2024-12-19 08:45:17] Production.INFO: ProcessCDR(1,14054353,1,1,2) [2024-12-19 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054353', 'tblTempUsageDetail_20' ) start [2024-12-19 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054353', 'tblTempUsageDetail_20' ) end [2024-12-19 08:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:45:20] Production.INFO: ==28549== Releasing lock... [2024-12-19 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:45:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-19 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:46:05 [end_date_ymd] => 2024-12-19 08:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:46:17] Production.INFO: count ==628 [2024-12-19 08:46:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:46:05 - End Time 2024-12-19 08:46:05 [2024-12-19 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054358', 'tblTempUsageDetail_20' ) start [2024-12-19 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054358', 'tblTempUsageDetail_20' ) end [2024-12-19 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054358', 'tblTempVendorCDR_20' ) start [2024-12-19 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054358', 'tblTempVendorCDR_20' ) end [2024-12-19 08:46:17] Production.INFO: ProcessCDR(1,14054358,1,1,2) [2024-12-19 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054358', 'tblTempUsageDetail_20' ) start [2024-12-19 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054358', 'tblTempUsageDetail_20' ) end [2024-12-19 08:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:46:22] Production.INFO: ==28635== Releasing lock... [2024-12-19 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:46:22] Production.INFO: 33 MB #Memory Used# [2024-12-19 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:47:04 [end_date_ymd] => 2024-12-19 08:47:04 [RateCDR] => 1 ) [2024-12-19 08:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:47:04' and `end` < '2024-12-19 08:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:47:16] Production.INFO: count ==640 [2024-12-19 08:47:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:47:04 - End Time 2024-12-19 08:47:04 [2024-12-19 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054363', 'tblTempUsageDetail_20' ) start [2024-12-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054363', 'tblTempUsageDetail_20' ) end [2024-12-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054363', 'tblTempVendorCDR_20' ) start [2024-12-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054363', 'tblTempVendorCDR_20' ) end [2024-12-19 08:47:17] Production.INFO: ProcessCDR(1,14054363,1,1,2) [2024-12-19 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054363', 'tblTempUsageDetail_20' ) start [2024-12-19 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054363', 'tblTempUsageDetail_20' ) end [2024-12-19 08:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:47:21] Production.INFO: ==28713== Releasing lock... [2024-12-19 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:47:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:48:04 [end_date_ymd] => 2024-12-19 08:48:04 [RateCDR] => 1 ) [2024-12-19 08: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` >= '2024-12-19 05:48:04' and `end` < '2024-12-19 08: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 ,'') [2024-12-19 08:48:16] Production.INFO: count ==642 [2024-12-19 08:48:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:48:04 - End Time 2024-12-19 08:48:04 [2024-12-19 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054368', 'tblTempUsageDetail_20' ) start [2024-12-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054368', 'tblTempUsageDetail_20' ) end [2024-12-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054368', 'tblTempVendorCDR_20' ) start [2024-12-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054368', 'tblTempVendorCDR_20' ) end [2024-12-19 08:48:17] Production.INFO: ProcessCDR(1,14054368,1,1,2) [2024-12-19 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054368', 'tblTempUsageDetail_20' ) start [2024-12-19 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054368', 'tblTempUsageDetail_20' ) end [2024-12-19 08:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:48:21] Production.INFO: ==28792== Releasing lock... [2024-12-19 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:48:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-19 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:49:05 [end_date_ymd] => 2024-12-19 08:49:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:49:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:49:18] Production.INFO: count ==644 [2024-12-19 08:49:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:49:05 - End Time 2024-12-19 08:49:05 [2024-12-19 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054373', 'tblTempUsageDetail_20' ) start [2024-12-19 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054373', 'tblTempUsageDetail_20' ) end [2024-12-19 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054373', 'tblTempVendorCDR_20' ) start [2024-12-19 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054373', 'tblTempVendorCDR_20' ) end [2024-12-19 08:49:18] Production.INFO: ProcessCDR(1,14054373,1,1,2) [2024-12-19 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054373', 'tblTempUsageDetail_20' ) start [2024-12-19 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054373', 'tblTempUsageDetail_20' ) end [2024-12-19 08:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:49:21] Production.INFO: ==28877== Releasing lock... [2024-12-19 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:49:21] Production.INFO: 33 MB #Memory Used# [2024-12-19 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:50:05 [end_date_ymd] => 2024-12-19 08:50:05 [RateCDR] => 1 ) [2024-12-19 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:50:05' and `end` < '2024-12-19 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:50:17] Production.INFO: count ==649 [2024-12-19 08:50:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:50:05 - End Time 2024-12-19 08:50:05 [2024-12-19 08:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054379', 'tblTempUsageDetail_20' ) start [2024-12-19 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054379', 'tblTempUsageDetail_20' ) end [2024-12-19 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054379', 'tblTempVendorCDR_20' ) start [2024-12-19 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054379', 'tblTempVendorCDR_20' ) end [2024-12-19 08:50:18] Production.INFO: ProcessCDR(1,14054379,1,1,2) [2024-12-19 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054379', 'tblTempUsageDetail_20' ) start [2024-12-19 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054379', 'tblTempUsageDetail_20' ) end [2024-12-19 08:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:50:21] Production.INFO: ==28966== Releasing lock... [2024-12-19 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:50:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-19 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:51:05 [end_date_ymd] => 2024-12-19 08:51:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:51:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:51:17] Production.INFO: count ==684 [2024-12-19 08:51:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:51:05 - End Time 2024-12-19 08:51:05 [2024-12-19 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054384', 'tblTempUsageDetail_20' ) start [2024-12-19 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054384', 'tblTempUsageDetail_20' ) end [2024-12-19 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054384', 'tblTempVendorCDR_20' ) start [2024-12-19 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054384', 'tblTempVendorCDR_20' ) end [2024-12-19 08:51:17] Production.INFO: ProcessCDR(1,14054384,1,1,2) [2024-12-19 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054384', 'tblTempUsageDetail_20' ) start [2024-12-19 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054384', 'tblTempUsageDetail_20' ) end [2024-12-19 08:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:51:22] Production.INFO: ==29051== Releasing lock... [2024-12-19 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:51:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 08:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:52:04 [end_date_ymd] => 2024-12-19 08:52:04 [RateCDR] => 1 ) [2024-12-19 08: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` >= '2024-12-19 05:52:04' and `end` < '2024-12-19 08: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 ,'') [2024-12-19 08:52:18] Production.INFO: count ==687 [2024-12-19 08:52:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:52:04 - End Time 2024-12-19 08:52:04 [2024-12-19 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054389', 'tblTempUsageDetail_20' ) start [2024-12-19 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054389', 'tblTempUsageDetail_20' ) end [2024-12-19 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054389', 'tblTempVendorCDR_20' ) start [2024-12-19 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054389', 'tblTempVendorCDR_20' ) end [2024-12-19 08:52:18] Production.INFO: ProcessCDR(1,14054389,1,1,2) [2024-12-19 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054389', 'tblTempUsageDetail_20' ) start [2024-12-19 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054389', 'tblTempUsageDetail_20' ) end [2024-12-19 08:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:52:21] Production.INFO: ==29133== Releasing lock... [2024-12-19 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:52:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:53:05 [end_date_ymd] => 2024-12-19 08:53:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:53:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:53:17] Production.INFO: count ==704 [2024-12-19 08:53:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:53:05 - End Time 2024-12-19 08:53:05 [2024-12-19 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054394', 'tblTempUsageDetail_20' ) start [2024-12-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054394', 'tblTempUsageDetail_20' ) end [2024-12-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054394', 'tblTempVendorCDR_20' ) start [2024-12-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054394', 'tblTempVendorCDR_20' ) end [2024-12-19 08:53:17] Production.INFO: ProcessCDR(1,14054394,1,1,2) [2024-12-19 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054394', 'tblTempUsageDetail_20' ) start [2024-12-19 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054394', 'tblTempUsageDetail_20' ) end [2024-12-19 08:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:53:22] Production.INFO: ==29209== Releasing lock... [2024-12-19 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:53:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-19 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:54:04 [end_date_ymd] => 2024-12-19 08:54:04 [RateCDR] => 1 ) [2024-12-19 08:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:54:04' and `end` < '2024-12-19 08:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:54:17] Production.INFO: count ==725 [2024-12-19 08:54:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:54:04 - End Time 2024-12-19 08:54:04 [2024-12-19 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054399', 'tblTempUsageDetail_20' ) start [2024-12-19 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054399', 'tblTempUsageDetail_20' ) end [2024-12-19 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054399', 'tblTempVendorCDR_20' ) start [2024-12-19 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054399', 'tblTempVendorCDR_20' ) end [2024-12-19 08:54:17] Production.INFO: ProcessCDR(1,14054399,1,1,2) [2024-12-19 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054399', 'tblTempUsageDetail_20' ) start [2024-12-19 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054399', 'tblTempUsageDetail_20' ) end [2024-12-19 08:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:54:22] Production.INFO: ==29292== Releasing lock... [2024-12-19 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:54:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-19 08:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:55:04 [end_date_ymd] => 2024-12-19 08:55:04 [RateCDR] => 1 ) [2024-12-19 08:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:55:04' and `end` < '2024-12-19 08:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:55:16] Production.INFO: count ==741 [2024-12-19 08:55:16] Production.ERROR: pbx CDR StartTime 2024-12-19 05:55:04 - End Time 2024-12-19 08:55:04 [2024-12-19 08:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054404', 'tblTempUsageDetail_20' ) start [2024-12-19 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054404', 'tblTempUsageDetail_20' ) end [2024-12-19 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054404', 'tblTempVendorCDR_20' ) start [2024-12-19 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054404', 'tblTempVendorCDR_20' ) end [2024-12-19 08:55:17] Production.INFO: ProcessCDR(1,14054404,1,1,2) [2024-12-19 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054404', 'tblTempUsageDetail_20' ) start [2024-12-19 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054404', 'tblTempUsageDetail_20' ) end [2024-12-19 08:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:55:21] Production.INFO: ==29371== Releasing lock... [2024-12-19 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:55:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 08:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:56:04 [end_date_ymd] => 2024-12-19 08:56:04 [RateCDR] => 1 ) [2024-12-19 08:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 05:56:04' and `end` < '2024-12-19 08:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 08:56:17] Production.INFO: count ==741 [2024-12-19 08:56:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:56:04 - End Time 2024-12-19 08:56:04 [2024-12-19 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054409', 'tblTempUsageDetail_20' ) start [2024-12-19 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054409', 'tblTempUsageDetail_20' ) end [2024-12-19 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054409', 'tblTempVendorCDR_20' ) start [2024-12-19 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054409', 'tblTempVendorCDR_20' ) end [2024-12-19 08:56:17] Production.INFO: ProcessCDR(1,14054409,1,1,2) [2024-12-19 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054409', 'tblTempUsageDetail_20' ) start [2024-12-19 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054409', 'tblTempUsageDetail_20' ) end [2024-12-19 08:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:56:20] Production.INFO: ==29452== Releasing lock... [2024-12-19 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:56:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:57:05 [end_date_ymd] => 2024-12-19 08:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:57:17] Production.INFO: count ==744 [2024-12-19 08:57:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:57:05 - End Time 2024-12-19 08:57:05 [2024-12-19 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054414', 'tblTempUsageDetail_20' ) start [2024-12-19 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054414', 'tblTempUsageDetail_20' ) end [2024-12-19 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054414', 'tblTempVendorCDR_20' ) start [2024-12-19 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054414', 'tblTempVendorCDR_20' ) end [2024-12-19 08:57:17] Production.INFO: ProcessCDR(1,14054414,1,1,2) [2024-12-19 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054414', 'tblTempUsageDetail_20' ) start [2024-12-19 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054414', 'tblTempUsageDetail_20' ) end [2024-12-19 08:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:57:22] Production.INFO: ==29542== Releasing lock... [2024-12-19 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:57:22] Production.INFO: 34 MB #Memory Used# [2024-12-19 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:58:04 [end_date_ymd] => 2024-12-19 08:58:04 [RateCDR] => 1 ) [2024-12-19 08: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` >= '2024-12-19 05:58:04' and `end` < '2024-12-19 08: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 ,'') [2024-12-19 08:58:17] Production.INFO: count ==752 [2024-12-19 08:58:17] Production.ERROR: pbx CDR StartTime 2024-12-19 05:58:04 - End Time 2024-12-19 08:58:04 [2024-12-19 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054419', 'tblTempUsageDetail_20' ) start [2024-12-19 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054419', 'tblTempUsageDetail_20' ) end [2024-12-19 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054419', 'tblTempVendorCDR_20' ) start [2024-12-19 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054419', 'tblTempVendorCDR_20' ) end [2024-12-19 08:58:17] Production.INFO: ProcessCDR(1,14054419,1,1,2) [2024-12-19 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054419', 'tblTempUsageDetail_20' ) start [2024-12-19 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054419', 'tblTempUsageDetail_20' ) end [2024-12-19 08:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:58:21] Production.INFO: ==29659== Releasing lock... [2024-12-19 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:58:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-19 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 05:59:05 [end_date_ymd] => 2024-12-19 08:59:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 05:59:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 08:59:18] Production.INFO: count ==752 [2024-12-19 08:59:18] Production.ERROR: pbx CDR StartTime 2024-12-19 05:59:05 - End Time 2024-12-19 08:59:05 [2024-12-19 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054424', 'tblTempUsageDetail_20' ) start [2024-12-19 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054424', 'tblTempUsageDetail_20' ) end [2024-12-19 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054424', 'tblTempVendorCDR_20' ) start [2024-12-19 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054424', 'tblTempVendorCDR_20' ) end [2024-12-19 08:59:18] Production.INFO: ProcessCDR(1,14054424,1,1,2) [2024-12-19 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054424', 'tblTempUsageDetail_20' ) start [2024-12-19 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054424', 'tblTempUsageDetail_20' ) end [2024-12-19 08:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 08:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 08:59:21] Production.INFO: ==29745== Releasing lock... [2024-12-19 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 08:59:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-19 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:00:05 [end_date_ymd] => 2024-12-19 09:00:05 [RateCDR] => 1 ) [2024-12-19 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:00:05' and `end` < '2024-12-19 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:00:17] Production.INFO: count ==756 [2024-12-19 09:00:17] Production.ERROR: pbx CDR StartTime 2024-12-19 06:00:05 - End Time 2024-12-19 09:00:05 [2024-12-19 09:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054429', 'tblTempUsageDetail_20' ) start [2024-12-19 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054429', 'tblTempUsageDetail_20' ) end [2024-12-19 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054429', 'tblTempVendorCDR_20' ) start [2024-12-19 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054429', 'tblTempVendorCDR_20' ) end [2024-12-19 09:00:17] Production.INFO: ProcessCDR(1,14054429,1,1,2) [2024-12-19 09:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054429', 'tblTempUsageDetail_20' ) start [2024-12-19 09:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054429', 'tblTempUsageDetail_20' ) end [2024-12-19 09:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:00:20] Production.INFO: ==29823== Releasing lock... [2024-12-19 09:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:00:20] Production.INFO: 34 MB #Memory Used# [2024-12-19 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:01:05 [end_date_ymd] => 2024-12-19 09:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:01:18] Production.INFO: count ==800 [2024-12-19 09:01:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:01:05 - End Time 2024-12-19 09:01:05 [2024-12-19 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054435', 'tblTempUsageDetail_20' ) start [2024-12-19 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054435', 'tblTempUsageDetail_20' ) end [2024-12-19 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054435', 'tblTempVendorCDR_20' ) start [2024-12-19 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054435', 'tblTempVendorCDR_20' ) end [2024-12-19 09:01:18] Production.INFO: ProcessCDR(1,14054435,1,1,2) [2024-12-19 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054435', 'tblTempUsageDetail_20' ) start [2024-12-19 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054435', 'tblTempUsageDetail_20' ) end [2024-12-19 09:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:01:21] Production.INFO: ==29911== Releasing lock... [2024-12-19 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:01:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-19 09:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:02:04 [end_date_ymd] => 2024-12-19 09:02:04 [RateCDR] => 1 ) [2024-12-19 09:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:02:04' and `end` < '2024-12-19 09:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:02:17] Production.INFO: count ==803 [2024-12-19 09:02:17] Production.ERROR: pbx CDR StartTime 2024-12-19 06:02:04 - End Time 2024-12-19 09:02:04 [2024-12-19 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054440', 'tblTempUsageDetail_20' ) start [2024-12-19 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054440', 'tblTempUsageDetail_20' ) end [2024-12-19 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054440', 'tblTempVendorCDR_20' ) start [2024-12-19 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054440', 'tblTempVendorCDR_20' ) end [2024-12-19 09:02:17] Production.INFO: ProcessCDR(1,14054440,1,1,2) [2024-12-19 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054440', 'tblTempUsageDetail_20' ) start [2024-12-19 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054440', 'tblTempUsageDetail_20' ) end [2024-12-19 09:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:02:20] Production.INFO: ==29988== Releasing lock... [2024-12-19 09:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:02:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-19 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:03:05 [end_date_ymd] => 2024-12-19 09:03:05 [RateCDR] => 1 ) [2024-12-19 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:03:05' and `end` < '2024-12-19 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:03:18] Production.INFO: count ==825 [2024-12-19 09:03:19] Production.ERROR: pbx CDR StartTime 2024-12-19 06:03:05 - End Time 2024-12-19 09:03:05 [2024-12-19 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054445', 'tblTempUsageDetail_20' ) start [2024-12-19 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054445', 'tblTempUsageDetail_20' ) end [2024-12-19 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054445', 'tblTempVendorCDR_20' ) start [2024-12-19 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054445', 'tblTempVendorCDR_20' ) end [2024-12-19 09:03:19] Production.INFO: ProcessCDR(1,14054445,1,1,2) [2024-12-19 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054445', 'tblTempUsageDetail_20' ) start [2024-12-19 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054445', 'tblTempUsageDetail_20' ) end [2024-12-19 09:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:03:23] Production.INFO: ==30062== Releasing lock... [2024-12-19 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:03:23] Production.INFO: 34 MB #Memory Used# [2024-12-19 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:04:05 [end_date_ymd] => 2024-12-19 09:04:05 [RateCDR] => 1 ) [2024-12-19 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:04:05' and `end` < '2024-12-19 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:04:19] Production.INFO: count ==834 [2024-12-19 09:04:19] Production.ERROR: pbx CDR StartTime 2024-12-19 06:04:05 - End Time 2024-12-19 09:04:05 [2024-12-19 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054450', 'tblTempUsageDetail_20' ) start [2024-12-19 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054450', 'tblTempUsageDetail_20' ) end [2024-12-19 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054450', 'tblTempVendorCDR_20' ) start [2024-12-19 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054450', 'tblTempVendorCDR_20' ) end [2024-12-19 09:04:19] Production.INFO: ProcessCDR(1,14054450,1,1,2) [2024-12-19 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054450', 'tblTempUsageDetail_20' ) start [2024-12-19 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054450', 'tblTempUsageDetail_20' ) end [2024-12-19 09:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:04:23] Production.INFO: ==30142== Releasing lock... [2024-12-19 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:04:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-19 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:05:05 [end_date_ymd] => 2024-12-19 09:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:05:17] Production.INFO: count ==843 [2024-12-19 09:05:17] Production.ERROR: pbx CDR StartTime 2024-12-19 06:05:05 - End Time 2024-12-19 09:05:05 [2024-12-19 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054455', 'tblTempUsageDetail_20' ) start [2024-12-19 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054455', 'tblTempUsageDetail_20' ) end [2024-12-19 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054455', 'tblTempVendorCDR_20' ) start [2024-12-19 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054455', 'tblTempVendorCDR_20' ) end [2024-12-19 09:05:17] Production.INFO: ProcessCDR(1,14054455,1,1,2) [2024-12-19 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054455', 'tblTempUsageDetail_20' ) start [2024-12-19 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054455', 'tblTempUsageDetail_20' ) end [2024-12-19 09:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:05:20] Production.INFO: ==30225== Releasing lock... [2024-12-19 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:05:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-19 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:06:05 [end_date_ymd] => 2024-12-19 09:06:05 [RateCDR] => 1 ) [2024-12-19 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:06:05' and `end` < '2024-12-19 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:06:17] Production.INFO: count ==862 [2024-12-19 09:06:17] Production.ERROR: pbx CDR StartTime 2024-12-19 06:06:05 - End Time 2024-12-19 09:06:05 [2024-12-19 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054460', 'tblTempUsageDetail_20' ) start [2024-12-19 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054460', 'tblTempUsageDetail_20' ) end [2024-12-19 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054460', 'tblTempVendorCDR_20' ) start [2024-12-19 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054460', 'tblTempVendorCDR_20' ) end [2024-12-19 09:06:17] Production.INFO: ProcessCDR(1,14054460,1,1,2) [2024-12-19 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054460', 'tblTempUsageDetail_20' ) start [2024-12-19 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054460', 'tblTempUsageDetail_20' ) end [2024-12-19 09:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:06:22] Production.INFO: ==30300== Releasing lock... [2024-12-19 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:06:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-19 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:07:04 [end_date_ymd] => 2024-12-19 09:07:04 [RateCDR] => 1 ) [2024-12-19 09:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:07:04' and `end` < '2024-12-19 09:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:07:17] Production.INFO: count ==870 [2024-12-19 09:07:17] Production.ERROR: pbx CDR StartTime 2024-12-19 06:07:04 - End Time 2024-12-19 09:07:04 [2024-12-19 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054465', 'tblTempUsageDetail_20' ) start [2024-12-19 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054465', 'tblTempUsageDetail_20' ) end [2024-12-19 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054465', 'tblTempVendorCDR_20' ) start [2024-12-19 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054465', 'tblTempVendorCDR_20' ) end [2024-12-19 09:07:17] Production.INFO: ProcessCDR(1,14054465,1,1,2) [2024-12-19 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054465', 'tblTempUsageDetail_20' ) start [2024-12-19 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054465', 'tblTempUsageDetail_20' ) end [2024-12-19 09:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:07:20] Production.INFO: ==30376== Releasing lock... [2024-12-19 09:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:07:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-19 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:08:05 [end_date_ymd] => 2024-12-19 09:08:05 [RateCDR] => 1 ) [2024-12-19 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:08:05' and `end` < '2024-12-19 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:08:18] Production.INFO: count ==877 [2024-12-19 09:08:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:08:05 - End Time 2024-12-19 09:08:05 [2024-12-19 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054470', 'tblTempUsageDetail_20' ) start [2024-12-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054470', 'tblTempUsageDetail_20' ) end [2024-12-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054470', 'tblTempVendorCDR_20' ) start [2024-12-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054470', 'tblTempVendorCDR_20' ) end [2024-12-19 09:08:18] Production.INFO: ProcessCDR(1,14054470,1,1,2) [2024-12-19 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054470', 'tblTempUsageDetail_20' ) start [2024-12-19 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054470', 'tblTempUsageDetail_20' ) end [2024-12-19 09:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:08:23] Production.INFO: ==30452== Releasing lock... [2024-12-19 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:08:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-19 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:09:04 [end_date_ymd] => 2024-12-19 09:09:04 [RateCDR] => 1 ) [2024-12-19 09:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:09:04' and `end` < '2024-12-19 09:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:09:16] Production.INFO: count ==902 [2024-12-19 09:09:16] Production.ERROR: pbx CDR StartTime 2024-12-19 06:09:04 - End Time 2024-12-19 09:09:04 [2024-12-19 09:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054475', 'tblTempUsageDetail_20' ) start [2024-12-19 09:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054475', 'tblTempUsageDetail_20' ) end [2024-12-19 09:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054475', 'tblTempVendorCDR_20' ) start [2024-12-19 09:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054475', 'tblTempVendorCDR_20' ) end [2024-12-19 09:09:16] Production.INFO: ProcessCDR(1,14054475,1,1,2) [2024-12-19 09:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054475', 'tblTempUsageDetail_20' ) start [2024-12-19 09:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054475', 'tblTempUsageDetail_20' ) end [2024-12-19 09:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:09:20] Production.INFO: ==30526== Releasing lock... [2024-12-19 09:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:09:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-19 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:10:06 [end_date_ymd] => 2024-12-19 09:10:06 [RateCDR] => 1 ) [2024-12-19 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:10:06' and `end` < '2024-12-19 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:10:18] Production.INFO: count ==919 [2024-12-19 09:10:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:10:06 - End Time 2024-12-19 09:10:06 [2024-12-19 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054481', 'tblTempUsageDetail_20' ) start [2024-12-19 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054481', 'tblTempUsageDetail_20' ) end [2024-12-19 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054481', 'tblTempVendorCDR_20' ) start [2024-12-19 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054481', 'tblTempVendorCDR_20' ) end [2024-12-19 09:10:18] Production.INFO: ProcessCDR(1,14054481,1,1,2) [2024-12-19 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054481', 'tblTempUsageDetail_20' ) start [2024-12-19 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054481', 'tblTempUsageDetail_20' ) end [2024-12-19 09:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:10:23] Production.INFO: ==30601== Releasing lock... [2024-12-19 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:10:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-19 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:11:04 [end_date_ymd] => 2024-12-19 09:11:04 [RateCDR] => 1 ) [2024-12-19 09:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:11:04' and `end` < '2024-12-19 09:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:11:17] Production.INFO: count ==997 [2024-12-19 09:11:17] Production.ERROR: pbx CDR StartTime 2024-12-19 06:11:04 - End Time 2024-12-19 09:11:04 [2024-12-19 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054486', 'tblTempUsageDetail_20' ) start [2024-12-19 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054486', 'tblTempUsageDetail_20' ) end [2024-12-19 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054486', 'tblTempVendorCDR_20' ) start [2024-12-19 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054486', 'tblTempVendorCDR_20' ) end [2024-12-19 09:11:17] Production.INFO: ProcessCDR(1,14054486,1,1,2) [2024-12-19 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054486', 'tblTempUsageDetail_20' ) start [2024-12-19 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054486', 'tblTempUsageDetail_20' ) end [2024-12-19 09:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:11:22] Production.INFO: ==30677== Releasing lock... [2024-12-19 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:11:22] Production.INFO: 36 MB #Memory Used# [2024-12-19 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:12:05 [end_date_ymd] => 2024-12-19 09:12:05 [RateCDR] => 1 ) [2024-12-19 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:12:05' and `end` < '2024-12-19 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:12:17] Production.INFO: count ==1026 [2024-12-19 09:12:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:12:05 - End Time 2024-12-19 09:12:05 [2024-12-19 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054491', 'tblTempUsageDetail_20' ) start [2024-12-19 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054491', 'tblTempUsageDetail_20' ) end [2024-12-19 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054491', 'tblTempVendorCDR_20' ) start [2024-12-19 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054491', 'tblTempVendorCDR_20' ) end [2024-12-19 09:12:18] Production.INFO: ProcessCDR(1,14054491,1,1,2) [2024-12-19 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054491', 'tblTempUsageDetail_20' ) start [2024-12-19 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054491', 'tblTempUsageDetail_20' ) end [2024-12-19 09:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:12:22] Production.INFO: ==30746== Releasing lock... [2024-12-19 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:12:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-19 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:13:04 [end_date_ymd] => 2024-12-19 09:13:04 [RateCDR] => 1 ) [2024-12-19 09: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` >= '2024-12-19 06:13:04' and `end` < '2024-12-19 09: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 ,'') [2024-12-19 09:13:17] Production.INFO: count ==1038 [2024-12-19 09:13:17] Production.ERROR: pbx CDR StartTime 2024-12-19 06:13:04 - End Time 2024-12-19 09:13:04 [2024-12-19 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054496', 'tblTempUsageDetail_20' ) start [2024-12-19 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054496', 'tblTempUsageDetail_20' ) end [2024-12-19 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054496', 'tblTempVendorCDR_20' ) start [2024-12-19 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054496', 'tblTempVendorCDR_20' ) end [2024-12-19 09:13:17] Production.INFO: ProcessCDR(1,14054496,1,1,2) [2024-12-19 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054496', 'tblTempUsageDetail_20' ) start [2024-12-19 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054496', 'tblTempUsageDetail_20' ) end [2024-12-19 09:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:13:20] Production.INFO: ==30821== Releasing lock... [2024-12-19 09:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:13:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-19 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:14:05 [end_date_ymd] => 2024-12-19 09:14:05 [RateCDR] => 1 ) [2024-12-19 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:14:05' and `end` < '2024-12-19 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:14:17] Production.INFO: count ==1053 [2024-12-19 09:14:17] Production.ERROR: pbx CDR StartTime 2024-12-19 06:14:05 - End Time 2024-12-19 09:14:05 [2024-12-19 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054501', 'tblTempUsageDetail_20' ) start [2024-12-19 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054501', 'tblTempUsageDetail_20' ) end [2024-12-19 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054501', 'tblTempVendorCDR_20' ) start [2024-12-19 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054501', 'tblTempVendorCDR_20' ) end [2024-12-19 09:14:17] Production.INFO: ProcessCDR(1,14054501,1,1,2) [2024-12-19 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054501', 'tblTempUsageDetail_20' ) start [2024-12-19 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054501', 'tblTempUsageDetail_20' ) end [2024-12-19 09:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:14:22] Production.INFO: ==30931== Releasing lock... [2024-12-19 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:14:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-19 09:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:15:04 [end_date_ymd] => 2024-12-19 09:15:04 [RateCDR] => 1 ) [2024-12-19 09:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:15:04' and `end` < '2024-12-19 09:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:15:16] Production.INFO: count ==1066 [2024-12-19 09:15:17] Production.ERROR: pbx CDR StartTime 2024-12-19 06:15:04 - End Time 2024-12-19 09:15:04 [2024-12-19 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054506', 'tblTempUsageDetail_20' ) start [2024-12-19 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054506', 'tblTempUsageDetail_20' ) end [2024-12-19 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054506', 'tblTempVendorCDR_20' ) start [2024-12-19 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054506', 'tblTempVendorCDR_20' ) end [2024-12-19 09:15:17] Production.INFO: ProcessCDR(1,14054506,1,1,2) [2024-12-19 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054506', 'tblTempUsageDetail_20' ) start [2024-12-19 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054506', 'tblTempUsageDetail_20' ) end [2024-12-19 09:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:15:22] Production.INFO: ==31006== Releasing lock... [2024-12-19 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:15:22] Production.INFO: 37 MB #Memory Used# [2024-12-19 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:16:05 [end_date_ymd] => 2024-12-19 09:16:05 [RateCDR] => 1 ) [2024-12-19 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:16:05' and `end` < '2024-12-19 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:16:17] Production.INFO: count ==1078 [2024-12-19 09:16:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:16:05 - End Time 2024-12-19 09:16:05 [2024-12-19 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054511', 'tblTempUsageDetail_20' ) start [2024-12-19 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054511', 'tblTempUsageDetail_20' ) end [2024-12-19 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054511', 'tblTempVendorCDR_20' ) start [2024-12-19 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054511', 'tblTempVendorCDR_20' ) end [2024-12-19 09:16:18] Production.INFO: ProcessCDR(1,14054511,1,1,2) [2024-12-19 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054511', 'tblTempUsageDetail_20' ) start [2024-12-19 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054511', 'tblTempUsageDetail_20' ) end [2024-12-19 09:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:16:22] Production.INFO: ==31078== Releasing lock... [2024-12-19 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:16:22] Production.INFO: 37 MB #Memory Used# [2024-12-19 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:17:05 [end_date_ymd] => 2024-12-19 09:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:17:17] Production.INFO: count ==1118 [2024-12-19 09:17:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:17:05 - End Time 2024-12-19 09:17:05 [2024-12-19 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054516', 'tblTempUsageDetail_20' ) start [2024-12-19 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054516', 'tblTempUsageDetail_20' ) end [2024-12-19 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054516', 'tblTempVendorCDR_20' ) start [2024-12-19 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054516', 'tblTempVendorCDR_20' ) end [2024-12-19 09:17:18] Production.INFO: ProcessCDR(1,14054516,1,1,2) [2024-12-19 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054516', 'tblTempUsageDetail_20' ) start [2024-12-19 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054516', 'tblTempUsageDetail_20' ) end [2024-12-19 09:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:17:22] Production.INFO: ==31153== Releasing lock... [2024-12-19 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:17:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-19 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:18:05 [end_date_ymd] => 2024-12-19 09:18:05 [RateCDR] => 1 ) [2024-12-19 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:18:05' and `end` < '2024-12-19 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:18:17] Production.INFO: count ==1143 [2024-12-19 09:18:17] Production.ERROR: pbx CDR StartTime 2024-12-19 06:18:05 - End Time 2024-12-19 09:18:05 [2024-12-19 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054521', 'tblTempUsageDetail_20' ) start [2024-12-19 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054521', 'tblTempUsageDetail_20' ) end [2024-12-19 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054521', 'tblTempVendorCDR_20' ) start [2024-12-19 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054521', 'tblTempVendorCDR_20' ) end [2024-12-19 09:18:18] Production.INFO: ProcessCDR(1,14054521,1,1,2) [2024-12-19 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054521', 'tblTempUsageDetail_20' ) start [2024-12-19 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054521', 'tblTempUsageDetail_20' ) end [2024-12-19 09:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:18:21] Production.INFO: ==31226== Releasing lock... [2024-12-19 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:18:21] Production.INFO: 37 MB #Memory Used# [2024-12-19 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:19:05 [end_date_ymd] => 2024-12-19 09:19:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:19:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:19:17] Production.INFO: count ==1152 [2024-12-19 09:19:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:19:05 - End Time 2024-12-19 09:19:05 [2024-12-19 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054526', 'tblTempUsageDetail_20' ) start [2024-12-19 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054526', 'tblTempUsageDetail_20' ) end [2024-12-19 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054526', 'tblTempVendorCDR_20' ) start [2024-12-19 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054526', 'tblTempVendorCDR_20' ) end [2024-12-19 09:19:18] Production.INFO: ProcessCDR(1,14054526,1,1,2) [2024-12-19 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054526', 'tblTempUsageDetail_20' ) start [2024-12-19 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054526', 'tblTempUsageDetail_20' ) end [2024-12-19 09:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:19:21] Production.INFO: ==31300== Releasing lock... [2024-12-19 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:19:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-19 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:20:05 [end_date_ymd] => 2024-12-19 09:20:05 [RateCDR] => 1 ) [2024-12-19 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:20:05' and `end` < '2024-12-19 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:20:17] Production.INFO: count ==1174 [2024-12-19 09:20:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:20:05 - End Time 2024-12-19 09:20:05 [2024-12-19 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054531', 'tblTempUsageDetail_20' ) start [2024-12-19 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054531', 'tblTempUsageDetail_20' ) end [2024-12-19 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054531', 'tblTempVendorCDR_20' ) start [2024-12-19 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054531', 'tblTempVendorCDR_20' ) end [2024-12-19 09:20:18] Production.INFO: ProcessCDR(1,14054531,1,1,2) [2024-12-19 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054531', 'tblTempUsageDetail_20' ) start [2024-12-19 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054531', 'tblTempUsageDetail_20' ) end [2024-12-19 09:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:20:22] Production.INFO: ==31378== Releasing lock... [2024-12-19 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:20:22] Production.INFO: 37 MB #Memory Used# [2024-12-19 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:21:05 [end_date_ymd] => 2024-12-19 09:21:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:21:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:21:17] Production.INFO: count ==1244 [2024-12-19 09:21:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:21:05 - End Time 2024-12-19 09:21:05 [2024-12-19 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054537', 'tblTempUsageDetail_20' ) start [2024-12-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054537', 'tblTempUsageDetail_20' ) end [2024-12-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054537', 'tblTempVendorCDR_20' ) start [2024-12-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054537', 'tblTempVendorCDR_20' ) end [2024-12-19 09:21:18] Production.INFO: ProcessCDR(1,14054537,1,1,2) [2024-12-19 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054537', 'tblTempUsageDetail_20' ) start [2024-12-19 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054537', 'tblTempUsageDetail_20' ) end [2024-12-19 09:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:21:22] Production.INFO: ==31455== Releasing lock... [2024-12-19 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:21:22] Production.INFO: 38 MB #Memory Used# [2024-12-19 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:22:05 [end_date_ymd] => 2024-12-19 09:22:05 [RateCDR] => 1 ) [2024-12-19 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:22:05' and `end` < '2024-12-19 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:22:17] Production.INFO: count ==1258 [2024-12-19 09:22:17] Production.ERROR: pbx CDR StartTime 2024-12-19 06:22:05 - End Time 2024-12-19 09:22:05 [2024-12-19 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054542', 'tblTempUsageDetail_20' ) start [2024-12-19 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054542', 'tblTempUsageDetail_20' ) end [2024-12-19 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054542', 'tblTempVendorCDR_20' ) start [2024-12-19 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054542', 'tblTempVendorCDR_20' ) end [2024-12-19 09:22:17] Production.INFO: ProcessCDR(1,14054542,1,1,2) [2024-12-19 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054542', 'tblTempUsageDetail_20' ) start [2024-12-19 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054542', 'tblTempUsageDetail_20' ) end [2024-12-19 09:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:22:22] Production.INFO: ==31529== Releasing lock... [2024-12-19 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:22:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:23:05 [end_date_ymd] => 2024-12-19 09:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:23:19] Production.INFO: count ==1262 [2024-12-19 09:23:19] Production.ERROR: pbx CDR StartTime 2024-12-19 06:23:05 - End Time 2024-12-19 09:23:05 [2024-12-19 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054547', 'tblTempUsageDetail_20' ) start [2024-12-19 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054547', 'tblTempUsageDetail_20' ) end [2024-12-19 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054547', 'tblTempVendorCDR_20' ) start [2024-12-19 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054547', 'tblTempVendorCDR_20' ) end [2024-12-19 09:23:20] Production.INFO: ProcessCDR(1,14054547,1,1,2) [2024-12-19 09:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054547', 'tblTempUsageDetail_20' ) start [2024-12-19 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054547', 'tblTempUsageDetail_20' ) end [2024-12-19 09:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:23:24] Production.INFO: ==31599== Releasing lock... [2024-12-19 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:23:24] Production.INFO: 38.5 MB #Memory Used# [2024-12-19 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:24:05 [end_date_ymd] => 2024-12-19 09:24:05 [RateCDR] => 1 ) [2024-12-19 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:24:05' and `end` < '2024-12-19 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:24:17] Production.INFO: count ==1288 [2024-12-19 09:24:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:24:05 - End Time 2024-12-19 09:24:05 [2024-12-19 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054552', 'tblTempUsageDetail_20' ) start [2024-12-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054552', 'tblTempUsageDetail_20' ) end [2024-12-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054552', 'tblTempVendorCDR_20' ) start [2024-12-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054552', 'tblTempVendorCDR_20' ) end [2024-12-19 09:24:18] Production.INFO: ProcessCDR(1,14054552,1,1,2) [2024-12-19 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054552', 'tblTempUsageDetail_20' ) start [2024-12-19 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054552', 'tblTempUsageDetail_20' ) end [2024-12-19 09:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:24:22] Production.INFO: ==31672== Releasing lock... [2024-12-19 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:24:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:25:05 [end_date_ymd] => 2024-12-19 09:25:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:25:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:25:20] Production.INFO: count ==1313 [2024-12-19 09:25:21] Production.ERROR: pbx CDR StartTime 2024-12-19 06:25:05 - End Time 2024-12-19 09:25:05 [2024-12-19 09:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054557', 'tblTempUsageDetail_20' ) start [2024-12-19 09:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054557', 'tblTempUsageDetail_20' ) end [2024-12-19 09:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054557', 'tblTempVendorCDR_20' ) start [2024-12-19 09:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054557', 'tblTempVendorCDR_20' ) end [2024-12-19 09:25:21] Production.INFO: ProcessCDR(1,14054557,1,1,2) [2024-12-19 09:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054557', 'tblTempUsageDetail_20' ) start [2024-12-19 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054557', 'tblTempUsageDetail_20' ) end [2024-12-19 09:25:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:25:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:25:26] Production.INFO: ==31743== Releasing lock... [2024-12-19 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:25:26] Production.INFO: 38.5 MB #Memory Used# [2024-12-19 09:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:26:04 [end_date_ymd] => 2024-12-19 09:26:04 [RateCDR] => 1 ) [2024-12-19 09:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:26:04' and `end` < '2024-12-19 09:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:26:19] Production.INFO: count ==1323 [2024-12-19 09:26:20] Production.ERROR: pbx CDR StartTime 2024-12-19 06:26:04 - End Time 2024-12-19 09:26:04 [2024-12-19 09:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054562', 'tblTempUsageDetail_20' ) start [2024-12-19 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054562', 'tblTempUsageDetail_20' ) end [2024-12-19 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054562', 'tblTempVendorCDR_20' ) start [2024-12-19 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054562', 'tblTempVendorCDR_20' ) end [2024-12-19 09:26:20] Production.INFO: ProcessCDR(1,14054562,1,1,2) [2024-12-19 09:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054562', 'tblTempUsageDetail_20' ) start [2024-12-19 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054562', 'tblTempUsageDetail_20' ) end [2024-12-19 09:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:26:24] Production.INFO: ==31814== Releasing lock... [2024-12-19 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:26:24] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:27:05 [end_date_ymd] => 2024-12-19 09:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:27:21] Production.INFO: count ==1344 [2024-12-19 09:27:21] Production.ERROR: pbx CDR StartTime 2024-12-19 06:27:05 - End Time 2024-12-19 09:27:05 [2024-12-19 09:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054567', 'tblTempUsageDetail_20' ) start [2024-12-19 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054567', 'tblTempUsageDetail_20' ) end [2024-12-19 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054567', 'tblTempVendorCDR_20' ) start [2024-12-19 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054567', 'tblTempVendorCDR_20' ) end [2024-12-19 09:27:21] Production.INFO: ProcessCDR(1,14054567,1,1,2) [2024-12-19 09:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054567', 'tblTempUsageDetail_20' ) start [2024-12-19 09:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054567', 'tblTempUsageDetail_20' ) end [2024-12-19 09:27:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:27:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:27:26] Production.INFO: ==31887== Releasing lock... [2024-12-19 09:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:27:26] Production.INFO: 38.75 MB #Memory Used# [2024-12-19 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:28:05 [end_date_ymd] => 2024-12-19 09:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:28:19] Production.INFO: count ==1355 [2024-12-19 09:28:20] Production.ERROR: pbx CDR StartTime 2024-12-19 06:28:05 - End Time 2024-12-19 09:28:05 [2024-12-19 09:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054572', 'tblTempUsageDetail_20' ) start [2024-12-19 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054572', 'tblTempUsageDetail_20' ) end [2024-12-19 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054572', 'tblTempVendorCDR_20' ) start [2024-12-19 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054572', 'tblTempVendorCDR_20' ) end [2024-12-19 09:28:20] Production.INFO: ProcessCDR(1,14054572,1,1,2) [2024-12-19 09:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054572', 'tblTempUsageDetail_20' ) start [2024-12-19 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054572', 'tblTempUsageDetail_20' ) end [2024-12-19 09:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:28:24] Production.INFO: ==31961== Releasing lock... [2024-12-19 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:28:24] Production.INFO: 38.75 MB #Memory Used# [2024-12-19 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:29:05 [end_date_ymd] => 2024-12-19 09:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:29:19] Production.INFO: count ==1404 [2024-12-19 09:29:19] Production.ERROR: pbx CDR StartTime 2024-12-19 06:29:05 - End Time 2024-12-19 09:29:05 [2024-12-19 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054577', 'tblTempUsageDetail_20' ) start [2024-12-19 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054577', 'tblTempUsageDetail_20' ) end [2024-12-19 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054577', 'tblTempVendorCDR_20' ) start [2024-12-19 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054577', 'tblTempVendorCDR_20' ) end [2024-12-19 09:29:19] Production.INFO: ProcessCDR(1,14054577,1,1,2) [2024-12-19 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054577', 'tblTempUsageDetail_20' ) start [2024-12-19 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054577', 'tblTempUsageDetail_20' ) end [2024-12-19 09:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:29:24] Production.INFO: ==32033== Releasing lock... [2024-12-19 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:29:24] Production.INFO: 39 MB #Memory Used# [2024-12-19 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:30:05 [end_date_ymd] => 2024-12-19 09:30:05 [RateCDR] => 1 ) [2024-12-19 09: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` >= '2024-12-19 06:30:05' and `end` < '2024-12-19 09: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 ,'') [2024-12-19 09:30:23] Production.INFO: count ==1445 [2024-12-19 09:30:23] Production.ERROR: pbx CDR StartTime 2024-12-19 06:30:05 - End Time 2024-12-19 09:30:05 [2024-12-19 09:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054582', 'tblTempUsageDetail_20' ) start [2024-12-19 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054582', 'tblTempUsageDetail_20' ) end [2024-12-19 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054582', 'tblTempVendorCDR_20' ) start [2024-12-19 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054582', 'tblTempVendorCDR_20' ) end [2024-12-19 09:30:23] Production.INFO: ProcessCDR(1,14054582,1,1,2) [2024-12-19 09:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054582', 'tblTempUsageDetail_20' ) start [2024-12-19 09:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054582', 'tblTempUsageDetail_20' ) end [2024-12-19 09:30:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:30:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:30:28] Production.INFO: ==32148== Releasing lock... [2024-12-19 09:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:30:28] Production.INFO: 39.5 MB #Memory Used# [2024-12-19 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:31:05 [end_date_ymd] => 2024-12-19 09:31:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:31:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:31:20] Production.INFO: count ==1534 [2024-12-19 09:31:21] Production.ERROR: pbx CDR StartTime 2024-12-19 06:31:05 - End Time 2024-12-19 09:31:05 [2024-12-19 09:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054588', 'tblTempUsageDetail_20' ) start [2024-12-19 09:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054588', 'tblTempUsageDetail_20' ) end [2024-12-19 09:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054588', 'tblTempVendorCDR_20' ) start [2024-12-19 09:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054588', 'tblTempVendorCDR_20' ) end [2024-12-19 09:31:21] Production.INFO: ProcessCDR(1,14054588,1,1,2) [2024-12-19 09:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054588', 'tblTempUsageDetail_20' ) start [2024-12-19 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054588', 'tblTempUsageDetail_20' ) end [2024-12-19 09:31:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:31:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:31:25] Production.INFO: ==32218== Releasing lock... [2024-12-19 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:31:25] Production.INFO: 40 MB #Memory Used# [2024-12-19 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:32:05 [end_date_ymd] => 2024-12-19 09:32:05 [RateCDR] => 1 ) [2024-12-19 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:32:05' and `end` < '2024-12-19 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:32:17] Production.INFO: count ==1559 [2024-12-19 09:32:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:32:05 - End Time 2024-12-19 09:32:05 [2024-12-19 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054593', 'tblTempUsageDetail_20' ) start [2024-12-19 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054593', 'tblTempUsageDetail_20' ) end [2024-12-19 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054593', 'tblTempVendorCDR_20' ) start [2024-12-19 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054593', 'tblTempVendorCDR_20' ) end [2024-12-19 09:32:18] Production.INFO: ProcessCDR(1,14054593,1,1,2) [2024-12-19 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054593', 'tblTempUsageDetail_20' ) start [2024-12-19 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054593', 'tblTempUsageDetail_20' ) end [2024-12-19 09:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:32:22] Production.INFO: ==32292== Releasing lock... [2024-12-19 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:32:22] Production.INFO: 40 MB #Memory Used# [2024-12-19 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:33:05 [end_date_ymd] => 2024-12-19 09:33:05 [RateCDR] => 1 ) [2024-12-19 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:33:05' and `end` < '2024-12-19 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:33:21] Production.INFO: count ==1573 [2024-12-19 09:33:22] Production.ERROR: pbx CDR StartTime 2024-12-19 06:33:05 - End Time 2024-12-19 09:33:05 [2024-12-19 09:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054598', 'tblTempUsageDetail_20' ) start [2024-12-19 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054598', 'tblTempUsageDetail_20' ) end [2024-12-19 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054598', 'tblTempVendorCDR_20' ) start [2024-12-19 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054598', 'tblTempVendorCDR_20' ) end [2024-12-19 09:33:22] Production.INFO: ProcessCDR(1,14054598,1,1,2) [2024-12-19 09:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054598', 'tblTempUsageDetail_20' ) start [2024-12-19 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054598', 'tblTempUsageDetail_20' ) end [2024-12-19 09:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:33:25] Production.INFO: ==32365== Releasing lock... [2024-12-19 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:33:25] Production.INFO: 40 MB #Memory Used# [2024-12-19 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:34:05 [end_date_ymd] => 2024-12-19 09:34:05 [RateCDR] => 1 ) [2024-12-19 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:34:05' and `end` < '2024-12-19 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:34:21] Production.INFO: count ==1645 [2024-12-19 09:34:21] Production.ERROR: pbx CDR StartTime 2024-12-19 06:34:05 - End Time 2024-12-19 09:34:05 [2024-12-19 09:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054603', 'tblTempUsageDetail_20' ) start [2024-12-19 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054603', 'tblTempUsageDetail_20' ) end [2024-12-19 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054603', 'tblTempVendorCDR_20' ) start [2024-12-19 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054603', 'tblTempVendorCDR_20' ) end [2024-12-19 09:34:21] Production.INFO: ProcessCDR(1,14054603,1,1,2) [2024-12-19 09:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054603', 'tblTempUsageDetail_20' ) start [2024-12-19 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054603', 'tblTempUsageDetail_20' ) end [2024-12-19 09:34:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:34:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:34:26] Production.INFO: ==32470== Releasing lock... [2024-12-19 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:34:26] Production.INFO: 41 MB #Memory Used# [2024-12-19 09:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:35:04 [end_date_ymd] => 2024-12-19 09:35:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:35:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:35:20] Production.INFO: count ==1662 [2024-12-19 09:35:20] Production.ERROR: pbx CDR StartTime 2024-12-19 06:35:04 - End Time 2024-12-19 09:35:04 [2024-12-19 09:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054608', 'tblTempUsageDetail_20' ) start [2024-12-19 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054608', 'tblTempUsageDetail_20' ) end [2024-12-19 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054608', 'tblTempVendorCDR_20' ) start [2024-12-19 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054608', 'tblTempVendorCDR_20' ) end [2024-12-19 09:35:21] Production.INFO: ProcessCDR(1,14054608,1,1,2) [2024-12-19 09:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054608', 'tblTempUsageDetail_20' ) start [2024-12-19 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054608', 'tblTempUsageDetail_20' ) end [2024-12-19 09:35:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:35:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:35:25] Production.INFO: ==32579== Releasing lock... [2024-12-19 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:35:25] Production.INFO: 40.75 MB #Memory Used# [2024-12-19 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:36:05 [end_date_ymd] => 2024-12-19 09:36:05 [RateCDR] => 1 ) [2024-12-19 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:36:05' and `end` < '2024-12-19 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:36:17] Production.INFO: count ==1676 [2024-12-19 09:36:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:36:05 - End Time 2024-12-19 09:36:05 [2024-12-19 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054613', 'tblTempUsageDetail_20' ) start [2024-12-19 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054613', 'tblTempUsageDetail_20' ) end [2024-12-19 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054613', 'tblTempVendorCDR_20' ) start [2024-12-19 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054613', 'tblTempVendorCDR_20' ) end [2024-12-19 09:36:18] Production.INFO: ProcessCDR(1,14054613,1,1,2) [2024-12-19 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054613', 'tblTempUsageDetail_20' ) start [2024-12-19 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054613', 'tblTempUsageDetail_20' ) end [2024-12-19 09:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:36:21] Production.INFO: ==32689== Releasing lock... [2024-12-19 09:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:36:21] Production.INFO: 41 MB #Memory Used# [2024-12-19 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:37:04 [end_date_ymd] => 2024-12-19 09:37:04 [RateCDR] => 1 ) [2024-12-19 09:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:37:04' and `end` < '2024-12-19 09:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:37:18] Production.INFO: count ==1682 [2024-12-19 09:37:19] Production.ERROR: pbx CDR StartTime 2024-12-19 06:37:04 - End Time 2024-12-19 09:37:04 [2024-12-19 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054618', 'tblTempUsageDetail_20' ) start [2024-12-19 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054618', 'tblTempUsageDetail_20' ) end [2024-12-19 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054618', 'tblTempVendorCDR_20' ) start [2024-12-19 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054618', 'tblTempVendorCDR_20' ) end [2024-12-19 09:37:19] Production.INFO: ProcessCDR(1,14054618,1,1,2) [2024-12-19 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054618', 'tblTempUsageDetail_20' ) start [2024-12-19 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054618', 'tblTempUsageDetail_20' ) end [2024-12-19 09:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:37:24] Production.INFO: ==330== Releasing lock... [2024-12-19 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:37:24] Production.INFO: 41.25 MB #Memory Used# [2024-12-19 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:38:05 [end_date_ymd] => 2024-12-19 09:38:05 [RateCDR] => 1 ) [2024-12-19 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:38:05' and `end` < '2024-12-19 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:38:17] Production.INFO: count ==1696 [2024-12-19 09:38:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:38:05 - End Time 2024-12-19 09:38:05 [2024-12-19 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054623', 'tblTempUsageDetail_20' ) start [2024-12-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054623', 'tblTempUsageDetail_20' ) end [2024-12-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054623', 'tblTempVendorCDR_20' ) start [2024-12-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054623', 'tblTempVendorCDR_20' ) end [2024-12-19 09:38:18] Production.INFO: ProcessCDR(1,14054623,1,1,2) [2024-12-19 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054623', 'tblTempUsageDetail_20' ) start [2024-12-19 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054623', 'tblTempUsageDetail_20' ) end [2024-12-19 09:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:38:23] Production.INFO: ==453== Releasing lock... [2024-12-19 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:38:23] Production.INFO: 41 MB #Memory Used# [2024-12-19 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:39:06 [end_date_ymd] => 2024-12-19 09:39:06 [RateCDR] => 1 ) [2024-12-19 09:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:39:06' and `end` < '2024-12-19 09:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:39:19] Production.INFO: count ==1707 [2024-12-19 09:39:20] Production.ERROR: pbx CDR StartTime 2024-12-19 06:39:06 - End Time 2024-12-19 09:39:06 [2024-12-19 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054628', 'tblTempUsageDetail_20' ) start [2024-12-19 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054628', 'tblTempUsageDetail_20' ) end [2024-12-19 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054628', 'tblTempVendorCDR_20' ) start [2024-12-19 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054628', 'tblTempVendorCDR_20' ) end [2024-12-19 09:39:20] Production.INFO: ProcessCDR(1,14054628,1,1,2) [2024-12-19 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054628', 'tblTempUsageDetail_20' ) start [2024-12-19 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054628', 'tblTempUsageDetail_20' ) end [2024-12-19 09:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:39:24] Production.INFO: ==565== Releasing lock... [2024-12-19 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:39:24] Production.INFO: 41.25 MB #Memory Used# [2024-12-19 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:40:06 [end_date_ymd] => 2024-12-19 09:40:06 [RateCDR] => 1 ) [2024-12-19 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:40:06' and `end` < '2024-12-19 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:40:18] Production.INFO: count ==1719 [2024-12-19 09:40:19] Production.ERROR: pbx CDR StartTime 2024-12-19 06:40:06 - End Time 2024-12-19 09:40:06 [2024-12-19 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054634', 'tblTempUsageDetail_20' ) start [2024-12-19 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054634', 'tblTempUsageDetail_20' ) end [2024-12-19 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054634', 'tblTempVendorCDR_20' ) start [2024-12-19 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054634', 'tblTempVendorCDR_20' ) end [2024-12-19 09:40:19] Production.INFO: ProcessCDR(1,14054634,1,1,2) [2024-12-19 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054634', 'tblTempUsageDetail_20' ) start [2024-12-19 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054634', 'tblTempUsageDetail_20' ) end [2024-12-19 09:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:40:23] Production.INFO: ==696== Releasing lock... [2024-12-19 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:40:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-19 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:41:04 [end_date_ymd] => 2024-12-19 09:41:04 [RateCDR] => 1 ) [2024-12-19 09:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:41:04' and `end` < '2024-12-19 09:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:41:20] Production.INFO: count ==1773 [2024-12-19 09:41:20] Production.ERROR: pbx CDR StartTime 2024-12-19 06:41:04 - End Time 2024-12-19 09:41:04 [2024-12-19 09:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054639', 'tblTempUsageDetail_20' ) start [2024-12-19 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054639', 'tblTempUsageDetail_20' ) end [2024-12-19 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054639', 'tblTempVendorCDR_20' ) start [2024-12-19 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054639', 'tblTempVendorCDR_20' ) end [2024-12-19 09:41:20] Production.INFO: ProcessCDR(1,14054639,1,1,2) [2024-12-19 09:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054639', 'tblTempUsageDetail_20' ) start [2024-12-19 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054639', 'tblTempUsageDetail_20' ) end [2024-12-19 09:41:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:41:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:41:25] Production.INFO: ==803== Releasing lock... [2024-12-19 09:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:41:25] Production.INFO: 41.75 MB #Memory Used# [2024-12-19 09:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:42:04 [end_date_ymd] => 2024-12-19 09:42:04 [RateCDR] => 1 ) [2024-12-19 09: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` >= '2024-12-19 06:42:04' and `end` < '2024-12-19 09: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 ,'') [2024-12-19 09:42:18] Production.INFO: count ==1781 [2024-12-19 09:42:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:42:04 - End Time 2024-12-19 09:42:04 [2024-12-19 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054644', 'tblTempUsageDetail_20' ) start [2024-12-19 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054644', 'tblTempUsageDetail_20' ) end [2024-12-19 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054644', 'tblTempVendorCDR_20' ) start [2024-12-19 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054644', 'tblTempVendorCDR_20' ) end [2024-12-19 09:42:18] Production.INFO: ProcessCDR(1,14054644,1,1,2) [2024-12-19 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054644', 'tblTempUsageDetail_20' ) start [2024-12-19 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054644', 'tblTempUsageDetail_20' ) end [2024-12-19 09:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:42:23] Production.INFO: ==898== Releasing lock... [2024-12-19 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:42:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-19 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:43:05 [end_date_ymd] => 2024-12-19 09:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:43:20] Production.INFO: count ==1798 [2024-12-19 09:43:21] Production.ERROR: pbx CDR StartTime 2024-12-19 06:43:05 - End Time 2024-12-19 09:43:05 [2024-12-19 09:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054649', 'tblTempUsageDetail_20' ) start [2024-12-19 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054649', 'tblTempUsageDetail_20' ) end [2024-12-19 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054649', 'tblTempVendorCDR_20' ) start [2024-12-19 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054649', 'tblTempVendorCDR_20' ) end [2024-12-19 09:43:21] Production.INFO: ProcessCDR(1,14054649,1,1,2) [2024-12-19 09:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054649', 'tblTempUsageDetail_20' ) start [2024-12-19 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054649', 'tblTempUsageDetail_20' ) end [2024-12-19 09:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:43:25] Production.INFO: ==1008== Releasing lock... [2024-12-19 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:43:25] Production.INFO: 41.75 MB #Memory Used# [2024-12-19 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:44:05 [end_date_ymd] => 2024-12-19 09:44:05 [RateCDR] => 1 ) [2024-12-19 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:44:05' and `end` < '2024-12-19 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:44:21] Production.INFO: count ==1806 [2024-12-19 09:44:22] Production.ERROR: pbx CDR StartTime 2024-12-19 06:44:05 - End Time 2024-12-19 09:44:05 [2024-12-19 09:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054654', 'tblTempUsageDetail_20' ) start [2024-12-19 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054654', 'tblTempUsageDetail_20' ) end [2024-12-19 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054654', 'tblTempVendorCDR_20' ) start [2024-12-19 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054654', 'tblTempVendorCDR_20' ) end [2024-12-19 09:44:22] Production.INFO: ProcessCDR(1,14054654,1,1,2) [2024-12-19 09:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054654', 'tblTempUsageDetail_20' ) start [2024-12-19 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054654', 'tblTempUsageDetail_20' ) end [2024-12-19 09:44:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:44:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:44:27] Production.INFO: ==1114== Releasing lock... [2024-12-19 09:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:44:27] Production.INFO: 42 MB #Memory Used# [2024-12-19 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:45:04 [end_date_ymd] => 2024-12-19 09:45:04 [RateCDR] => 1 ) [2024-12-19 09: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` >= '2024-12-19 06:45:04' and `end` < '2024-12-19 09: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 ,'') [2024-12-19 09:45:17] Production.INFO: count ==1817 [2024-12-19 09:45:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:45:04 - End Time 2024-12-19 09:45:04 [2024-12-19 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054659', 'tblTempUsageDetail_20' ) start [2024-12-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054659', 'tblTempUsageDetail_20' ) end [2024-12-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054659', 'tblTempVendorCDR_20' ) start [2024-12-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054659', 'tblTempVendorCDR_20' ) end [2024-12-19 09:45:18] Production.INFO: ProcessCDR(1,14054659,1,1,2) [2024-12-19 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054659', 'tblTempUsageDetail_20' ) start [2024-12-19 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054659', 'tblTempUsageDetail_20' ) end [2024-12-19 09:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:45:22] Production.INFO: ==1280== Releasing lock... [2024-12-19 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:45:22] Production.INFO: 42 MB #Memory Used# [2024-12-19 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:46:05 [end_date_ymd] => 2024-12-19 09:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:46:21] Production.INFO: count ==1845 [2024-12-19 09:46:22] Production.ERROR: pbx CDR StartTime 2024-12-19 06:46:05 - End Time 2024-12-19 09:46:05 [2024-12-19 09:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054664', 'tblTempUsageDetail_20' ) start [2024-12-19 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054664', 'tblTempUsageDetail_20' ) end [2024-12-19 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054664', 'tblTempVendorCDR_20' ) start [2024-12-19 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054664', 'tblTempVendorCDR_20' ) end [2024-12-19 09:46:22] Production.INFO: ProcessCDR(1,14054664,1,1,2) [2024-12-19 09:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054664', 'tblTempUsageDetail_20' ) start [2024-12-19 09:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054664', 'tblTempUsageDetail_20' ) end [2024-12-19 09:46:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:46:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:46:27] Production.INFO: ==1367== Releasing lock... [2024-12-19 09:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:46:27] Production.INFO: 42.75 MB #Memory Used# [2024-12-19 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:47:04 [end_date_ymd] => 2024-12-19 09:47:04 [RateCDR] => 1 ) [2024-12-19 09: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` >= '2024-12-19 06:47:04' and `end` < '2024-12-19 09: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 ,'') [2024-12-19 09:47:19] Production.INFO: count ==1873 [2024-12-19 09:47:19] Production.ERROR: pbx CDR StartTime 2024-12-19 06:47:04 - End Time 2024-12-19 09:47:04 [2024-12-19 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054669', 'tblTempUsageDetail_20' ) start [2024-12-19 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054669', 'tblTempUsageDetail_20' ) end [2024-12-19 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054669', 'tblTempVendorCDR_20' ) start [2024-12-19 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054669', 'tblTempVendorCDR_20' ) end [2024-12-19 09:47:19] Production.INFO: ProcessCDR(1,14054669,1,1,2) [2024-12-19 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054669', 'tblTempUsageDetail_20' ) start [2024-12-19 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054669', 'tblTempUsageDetail_20' ) end [2024-12-19 09:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:47:24] Production.INFO: ==1440== Releasing lock... [2024-12-19 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:47:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-19 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:48:05 [end_date_ymd] => 2024-12-19 09:48:05 [RateCDR] => 1 ) [2024-12-19 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:48:05' and `end` < '2024-12-19 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:48:23] Production.INFO: count ==1899 [2024-12-19 09:48:24] Production.ERROR: pbx CDR StartTime 2024-12-19 06:48:05 - End Time 2024-12-19 09:48:05 [2024-12-19 09:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054674', 'tblTempUsageDetail_20' ) start [2024-12-19 09:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054674', 'tblTempUsageDetail_20' ) end [2024-12-19 09:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054674', 'tblTempVendorCDR_20' ) start [2024-12-19 09:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054674', 'tblTempVendorCDR_20' ) end [2024-12-19 09:48:24] Production.INFO: ProcessCDR(1,14054674,1,1,2) [2024-12-19 09:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054674', 'tblTempUsageDetail_20' ) start [2024-12-19 09:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054674', 'tblTempUsageDetail_20' ) end [2024-12-19 09:48:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:48:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:48:28] Production.INFO: ==1545== Releasing lock... [2024-12-19 09:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:48:28] Production.INFO: 42.5 MB #Memory Used# [2024-12-19 09:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:49:04 [end_date_ymd] => 2024-12-19 09:49:04 [RateCDR] => 1 ) [2024-12-19 09: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` >= '2024-12-19 06:49:04' and `end` < '2024-12-19 09: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 ,'') [2024-12-19 09:49:18] Production.INFO: count ==1912 [2024-12-19 09:49:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:49:04 - End Time 2024-12-19 09:49:04 [2024-12-19 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054679', 'tblTempUsageDetail_20' ) start [2024-12-19 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054679', 'tblTempUsageDetail_20' ) end [2024-12-19 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054679', 'tblTempVendorCDR_20' ) start [2024-12-19 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054679', 'tblTempVendorCDR_20' ) end [2024-12-19 09:49:18] Production.INFO: ProcessCDR(1,14054679,1,1,2) [2024-12-19 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054679', 'tblTempUsageDetail_20' ) start [2024-12-19 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054679', 'tblTempUsageDetail_20' ) end [2024-12-19 09:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:49:23] Production.INFO: ==1623== Releasing lock... [2024-12-19 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:49:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-19 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:50:05 [end_date_ymd] => 2024-12-19 09:50:05 [RateCDR] => 1 ) [2024-12-19 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:50:05' and `end` < '2024-12-19 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:50:28] Production.INFO: count ==1926 [2024-12-19 09:50:29] Production.ERROR: pbx CDR StartTime 2024-12-19 06:50:05 - End Time 2024-12-19 09:50:05 [2024-12-19 09:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054685', 'tblTempUsageDetail_20' ) start [2024-12-19 09:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054685', 'tblTempUsageDetail_20' ) end [2024-12-19 09:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054685', 'tblTempVendorCDR_20' ) start [2024-12-19 09:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054685', 'tblTempVendorCDR_20' ) end [2024-12-19 09:50:29] Production.INFO: ProcessCDR(1,14054685,1,1,2) [2024-12-19 09:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054685', 'tblTempUsageDetail_20' ) start [2024-12-19 09:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054685', 'tblTempUsageDetail_20' ) end [2024-12-19 09:50:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:50:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:50:33] Production.INFO: ==1696== Releasing lock... [2024-12-19 09:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:50:33] Production.INFO: 42.75 MB #Memory Used# [2024-12-19 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:51:05 [end_date_ymd] => 2024-12-19 09:51:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:51:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:51:24] Production.INFO: count ==2028 [2024-12-19 09:51:25] Production.ERROR: pbx CDR StartTime 2024-12-19 06:51:05 - End Time 2024-12-19 09:51:05 [2024-12-19 09:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054690', 'tblTempUsageDetail_20' ) start [2024-12-19 09:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054690', 'tblTempUsageDetail_20' ) end [2024-12-19 09:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054690', 'tblTempVendorCDR_20' ) start [2024-12-19 09:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054690', 'tblTempVendorCDR_20' ) end [2024-12-19 09:51:25] Production.INFO: ProcessCDR(1,14054690,1,1,2) [2024-12-19 09:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054690', 'tblTempUsageDetail_20' ) start [2024-12-19 09:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054690', 'tblTempUsageDetail_20' ) end [2024-12-19 09:51:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:51:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:51:30] Production.INFO: ==1772== Releasing lock... [2024-12-19 09:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:51:30] Production.INFO: 43.5 MB #Memory Used# [2024-12-19 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:52:05 [end_date_ymd] => 2024-12-19 09:52:05 [RateCDR] => 1 ) [2024-12-19 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:52:05' and `end` < '2024-12-19 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:52:23] Production.INFO: count ==2043 [2024-12-19 09:52:24] Production.ERROR: pbx CDR StartTime 2024-12-19 06:52:05 - End Time 2024-12-19 09:52:05 [2024-12-19 09:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054695', 'tblTempUsageDetail_20' ) start [2024-12-19 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054695', 'tblTempUsageDetail_20' ) end [2024-12-19 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054695', 'tblTempVendorCDR_20' ) start [2024-12-19 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054695', 'tblTempVendorCDR_20' ) end [2024-12-19 09:52:24] Production.INFO: ProcessCDR(1,14054695,1,1,2) [2024-12-19 09:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054695', 'tblTempUsageDetail_20' ) start [2024-12-19 09:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054695', 'tblTempUsageDetail_20' ) end [2024-12-19 09:52:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:52:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:52:29] Production.INFO: ==1848== Releasing lock... [2024-12-19 09:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:52:29] Production.INFO: 44 MB #Memory Used# [2024-12-19 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:53:05 [end_date_ymd] => 2024-12-19 09:53:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:53:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:53:28] Production.INFO: count ==2077 [2024-12-19 09:53:29] Production.ERROR: pbx CDR StartTime 2024-12-19 06:53:05 - End Time 2024-12-19 09:53:05 [2024-12-19 09:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054700', 'tblTempUsageDetail_20' ) start [2024-12-19 09:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054700', 'tblTempUsageDetail_20' ) end [2024-12-19 09:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054700', 'tblTempVendorCDR_20' ) start [2024-12-19 09:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054700', 'tblTempVendorCDR_20' ) end [2024-12-19 09:53:29] Production.INFO: ProcessCDR(1,14054700,1,1,2) [2024-12-19 09:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054700', 'tblTempUsageDetail_20' ) start [2024-12-19 09:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054700', 'tblTempUsageDetail_20' ) end [2024-12-19 09:53:34] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:53:34] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:53:34] Production.INFO: ==1943== Releasing lock... [2024-12-19 09:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:53:34] Production.INFO: 44.25 MB #Memory Used# [2024-12-19 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:54:04 [end_date_ymd] => 2024-12-19 09:54:04 [RateCDR] => 1 ) [2024-12-19 09: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` >= '2024-12-19 06:54:04' and `end` < '2024-12-19 09: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 ,'') [2024-12-19 09:54:17] Production.INFO: count ==2101 [2024-12-19 09:54:18] Production.ERROR: pbx CDR StartTime 2024-12-19 06:54:04 - End Time 2024-12-19 09:54:04 [2024-12-19 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054705', 'tblTempUsageDetail_20' ) start [2024-12-19 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054705', 'tblTempUsageDetail_20' ) end [2024-12-19 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054705', 'tblTempVendorCDR_20' ) start [2024-12-19 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054705', 'tblTempVendorCDR_20' ) end [2024-12-19 09:54:18] Production.INFO: ProcessCDR(1,14054705,1,1,2) [2024-12-19 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054705', 'tblTempUsageDetail_20' ) start [2024-12-19 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054705', 'tblTempUsageDetail_20' ) end [2024-12-19 09:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:54:22] Production.INFO: ==2015== Releasing lock... [2024-12-19 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:54:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-19 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:55:05 [end_date_ymd] => 2024-12-19 09:55:05 [RateCDR] => 1 ) [2024-12-19 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:55:05' and `end` < '2024-12-19 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:55:23] Production.INFO: count ==2134 [2024-12-19 09:55:24] Production.ERROR: pbx CDR StartTime 2024-12-19 06:55:05 - End Time 2024-12-19 09:55:05 [2024-12-19 09:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054710', 'tblTempUsageDetail_20' ) start [2024-12-19 09:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054710', 'tblTempUsageDetail_20' ) end [2024-12-19 09:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054710', 'tblTempVendorCDR_20' ) start [2024-12-19 09:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054710', 'tblTempVendorCDR_20' ) end [2024-12-19 09:55:24] Production.INFO: ProcessCDR(1,14054710,1,1,2) [2024-12-19 09:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054710', 'tblTempUsageDetail_20' ) start [2024-12-19 09:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054710', 'tblTempUsageDetail_20' ) end [2024-12-19 09:55:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:55:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:55:27] Production.INFO: ==2089== Releasing lock... [2024-12-19 09:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:55:27] Production.INFO: 44.5 MB #Memory Used# [2024-12-19 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:56:05 [end_date_ymd] => 2024-12-19 09:56:05 [RateCDR] => 1 ) [2024-12-19 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:56:05' and `end` < '2024-12-19 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:56:27] Production.INFO: count ==2180 [2024-12-19 09:56:28] Production.ERROR: pbx CDR StartTime 2024-12-19 06:56:05 - End Time 2024-12-19 09:56:05 [2024-12-19 09:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054715', 'tblTempUsageDetail_20' ) start [2024-12-19 09:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054715', 'tblTempUsageDetail_20' ) end [2024-12-19 09:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054715', 'tblTempVendorCDR_20' ) start [2024-12-19 09:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054715', 'tblTempVendorCDR_20' ) end [2024-12-19 09:56:28] Production.INFO: ProcessCDR(1,14054715,1,1,2) [2024-12-19 09:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054715', 'tblTempUsageDetail_20' ) start [2024-12-19 09:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054715', 'tblTempUsageDetail_20' ) end [2024-12-19 09:56:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:56:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:56:33] Production.INFO: ==2160== Releasing lock... [2024-12-19 09:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:56:33] Production.INFO: 44.75 MB #Memory Used# [2024-12-19 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:57:05 [end_date_ymd] => 2024-12-19 09:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 06:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 09:57:21] Production.INFO: count ==2199 [2024-12-19 09:57:21] Production.ERROR: pbx CDR StartTime 2024-12-19 06:57:05 - End Time 2024-12-19 09:57:05 [2024-12-19 09:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054720', 'tblTempUsageDetail_20' ) start [2024-12-19 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054720', 'tblTempUsageDetail_20' ) end [2024-12-19 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054720', 'tblTempVendorCDR_20' ) start [2024-12-19 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054720', 'tblTempVendorCDR_20' ) end [2024-12-19 09:57:21] Production.INFO: ProcessCDR(1,14054720,1,1,2) [2024-12-19 09:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054720', 'tblTempUsageDetail_20' ) start [2024-12-19 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054720', 'tblTempUsageDetail_20' ) end [2024-12-19 09:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:57:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:57:25] Production.INFO: ==2233== Releasing lock... [2024-12-19 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:57:25] Production.INFO: 44.75 MB #Memory Used# [2024-12-19 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:58:05 [end_date_ymd] => 2024-12-19 09:58:05 [RateCDR] => 1 ) [2024-12-19 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:58:05' and `end` < '2024-12-19 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:58:21] Production.INFO: count ==2205 [2024-12-19 09:58:22] Production.ERROR: pbx CDR StartTime 2024-12-19 06:58:05 - End Time 2024-12-19 09:58:05 [2024-12-19 09:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054725', 'tblTempUsageDetail_20' ) start [2024-12-19 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054725', 'tblTempUsageDetail_20' ) end [2024-12-19 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054725', 'tblTempVendorCDR_20' ) start [2024-12-19 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054725', 'tblTempVendorCDR_20' ) end [2024-12-19 09:58:22] Production.INFO: ProcessCDR(1,14054725,1,1,2) [2024-12-19 09:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054725', 'tblTempUsageDetail_20' ) start [2024-12-19 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054725', 'tblTempUsageDetail_20' ) end [2024-12-19 09:58:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:58:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:58:26] Production.INFO: ==2304== Releasing lock... [2024-12-19 09:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:58:26] Production.INFO: 45 MB #Memory Used# [2024-12-19 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 06:59:05 [end_date_ymd] => 2024-12-19 09:59:05 [RateCDR] => 1 ) [2024-12-19 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 06:59:05' and `end` < '2024-12-19 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 09:59:22] Production.INFO: count ==2228 [2024-12-19 09:59:23] Production.ERROR: pbx CDR StartTime 2024-12-19 06:59:05 - End Time 2024-12-19 09:59:05 [2024-12-19 09:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 09:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054730', 'tblTempUsageDetail_20' ) start [2024-12-19 09:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054730', 'tblTempUsageDetail_20' ) end [2024-12-19 09:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054730', 'tblTempVendorCDR_20' ) start [2024-12-19 09:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054730', 'tblTempVendorCDR_20' ) end [2024-12-19 09:59:23] Production.INFO: ProcessCDR(1,14054730,1,1,2) [2024-12-19 09:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 09:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 09:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054730', 'tblTempUsageDetail_20' ) start [2024-12-19 09:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054730', 'tblTempUsageDetail_20' ) end [2024-12-19 09:59:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 09:59:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 09:59:28] Production.INFO: ==2376== Releasing lock... [2024-12-19 09:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 09:59:28] Production.INFO: 45 MB #Memory Used# [2024-12-19 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:00:06 [end_date_ymd] => 2024-12-19 10:00:06 [RateCDR] => 1 ) [2024-12-19 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:00:06' and `end` < '2024-12-19 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:00:23] Production.INFO: count ==2255 [2024-12-19 10:00:24] Production.ERROR: pbx CDR StartTime 2024-12-19 07:00:06 - End Time 2024-12-19 10:00:06 [2024-12-19 10:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054735', 'tblTempUsageDetail_20' ) start [2024-12-19 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054735', 'tblTempUsageDetail_20' ) end [2024-12-19 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054735', 'tblTempVendorCDR_20' ) start [2024-12-19 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054735', 'tblTempVendorCDR_20' ) end [2024-12-19 10:00:24] Production.INFO: ProcessCDR(1,14054735,1,1,2) [2024-12-19 10:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054735', 'tblTempUsageDetail_20' ) start [2024-12-19 10:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054735', 'tblTempUsageDetail_20' ) end [2024-12-19 10:00:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:00:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:00:29] Production.INFO: ==2455== Releasing lock... [2024-12-19 10:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:00:29] Production.INFO: 45.25 MB #Memory Used# [2024-12-19 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:01:04 [end_date_ymd] => 2024-12-19 10:01:04 [RateCDR] => 1 ) [2024-12-19 10:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:01:04' and `end` < '2024-12-19 10:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:01:25] Production.INFO: count ==2382 [2024-12-19 10:01:26] Production.ERROR: pbx CDR StartTime 2024-12-19 07:01:04 - End Time 2024-12-19 10:01:04 [2024-12-19 10:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054741', 'tblTempUsageDetail_20' ) start [2024-12-19 10:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054741', 'tblTempUsageDetail_20' ) end [2024-12-19 10:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054741', 'tblTempVendorCDR_20' ) start [2024-12-19 10:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054741', 'tblTempVendorCDR_20' ) end [2024-12-19 10:01:26] Production.INFO: ProcessCDR(1,14054741,1,1,2) [2024-12-19 10:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054741', 'tblTempUsageDetail_20' ) start [2024-12-19 10:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054741', 'tblTempUsageDetail_20' ) end [2024-12-19 10:01:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:01:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:01:31] Production.INFO: ==2582== Releasing lock... [2024-12-19 10:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:01:31] Production.INFO: 46 MB #Memory Used# [2024-12-19 10:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:02:04 [end_date_ymd] => 2024-12-19 10:02:04 [RateCDR] => 1 ) [2024-12-19 10:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:02:04' and `end` < '2024-12-19 10:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:02:25] Production.INFO: count ==2406 [2024-12-19 10:02:26] Production.ERROR: pbx CDR StartTime 2024-12-19 07:02:04 - End Time 2024-12-19 10:02:04 [2024-12-19 10:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054746', 'tblTempUsageDetail_20' ) start [2024-12-19 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054746', 'tblTempUsageDetail_20' ) end [2024-12-19 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054746', 'tblTempVendorCDR_20' ) start [2024-12-19 10:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054746', 'tblTempVendorCDR_20' ) end [2024-12-19 10:02:26] Production.INFO: ProcessCDR(1,14054746,1,1,2) [2024-12-19 10:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054746', 'tblTempUsageDetail_20' ) start [2024-12-19 10:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054746', 'tblTempUsageDetail_20' ) end [2024-12-19 10:02:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:02:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:02:30] Production.INFO: ==2657== Releasing lock... [2024-12-19 10:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:02:30] Production.INFO: 46.5 MB #Memory Used# [2024-12-19 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:03:04 [end_date_ymd] => 2024-12-19 10:03:04 [RateCDR] => 1 ) [2024-12-19 10: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` >= '2024-12-19 07:03:04' and `end` < '2024-12-19 10: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 ,'') [2024-12-19 10:03:18] Production.INFO: count ==2414 [2024-12-19 10:03:19] Production.ERROR: pbx CDR StartTime 2024-12-19 07:03:04 - End Time 2024-12-19 10:03:04 [2024-12-19 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054751', 'tblTempUsageDetail_20' ) start [2024-12-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054751', 'tblTempUsageDetail_20' ) end [2024-12-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054751', 'tblTempVendorCDR_20' ) start [2024-12-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054751', 'tblTempVendorCDR_20' ) end [2024-12-19 10:03:19] Production.INFO: ProcessCDR(1,14054751,1,1,2) [2024-12-19 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054751', 'tblTempUsageDetail_20' ) start [2024-12-19 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054751', 'tblTempUsageDetail_20' ) end [2024-12-19 10:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:03:24] Production.INFO: ==2732== Releasing lock... [2024-12-19 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:03:24] Production.INFO: 46.25 MB #Memory Used# [2024-12-19 10:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:04:04 [end_date_ymd] => 2024-12-19 10:04:04 [RateCDR] => 1 ) [2024-12-19 10:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:04:04' and `end` < '2024-12-19 10:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:04:18] Production.INFO: count ==2430 [2024-12-19 10:04:19] Production.ERROR: pbx CDR StartTime 2024-12-19 07:04:04 - End Time 2024-12-19 10:04:04 [2024-12-19 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054756', 'tblTempUsageDetail_20' ) start [2024-12-19 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054756', 'tblTempUsageDetail_20' ) end [2024-12-19 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054756', 'tblTempVendorCDR_20' ) start [2024-12-19 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054756', 'tblTempVendorCDR_20' ) end [2024-12-19 10:04:19] Production.INFO: ProcessCDR(1,14054756,1,1,2) [2024-12-19 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054756', 'tblTempUsageDetail_20' ) start [2024-12-19 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054756', 'tblTempUsageDetail_20' ) end [2024-12-19 10:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:04:23] Production.INFO: ==2807== Releasing lock... [2024-12-19 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:04:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-19 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:05:05 [end_date_ymd] => 2024-12-19 10:05:05 [RateCDR] => 1 ) [2024-12-19 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:05:05' and `end` < '2024-12-19 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:05:19] Production.INFO: count ==2439 [2024-12-19 10:05:20] Production.ERROR: pbx CDR StartTime 2024-12-19 07:05:05 - End Time 2024-12-19 10:05:05 [2024-12-19 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054761', 'tblTempUsageDetail_20' ) start [2024-12-19 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054761', 'tblTempUsageDetail_20' ) end [2024-12-19 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054761', 'tblTempVendorCDR_20' ) start [2024-12-19 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054761', 'tblTempVendorCDR_20' ) end [2024-12-19 10:05:20] Production.INFO: ProcessCDR(1,14054761,1,1,2) [2024-12-19 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054761', 'tblTempUsageDetail_20' ) start [2024-12-19 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054761', 'tblTempUsageDetail_20' ) end [2024-12-19 10:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:05:25] Production.INFO: ==2880== Releasing lock... [2024-12-19 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:05:25] Production.INFO: 46.5 MB #Memory Used# [2024-12-19 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:06:05 [end_date_ymd] => 2024-12-19 10:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:06:25] Production.INFO: count ==2450 [2024-12-19 10:06:26] Production.ERROR: pbx CDR StartTime 2024-12-19 07:06:05 - End Time 2024-12-19 10:06:05 [2024-12-19 10:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054766', 'tblTempUsageDetail_20' ) start [2024-12-19 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054766', 'tblTempUsageDetail_20' ) end [2024-12-19 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054766', 'tblTempVendorCDR_20' ) start [2024-12-19 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054766', 'tblTempVendorCDR_20' ) end [2024-12-19 10:06:26] Production.INFO: ProcessCDR(1,14054766,1,1,2) [2024-12-19 10:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054766', 'tblTempUsageDetail_20' ) start [2024-12-19 10:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054766', 'tblTempUsageDetail_20' ) end [2024-12-19 10:06:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:06:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:06:31] Production.INFO: ==2957== Releasing lock... [2024-12-19 10:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:06:31] Production.INFO: 46.5 MB #Memory Used# [2024-12-19 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:07:05 [end_date_ymd] => 2024-12-19 10:07:05 [RateCDR] => 1 ) [2024-12-19 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:07:05' and `end` < '2024-12-19 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:07:26] Production.INFO: count ==2465 [2024-12-19 10:07:27] Production.ERROR: pbx CDR StartTime 2024-12-19 07:07:05 - End Time 2024-12-19 10:07:05 [2024-12-19 10:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054771', 'tblTempUsageDetail_20' ) start [2024-12-19 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054771', 'tblTempUsageDetail_20' ) end [2024-12-19 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054771', 'tblTempVendorCDR_20' ) start [2024-12-19 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054771', 'tblTempVendorCDR_20' ) end [2024-12-19 10:07:27] Production.INFO: ProcessCDR(1,14054771,1,1,2) [2024-12-19 10:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054771', 'tblTempUsageDetail_20' ) start [2024-12-19 10:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054771', 'tblTempUsageDetail_20' ) end [2024-12-19 10:07:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:07:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:07:32] Production.INFO: ==3028== Releasing lock... [2024-12-19 10:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:07:32] Production.INFO: 46.5 MB #Memory Used# [2024-12-19 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:08:05 [end_date_ymd] => 2024-12-19 10:08:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:08:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:08:31] Production.INFO: count ==2484 [2024-12-19 10:08:32] Production.ERROR: pbx CDR StartTime 2024-12-19 07:08:05 - End Time 2024-12-19 10:08:05 [2024-12-19 10:08:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054776', 'tblTempUsageDetail_20' ) start [2024-12-19 10:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054776', 'tblTempUsageDetail_20' ) end [2024-12-19 10:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054776', 'tblTempVendorCDR_20' ) start [2024-12-19 10:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054776', 'tblTempVendorCDR_20' ) end [2024-12-19 10:08:32] Production.INFO: ProcessCDR(1,14054776,1,1,2) [2024-12-19 10:08:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:08:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:08:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:08:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054776', 'tblTempUsageDetail_20' ) start [2024-12-19 10:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054776', 'tblTempUsageDetail_20' ) end [2024-12-19 10:08:37] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:08:37] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:08:37] Production.INFO: ==3102== Releasing lock... [2024-12-19 10:08:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:08:37] Production.INFO: 46.75 MB #Memory Used# [2024-12-19 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:09:05 [end_date_ymd] => 2024-12-19 10:09:05 [RateCDR] => 1 ) [2024-12-19 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:09:05' and `end` < '2024-12-19 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:09:27] Production.INFO: count ==2491 [2024-12-19 10:09:28] Production.ERROR: pbx CDR StartTime 2024-12-19 07:09:05 - End Time 2024-12-19 10:09:05 [2024-12-19 10:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054781', 'tblTempUsageDetail_20' ) start [2024-12-19 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054781', 'tblTempUsageDetail_20' ) end [2024-12-19 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054781', 'tblTempVendorCDR_20' ) start [2024-12-19 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054781', 'tblTempVendorCDR_20' ) end [2024-12-19 10:09:28] Production.INFO: ProcessCDR(1,14054781,1,1,2) [2024-12-19 10:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054781', 'tblTempUsageDetail_20' ) start [2024-12-19 10:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054781', 'tblTempUsageDetail_20' ) end [2024-12-19 10:09:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:09:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:09:33] Production.INFO: ==3173== Releasing lock... [2024-12-19 10:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:09:33] Production.INFO: 46.75 MB #Memory Used# [2024-12-19 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:10:05 [end_date_ymd] => 2024-12-19 10:10:05 [RateCDR] => 1 ) [2024-12-19 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:10:05' and `end` < '2024-12-19 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:10:21] Production.INFO: count ==2502 [2024-12-19 10:10:22] Production.ERROR: pbx CDR StartTime 2024-12-19 07:10:05 - End Time 2024-12-19 10:10:05 [2024-12-19 10:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054786', 'tblTempUsageDetail_20' ) start [2024-12-19 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054786', 'tblTempUsageDetail_20' ) end [2024-12-19 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054786', 'tblTempVendorCDR_20' ) start [2024-12-19 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054786', 'tblTempVendorCDR_20' ) end [2024-12-19 10:10:22] Production.INFO: ProcessCDR(1,14054786,1,1,2) [2024-12-19 10:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054786', 'tblTempUsageDetail_20' ) start [2024-12-19 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054786', 'tblTempUsageDetail_20' ) end [2024-12-19 10:10:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:10:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:10:27] Production.INFO: ==3248== Releasing lock... [2024-12-19 10:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:10:27] Production.INFO: 46.75 MB #Memory Used# [2024-12-19 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:11:05 [end_date_ymd] => 2024-12-19 10:11:05 [RateCDR] => 1 ) [2024-12-19 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:11:05' and `end` < '2024-12-19 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:11:22] Production.INFO: count ==2570 [2024-12-19 10:11:22] Production.ERROR: pbx CDR StartTime 2024-12-19 07:11:05 - End Time 2024-12-19 10:11:05 [2024-12-19 10:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054792', 'tblTempUsageDetail_20' ) start [2024-12-19 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054792', 'tblTempUsageDetail_20' ) end [2024-12-19 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054792', 'tblTempVendorCDR_20' ) start [2024-12-19 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054792', 'tblTempVendorCDR_20' ) end [2024-12-19 10:11:23] Production.INFO: ProcessCDR(1,14054792,1,1,2) [2024-12-19 10:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054792', 'tblTempUsageDetail_20' ) start [2024-12-19 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054792', 'tblTempUsageDetail_20' ) end [2024-12-19 10:11:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:11:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:11:27] Production.INFO: ==3324== Releasing lock... [2024-12-19 10:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:11:27] Production.INFO: 47.25 MB #Memory Used# [2024-12-19 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:12:04 [end_date_ymd] => 2024-12-19 10:12:04 [RateCDR] => 1 ) [2024-12-19 10: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` >= '2024-12-19 07:12:04' and `end` < '2024-12-19 10: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 ,'') [2024-12-19 10:12:24] Production.INFO: count ==2579 [2024-12-19 10:12:25] Production.ERROR: pbx CDR StartTime 2024-12-19 07:12:04 - End Time 2024-12-19 10:12:04 [2024-12-19 10:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054797', 'tblTempUsageDetail_20' ) start [2024-12-19 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054797', 'tblTempUsageDetail_20' ) end [2024-12-19 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054797', 'tblTempVendorCDR_20' ) start [2024-12-19 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054797', 'tblTempVendorCDR_20' ) end [2024-12-19 10:12:25] Production.INFO: ProcessCDR(1,14054797,1,1,2) [2024-12-19 10:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054797', 'tblTempUsageDetail_20' ) start [2024-12-19 10:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054797', 'tblTempUsageDetail_20' ) end [2024-12-19 10:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:12:29] Production.INFO: ==3394== Releasing lock... [2024-12-19 10:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:12:29] Production.INFO: 47.5 MB #Memory Used# [2024-12-19 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:13:05 [end_date_ymd] => 2024-12-19 10:13:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:13:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:13:23] Production.INFO: count ==2595 [2024-12-19 10:13:24] Production.ERROR: pbx CDR StartTime 2024-12-19 07:13:05 - End Time 2024-12-19 10:13:05 [2024-12-19 10:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054802', 'tblTempUsageDetail_20' ) start [2024-12-19 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054802', 'tblTempUsageDetail_20' ) end [2024-12-19 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054802', 'tblTempVendorCDR_20' ) start [2024-12-19 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054802', 'tblTempVendorCDR_20' ) end [2024-12-19 10:13:24] Production.INFO: ProcessCDR(1,14054802,1,1,2) [2024-12-19 10:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054802', 'tblTempUsageDetail_20' ) start [2024-12-19 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054802', 'tblTempUsageDetail_20' ) end [2024-12-19 10:13:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:13:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:13:28] Production.INFO: ==3470== Releasing lock... [2024-12-19 10:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:13:28] Production.INFO: 47.5 MB #Memory Used# [2024-12-19 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:14:05 [end_date_ymd] => 2024-12-19 10:14:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:14:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:14:17] Production.INFO: count ==2605 [2024-12-19 10:14:18] Production.ERROR: pbx CDR StartTime 2024-12-19 07:14:05 - End Time 2024-12-19 10:14:05 [2024-12-19 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054807', 'tblTempUsageDetail_20' ) start [2024-12-19 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054807', 'tblTempUsageDetail_20' ) end [2024-12-19 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054807', 'tblTempVendorCDR_20' ) start [2024-12-19 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054807', 'tblTempVendorCDR_20' ) end [2024-12-19 10:14:18] Production.INFO: ProcessCDR(1,14054807,1,1,2) [2024-12-19 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054807', 'tblTempUsageDetail_20' ) start [2024-12-19 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054807', 'tblTempUsageDetail_20' ) end [2024-12-19 10:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:14:23] Production.INFO: ==3541== Releasing lock... [2024-12-19 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:14:23] Production.INFO: 47.5 MB #Memory Used# [2024-12-19 10:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:15:04 [end_date_ymd] => 2024-12-19 10:15:04 [RateCDR] => 1 ) [2024-12-19 10:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:15:04' and `end` < '2024-12-19 10:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:15:18] Production.INFO: count ==2621 [2024-12-19 10:15:19] Production.ERROR: pbx CDR StartTime 2024-12-19 07:15:04 - End Time 2024-12-19 10:15:04 [2024-12-19 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054812', 'tblTempUsageDetail_20' ) start [2024-12-19 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054812', 'tblTempUsageDetail_20' ) end [2024-12-19 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054812', 'tblTempVendorCDR_20' ) start [2024-12-19 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054812', 'tblTempVendorCDR_20' ) end [2024-12-19 10:15:19] Production.INFO: ProcessCDR(1,14054812,1,1,2) [2024-12-19 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054812', 'tblTempUsageDetail_20' ) start [2024-12-19 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054812', 'tblTempUsageDetail_20' ) end [2024-12-19 10:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:15:23] Production.INFO: ==3611== Releasing lock... [2024-12-19 10:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:15:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-19 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:16:05 [end_date_ymd] => 2024-12-19 10:16:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:16:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:16:33] Production.INFO: count ==2638 [2024-12-19 10:16:34] Production.ERROR: pbx CDR StartTime 2024-12-19 07:16:05 - End Time 2024-12-19 10:16:05 [2024-12-19 10:16:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054817', 'tblTempUsageDetail_20' ) start [2024-12-19 10:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054817', 'tblTempUsageDetail_20' ) end [2024-12-19 10:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054817', 'tblTempVendorCDR_20' ) start [2024-12-19 10:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054817', 'tblTempVendorCDR_20' ) end [2024-12-19 10:16:34] Production.INFO: ProcessCDR(1,14054817,1,1,2) [2024-12-19 10:16:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:16:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:16:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:16:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054817', 'tblTempUsageDetail_20' ) start [2024-12-19 10:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054817', 'tblTempUsageDetail_20' ) end [2024-12-19 10:16:39] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:16:39] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:16:39] Production.INFO: ==3684== Releasing lock... [2024-12-19 10:16:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:16:39] Production.INFO: 47.75 MB #Memory Used# [2024-12-19 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:17:04 [end_date_ymd] => 2024-12-19 10:17:04 [RateCDR] => 1 ) [2024-12-19 10:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:17:04' and `end` < '2024-12-19 10:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:17:25] Production.INFO: count ==2707 [2024-12-19 10:17:26] Production.ERROR: pbx CDR StartTime 2024-12-19 07:17:04 - End Time 2024-12-19 10:17:04 [2024-12-19 10:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054822', 'tblTempUsageDetail_20' ) start [2024-12-19 10:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054822', 'tblTempUsageDetail_20' ) end [2024-12-19 10:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054822', 'tblTempVendorCDR_20' ) start [2024-12-19 10:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054822', 'tblTempVendorCDR_20' ) end [2024-12-19 10:17:26] Production.INFO: ProcessCDR(1,14054822,1,1,2) [2024-12-19 10:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054822', 'tblTempUsageDetail_20' ) start [2024-12-19 10:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054822', 'tblTempUsageDetail_20' ) end [2024-12-19 10:17:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:17:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:17:31] Production.INFO: ==3799== Releasing lock... [2024-12-19 10:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:17:31] Production.INFO: 48.25 MB #Memory Used# [2024-12-19 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:18:05 [end_date_ymd] => 2024-12-19 10:18:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:18:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:18:18] Production.INFO: count ==2737 [2024-12-19 10:18:20] Production.ERROR: pbx CDR StartTime 2024-12-19 07:18:05 - End Time 2024-12-19 10:18:05 [2024-12-19 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054827', 'tblTempUsageDetail_20' ) start [2024-12-19 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054827', 'tblTempUsageDetail_20' ) end [2024-12-19 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054827', 'tblTempVendorCDR_20' ) start [2024-12-19 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054827', 'tblTempVendorCDR_20' ) end [2024-12-19 10:18:20] Production.INFO: ProcessCDR(1,14054827,1,1,2) [2024-12-19 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054827', 'tblTempUsageDetail_20' ) start [2024-12-19 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054827', 'tblTempUsageDetail_20' ) end [2024-12-19 10:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:18:25] Production.INFO: ==3872== Releasing lock... [2024-12-19 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:18:25] Production.INFO: 48.25 MB #Memory Used# [2024-12-19 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:19:04 [end_date_ymd] => 2024-12-19 10:19:04 [RateCDR] => 1 ) [2024-12-19 10:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:19:04' and `end` < '2024-12-19 10:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:19:21] Production.INFO: count ==2754 [2024-12-19 10:19:22] Production.ERROR: pbx CDR StartTime 2024-12-19 07:19:04 - End Time 2024-12-19 10:19:04 [2024-12-19 10:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054832', 'tblTempUsageDetail_20' ) start [2024-12-19 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054832', 'tblTempUsageDetail_20' ) end [2024-12-19 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054832', 'tblTempVendorCDR_20' ) start [2024-12-19 10:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054832', 'tblTempVendorCDR_20' ) end [2024-12-19 10:19:22] Production.INFO: ProcessCDR(1,14054832,1,1,2) [2024-12-19 10:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054832', 'tblTempUsageDetail_20' ) start [2024-12-19 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054832', 'tblTempUsageDetail_20' ) end [2024-12-19 10:19:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:19:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:19:27] Production.INFO: ==3943== Releasing lock... [2024-12-19 10:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:19:27] Production.INFO: 49.5 MB #Memory Used# [2024-12-19 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:20:05 [end_date_ymd] => 2024-12-19 10:20:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:20:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:20:22] Production.INFO: count ==2780 [2024-12-19 10:20:23] Production.ERROR: pbx CDR StartTime 2024-12-19 07:20:05 - End Time 2024-12-19 10:20:05 [2024-12-19 10:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054838', 'tblTempUsageDetail_20' ) start [2024-12-19 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054838', 'tblTempUsageDetail_20' ) end [2024-12-19 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054838', 'tblTempVendorCDR_20' ) start [2024-12-19 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054838', 'tblTempVendorCDR_20' ) end [2024-12-19 10:20:23] Production.INFO: ProcessCDR(1,14054838,1,1,2) [2024-12-19 10:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054838', 'tblTempUsageDetail_20' ) start [2024-12-19 10:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054838', 'tblTempUsageDetail_20' ) end [2024-12-19 10:20:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:20:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:20:28] Production.INFO: ==4017== Releasing lock... [2024-12-19 10:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:20:28] Production.INFO: 49 MB #Memory Used# [2024-12-19 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:21:05 [end_date_ymd] => 2024-12-19 10:21:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:21:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:21:25] Production.INFO: count ==2917 [2024-12-19 10:21:26] Production.ERROR: pbx CDR StartTime 2024-12-19 07:21:05 - End Time 2024-12-19 10:21:05 [2024-12-19 10:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054843', 'tblTempUsageDetail_20' ) start [2024-12-19 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054843', 'tblTempUsageDetail_20' ) end [2024-12-19 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054843', 'tblTempVendorCDR_20' ) start [2024-12-19 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054843', 'tblTempVendorCDR_20' ) end [2024-12-19 10:21:26] Production.INFO: ProcessCDR(1,14054843,1,1,2) [2024-12-19 10:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054843', 'tblTempUsageDetail_20' ) start [2024-12-19 10:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054843', 'tblTempUsageDetail_20' ) end [2024-12-19 10:21:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:21:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:21:31] Production.INFO: ==4092== Releasing lock... [2024-12-19 10:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:21:31] Production.INFO: 49.75 MB #Memory Used# [2024-12-19 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:22:05 [end_date_ymd] => 2024-12-19 10:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:22:22] Production.INFO: count ==2939 [2024-12-19 10:22:23] Production.ERROR: pbx CDR StartTime 2024-12-19 07:22:05 - End Time 2024-12-19 10:22:05 [2024-12-19 10:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054848', 'tblTempUsageDetail_20' ) start [2024-12-19 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054848', 'tblTempUsageDetail_20' ) end [2024-12-19 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054848', 'tblTempVendorCDR_20' ) start [2024-12-19 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054848', 'tblTempVendorCDR_20' ) end [2024-12-19 10:22:23] Production.INFO: ProcessCDR(1,14054848,1,1,2) [2024-12-19 10:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054848', 'tblTempUsageDetail_20' ) start [2024-12-19 10:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054848', 'tblTempUsageDetail_20' ) end [2024-12-19 10:22:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:22:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:22:28] Production.INFO: ==4165== Releasing lock... [2024-12-19 10:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:22:28] Production.INFO: 50 MB #Memory Used# [2024-12-19 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:23:05 [end_date_ymd] => 2024-12-19 10:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:23:19] Production.INFO: count ==2965 [2024-12-19 10:23:20] Production.ERROR: pbx CDR StartTime 2024-12-19 07:23:05 - End Time 2024-12-19 10:23:05 [2024-12-19 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054853', 'tblTempUsageDetail_20' ) start [2024-12-19 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054853', 'tblTempUsageDetail_20' ) end [2024-12-19 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054853', 'tblTempVendorCDR_20' ) start [2024-12-19 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054853', 'tblTempVendorCDR_20' ) end [2024-12-19 10:23:20] Production.INFO: ProcessCDR(1,14054853,1,1,2) [2024-12-19 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054853', 'tblTempUsageDetail_20' ) start [2024-12-19 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054853', 'tblTempUsageDetail_20' ) end [2024-12-19 10:23:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:23:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:23:25] Production.INFO: ==4237== Releasing lock... [2024-12-19 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:23:25] Production.INFO: 50 MB #Memory Used# [2024-12-19 10:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:24:04 [end_date_ymd] => 2024-12-19 10:24:04 [RateCDR] => 1 ) [2024-12-19 10: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` >= '2024-12-19 07:24:04' and `end` < '2024-12-19 10: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 ,'') [2024-12-19 10:24:22] Production.INFO: count ==2980 [2024-12-19 10:24:23] Production.ERROR: pbx CDR StartTime 2024-12-19 07:24:04 - End Time 2024-12-19 10:24:04 [2024-12-19 10:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054858', 'tblTempUsageDetail_20' ) start [2024-12-19 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054858', 'tblTempUsageDetail_20' ) end [2024-12-19 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054858', 'tblTempVendorCDR_20' ) start [2024-12-19 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054858', 'tblTempVendorCDR_20' ) end [2024-12-19 10:24:23] Production.INFO: ProcessCDR(1,14054858,1,1,2) [2024-12-19 10:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054858', 'tblTempUsageDetail_20' ) start [2024-12-19 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054858', 'tblTempUsageDetail_20' ) end [2024-12-19 10:24:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:24:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:24:27] Production.INFO: ==4308== Releasing lock... [2024-12-19 10:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:24:27] Production.INFO: 50.5 MB #Memory Used# [2024-12-19 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:25:05 [end_date_ymd] => 2024-12-19 10:25:05 [RateCDR] => 1 ) [2024-12-19 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:25:05' and `end` < '2024-12-19 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:25:24] Production.INFO: count ==2996 [2024-12-19 10:25:25] Production.ERROR: pbx CDR StartTime 2024-12-19 07:25:05 - End Time 2024-12-19 10:25:05 [2024-12-19 10:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054863', 'tblTempUsageDetail_20' ) start [2024-12-19 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054863', 'tblTempUsageDetail_20' ) end [2024-12-19 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054863', 'tblTempVendorCDR_20' ) start [2024-12-19 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054863', 'tblTempVendorCDR_20' ) end [2024-12-19 10:25:25] Production.INFO: ProcessCDR(1,14054863,1,1,2) [2024-12-19 10:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054863', 'tblTempUsageDetail_20' ) start [2024-12-19 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054863', 'tblTempUsageDetail_20' ) end [2024-12-19 10:25:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:25:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:25:30] Production.INFO: ==4381== Releasing lock... [2024-12-19 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:25:30] Production.INFO: 50.5 MB #Memory Used# [2024-12-19 10:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:26:04 [end_date_ymd] => 2024-12-19 10:26:04 [RateCDR] => 1 ) [2024-12-19 10:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:26:04' and `end` < '2024-12-19 10:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:26:20] Production.INFO: count ==3024 [2024-12-19 10:26:21] Production.ERROR: pbx CDR StartTime 2024-12-19 07:26:04 - End Time 2024-12-19 10:26:04 [2024-12-19 10:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054868', 'tblTempUsageDetail_20' ) start [2024-12-19 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054868', 'tblTempUsageDetail_20' ) end [2024-12-19 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054868', 'tblTempVendorCDR_20' ) start [2024-12-19 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054868', 'tblTempVendorCDR_20' ) end [2024-12-19 10:26:22] Production.INFO: ProcessCDR(1,14054868,1,1,2) [2024-12-19 10:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054868', 'tblTempUsageDetail_20' ) start [2024-12-19 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054868', 'tblTempUsageDetail_20' ) end [2024-12-19 10:26:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:26:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:26:26] Production.INFO: ==4458== Releasing lock... [2024-12-19 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:26:26] Production.INFO: 50.75 MB #Memory Used# [2024-12-19 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:27:05 [end_date_ymd] => 2024-12-19 10:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:27:17] Production.INFO: count ==3036 [2024-12-19 10:27:19] Production.ERROR: pbx CDR StartTime 2024-12-19 07:27:05 - End Time 2024-12-19 10:27:05 [2024-12-19 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054873', 'tblTempUsageDetail_20' ) start [2024-12-19 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054873', 'tblTempUsageDetail_20' ) end [2024-12-19 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054873', 'tblTempVendorCDR_20' ) start [2024-12-19 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054873', 'tblTempVendorCDR_20' ) end [2024-12-19 10:27:19] Production.INFO: ProcessCDR(1,14054873,1,1,2) [2024-12-19 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054873', 'tblTempUsageDetail_20' ) start [2024-12-19 10:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054873', 'tblTempUsageDetail_20' ) end [2024-12-19 10:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:27:22] Production.INFO: ==4529== Releasing lock... [2024-12-19 10:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:27:22] Production.INFO: 50.5 MB #Memory Used# [2024-12-19 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:28:05 [end_date_ymd] => 2024-12-19 10:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:28:18] Production.INFO: count ==3053 [2024-12-19 10:28:20] Production.ERROR: pbx CDR StartTime 2024-12-19 07:28:05 - End Time 2024-12-19 10:28:05 [2024-12-19 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054878', 'tblTempUsageDetail_20' ) start [2024-12-19 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054878', 'tblTempUsageDetail_20' ) end [2024-12-19 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054878', 'tblTempVendorCDR_20' ) start [2024-12-19 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054878', 'tblTempVendorCDR_20' ) end [2024-12-19 10:28:20] Production.INFO: ProcessCDR(1,14054878,1,1,2) [2024-12-19 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054878', 'tblTempUsageDetail_20' ) start [2024-12-19 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054878', 'tblTempUsageDetail_20' ) end [2024-12-19 10:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:28:24] Production.INFO: ==4614== Releasing lock... [2024-12-19 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:28:24] Production.INFO: 51.5 MB #Memory Used# [2024-12-19 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:29:04 [end_date_ymd] => 2024-12-19 10:29:04 [RateCDR] => 1 ) [2024-12-19 10:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:29:04' and `end` < '2024-12-19 10:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:29:21] Production.INFO: count ==3066 [2024-12-19 10:29:23] Production.ERROR: pbx CDR StartTime 2024-12-19 07:29:04 - End Time 2024-12-19 10:29:04 [2024-12-19 10:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054883', 'tblTempUsageDetail_20' ) start [2024-12-19 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054883', 'tblTempUsageDetail_20' ) end [2024-12-19 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054883', 'tblTempVendorCDR_20' ) start [2024-12-19 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054883', 'tblTempVendorCDR_20' ) end [2024-12-19 10:29:23] Production.INFO: ProcessCDR(1,14054883,1,1,2) [2024-12-19 10:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054883', 'tblTempUsageDetail_20' ) start [2024-12-19 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054883', 'tblTempUsageDetail_20' ) end [2024-12-19 10:29:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:29:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:29:28] Production.INFO: ==4687== Releasing lock... [2024-12-19 10:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:29:28] Production.INFO: 51 MB #Memory Used# [2024-12-19 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:30:06 [end_date_ymd] => 2024-12-19 10:30:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:30:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:30:19] Production.INFO: count ==3095 [2024-12-19 10:30:20] Production.ERROR: pbx CDR StartTime 2024-12-19 07:30:06 - End Time 2024-12-19 10:30:06 [2024-12-19 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054889', 'tblTempUsageDetail_20' ) start [2024-12-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054889', 'tblTempUsageDetail_20' ) end [2024-12-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054889', 'tblTempVendorCDR_20' ) start [2024-12-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054889', 'tblTempVendorCDR_20' ) end [2024-12-19 10:30:20] Production.INFO: ProcessCDR(1,14054889,1,1,2) [2024-12-19 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054889', 'tblTempUsageDetail_20' ) start [2024-12-19 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054889', 'tblTempUsageDetail_20' ) end [2024-12-19 10:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:30:25] Production.INFO: ==4760== Releasing lock... [2024-12-19 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:30:25] Production.INFO: 51 MB #Memory Used# [2024-12-19 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:31:05 [end_date_ymd] => 2024-12-19 10:31:05 [RateCDR] => 1 ) [2024-12-19 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:31:05' and `end` < '2024-12-19 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:31:17] Production.INFO: count ==3203 [2024-12-19 10:31:18] Production.ERROR: pbx CDR StartTime 2024-12-19 07:31:05 - End Time 2024-12-19 10:31:05 [2024-12-19 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054894', 'tblTempUsageDetail_20' ) start [2024-12-19 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054894', 'tblTempUsageDetail_20' ) end [2024-12-19 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054894', 'tblTempVendorCDR_20' ) start [2024-12-19 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054894', 'tblTempVendorCDR_20' ) end [2024-12-19 10:31:18] Production.INFO: ProcessCDR(1,14054894,1,1,2) [2024-12-19 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054894', 'tblTempUsageDetail_20' ) start [2024-12-19 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054894', 'tblTempUsageDetail_20' ) end [2024-12-19 10:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:31:23] Production.INFO: ==4836== Releasing lock... [2024-12-19 10:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:31:23] Production.INFO: 52 MB #Memory Used# [2024-12-19 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:32:05 [end_date_ymd] => 2024-12-19 10:32:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:32:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:32:22] Production.INFO: count ==3213 [2024-12-19 10:32:23] Production.ERROR: pbx CDR StartTime 2024-12-19 07:32:05 - End Time 2024-12-19 10:32:05 [2024-12-19 10:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054899', 'tblTempUsageDetail_20' ) start [2024-12-19 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054899', 'tblTempUsageDetail_20' ) end [2024-12-19 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054899', 'tblTempVendorCDR_20' ) start [2024-12-19 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054899', 'tblTempVendorCDR_20' ) end [2024-12-19 10:32:23] Production.INFO: ProcessCDR(1,14054899,1,1,2) [2024-12-19 10:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054899', 'tblTempUsageDetail_20' ) start [2024-12-19 10:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054899', 'tblTempUsageDetail_20' ) end [2024-12-19 10:32:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:32:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:32:28] Production.INFO: ==4946== Releasing lock... [2024-12-19 10:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:32:28] Production.INFO: 52.5 MB #Memory Used# [2024-12-19 10:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:33:04 [end_date_ymd] => 2024-12-19 10:33:04 [RateCDR] => 1 ) [2024-12-19 10:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:33:04' and `end` < '2024-12-19 10:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:33:17] Production.INFO: count ==3222 [2024-12-19 10:33:18] Production.ERROR: pbx CDR StartTime 2024-12-19 07:33:04 - End Time 2024-12-19 10:33:04 [2024-12-19 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054904', 'tblTempUsageDetail_20' ) start [2024-12-19 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054904', 'tblTempUsageDetail_20' ) end [2024-12-19 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054904', 'tblTempVendorCDR_20' ) start [2024-12-19 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054904', 'tblTempVendorCDR_20' ) end [2024-12-19 10:33:18] Production.INFO: ProcessCDR(1,14054904,1,1,2) [2024-12-19 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054904', 'tblTempUsageDetail_20' ) start [2024-12-19 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054904', 'tblTempUsageDetail_20' ) end [2024-12-19 10:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:33:22] Production.INFO: ==5024== Releasing lock... [2024-12-19 10:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:33:22] Production.INFO: 53 MB #Memory Used# [2024-12-19 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:34:05 [end_date_ymd] => 2024-12-19 10:34:05 [RateCDR] => 1 ) [2024-12-19 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:34:05' and `end` < '2024-12-19 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:34:26] Production.INFO: count ==3263 [2024-12-19 10:34:27] Production.ERROR: pbx CDR StartTime 2024-12-19 07:34:05 - End Time 2024-12-19 10:34:05 [2024-12-19 10:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054909', 'tblTempUsageDetail_20' ) start [2024-12-19 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054909', 'tblTempUsageDetail_20' ) end [2024-12-19 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054909', 'tblTempVendorCDR_20' ) start [2024-12-19 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054909', 'tblTempVendorCDR_20' ) end [2024-12-19 10:34:27] Production.INFO: ProcessCDR(1,14054909,1,1,2) [2024-12-19 10:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054909', 'tblTempUsageDetail_20' ) start [2024-12-19 10:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054909', 'tblTempUsageDetail_20' ) end [2024-12-19 10:34:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:34:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:34:32] Production.INFO: ==5097== Releasing lock... [2024-12-19 10:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:34:32] Production.INFO: 52.75 MB #Memory Used# [2024-12-19 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:35:05 [end_date_ymd] => 2024-12-19 10:35:05 [RateCDR] => 1 ) [2024-12-19 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:35:05' and `end` < '2024-12-19 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:35:23] Production.INFO: count ==3288 [2024-12-19 10:35:25] Production.ERROR: pbx CDR StartTime 2024-12-19 07:35:05 - End Time 2024-12-19 10:35:05 [2024-12-19 10:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054914', 'tblTempUsageDetail_20' ) start [2024-12-19 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054914', 'tblTempUsageDetail_20' ) end [2024-12-19 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054914', 'tblTempVendorCDR_20' ) start [2024-12-19 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054914', 'tblTempVendorCDR_20' ) end [2024-12-19 10:35:25] Production.INFO: ProcessCDR(1,14054914,1,1,2) [2024-12-19 10:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054914', 'tblTempUsageDetail_20' ) start [2024-12-19 10:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054914', 'tblTempUsageDetail_20' ) end [2024-12-19 10:35:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:35:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:35:30] Production.INFO: ==5169== Releasing lock... [2024-12-19 10:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:35:30] Production.INFO: 53 MB #Memory Used# [2024-12-19 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:36:05 [end_date_ymd] => 2024-12-19 10:36:05 [RateCDR] => 1 ) [2024-12-19 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:36:05' and `end` < '2024-12-19 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:36:18] Production.INFO: count ==3315 [2024-12-19 10:36:19] Production.ERROR: pbx CDR StartTime 2024-12-19 07:36:05 - End Time 2024-12-19 10:36:05 [2024-12-19 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054919', 'tblTempUsageDetail_20' ) start [2024-12-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054919', 'tblTempUsageDetail_20' ) end [2024-12-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054919', 'tblTempVendorCDR_20' ) start [2024-12-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054919', 'tblTempVendorCDR_20' ) end [2024-12-19 10:36:19] Production.INFO: ProcessCDR(1,14054919,1,1,2) [2024-12-19 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054919', 'tblTempUsageDetail_20' ) start [2024-12-19 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054919', 'tblTempUsageDetail_20' ) end [2024-12-19 10:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:36:24] Production.INFO: ==5243== Releasing lock... [2024-12-19 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:36:24] Production.INFO: 52.75 MB #Memory Used# [2024-12-19 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:37:05 [end_date_ymd] => 2024-12-19 10:37:05 [RateCDR] => 1 ) [2024-12-19 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:37:05' and `end` < '2024-12-19 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:37:22] Production.INFO: count ==3340 [2024-12-19 10:37:23] Production.ERROR: pbx CDR StartTime 2024-12-19 07:37:05 - End Time 2024-12-19 10:37:05 [2024-12-19 10:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054924', 'tblTempUsageDetail_20' ) start [2024-12-19 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054924', 'tblTempUsageDetail_20' ) end [2024-12-19 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054924', 'tblTempVendorCDR_20' ) start [2024-12-19 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054924', 'tblTempVendorCDR_20' ) end [2024-12-19 10:37:24] Production.INFO: ProcessCDR(1,14054924,1,1,2) [2024-12-19 10:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054924', 'tblTempUsageDetail_20' ) start [2024-12-19 10:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054924', 'tblTempUsageDetail_20' ) end [2024-12-19 10:37:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:37:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:37:28] Production.INFO: ==5316== Releasing lock... [2024-12-19 10:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:37:28] Production.INFO: 53.25 MB #Memory Used# [2024-12-19 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:38:05 [end_date_ymd] => 2024-12-19 10:38:05 [RateCDR] => 1 ) [2024-12-19 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:38:05' and `end` < '2024-12-19 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:38:20] Production.INFO: count ==3370 [2024-12-19 10:38:21] Production.ERROR: pbx CDR StartTime 2024-12-19 07:38:05 - End Time 2024-12-19 10:38:05 [2024-12-19 10:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054929', 'tblTempUsageDetail_20' ) start [2024-12-19 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054929', 'tblTempUsageDetail_20' ) end [2024-12-19 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054929', 'tblTempVendorCDR_20' ) start [2024-12-19 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054929', 'tblTempVendorCDR_20' ) end [2024-12-19 10:38:21] Production.INFO: ProcessCDR(1,14054929,1,1,2) [2024-12-19 10:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054929', 'tblTempUsageDetail_20' ) start [2024-12-19 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054929', 'tblTempUsageDetail_20' ) end [2024-12-19 10:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:38:24] Production.INFO: ==5386== Releasing lock... [2024-12-19 10:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:38:24] Production.INFO: 53 MB #Memory Used# [2024-12-19 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:39:05 [end_date_ymd] => 2024-12-19 10:39:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:39:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:39:22] Production.INFO: count ==3381 [2024-12-19 10:39:24] Production.ERROR: pbx CDR StartTime 2024-12-19 07:39:05 - End Time 2024-12-19 10:39:05 [2024-12-19 10:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054934', 'tblTempUsageDetail_20' ) start [2024-12-19 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054934', 'tblTempUsageDetail_20' ) end [2024-12-19 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054934', 'tblTempVendorCDR_20' ) start [2024-12-19 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054934', 'tblTempVendorCDR_20' ) end [2024-12-19 10:39:24] Production.INFO: ProcessCDR(1,14054934,1,1,2) [2024-12-19 10:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054934', 'tblTempUsageDetail_20' ) start [2024-12-19 10:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054934', 'tblTempUsageDetail_20' ) end [2024-12-19 10:39:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:39:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:39:29] Production.INFO: ==5461== Releasing lock... [2024-12-19 10:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:39:29] Production.INFO: 53.5 MB #Memory Used# [2024-12-19 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:40:05 [end_date_ymd] => 2024-12-19 10:40:05 [RateCDR] => 1 ) [2024-12-19 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:40:05' and `end` < '2024-12-19 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:40:26] Production.INFO: count ==3389 [2024-12-19 10:40:27] Production.ERROR: pbx CDR StartTime 2024-12-19 07:40:05 - End Time 2024-12-19 10:40:05 [2024-12-19 10:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054939', 'tblTempUsageDetail_20' ) start [2024-12-19 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054939', 'tblTempUsageDetail_20' ) end [2024-12-19 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054939', 'tblTempVendorCDR_20' ) start [2024-12-19 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054939', 'tblTempVendorCDR_20' ) end [2024-12-19 10:40:27] Production.INFO: ProcessCDR(1,14054939,1,1,2) [2024-12-19 10:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054939', 'tblTempUsageDetail_20' ) start [2024-12-19 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054939', 'tblTempUsageDetail_20' ) end [2024-12-19 10:40:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:40:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:40:32] Production.INFO: ==5534== Releasing lock... [2024-12-19 10:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:40:32] Production.INFO: 53.25 MB #Memory Used# [2024-12-19 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:41:05 [end_date_ymd] => 2024-12-19 10:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:41:25] Production.INFO: count ==3484 [2024-12-19 10:41:26] Production.ERROR: pbx CDR StartTime 2024-12-19 07:41:05 - End Time 2024-12-19 10:41:05 [2024-12-19 10:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054945', 'tblTempUsageDetail_20' ) start [2024-12-19 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054945', 'tblTempUsageDetail_20' ) end [2024-12-19 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054945', 'tblTempVendorCDR_20' ) start [2024-12-19 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054945', 'tblTempVendorCDR_20' ) end [2024-12-19 10:41:26] Production.INFO: ProcessCDR(1,14054945,1,1,2) [2024-12-19 10:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054945', 'tblTempUsageDetail_20' ) start [2024-12-19 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054945', 'tblTempUsageDetail_20' ) end [2024-12-19 10:41:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:41:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:41:31] Production.INFO: ==5609== Releasing lock... [2024-12-19 10:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:41:31] Production.INFO: 54 MB #Memory Used# [2024-12-19 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:42:05 [end_date_ymd] => 2024-12-19 10:42:05 [RateCDR] => 1 ) [2024-12-19 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:42:05' and `end` < '2024-12-19 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:42:18] Production.INFO: count ==3499 [2024-12-19 10:42:19] Production.ERROR: pbx CDR StartTime 2024-12-19 07:42:05 - End Time 2024-12-19 10:42:05 [2024-12-19 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054950', 'tblTempUsageDetail_20' ) start [2024-12-19 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054950', 'tblTempUsageDetail_20' ) end [2024-12-19 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054950', 'tblTempVendorCDR_20' ) start [2024-12-19 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054950', 'tblTempVendorCDR_20' ) end [2024-12-19 10:42:19] Production.INFO: ProcessCDR(1,14054950,1,1,2) [2024-12-19 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054950', 'tblTempUsageDetail_20' ) start [2024-12-19 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054950', 'tblTempUsageDetail_20' ) end [2024-12-19 10:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:42:24] Production.INFO: ==5683== Releasing lock... [2024-12-19 10:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:42:24] Production.INFO: 55 MB #Memory Used# [2024-12-19 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:43:05 [end_date_ymd] => 2024-12-19 10:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:43:25] Production.INFO: count ==3524 [2024-12-19 10:43:26] Production.ERROR: pbx CDR StartTime 2024-12-19 07:43:05 - End Time 2024-12-19 10:43:05 [2024-12-19 10:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054955', 'tblTempUsageDetail_20' ) start [2024-12-19 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054955', 'tblTempUsageDetail_20' ) end [2024-12-19 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054955', 'tblTempVendorCDR_20' ) start [2024-12-19 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054955', 'tblTempVendorCDR_20' ) end [2024-12-19 10:43:26] Production.INFO: ProcessCDR(1,14054955,1,1,2) [2024-12-19 10:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054955', 'tblTempUsageDetail_20' ) start [2024-12-19 10:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054955', 'tblTempUsageDetail_20' ) end [2024-12-19 10:43:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:43:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:43:31] Production.INFO: ==5755== Releasing lock... [2024-12-19 10:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:43:31] Production.INFO: 55 MB #Memory Used# [2024-12-19 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:44:04 [end_date_ymd] => 2024-12-19 10:44:04 [RateCDR] => 1 ) [2024-12-19 10:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:44:04' and `end` < '2024-12-19 10:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:44:31] Production.INFO: count ==3540 [2024-12-19 10:44:32] Production.ERROR: pbx CDR StartTime 2024-12-19 07:44:04 - End Time 2024-12-19 10:44:04 [2024-12-19 10:44:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054960', 'tblTempUsageDetail_20' ) start [2024-12-19 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054960', 'tblTempUsageDetail_20' ) end [2024-12-19 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054960', 'tblTempVendorCDR_20' ) start [2024-12-19 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054960', 'tblTempVendorCDR_20' ) end [2024-12-19 10:44:32] Production.INFO: ProcessCDR(1,14054960,1,1,2) [2024-12-19 10:44:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:44:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:44:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:44:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054960', 'tblTempUsageDetail_20' ) start [2024-12-19 10:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054960', 'tblTempUsageDetail_20' ) end [2024-12-19 10:44:37] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:44:37] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:44:37] Production.INFO: ==5827== Releasing lock... [2024-12-19 10:44:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:44:37] Production.INFO: 55.25 MB #Memory Used# [2024-12-19 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:45:05 [end_date_ymd] => 2024-12-19 10:45:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:45:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:45:29] Production.INFO: count ==3573 [2024-12-19 10:45:31] Production.ERROR: pbx CDR StartTime 2024-12-19 07:45:05 - End Time 2024-12-19 10:45:05 [2024-12-19 10:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054965', 'tblTempUsageDetail_20' ) start [2024-12-19 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054965', 'tblTempUsageDetail_20' ) end [2024-12-19 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054965', 'tblTempVendorCDR_20' ) start [2024-12-19 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054965', 'tblTempVendorCDR_20' ) end [2024-12-19 10:45:31] Production.INFO: ProcessCDR(1,14054965,1,1,2) [2024-12-19 10:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054965', 'tblTempUsageDetail_20' ) start [2024-12-19 10:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054965', 'tblTempUsageDetail_20' ) end [2024-12-19 10:45:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:45:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:45:36] Production.INFO: ==5903== Releasing lock... [2024-12-19 10:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:45:36] Production.INFO: 55.25 MB #Memory Used# [2024-12-19 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:46:04 [end_date_ymd] => 2024-12-19 10:46:04 [RateCDR] => 1 ) [2024-12-19 10: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` >= '2024-12-19 07:46:04' and `end` < '2024-12-19 10: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 ,'') [2024-12-19 10:46:24] Production.INFO: count ==3580 [2024-12-19 10:46:25] Production.ERROR: pbx CDR StartTime 2024-12-19 07:46:04 - End Time 2024-12-19 10:46:04 [2024-12-19 10:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054970', 'tblTempUsageDetail_20' ) start [2024-12-19 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054970', 'tblTempUsageDetail_20' ) end [2024-12-19 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054970', 'tblTempVendorCDR_20' ) start [2024-12-19 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054970', 'tblTempVendorCDR_20' ) end [2024-12-19 10:46:25] Production.INFO: ProcessCDR(1,14054970,1,1,2) [2024-12-19 10:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054970', 'tblTempUsageDetail_20' ) start [2024-12-19 10:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054970', 'tblTempUsageDetail_20' ) end [2024-12-19 10:46:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:46:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:46:30] Production.INFO: ==5974== Releasing lock... [2024-12-19 10:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:46:30] Production.INFO: 54.75 MB #Memory Used# [2024-12-19 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:47:05 [end_date_ymd] => 2024-12-19 10:47:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:47:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:47:22] Production.INFO: count ==3606 [2024-12-19 10:47:24] Production.ERROR: pbx CDR StartTime 2024-12-19 07:47:05 - End Time 2024-12-19 10:47:05 [2024-12-19 10:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054975', 'tblTempUsageDetail_20' ) start [2024-12-19 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054975', 'tblTempUsageDetail_20' ) end [2024-12-19 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054975', 'tblTempVendorCDR_20' ) start [2024-12-19 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054975', 'tblTempVendorCDR_20' ) end [2024-12-19 10:47:24] Production.INFO: ProcessCDR(1,14054975,1,1,2) [2024-12-19 10:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054975', 'tblTempUsageDetail_20' ) start [2024-12-19 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054975', 'tblTempUsageDetail_20' ) end [2024-12-19 10:47:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:47:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:47:28] Production.INFO: ==6051== Releasing lock... [2024-12-19 10:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:47:28] Production.INFO: 55.25 MB #Memory Used# [2024-12-19 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:48:05 [end_date_ymd] => 2024-12-19 10:48:05 [RateCDR] => 1 ) [2024-12-19 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:48:05' and `end` < '2024-12-19 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:48:18] Production.INFO: count ==3628 [2024-12-19 10:48:19] Production.ERROR: pbx CDR StartTime 2024-12-19 07:48:05 - End Time 2024-12-19 10:48:05 [2024-12-19 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054980', 'tblTempUsageDetail_20' ) start [2024-12-19 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054980', 'tblTempUsageDetail_20' ) end [2024-12-19 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054980', 'tblTempVendorCDR_20' ) start [2024-12-19 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054980', 'tblTempVendorCDR_20' ) end [2024-12-19 10:48:19] Production.INFO: ProcessCDR(1,14054980,1,1,2) [2024-12-19 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054980', 'tblTempUsageDetail_20' ) start [2024-12-19 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054980', 'tblTempUsageDetail_20' ) end [2024-12-19 10:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:48:24] Production.INFO: ==6163== Releasing lock... [2024-12-19 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:48:24] Production.INFO: 55 MB #Memory Used# [2024-12-19 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:49:05 [end_date_ymd] => 2024-12-19 10:49:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:49:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:49:28] Production.INFO: count ==3662 [2024-12-19 10:49:29] Production.ERROR: pbx CDR StartTime 2024-12-19 07:49:05 - End Time 2024-12-19 10:49:05 [2024-12-19 10:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054985', 'tblTempUsageDetail_20' ) start [2024-12-19 10:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054985', 'tblTempUsageDetail_20' ) end [2024-12-19 10:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054985', 'tblTempVendorCDR_20' ) start [2024-12-19 10:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054985', 'tblTempVendorCDR_20' ) end [2024-12-19 10:49:30] Production.INFO: ProcessCDR(1,14054985,1,1,2) [2024-12-19 10:49:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:49:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:49:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:49:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054985', 'tblTempUsageDetail_20' ) start [2024-12-19 10:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054985', 'tblTempUsageDetail_20' ) end [2024-12-19 10:49:34] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:49:34] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:49:34] Production.INFO: ==6234== Releasing lock... [2024-12-19 10:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:49:34] Production.INFO: 55.5 MB #Memory Used# [2024-12-19 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:50:05 [end_date_ymd] => 2024-12-19 10:50:05 [RateCDR] => 1 ) [2024-12-19 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:50:05' and `end` < '2024-12-19 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:50:20] Production.INFO: count ==3674 [2024-12-19 10:50:22] Production.ERROR: pbx CDR StartTime 2024-12-19 07:50:05 - End Time 2024-12-19 10:50:05 [2024-12-19 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054991', 'tblTempUsageDetail_20' ) start [2024-12-19 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054991', 'tblTempUsageDetail_20' ) end [2024-12-19 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054991', 'tblTempVendorCDR_20' ) start [2024-12-19 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054991', 'tblTempVendorCDR_20' ) end [2024-12-19 10:50:22] Production.INFO: ProcessCDR(1,14054991,1,1,2) [2024-12-19 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054991', 'tblTempUsageDetail_20' ) start [2024-12-19 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054991', 'tblTempUsageDetail_20' ) end [2024-12-19 10:50:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:50:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:50:27] Production.INFO: ==6310== Releasing lock... [2024-12-19 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:50:27] Production.INFO: 55.5 MB #Memory Used# [2024-12-19 10:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:51:04 [end_date_ymd] => 2024-12-19 10:51:04 [RateCDR] => 1 ) [2024-12-19 10: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` >= '2024-12-19 07:51:04' and `end` < '2024-12-19 10: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 ,'') [2024-12-19 10:51:21] Production.INFO: count ==3776 [2024-12-19 10:51:22] Production.ERROR: pbx CDR StartTime 2024-12-19 07:51:04 - End Time 2024-12-19 10:51:04 [2024-12-19 10:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054996', 'tblTempUsageDetail_20' ) start [2024-12-19 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14054996', 'tblTempUsageDetail_20' ) end [2024-12-19 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054996', 'tblTempVendorCDR_20' ) start [2024-12-19 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14054996', 'tblTempVendorCDR_20' ) end [2024-12-19 10:51:22] Production.INFO: ProcessCDR(1,14054996,1,1,2) [2024-12-19 10:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14054996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14054996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14054996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14054996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054996', 'tblTempUsageDetail_20' ) start [2024-12-19 10:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14054996', 'tblTempUsageDetail_20' ) end [2024-12-19 10:51:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:51:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:51:27] Production.INFO: ==6386== Releasing lock... [2024-12-19 10:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:51:27] Production.INFO: 56.25 MB #Memory Used# [2024-12-19 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:52:05 [end_date_ymd] => 2024-12-19 10:52:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:52:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:52:23] Production.INFO: count ==3785 [2024-12-19 10:52:24] Production.ERROR: pbx CDR StartTime 2024-12-19 07:52:05 - End Time 2024-12-19 10:52:05 [2024-12-19 10:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055001', 'tblTempUsageDetail_20' ) start [2024-12-19 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055001', 'tblTempUsageDetail_20' ) end [2024-12-19 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055001', 'tblTempVendorCDR_20' ) start [2024-12-19 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055001', 'tblTempVendorCDR_20' ) end [2024-12-19 10:52:25] Production.INFO: ProcessCDR(1,14055001,1,1,2) [2024-12-19 10:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055001', 'tblTempUsageDetail_20' ) start [2024-12-19 10:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055001', 'tblTempUsageDetail_20' ) end [2024-12-19 10:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:52:28] Production.INFO: ==6457== Releasing lock... [2024-12-19 10:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:52:28] Production.INFO: 56.5 MB #Memory Used# [2024-12-19 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:53:05 [end_date_ymd] => 2024-12-19 10:53:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:53:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:53:18] Production.INFO: count ==3810 [2024-12-19 10:53:20] Production.ERROR: pbx CDR StartTime 2024-12-19 07:53:05 - End Time 2024-12-19 10:53:05 [2024-12-19 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055006', 'tblTempUsageDetail_20' ) start [2024-12-19 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055006', 'tblTempUsageDetail_20' ) end [2024-12-19 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055006', 'tblTempVendorCDR_20' ) start [2024-12-19 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055006', 'tblTempVendorCDR_20' ) end [2024-12-19 10:53:20] Production.INFO: ProcessCDR(1,14055006,1,1,2) [2024-12-19 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055006', 'tblTempUsageDetail_20' ) start [2024-12-19 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055006', 'tblTempUsageDetail_20' ) end [2024-12-19 10:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:53:25] Production.INFO: ==6534== Releasing lock... [2024-12-19 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:53:25] Production.INFO: 56.75 MB #Memory Used# [2024-12-19 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:54:05 [end_date_ymd] => 2024-12-19 10:54:05 [RateCDR] => 1 ) [2024-12-19 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:54:05' and `end` < '2024-12-19 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:54:18] Production.INFO: count ==3825 [2024-12-19 10:54:20] Production.ERROR: pbx CDR StartTime 2024-12-19 07:54:05 - End Time 2024-12-19 10:54:05 [2024-12-19 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055011', 'tblTempUsageDetail_20' ) start [2024-12-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055011', 'tblTempUsageDetail_20' ) end [2024-12-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055011', 'tblTempVendorCDR_20' ) start [2024-12-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055011', 'tblTempVendorCDR_20' ) end [2024-12-19 10:54:20] Production.INFO: ProcessCDR(1,14055011,1,1,2) [2024-12-19 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055011', 'tblTempUsageDetail_20' ) start [2024-12-19 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055011', 'tblTempUsageDetail_20' ) end [2024-12-19 10:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:54:23] Production.INFO: ==6606== Releasing lock... [2024-12-19 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:54:23] Production.INFO: 56.75 MB #Memory Used# [2024-12-19 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:55:05 [end_date_ymd] => 2024-12-19 10:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:55:28] Production.INFO: count ==3846 [2024-12-19 10:55:29] Production.ERROR: pbx CDR StartTime 2024-12-19 07:55:05 - End Time 2024-12-19 10:55:05 [2024-12-19 10:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055016', 'tblTempUsageDetail_20' ) start [2024-12-19 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055016', 'tblTempUsageDetail_20' ) end [2024-12-19 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055016', 'tblTempVendorCDR_20' ) start [2024-12-19 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055016', 'tblTempVendorCDR_20' ) end [2024-12-19 10:55:29] Production.INFO: ProcessCDR(1,14055016,1,1,2) [2024-12-19 10:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055016', 'tblTempUsageDetail_20' ) start [2024-12-19 10:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055016', 'tblTempUsageDetail_20' ) end [2024-12-19 10:55:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:55:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:55:35] Production.INFO: ==6680== Releasing lock... [2024-12-19 10:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:55:35] Production.INFO: 56.75 MB #Memory Used# [2024-12-19 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:56:05 [end_date_ymd] => 2024-12-19 10:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 07:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 10:56:26] Production.INFO: count ==3866 [2024-12-19 10:56:27] Production.ERROR: pbx CDR StartTime 2024-12-19 07:56:05 - End Time 2024-12-19 10:56:05 [2024-12-19 10:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055021', 'tblTempUsageDetail_20' ) start [2024-12-19 10:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055021', 'tblTempUsageDetail_20' ) end [2024-12-19 10:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055021', 'tblTempVendorCDR_20' ) start [2024-12-19 10:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055021', 'tblTempVendorCDR_20' ) end [2024-12-19 10:56:27] Production.INFO: ProcessCDR(1,14055021,1,1,2) [2024-12-19 10:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055021', 'tblTempUsageDetail_20' ) start [2024-12-19 10:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055021', 'tblTempUsageDetail_20' ) end [2024-12-19 10:56:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:56:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:56:32] Production.INFO: ==6752== Releasing lock... [2024-12-19 10:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:56:32] Production.INFO: 56.75 MB #Memory Used# [2024-12-19 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:57:04 [end_date_ymd] => 2024-12-19 10:57:04 [RateCDR] => 1 ) [2024-12-19 10: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` >= '2024-12-19 07:57:04' and `end` < '2024-12-19 10: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 ,'') [2024-12-19 10:57:24] Production.INFO: count ==3876 [2024-12-19 10:57:25] Production.ERROR: pbx CDR StartTime 2024-12-19 07:57:04 - End Time 2024-12-19 10:57:04 [2024-12-19 10:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055026', 'tblTempUsageDetail_20' ) start [2024-12-19 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055026', 'tblTempUsageDetail_20' ) end [2024-12-19 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055026', 'tblTempVendorCDR_20' ) start [2024-12-19 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055026', 'tblTempVendorCDR_20' ) end [2024-12-19 10:57:25] Production.INFO: ProcessCDR(1,14055026,1,1,2) [2024-12-19 10:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055026', 'tblTempUsageDetail_20' ) start [2024-12-19 10:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055026', 'tblTempUsageDetail_20' ) end [2024-12-19 10:57:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:57:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:57:30] Production.INFO: ==6824== Releasing lock... [2024-12-19 10:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:57:30] Production.INFO: 57 MB #Memory Used# [2024-12-19 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:58:06 [end_date_ymd] => 2024-12-19 10:58:06 [RateCDR] => 1 ) [2024-12-19 10:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 07:58:06' and `end` < '2024-12-19 10:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 10:58:30] Production.INFO: count ==3903 [2024-12-19 10:58:31] Production.ERROR: pbx CDR StartTime 2024-12-19 07:58:06 - End Time 2024-12-19 10:58:06 [2024-12-19 10:58:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055031', 'tblTempUsageDetail_20' ) start [2024-12-19 10:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055031', 'tblTempUsageDetail_20' ) end [2024-12-19 10:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055031', 'tblTempVendorCDR_20' ) start [2024-12-19 10:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055031', 'tblTempVendorCDR_20' ) end [2024-12-19 10:58:31] Production.INFO: ProcessCDR(1,14055031,1,1,2) [2024-12-19 10:58:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:58:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:58:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:58:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055031', 'tblTempUsageDetail_20' ) start [2024-12-19 10:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055031', 'tblTempUsageDetail_20' ) end [2024-12-19 10:58:36] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:58:36] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:58:36] Production.INFO: ==6900== Releasing lock... [2024-12-19 10:58:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:58:36] Production.INFO: 57.25 MB #Memory Used# [2024-12-19 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 07:59:04 [end_date_ymd] => 2024-12-19 10:59:04 [RateCDR] => 1 ) [2024-12-19 10: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` >= '2024-12-19 07:59:04' and `end` < '2024-12-19 10: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 ,'') [2024-12-19 10:59:22] Production.INFO: count ==3925 [2024-12-19 10:59:24] Production.ERROR: pbx CDR StartTime 2024-12-19 07:59:04 - End Time 2024-12-19 10:59:04 [2024-12-19 10:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055036', 'tblTempUsageDetail_20' ) start [2024-12-19 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055036', 'tblTempUsageDetail_20' ) end [2024-12-19 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055036', 'tblTempVendorCDR_20' ) start [2024-12-19 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055036', 'tblTempVendorCDR_20' ) end [2024-12-19 10:59:24] Production.INFO: ProcessCDR(1,14055036,1,1,2) [2024-12-19 10:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 10:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 10:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055036', 'tblTempUsageDetail_20' ) start [2024-12-19 10:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055036', 'tblTempUsageDetail_20' ) end [2024-12-19 10:59:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 10:59:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 10:59:29] Production.INFO: ==6982== Releasing lock... [2024-12-19 10:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 10:59:29] Production.INFO: 57.25 MB #Memory Used# [2024-12-19 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:00:05 [end_date_ymd] => 2024-12-19 11:00:05 [RateCDR] => 1 ) [2024-12-19 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:00:05' and `end` < '2024-12-19 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:00:28] Production.INFO: count ==3957 [2024-12-19 11:00:29] Production.ERROR: pbx CDR StartTime 2024-12-19 08:00:05 - End Time 2024-12-19 11:00:05 [2024-12-19 11:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055041', 'tblTempUsageDetail_20' ) start [2024-12-19 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055041', 'tblTempUsageDetail_20' ) end [2024-12-19 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055041', 'tblTempVendorCDR_20' ) start [2024-12-19 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055041', 'tblTempVendorCDR_20' ) end [2024-12-19 11:00:29] Production.INFO: ProcessCDR(1,14055041,1,1,2) [2024-12-19 11:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055041', 'tblTempUsageDetail_20' ) start [2024-12-19 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055041', 'tblTempUsageDetail_20' ) end [2024-12-19 11:00:34] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:00:34] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:00:34] Production.INFO: ==7067== Releasing lock... [2024-12-19 11:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:00:34] Production.INFO: 57.5 MB #Memory Used# [2024-12-19 11:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:01:04 [end_date_ymd] => 2024-12-19 11:01:04 [RateCDR] => 1 ) [2024-12-19 11:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:01:04' and `end` < '2024-12-19 11:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:01:21] Production.INFO: count ==4065 [2024-12-19 11:01:22] Production.ERROR: pbx CDR StartTime 2024-12-19 08:01:04 - End Time 2024-12-19 11:01:04 [2024-12-19 11:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055047', 'tblTempUsageDetail_20' ) start [2024-12-19 11:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055047', 'tblTempUsageDetail_20' ) end [2024-12-19 11:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055047', 'tblTempVendorCDR_20' ) start [2024-12-19 11:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055047', 'tblTempVendorCDR_20' ) end [2024-12-19 11:01:23] Production.INFO: ProcessCDR(1,14055047,1,1,2) [2024-12-19 11:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055047', 'tblTempUsageDetail_20' ) start [2024-12-19 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055047', 'tblTempUsageDetail_20' ) end [2024-12-19 11:01:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:01:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:01:27] Production.INFO: ==7243== Releasing lock... [2024-12-19 11:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:01:27] Production.INFO: 58.25 MB #Memory Used# [2024-12-19 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:02:05 [end_date_ymd] => 2024-12-19 11:02:05 [RateCDR] => 1 ) [2024-12-19 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:02:05' and `end` < '2024-12-19 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:02:19] Production.INFO: count ==4074 [2024-12-19 11:02:21] Production.ERROR: pbx CDR StartTime 2024-12-19 08:02:05 - End Time 2024-12-19 11:02:05 [2024-12-19 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055052', 'tblTempUsageDetail_20' ) start [2024-12-19 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055052', 'tblTempUsageDetail_20' ) end [2024-12-19 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055052', 'tblTempVendorCDR_20' ) start [2024-12-19 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055052', 'tblTempVendorCDR_20' ) end [2024-12-19 11:02:21] Production.INFO: ProcessCDR(1,14055052,1,1,2) [2024-12-19 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055052', 'tblTempUsageDetail_20' ) start [2024-12-19 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055052', 'tblTempUsageDetail_20' ) end [2024-12-19 11:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:02:26] Production.INFO: ==7335== Releasing lock... [2024-12-19 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:02:26] Production.INFO: 58.5 MB #Memory Used# [2024-12-19 11:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:03:04 [end_date_ymd] => 2024-12-19 11:03:04 [RateCDR] => 1 ) [2024-12-19 11: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` >= '2024-12-19 08:03:04' and `end` < '2024-12-19 11: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 ,'') [2024-12-19 11:03:18] Production.INFO: count ==4082 [2024-12-19 11:03:20] Production.ERROR: pbx CDR StartTime 2024-12-19 08:03:04 - End Time 2024-12-19 11:03:04 [2024-12-19 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055057', 'tblTempUsageDetail_20' ) start [2024-12-19 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055057', 'tblTempUsageDetail_20' ) end [2024-12-19 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055057', 'tblTempVendorCDR_20' ) start [2024-12-19 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055057', 'tblTempVendorCDR_20' ) end [2024-12-19 11:03:20] Production.INFO: ProcessCDR(1,14055057,1,1,2) [2024-12-19 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055057', 'tblTempUsageDetail_20' ) start [2024-12-19 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055057', 'tblTempUsageDetail_20' ) end [2024-12-19 11:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:03:25] Production.INFO: ==7414== Releasing lock... [2024-12-19 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:03:25] Production.INFO: 58.5 MB #Memory Used# [2024-12-19 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:04:05 [end_date_ymd] => 2024-12-19 11:04:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:04:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:04:31] Production.INFO: count ==4091 [2024-12-19 11:04:33] Production.ERROR: pbx CDR StartTime 2024-12-19 08:04:05 - End Time 2024-12-19 11:04:05 [2024-12-19 11:04:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055062', 'tblTempUsageDetail_20' ) start [2024-12-19 11:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055062', 'tblTempUsageDetail_20' ) end [2024-12-19 11:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055062', 'tblTempVendorCDR_20' ) start [2024-12-19 11:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055062', 'tblTempVendorCDR_20' ) end [2024-12-19 11:04:33] Production.INFO: ProcessCDR(1,14055062,1,1,2) [2024-12-19 11:04:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:04:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:04:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:04:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055062', 'tblTempUsageDetail_20' ) start [2024-12-19 11:04:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055062', 'tblTempUsageDetail_20' ) end [2024-12-19 11:04:38] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:04:38] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:04:38] Production.INFO: ==7538== Releasing lock... [2024-12-19 11:04:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:04:38] Production.INFO: 58.5 MB #Memory Used# [2024-12-19 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:05:05 [end_date_ymd] => 2024-12-19 11:05:05 [RateCDR] => 1 ) [2024-12-19 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:05:05' and `end` < '2024-12-19 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:05:25] Production.INFO: count ==4099 [2024-12-19 11:05:27] Production.ERROR: pbx CDR StartTime 2024-12-19 08:05:05 - End Time 2024-12-19 11:05:05 [2024-12-19 11:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055067', 'tblTempUsageDetail_20' ) start [2024-12-19 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055067', 'tblTempUsageDetail_20' ) end [2024-12-19 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055067', 'tblTempVendorCDR_20' ) start [2024-12-19 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055067', 'tblTempVendorCDR_20' ) end [2024-12-19 11:05:27] Production.INFO: ProcessCDR(1,14055067,1,1,2) [2024-12-19 11:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055067', 'tblTempUsageDetail_20' ) start [2024-12-19 11:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055067', 'tblTempUsageDetail_20' ) end [2024-12-19 11:05:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:05:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:05:31] Production.INFO: ==7705== Releasing lock... [2024-12-19 11:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:05:31] Production.INFO: 58.75 MB #Memory Used# [2024-12-19 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:06:05 [end_date_ymd] => 2024-12-19 11:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:06:24] Production.INFO: count ==4130 [2024-12-19 11:06:26] Production.ERROR: pbx CDR StartTime 2024-12-19 08:06:05 - End Time 2024-12-19 11:06:05 [2024-12-19 11:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055072', 'tblTempUsageDetail_20' ) start [2024-12-19 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055072', 'tblTempUsageDetail_20' ) end [2024-12-19 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055072', 'tblTempVendorCDR_20' ) start [2024-12-19 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055072', 'tblTempVendorCDR_20' ) end [2024-12-19 11:06:26] Production.INFO: ProcessCDR(1,14055072,1,1,2) [2024-12-19 11:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055072', 'tblTempUsageDetail_20' ) start [2024-12-19 11:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055072', 'tblTempUsageDetail_20' ) end [2024-12-19 11:06:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:06:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:06:30] Production.INFO: ==7786== Releasing lock... [2024-12-19 11:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:06:30] Production.INFO: 58.75 MB #Memory Used# [2024-12-19 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:07:05 [end_date_ymd] => 2024-12-19 11:07:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:07:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:07:25] Production.INFO: count ==4141 [2024-12-19 11:07:27] Production.ERROR: pbx CDR StartTime 2024-12-19 08:07:05 - End Time 2024-12-19 11:07:05 [2024-12-19 11:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055077', 'tblTempUsageDetail_20' ) start [2024-12-19 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055077', 'tblTempUsageDetail_20' ) end [2024-12-19 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055077', 'tblTempVendorCDR_20' ) start [2024-12-19 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055077', 'tblTempVendorCDR_20' ) end [2024-12-19 11:07:27] Production.INFO: ProcessCDR(1,14055077,1,1,2) [2024-12-19 11:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055077', 'tblTempUsageDetail_20' ) start [2024-12-19 11:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055077', 'tblTempUsageDetail_20' ) end [2024-12-19 11:07:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:07:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:07:31] Production.INFO: ==7872== Releasing lock... [2024-12-19 11:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:07:31] Production.INFO: 59 MB #Memory Used# [2024-12-19 11:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:08:04 [end_date_ymd] => 2024-12-19 11:08:04 [RateCDR] => 1 ) [2024-12-19 11:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:08:04' and `end` < '2024-12-19 11: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 ,'') [2024-12-19 11:08:22] Production.INFO: count ==4143 [2024-12-19 11:08:23] Production.ERROR: pbx CDR StartTime 2024-12-19 08:08:04 - End Time 2024-12-19 11:08:04 [2024-12-19 11:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055082', 'tblTempUsageDetail_20' ) start [2024-12-19 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055082', 'tblTempUsageDetail_20' ) end [2024-12-19 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055082', 'tblTempVendorCDR_20' ) start [2024-12-19 11:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055082', 'tblTempVendorCDR_20' ) end [2024-12-19 11:08:24] Production.INFO: ProcessCDR(1,14055082,1,1,2) [2024-12-19 11:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055082', 'tblTempUsageDetail_20' ) start [2024-12-19 11:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055082', 'tblTempUsageDetail_20' ) end [2024-12-19 11:08:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:08:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:08:28] Production.INFO: ==8035== Releasing lock... [2024-12-19 11:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:08:28] Production.INFO: 59 MB #Memory Used# [2024-12-19 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:09:05 [end_date_ymd] => 2024-12-19 11:09:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:09:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:09:24] Production.INFO: count ==4153 [2024-12-19 11:09:26] Production.ERROR: pbx CDR StartTime 2024-12-19 08:09:05 - End Time 2024-12-19 11:09:05 [2024-12-19 11:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055087', 'tblTempUsageDetail_20' ) start [2024-12-19 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055087', 'tblTempUsageDetail_20' ) end [2024-12-19 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055087', 'tblTempVendorCDR_20' ) start [2024-12-19 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055087', 'tblTempVendorCDR_20' ) end [2024-12-19 11:09:26] Production.INFO: ProcessCDR(1,14055087,1,1,2) [2024-12-19 11:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055087', 'tblTempUsageDetail_20' ) start [2024-12-19 11:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055087', 'tblTempUsageDetail_20' ) end [2024-12-19 11:09:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:09:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:09:31] Production.INFO: ==8122== Releasing lock... [2024-12-19 11:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:09:31] Production.INFO: 59 MB #Memory Used# [2024-12-19 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:10:06 [end_date_ymd] => 2024-12-19 11:10:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:10:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:10:22] Production.INFO: count ==4149 [2024-12-19 11:10:24] Production.ERROR: pbx CDR StartTime 2024-12-19 08:10:06 - End Time 2024-12-19 11:10:06 [2024-12-19 11:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055093', 'tblTempUsageDetail_20' ) start [2024-12-19 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055093', 'tblTempUsageDetail_20' ) end [2024-12-19 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055093', 'tblTempVendorCDR_20' ) start [2024-12-19 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055093', 'tblTempVendorCDR_20' ) end [2024-12-19 11:10:24] Production.INFO: ProcessCDR(1,14055093,1,1,2) [2024-12-19 11:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055093', 'tblTempUsageDetail_20' ) start [2024-12-19 11:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055093', 'tblTempUsageDetail_20' ) end [2024-12-19 11:10:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:10:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:10:29] Production.INFO: ==8200== Releasing lock... [2024-12-19 11:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:10:29] Production.INFO: 59 MB #Memory Used# [2024-12-19 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:11:04 [end_date_ymd] => 2024-12-19 11:11:04 [RateCDR] => 1 ) [2024-12-19 11: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` >= '2024-12-19 08:11:04' and `end` < '2024-12-19 11: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 ,'') [2024-12-19 11:11:23] Production.INFO: count ==4234 [2024-12-19 11:11:24] Production.ERROR: pbx CDR StartTime 2024-12-19 08:11:04 - End Time 2024-12-19 11:11:04 [2024-12-19 11:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055098', 'tblTempUsageDetail_20' ) start [2024-12-19 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055098', 'tblTempUsageDetail_20' ) end [2024-12-19 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055098', 'tblTempVendorCDR_20' ) start [2024-12-19 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055098', 'tblTempVendorCDR_20' ) end [2024-12-19 11:11:25] Production.INFO: ProcessCDR(1,14055098,1,1,2) [2024-12-19 11:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055098', 'tblTempUsageDetail_20' ) start [2024-12-19 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055098', 'tblTempUsageDetail_20' ) end [2024-12-19 11:11:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:11:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:11:29] Production.INFO: ==8276== Releasing lock... [2024-12-19 11:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:11:29] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:12:05 [end_date_ymd] => 2024-12-19 11:12:05 [RateCDR] => 1 ) [2024-12-19 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:12:05' and `end` < '2024-12-19 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:12:23] Production.INFO: count ==4250 [2024-12-19 11:12:25] Production.ERROR: pbx CDR StartTime 2024-12-19 08:12:05 - End Time 2024-12-19 11:12:05 [2024-12-19 11:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055103', 'tblTempUsageDetail_20' ) start [2024-12-19 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055103', 'tblTempUsageDetail_20' ) end [2024-12-19 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055103', 'tblTempVendorCDR_20' ) start [2024-12-19 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055103', 'tblTempVendorCDR_20' ) end [2024-12-19 11:12:25] Production.INFO: ProcessCDR(1,14055103,1,1,2) [2024-12-19 11:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055103', 'tblTempUsageDetail_20' ) start [2024-12-19 11:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055103', 'tblTempUsageDetail_20' ) end [2024-12-19 11:12:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:12:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:12:30] Production.INFO: ==8430== Releasing lock... [2024-12-19 11:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:12:30] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:13:05 [end_date_ymd] => 2024-12-19 11:13:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:13:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:13:22] Production.INFO: count ==4254 [2024-12-19 11:13:24] Production.ERROR: pbx CDR StartTime 2024-12-19 08:13:05 - End Time 2024-12-19 11:13:05 [2024-12-19 11:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055108', 'tblTempUsageDetail_20' ) start [2024-12-19 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055108', 'tblTempUsageDetail_20' ) end [2024-12-19 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055108', 'tblTempVendorCDR_20' ) start [2024-12-19 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055108', 'tblTempVendorCDR_20' ) end [2024-12-19 11:13:24] Production.INFO: ProcessCDR(1,14055108,1,1,2) [2024-12-19 11:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055108', 'tblTempUsageDetail_20' ) start [2024-12-19 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055108', 'tblTempUsageDetail_20' ) end [2024-12-19 11:13:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:13:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:13:29] Production.INFO: ==8503== Releasing lock... [2024-12-19 11:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:13:29] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:14:05 [end_date_ymd] => 2024-12-19 11:14:05 [RateCDR] => 1 ) [2024-12-19 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:14:05' and `end` < '2024-12-19 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:14:22] Production.INFO: count ==4254 [2024-12-19 11:14:24] Production.ERROR: pbx CDR StartTime 2024-12-19 08:14:05 - End Time 2024-12-19 11:14:05 [2024-12-19 11:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055113', 'tblTempUsageDetail_20' ) start [2024-12-19 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055113', 'tblTempUsageDetail_20' ) end [2024-12-19 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055113', 'tblTempVendorCDR_20' ) start [2024-12-19 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055113', 'tblTempVendorCDR_20' ) end [2024-12-19 11:14:24] Production.INFO: ProcessCDR(1,14055113,1,1,2) [2024-12-19 11:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055113', 'tblTempUsageDetail_20' ) start [2024-12-19 11:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055113', 'tblTempUsageDetail_20' ) end [2024-12-19 11:14:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:14:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:14:28] Production.INFO: ==8576== Releasing lock... [2024-12-19 11:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:14:28] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:15:04 [end_date_ymd] => 2024-12-19 11:15:04 [RateCDR] => 1 ) [2024-12-19 11:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:15:04' and `end` < '2024-12-19 11:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:15:24] Production.INFO: count ==4244 [2024-12-19 11:15:25] Production.ERROR: pbx CDR StartTime 2024-12-19 08:15:04 - End Time 2024-12-19 11:15:04 [2024-12-19 11:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055118', 'tblTempUsageDetail_20' ) start [2024-12-19 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055118', 'tblTempUsageDetail_20' ) end [2024-12-19 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055118', 'tblTempVendorCDR_20' ) start [2024-12-19 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055118', 'tblTempVendorCDR_20' ) end [2024-12-19 11:15:25] Production.INFO: ProcessCDR(1,14055118,1,1,2) [2024-12-19 11:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055118', 'tblTempUsageDetail_20' ) start [2024-12-19 11:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055118', 'tblTempUsageDetail_20' ) end [2024-12-19 11:15:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:15:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:15:30] Production.INFO: ==8732== Releasing lock... [2024-12-19 11:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:15:30] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:16:05 [end_date_ymd] => 2024-12-19 11:16:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:16:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:16:23] Production.INFO: count ==4248 [2024-12-19 11:16:25] Production.ERROR: pbx CDR StartTime 2024-12-19 08:16:05 - End Time 2024-12-19 11:16:05 [2024-12-19 11:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055123', 'tblTempUsageDetail_20' ) start [2024-12-19 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055123', 'tblTempUsageDetail_20' ) end [2024-12-19 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055123', 'tblTempVendorCDR_20' ) start [2024-12-19 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055123', 'tblTempVendorCDR_20' ) end [2024-12-19 11:16:25] Production.INFO: ProcessCDR(1,14055123,1,1,2) [2024-12-19 11:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055123', 'tblTempUsageDetail_20' ) start [2024-12-19 11:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055123', 'tblTempUsageDetail_20' ) end [2024-12-19 11:16:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:16:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:16:29] Production.INFO: ==8812== Releasing lock... [2024-12-19 11:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:16:29] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:17:04 [end_date_ymd] => 2024-12-19 11:17:04 [RateCDR] => 1 ) [2024-12-19 11:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:17:04' and `end` < '2024-12-19 11:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:17:23] Production.INFO: count ==4245 [2024-12-19 11:17:25] Production.ERROR: pbx CDR StartTime 2024-12-19 08:17:04 - End Time 2024-12-19 11:17:04 [2024-12-19 11:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055128', 'tblTempUsageDetail_20' ) start [2024-12-19 11:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055128', 'tblTempUsageDetail_20' ) end [2024-12-19 11:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055128', 'tblTempVendorCDR_20' ) start [2024-12-19 11:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055128', 'tblTempVendorCDR_20' ) end [2024-12-19 11:17:25] Production.INFO: ProcessCDR(1,14055128,1,1,2) [2024-12-19 11:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055128', 'tblTempUsageDetail_20' ) start [2024-12-19 11:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055128', 'tblTempUsageDetail_20' ) end [2024-12-19 11:17:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:17:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:17:30] Production.INFO: ==8885== Releasing lock... [2024-12-19 11:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:17:30] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:18:05 [end_date_ymd] => 2024-12-19 11:18:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:18:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:18:18] Production.INFO: count ==4246 [2024-12-19 11:18:20] Production.ERROR: pbx CDR StartTime 2024-12-19 08:18:05 - End Time 2024-12-19 11:18:05 [2024-12-19 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055133', 'tblTempUsageDetail_20' ) start [2024-12-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055133', 'tblTempUsageDetail_20' ) end [2024-12-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055133', 'tblTempVendorCDR_20' ) start [2024-12-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055133', 'tblTempVendorCDR_20' ) end [2024-12-19 11:18:20] Production.INFO: ProcessCDR(1,14055133,1,1,2) [2024-12-19 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055133', 'tblTempUsageDetail_20' ) start [2024-12-19 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055133', 'tblTempUsageDetail_20' ) end [2024-12-19 11:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:18:24] Production.INFO: ==8965== Releasing lock... [2024-12-19 11:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:18:24] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:19:04 [end_date_ymd] => 2024-12-19 11:19:04 [RateCDR] => 1 ) [2024-12-19 11: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` >= '2024-12-19 08:19:04' and `end` < '2024-12-19 11: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 ,'') [2024-12-19 11:19:17] Production.INFO: count ==4251 [2024-12-19 11:19:19] Production.ERROR: pbx CDR StartTime 2024-12-19 08:19:04 - End Time 2024-12-19 11:19:04 [2024-12-19 11:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055138', 'tblTempUsageDetail_20' ) start [2024-12-19 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055138', 'tblTempUsageDetail_20' ) end [2024-12-19 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055138', 'tblTempVendorCDR_20' ) start [2024-12-19 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055138', 'tblTempVendorCDR_20' ) end [2024-12-19 11:19:19] Production.INFO: ProcessCDR(1,14055138,1,1,2) [2024-12-19 11:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055138', 'tblTempUsageDetail_20' ) start [2024-12-19 11:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055138', 'tblTempUsageDetail_20' ) end [2024-12-19 11:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:19:24] Production.INFO: ==9076== Releasing lock... [2024-12-19 11:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:19:24] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:20:05 [end_date_ymd] => 2024-12-19 11:20:05 [RateCDR] => 1 ) [2024-12-19 11: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` >= '2024-12-19 08:20:05' and `end` < '2024-12-19 11: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 ,'') [2024-12-19 11:20:19] Production.INFO: count ==4255 [2024-12-19 11:20:20] Production.ERROR: pbx CDR StartTime 2024-12-19 08:20:05 - End Time 2024-12-19 11:20:05 [2024-12-19 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055144', 'tblTempUsageDetail_20' ) start [2024-12-19 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055144', 'tblTempUsageDetail_20' ) end [2024-12-19 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055144', 'tblTempVendorCDR_20' ) start [2024-12-19 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055144', 'tblTempVendorCDR_20' ) end [2024-12-19 11:20:21] Production.INFO: ProcessCDR(1,14055144,1,1,2) [2024-12-19 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055144', 'tblTempUsageDetail_20' ) start [2024-12-19 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055144', 'tblTempUsageDetail_20' ) end [2024-12-19 11:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:20:25] Production.INFO: ==9152== Releasing lock... [2024-12-19 11:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:20:25] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:21:05 [end_date_ymd] => 2024-12-19 11:21:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:21:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:21:19] Production.INFO: count ==4293 [2024-12-19 11:21:21] Production.ERROR: pbx CDR StartTime 2024-12-19 08:21:05 - End Time 2024-12-19 11:21:05 [2024-12-19 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055149', 'tblTempUsageDetail_20' ) start [2024-12-19 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055149', 'tblTempUsageDetail_20' ) end [2024-12-19 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055149', 'tblTempVendorCDR_20' ) start [2024-12-19 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055149', 'tblTempVendorCDR_20' ) end [2024-12-19 11:21:21] Production.INFO: ProcessCDR(1,14055149,1,1,2) [2024-12-19 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055149', 'tblTempUsageDetail_20' ) start [2024-12-19 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055149', 'tblTempUsageDetail_20' ) end [2024-12-19 11:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:21:25] Production.INFO: ==9232== Releasing lock... [2024-12-19 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:21:25] Production.INFO: 60 MB #Memory Used# [2024-12-19 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:22:05 [end_date_ymd] => 2024-12-19 11:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:22:22] Production.INFO: count ==4292 [2024-12-19 11:22:24] Production.ERROR: pbx CDR StartTime 2024-12-19 08:22:05 - End Time 2024-12-19 11:22:05 [2024-12-19 11:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055154', 'tblTempUsageDetail_20' ) start [2024-12-19 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055154', 'tblTempUsageDetail_20' ) end [2024-12-19 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055154', 'tblTempVendorCDR_20' ) start [2024-12-19 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055154', 'tblTempVendorCDR_20' ) end [2024-12-19 11:22:24] Production.INFO: ProcessCDR(1,14055154,1,1,2) [2024-12-19 11:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055154', 'tblTempUsageDetail_20' ) start [2024-12-19 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055154', 'tblTempUsageDetail_20' ) end [2024-12-19 11:22:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:22:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:22:28] Production.INFO: ==9308== Releasing lock... [2024-12-19 11:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:22:28] Production.INFO: 60 MB #Memory Used# [2024-12-19 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:23:04 [end_date_ymd] => 2024-12-19 11:23:04 [RateCDR] => 1 ) [2024-12-19 11:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:23:04' and `end` < '2024-12-19 11:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:23:22] Production.INFO: count ==4298 [2024-12-19 11:23:24] Production.ERROR: pbx CDR StartTime 2024-12-19 08:23:04 - End Time 2024-12-19 11:23:04 [2024-12-19 11:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055159', 'tblTempUsageDetail_20' ) start [2024-12-19 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055159', 'tblTempUsageDetail_20' ) end [2024-12-19 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055159', 'tblTempVendorCDR_20' ) start [2024-12-19 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055159', 'tblTempVendorCDR_20' ) end [2024-12-19 11:23:24] Production.INFO: ProcessCDR(1,14055159,1,1,2) [2024-12-19 11:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055159', 'tblTempUsageDetail_20' ) start [2024-12-19 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055159', 'tblTempUsageDetail_20' ) end [2024-12-19 11:23:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:23:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:23:28] Production.INFO: ==9380== Releasing lock... [2024-12-19 11:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:23:28] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:24:05 [end_date_ymd] => 2024-12-19 11:24:05 [RateCDR] => 1 ) [2024-12-19 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:24:05' and `end` < '2024-12-19 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:24:24] Production.INFO: count ==4313 [2024-12-19 11:24:25] Production.ERROR: pbx CDR StartTime 2024-12-19 08:24:05 - End Time 2024-12-19 11:24:05 [2024-12-19 11:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055164', 'tblTempUsageDetail_20' ) start [2024-12-19 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055164', 'tblTempUsageDetail_20' ) end [2024-12-19 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055164', 'tblTempVendorCDR_20' ) start [2024-12-19 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055164', 'tblTempVendorCDR_20' ) end [2024-12-19 11:24:25] Production.INFO: ProcessCDR(1,14055164,1,1,2) [2024-12-19 11:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055164', 'tblTempUsageDetail_20' ) start [2024-12-19 11:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055164', 'tblTempUsageDetail_20' ) end [2024-12-19 11:24:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:24:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:24:30] Production.INFO: ==9464== Releasing lock... [2024-12-19 11:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:24:30] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:25:04 [end_date_ymd] => 2024-12-19 11:25:04 [RateCDR] => 1 ) [2024-12-19 11:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:25:04' and `end` < '2024-12-19 11:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:25:32] Production.INFO: count ==4345 [2024-12-19 11:25:33] Production.ERROR: pbx CDR StartTime 2024-12-19 08:25:04 - End Time 2024-12-19 11:25:04 [2024-12-19 11:25:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055169', 'tblTempUsageDetail_20' ) start [2024-12-19 11:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055169', 'tblTempUsageDetail_20' ) end [2024-12-19 11:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055169', 'tblTempVendorCDR_20' ) start [2024-12-19 11:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055169', 'tblTempVendorCDR_20' ) end [2024-12-19 11:25:34] Production.INFO: ProcessCDR(1,14055169,1,1,2) [2024-12-19 11:25:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:25:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:25:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:25:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055169', 'tblTempUsageDetail_20' ) start [2024-12-19 11:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055169', 'tblTempUsageDetail_20' ) end [2024-12-19 11:25:39] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:25:39] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:25:39] Production.INFO: ==9538== Releasing lock... [2024-12-19 11:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:25:39] Production.INFO: 60.5 MB #Memory Used# [2024-12-19 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:26:04 [end_date_ymd] => 2024-12-19 11:26:04 [RateCDR] => 1 ) [2024-12-19 11:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:26:04' and `end` < '2024-12-19 11:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:26:28] Production.INFO: count ==4373 [2024-12-19 11:26:30] Production.ERROR: pbx CDR StartTime 2024-12-19 08:26:04 - End Time 2024-12-19 11:26:04 [2024-12-19 11:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055174', 'tblTempUsageDetail_20' ) start [2024-12-19 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055174', 'tblTempUsageDetail_20' ) end [2024-12-19 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055174', 'tblTempVendorCDR_20' ) start [2024-12-19 11:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055174', 'tblTempVendorCDR_20' ) end [2024-12-19 11:26:30] Production.INFO: ProcessCDR(1,14055174,1,1,2) [2024-12-19 11:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055174', 'tblTempUsageDetail_20' ) start [2024-12-19 11:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055174', 'tblTempUsageDetail_20' ) end [2024-12-19 11:26:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:26:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:26:33] Production.INFO: ==9612== Releasing lock... [2024-12-19 11:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:26:33] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:27:05 [end_date_ymd] => 2024-12-19 11:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:27:22] Production.INFO: count ==4373 [2024-12-19 11:27:24] Production.ERROR: pbx CDR StartTime 2024-12-19 08:27:05 - End Time 2024-12-19 11:27:05 [2024-12-19 11:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055179', 'tblTempUsageDetail_20' ) start [2024-12-19 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055179', 'tblTempUsageDetail_20' ) end [2024-12-19 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055179', 'tblTempVendorCDR_20' ) start [2024-12-19 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055179', 'tblTempVendorCDR_20' ) end [2024-12-19 11:27:24] Production.INFO: ProcessCDR(1,14055179,1,1,2) [2024-12-19 11:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055179', 'tblTempUsageDetail_20' ) start [2024-12-19 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055179', 'tblTempUsageDetail_20' ) end [2024-12-19 11:27:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:27:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:27:28] Production.INFO: ==9684== Releasing lock... [2024-12-19 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:27:28] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:28:05 [end_date_ymd] => 2024-12-19 11:28:05 [RateCDR] => 1 ) [2024-12-19 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:28:05' and `end` < '2024-12-19 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:28:18] Production.INFO: count ==4376 [2024-12-19 11:28:19] Production.ERROR: pbx CDR StartTime 2024-12-19 08:28:05 - End Time 2024-12-19 11:28:05 [2024-12-19 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055184', 'tblTempUsageDetail_20' ) start [2024-12-19 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055184', 'tblTempUsageDetail_20' ) end [2024-12-19 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055184', 'tblTempVendorCDR_20' ) start [2024-12-19 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055184', 'tblTempVendorCDR_20' ) end [2024-12-19 11:28:20] Production.INFO: ProcessCDR(1,14055184,1,1,2) [2024-12-19 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055184', 'tblTempUsageDetail_20' ) start [2024-12-19 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055184', 'tblTempUsageDetail_20' ) end [2024-12-19 11:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:28:24] Production.INFO: ==9761== Releasing lock... [2024-12-19 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:28:24] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:29:05 [end_date_ymd] => 2024-12-19 11:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:29:26] Production.INFO: count ==4392 [2024-12-19 11:29:27] Production.ERROR: pbx CDR StartTime 2024-12-19 08:29:05 - End Time 2024-12-19 11:29:05 [2024-12-19 11:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055189', 'tblTempUsageDetail_20' ) start [2024-12-19 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055189', 'tblTempUsageDetail_20' ) end [2024-12-19 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055189', 'tblTempVendorCDR_20' ) start [2024-12-19 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055189', 'tblTempVendorCDR_20' ) end [2024-12-19 11:29:27] Production.INFO: ProcessCDR(1,14055189,1,1,2) [2024-12-19 11:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055189', 'tblTempUsageDetail_20' ) start [2024-12-19 11:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055189', 'tblTempUsageDetail_20' ) end [2024-12-19 11:29:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:29:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:29:32] Production.INFO: ==9836== Releasing lock... [2024-12-19 11:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:29:32] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:30:05 [end_date_ymd] => 2024-12-19 11:30:05 [RateCDR] => 1 ) [2024-12-19 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:30:05' and `end` < '2024-12-19 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:30:29] Production.INFO: count ==4404 [2024-12-19 11:30:30] Production.ERROR: pbx CDR StartTime 2024-12-19 08:30:05 - End Time 2024-12-19 11:30:05 [2024-12-19 11:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055194', 'tblTempUsageDetail_20' ) start [2024-12-19 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055194', 'tblTempUsageDetail_20' ) end [2024-12-19 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055194', 'tblTempVendorCDR_20' ) start [2024-12-19 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055194', 'tblTempVendorCDR_20' ) end [2024-12-19 11:30:30] Production.INFO: ProcessCDR(1,14055194,1,1,2) [2024-12-19 11:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055194', 'tblTempUsageDetail_20' ) start [2024-12-19 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055194', 'tblTempUsageDetail_20' ) end [2024-12-19 11:30:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:30:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:30:35] Production.INFO: ==9914== Releasing lock... [2024-12-19 11:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:30:35] Production.INFO: 61 MB #Memory Used# [2024-12-19 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:31:04 [end_date_ymd] => 2024-12-19 11:31:04 [RateCDR] => 1 ) [2024-12-19 11:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:31:04' and `end` < '2024-12-19 11:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:31:28] Production.INFO: count ==4451 [2024-12-19 11:31:30] Production.ERROR: pbx CDR StartTime 2024-12-19 08:31:04 - End Time 2024-12-19 11:31:04 [2024-12-19 11:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055200', 'tblTempUsageDetail_20' ) start [2024-12-19 11:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055200', 'tblTempUsageDetail_20' ) end [2024-12-19 11:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055200', 'tblTempVendorCDR_20' ) start [2024-12-19 11:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055200', 'tblTempVendorCDR_20' ) end [2024-12-19 11:31:30] Production.INFO: ProcessCDR(1,14055200,1,1,2) [2024-12-19 11:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:31:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:31:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:31:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055200', 'tblTempUsageDetail_20' ) start [2024-12-19 11:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055200', 'tblTempUsageDetail_20' ) end [2024-12-19 11:31:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:31:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:31:35] Production.INFO: ==9995== Releasing lock... [2024-12-19 11:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:31:35] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:32:05 [end_date_ymd] => 2024-12-19 11:32:05 [RateCDR] => 1 ) [2024-12-19 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:32:05' and `end` < '2024-12-19 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:32:24] Production.INFO: count ==4467 [2024-12-19 11:32:25] Production.ERROR: pbx CDR StartTime 2024-12-19 08:32:05 - End Time 2024-12-19 11:32:05 [2024-12-19 11:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055205', 'tblTempUsageDetail_20' ) start [2024-12-19 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055205', 'tblTempUsageDetail_20' ) end [2024-12-19 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055205', 'tblTempVendorCDR_20' ) start [2024-12-19 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055205', 'tblTempVendorCDR_20' ) end [2024-12-19 11:32:25] Production.INFO: ProcessCDR(1,14055205,1,1,2) [2024-12-19 11:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055205', 'tblTempUsageDetail_20' ) start [2024-12-19 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055205', 'tblTempUsageDetail_20' ) end [2024-12-19 11:32:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:32:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:32:30] Production.INFO: ==10069== Releasing lock... [2024-12-19 11:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:32:30] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 11:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:33:04 [end_date_ymd] => 2024-12-19 11:33:04 [RateCDR] => 1 ) [2024-12-19 11: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` >= '2024-12-19 08:33:04' and `end` < '2024-12-19 11: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 ,'') [2024-12-19 11:33:22] Production.INFO: count ==4489 [2024-12-19 11:33:23] Production.ERROR: pbx CDR StartTime 2024-12-19 08:33:04 - End Time 2024-12-19 11:33:04 [2024-12-19 11:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055210', 'tblTempUsageDetail_20' ) start [2024-12-19 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055210', 'tblTempUsageDetail_20' ) end [2024-12-19 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055210', 'tblTempVendorCDR_20' ) start [2024-12-19 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055210', 'tblTempVendorCDR_20' ) end [2024-12-19 11:33:23] Production.INFO: ProcessCDR(1,14055210,1,1,2) [2024-12-19 11:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055210', 'tblTempUsageDetail_20' ) start [2024-12-19 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055210', 'tblTempUsageDetail_20' ) end [2024-12-19 11:33:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:33:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:33:28] Production.INFO: ==10150== Releasing lock... [2024-12-19 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:33:28] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:34:05 [end_date_ymd] => 2024-12-19 11:34:05 [RateCDR] => 1 ) [2024-12-19 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:34:05' and `end` < '2024-12-19 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:34:19] Production.INFO: count ==4487 [2024-12-19 11:34:21] Production.ERROR: pbx CDR StartTime 2024-12-19 08:34:05 - End Time 2024-12-19 11:34:05 [2024-12-19 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055215', 'tblTempUsageDetail_20' ) start [2024-12-19 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055215', 'tblTempUsageDetail_20' ) end [2024-12-19 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055215', 'tblTempVendorCDR_20' ) start [2024-12-19 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055215', 'tblTempVendorCDR_20' ) end [2024-12-19 11:34:21] Production.INFO: ProcessCDR(1,14055215,1,1,2) [2024-12-19 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055215', 'tblTempUsageDetail_20' ) start [2024-12-19 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055215', 'tblTempUsageDetail_20' ) end [2024-12-19 11:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:34:25] Production.INFO: ==10225== Releasing lock... [2024-12-19 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:34:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:35:04 [end_date_ymd] => 2024-12-19 11:35:04 [RateCDR] => 1 ) [2024-12-19 11: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` >= '2024-12-19 08:35:04' and `end` < '2024-12-19 11: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 ,'') [2024-12-19 11:35:18] Production.INFO: count ==4487 [2024-12-19 11:35:19] Production.ERROR: pbx CDR StartTime 2024-12-19 08:35:04 - End Time 2024-12-19 11:35:04 [2024-12-19 11:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055220', 'tblTempUsageDetail_20' ) start [2024-12-19 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055220', 'tblTempUsageDetail_20' ) end [2024-12-19 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055220', 'tblTempVendorCDR_20' ) start [2024-12-19 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055220', 'tblTempVendorCDR_20' ) end [2024-12-19 11:35:19] Production.INFO: ProcessCDR(1,14055220,1,1,2) [2024-12-19 11:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055220', 'tblTempUsageDetail_20' ) start [2024-12-19 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055220', 'tblTempUsageDetail_20' ) end [2024-12-19 11:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:35:24] Production.INFO: ==10341== Releasing lock... [2024-12-19 11:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:35:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:36:05 [end_date_ymd] => 2024-12-19 11:36:05 [RateCDR] => 1 ) [2024-12-19 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:36:05' and `end` < '2024-12-19 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:36:20] Production.INFO: count ==4485 [2024-12-19 11:36:22] Production.ERROR: pbx CDR StartTime 2024-12-19 08:36:05 - End Time 2024-12-19 11:36:05 [2024-12-19 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055225', 'tblTempUsageDetail_20' ) start [2024-12-19 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055225', 'tblTempUsageDetail_20' ) end [2024-12-19 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055225', 'tblTempVendorCDR_20' ) start [2024-12-19 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055225', 'tblTempVendorCDR_20' ) end [2024-12-19 11:36:22] Production.INFO: ProcessCDR(1,14055225,1,1,2) [2024-12-19 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055225', 'tblTempUsageDetail_20' ) start [2024-12-19 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055225', 'tblTempUsageDetail_20' ) end [2024-12-19 11:36:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:36:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:36:27] Production.INFO: ==10418== Releasing lock... [2024-12-19 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:36:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:37:05 [end_date_ymd] => 2024-12-19 11:37:05 [RateCDR] => 1 ) [2024-12-19 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:37:05' and `end` < '2024-12-19 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:37:20] Production.INFO: count ==4467 [2024-12-19 11:37:22] Production.ERROR: pbx CDR StartTime 2024-12-19 08:37:05 - End Time 2024-12-19 11:37:05 [2024-12-19 11:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055230', 'tblTempUsageDetail_20' ) start [2024-12-19 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055230', 'tblTempUsageDetail_20' ) end [2024-12-19 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055230', 'tblTempVendorCDR_20' ) start [2024-12-19 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055230', 'tblTempVendorCDR_20' ) end [2024-12-19 11:37:22] Production.INFO: ProcessCDR(1,14055230,1,1,2) [2024-12-19 11:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055230', 'tblTempUsageDetail_20' ) start [2024-12-19 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055230', 'tblTempUsageDetail_20' ) end [2024-12-19 11:37:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:37:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:37:27] Production.INFO: ==10492== Releasing lock... [2024-12-19 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:37:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 11:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:38:04 [end_date_ymd] => 2024-12-19 11:38:04 [RateCDR] => 1 ) [2024-12-19 11: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` >= '2024-12-19 08:38:04' and `end` < '2024-12-19 11: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 ,'') [2024-12-19 11:38:21] Production.INFO: count ==4453 [2024-12-19 11:38:22] Production.ERROR: pbx CDR StartTime 2024-12-19 08:38:04 - End Time 2024-12-19 11:38:04 [2024-12-19 11:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055235', 'tblTempUsageDetail_20' ) start [2024-12-19 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055235', 'tblTempUsageDetail_20' ) end [2024-12-19 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055235', 'tblTempVendorCDR_20' ) start [2024-12-19 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055235', 'tblTempVendorCDR_20' ) end [2024-12-19 11:38:23] Production.INFO: ProcessCDR(1,14055235,1,1,2) [2024-12-19 11:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055235', 'tblTempUsageDetail_20' ) start [2024-12-19 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055235', 'tblTempUsageDetail_20' ) end [2024-12-19 11:38:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:38:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:38:27] Production.INFO: ==10571== Releasing lock... [2024-12-19 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:38:27] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:39:05 [end_date_ymd] => 2024-12-19 11:39:05 [RateCDR] => 1 ) [2024-12-19 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:39:05' and `end` < '2024-12-19 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:39:20] Production.INFO: count ==4452 [2024-12-19 11:39:21] Production.ERROR: pbx CDR StartTime 2024-12-19 08:39:05 - End Time 2024-12-19 11:39:05 [2024-12-19 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055240', 'tblTempUsageDetail_20' ) start [2024-12-19 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055240', 'tblTempUsageDetail_20' ) end [2024-12-19 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055240', 'tblTempVendorCDR_20' ) start [2024-12-19 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055240', 'tblTempVendorCDR_20' ) end [2024-12-19 11:39:22] Production.INFO: ProcessCDR(1,14055240,1,1,2) [2024-12-19 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055240', 'tblTempUsageDetail_20' ) start [2024-12-19 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055240', 'tblTempUsageDetail_20' ) end [2024-12-19 11:39:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:39:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:39:26] Production.INFO: ==10647== Releasing lock... [2024-12-19 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:39:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:40:05 [end_date_ymd] => 2024-12-19 11:40:05 [RateCDR] => 1 ) [2024-12-19 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:40:05' and `end` < '2024-12-19 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:40:24] Production.INFO: count ==4450 [2024-12-19 11:40:25] Production.ERROR: pbx CDR StartTime 2024-12-19 08:40:05 - End Time 2024-12-19 11:40:05 [2024-12-19 11:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055246', 'tblTempUsageDetail_20' ) start [2024-12-19 11:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055246', 'tblTempUsageDetail_20' ) end [2024-12-19 11:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055246', 'tblTempVendorCDR_20' ) start [2024-12-19 11:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055246', 'tblTempVendorCDR_20' ) end [2024-12-19 11:40:25] Production.INFO: ProcessCDR(1,14055246,1,1,2) [2024-12-19 11:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055246', 'tblTempUsageDetail_20' ) start [2024-12-19 11:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055246', 'tblTempUsageDetail_20' ) end [2024-12-19 11:40:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:40:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:40:30] Production.INFO: ==10725== Releasing lock... [2024-12-19 11:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:40:30] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:41:05 [end_date_ymd] => 2024-12-19 11:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:41:18] Production.INFO: count ==4448 [2024-12-19 11:41:19] Production.ERROR: pbx CDR StartTime 2024-12-19 08:41:05 - End Time 2024-12-19 11:41:05 [2024-12-19 11:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055251', 'tblTempUsageDetail_20' ) start [2024-12-19 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055251', 'tblTempUsageDetail_20' ) end [2024-12-19 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055251', 'tblTempVendorCDR_20' ) start [2024-12-19 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055251', 'tblTempVendorCDR_20' ) end [2024-12-19 11:41:20] Production.INFO: ProcessCDR(1,14055251,1,1,2) [2024-12-19 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055251', 'tblTempUsageDetail_20' ) start [2024-12-19 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055251', 'tblTempUsageDetail_20' ) end [2024-12-19 11:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:41:23] Production.INFO: ==10805== Releasing lock... [2024-12-19 11:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:41:23] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 11:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:42:04 [end_date_ymd] => 2024-12-19 11:42:04 [RateCDR] => 1 ) [2024-12-19 11: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` >= '2024-12-19 08:42:04' and `end` < '2024-12-19 11: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 ,'') [2024-12-19 11:42:19] Production.INFO: count ==4447 [2024-12-19 11:42:21] Production.ERROR: pbx CDR StartTime 2024-12-19 08:42:04 - End Time 2024-12-19 11:42:04 [2024-12-19 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055256', 'tblTempUsageDetail_20' ) start [2024-12-19 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055256', 'tblTempUsageDetail_20' ) end [2024-12-19 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055256', 'tblTempVendorCDR_20' ) start [2024-12-19 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055256', 'tblTempVendorCDR_20' ) end [2024-12-19 11:42:21] Production.INFO: ProcessCDR(1,14055256,1,1,2) [2024-12-19 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055256', 'tblTempUsageDetail_20' ) start [2024-12-19 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055256', 'tblTempUsageDetail_20' ) end [2024-12-19 11:42:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:42:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:42:26] Production.INFO: ==10879== Releasing lock... [2024-12-19 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:42:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:43:05 [end_date_ymd] => 2024-12-19 11:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:43:19] Production.INFO: count ==4449 [2024-12-19 11:43:21] Production.ERROR: pbx CDR StartTime 2024-12-19 08:43:05 - End Time 2024-12-19 11:43:05 [2024-12-19 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055261', 'tblTempUsageDetail_20' ) start [2024-12-19 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055261', 'tblTempUsageDetail_20' ) end [2024-12-19 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055261', 'tblTempVendorCDR_20' ) start [2024-12-19 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055261', 'tblTempVendorCDR_20' ) end [2024-12-19 11:43:21] Production.INFO: ProcessCDR(1,14055261,1,1,2) [2024-12-19 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055261', 'tblTempUsageDetail_20' ) start [2024-12-19 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055261', 'tblTempUsageDetail_20' ) end [2024-12-19 11:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:43:24] Production.INFO: ==10954== Releasing lock... [2024-12-19 11:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:43:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:44:05 [end_date_ymd] => 2024-12-19 11:44:05 [RateCDR] => 1 ) [2024-12-19 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:44:05' and `end` < '2024-12-19 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:44:19] Production.INFO: count ==4444 [2024-12-19 11:44:21] Production.ERROR: pbx CDR StartTime 2024-12-19 08:44:05 - End Time 2024-12-19 11:44:05 [2024-12-19 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055266', 'tblTempUsageDetail_20' ) start [2024-12-19 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055266', 'tblTempUsageDetail_20' ) end [2024-12-19 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055266', 'tblTempVendorCDR_20' ) start [2024-12-19 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055266', 'tblTempVendorCDR_20' ) end [2024-12-19 11:44:21] Production.INFO: ProcessCDR(1,14055266,1,1,2) [2024-12-19 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055266', 'tblTempUsageDetail_20' ) start [2024-12-19 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055266', 'tblTempUsageDetail_20' ) end [2024-12-19 11:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:44:25] Production.INFO: ==11034== Releasing lock... [2024-12-19 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:44:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:45:05 [end_date_ymd] => 2024-12-19 11:45:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:45:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:45:23] Production.INFO: count ==4452 [2024-12-19 11:45:24] Production.ERROR: pbx CDR StartTime 2024-12-19 08:45:05 - End Time 2024-12-19 11:45:05 [2024-12-19 11:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055271', 'tblTempUsageDetail_20' ) start [2024-12-19 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055271', 'tblTempUsageDetail_20' ) end [2024-12-19 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055271', 'tblTempVendorCDR_20' ) start [2024-12-19 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055271', 'tblTempVendorCDR_20' ) end [2024-12-19 11:45:24] Production.INFO: ProcessCDR(1,14055271,1,1,2) [2024-12-19 11:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055271', 'tblTempUsageDetail_20' ) start [2024-12-19 11:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055271', 'tblTempUsageDetail_20' ) end [2024-12-19 11:45:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:45:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:45:29] Production.INFO: ==11118== Releasing lock... [2024-12-19 11:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:45:29] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:46:05 [end_date_ymd] => 2024-12-19 11:46:05 [RateCDR] => 1 ) [2024-12-19 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:46:05' and `end` < '2024-12-19 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:46:28] Production.INFO: count ==4451 [2024-12-19 11:46:29] Production.ERROR: pbx CDR StartTime 2024-12-19 08:46:05 - End Time 2024-12-19 11:46:05 [2024-12-19 11:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055276', 'tblTempUsageDetail_20' ) start [2024-12-19 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055276', 'tblTempUsageDetail_20' ) end [2024-12-19 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055276', 'tblTempVendorCDR_20' ) start [2024-12-19 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055276', 'tblTempVendorCDR_20' ) end [2024-12-19 11:46:30] Production.INFO: ProcessCDR(1,14055276,1,1,2) [2024-12-19 11:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055276', 'tblTempUsageDetail_20' ) start [2024-12-19 11:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055276', 'tblTempUsageDetail_20' ) end [2024-12-19 11:46:34] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:46:34] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:46:34] Production.INFO: ==11196== Releasing lock... [2024-12-19 11:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:46:34] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 11:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:47:04 [end_date_ymd] => 2024-12-19 11:47:04 [RateCDR] => 1 ) [2024-12-19 11:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:47:04' and `end` < '2024-12-19 11:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:47:23] Production.INFO: count ==4465 [2024-12-19 11:47:25] Production.ERROR: pbx CDR StartTime 2024-12-19 08:47:04 - End Time 2024-12-19 11:47:04 [2024-12-19 11:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055281', 'tblTempUsageDetail_20' ) start [2024-12-19 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055281', 'tblTempUsageDetail_20' ) end [2024-12-19 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055281', 'tblTempVendorCDR_20' ) start [2024-12-19 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055281', 'tblTempVendorCDR_20' ) end [2024-12-19 11:47:25] Production.INFO: ProcessCDR(1,14055281,1,1,2) [2024-12-19 11:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055281', 'tblTempUsageDetail_20' ) start [2024-12-19 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055281', 'tblTempUsageDetail_20' ) end [2024-12-19 11:47:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:47:29] Production.INFO: ==11271== Releasing lock... [2024-12-19 11:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:47:29] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:48:05 [end_date_ymd] => 2024-12-19 11:48:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:48:23] Production.INFO: count ==4470 [2024-12-19 11:48:24] Production.ERROR: pbx CDR StartTime 2024-12-19 08:48:05 - End Time 2024-12-19 11:48:05 [2024-12-19 11:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055286', 'tblTempUsageDetail_20' ) start [2024-12-19 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055286', 'tblTempUsageDetail_20' ) end [2024-12-19 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055286', 'tblTempVendorCDR_20' ) start [2024-12-19 11:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055286', 'tblTempVendorCDR_20' ) end [2024-12-19 11:48:24] Production.INFO: ProcessCDR(1,14055286,1,1,2) [2024-12-19 11:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055286', 'tblTempUsageDetail_20' ) start [2024-12-19 11:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055286', 'tblTempUsageDetail_20' ) end [2024-12-19 11:48:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:48:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:48:29] Production.INFO: ==11347== Releasing lock... [2024-12-19 11:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:48:29] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:49:04 [end_date_ymd] => 2024-12-19 11:49:04 [RateCDR] => 1 ) [2024-12-19 11: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` >= '2024-12-19 08:49:04' and `end` < '2024-12-19 11: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 ,'') [2024-12-19 11:49:23] Production.INFO: count ==4479 [2024-12-19 11:49:24] Production.ERROR: pbx CDR StartTime 2024-12-19 08:49:04 - End Time 2024-12-19 11:49:04 [2024-12-19 11:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055291', 'tblTempUsageDetail_20' ) start [2024-12-19 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055291', 'tblTempUsageDetail_20' ) end [2024-12-19 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055291', 'tblTempVendorCDR_20' ) start [2024-12-19 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055291', 'tblTempVendorCDR_20' ) end [2024-12-19 11:49:24] Production.INFO: ProcessCDR(1,14055291,1,1,2) [2024-12-19 11:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055291', 'tblTempUsageDetail_20' ) start [2024-12-19 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055291', 'tblTempUsageDetail_20' ) end [2024-12-19 11:49:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:49:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:49:29] Production.INFO: ==11425== Releasing lock... [2024-12-19 11:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:49:29] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:50:06 [end_date_ymd] => 2024-12-19 11:50:06 [RateCDR] => 1 ) [2024-12-19 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:50:06' and `end` < '2024-12-19 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:50:19] Production.INFO: count ==4499 [2024-12-19 11:50:21] Production.ERROR: pbx CDR StartTime 2024-12-19 08:50:06 - End Time 2024-12-19 11:50:06 [2024-12-19 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055297', 'tblTempUsageDetail_20' ) start [2024-12-19 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055297', 'tblTempUsageDetail_20' ) end [2024-12-19 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055297', 'tblTempVendorCDR_20' ) start [2024-12-19 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055297', 'tblTempVendorCDR_20' ) end [2024-12-19 11:50:21] Production.INFO: ProcessCDR(1,14055297,1,1,2) [2024-12-19 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055297', 'tblTempUsageDetail_20' ) start [2024-12-19 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055297', 'tblTempUsageDetail_20' ) end [2024-12-19 11:50:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:50:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:50:26] Production.INFO: ==11503== Releasing lock... [2024-12-19 11:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:50:26] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:51:05 [end_date_ymd] => 2024-12-19 11:51:05 [RateCDR] => 1 ) [2024-12-19 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:51:05' and `end` < '2024-12-19 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:51:19] Production.INFO: count ==4603 [2024-12-19 11:51:20] Production.ERROR: pbx CDR StartTime 2024-12-19 08:51:05 - End Time 2024-12-19 11:51:05 [2024-12-19 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055302', 'tblTempUsageDetail_20' ) start [2024-12-19 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055302', 'tblTempUsageDetail_20' ) end [2024-12-19 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055302', 'tblTempVendorCDR_20' ) start [2024-12-19 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055302', 'tblTempVendorCDR_20' ) end [2024-12-19 11:51:20] Production.INFO: ProcessCDR(1,14055302,1,1,2) [2024-12-19 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055302', 'tblTempUsageDetail_20' ) start [2024-12-19 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055302', 'tblTempUsageDetail_20' ) end [2024-12-19 11:51:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:51:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:51:25] Production.INFO: ==11622== Releasing lock... [2024-12-19 11:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:51:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:52:05 [end_date_ymd] => 2024-12-19 11:52:05 [RateCDR] => 1 ) [2024-12-19 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:52:05' and `end` < '2024-12-19 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:52:22] Production.INFO: count ==4626 [2024-12-19 11:52:23] Production.ERROR: pbx CDR StartTime 2024-12-19 08:52:05 - End Time 2024-12-19 11:52:05 [2024-12-19 11:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055307', 'tblTempUsageDetail_20' ) start [2024-12-19 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055307', 'tblTempUsageDetail_20' ) end [2024-12-19 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055307', 'tblTempVendorCDR_20' ) start [2024-12-19 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055307', 'tblTempVendorCDR_20' ) end [2024-12-19 11:52:24] Production.INFO: ProcessCDR(1,14055307,1,1,2) [2024-12-19 11:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055307', 'tblTempUsageDetail_20' ) start [2024-12-19 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055307', 'tblTempUsageDetail_20' ) end [2024-12-19 11:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:52:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:52:29] Production.INFO: ==11696== Releasing lock... [2024-12-19 11:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:52:29] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:53:05 [end_date_ymd] => 2024-12-19 11:53:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:53:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:53:24] Production.INFO: count ==4651 [2024-12-19 11:53:26] Production.ERROR: pbx CDR StartTime 2024-12-19 08:53:05 - End Time 2024-12-19 11:53:05 [2024-12-19 11:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055312', 'tblTempUsageDetail_20' ) start [2024-12-19 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055312', 'tblTempUsageDetail_20' ) end [2024-12-19 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055312', 'tblTempVendorCDR_20' ) start [2024-12-19 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055312', 'tblTempVendorCDR_20' ) end [2024-12-19 11:53:26] Production.INFO: ProcessCDR(1,14055312,1,1,2) [2024-12-19 11:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055312', 'tblTempUsageDetail_20' ) start [2024-12-19 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055312', 'tblTempUsageDetail_20' ) end [2024-12-19 11:53:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:53:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:53:31] Production.INFO: ==11771== Releasing lock... [2024-12-19 11:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:53:31] Production.INFO: 62.75 MB #Memory Used# [2024-12-19 11:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:54:04 [end_date_ymd] => 2024-12-19 11:54:04 [RateCDR] => 1 ) [2024-12-19 11: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` >= '2024-12-19 08:54:04' and `end` < '2024-12-19 11: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 ,'') [2024-12-19 11:54:30] Production.INFO: count ==4657 [2024-12-19 11:54:32] Production.ERROR: pbx CDR StartTime 2024-12-19 08:54:04 - End Time 2024-12-19 11:54:04 [2024-12-19 11:54:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055317', 'tblTempUsageDetail_20' ) start [2024-12-19 11:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055317', 'tblTempUsageDetail_20' ) end [2024-12-19 11:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055317', 'tblTempVendorCDR_20' ) start [2024-12-19 11:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055317', 'tblTempVendorCDR_20' ) end [2024-12-19 11:54:32] Production.INFO: ProcessCDR(1,14055317,1,1,2) [2024-12-19 11:54:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:54:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055317', 'tblTempUsageDetail_20' ) start [2024-12-19 11:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055317', 'tblTempUsageDetail_20' ) end [2024-12-19 11:54:37] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:54:37] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:54:37] Production.INFO: ==11847== Releasing lock... [2024-12-19 11:54:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:54:37] Production.INFO: 62.75 MB #Memory Used# [2024-12-19 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:55:05 [end_date_ymd] => 2024-12-19 11:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:55:24] Production.INFO: count ==4741 [2024-12-19 11:55:26] Production.ERROR: pbx CDR StartTime 2024-12-19 08:55:05 - End Time 2024-12-19 11:55:05 [2024-12-19 11:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055322', 'tblTempUsageDetail_20' ) start [2024-12-19 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055322', 'tblTempUsageDetail_20' ) end [2024-12-19 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055322', 'tblTempVendorCDR_20' ) start [2024-12-19 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055322', 'tblTempVendorCDR_20' ) end [2024-12-19 11:55:26] Production.INFO: ProcessCDR(1,14055322,1,1,2) [2024-12-19 11:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055322', 'tblTempUsageDetail_20' ) start [2024-12-19 11:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055322', 'tblTempUsageDetail_20' ) end [2024-12-19 11:55:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:55:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:55:31] Production.INFO: ==11917== Releasing lock... [2024-12-19 11:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:55:31] Production.INFO: 63.5 MB #Memory Used# [2024-12-19 11:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:56:04 [end_date_ymd] => 2024-12-19 11:56:04 [RateCDR] => 1 ) [2024-12-19 11:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 08:56:04' and `end` < '2024-12-19 11:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 11:56:19] Production.INFO: count ==4759 [2024-12-19 11:56:21] Production.ERROR: pbx CDR StartTime 2024-12-19 08:56:04 - End Time 2024-12-19 11:56:04 [2024-12-19 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055327', 'tblTempUsageDetail_20' ) start [2024-12-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055327', 'tblTempUsageDetail_20' ) end [2024-12-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055327', 'tblTempVendorCDR_20' ) start [2024-12-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055327', 'tblTempVendorCDR_20' ) end [2024-12-19 11:56:21] Production.INFO: ProcessCDR(1,14055327,1,1,2) [2024-12-19 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055327', 'tblTempUsageDetail_20' ) start [2024-12-19 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055327', 'tblTempUsageDetail_20' ) end [2024-12-19 11:56:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:56:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:56:26] Production.INFO: ==11992== Releasing lock... [2024-12-19 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:56:26] Production.INFO: 63.5 MB #Memory Used# [2024-12-19 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:57:05 [end_date_ymd] => 2024-12-19 11:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:57:18] Production.INFO: count ==4762 [2024-12-19 11:57:20] Production.ERROR: pbx CDR StartTime 2024-12-19 08:57:05 - End Time 2024-12-19 11:57:05 [2024-12-19 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055332', 'tblTempUsageDetail_20' ) start [2024-12-19 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055332', 'tblTempUsageDetail_20' ) end [2024-12-19 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055332', 'tblTempVendorCDR_20' ) start [2024-12-19 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055332', 'tblTempVendorCDR_20' ) end [2024-12-19 11:57:20] Production.INFO: ProcessCDR(1,14055332,1,1,2) [2024-12-19 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055332', 'tblTempUsageDetail_20' ) start [2024-12-19 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055332', 'tblTempUsageDetail_20' ) end [2024-12-19 11:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:57:25] Production.INFO: ==12071== Releasing lock... [2024-12-19 11:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:57:25] Production.INFO: 63.75 MB #Memory Used# [2024-12-19 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:58:05 [end_date_ymd] => 2024-12-19 11:58:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:58:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:58:18] Production.INFO: count ==4773 [2024-12-19 11:58:20] Production.ERROR: pbx CDR StartTime 2024-12-19 08:58:05 - End Time 2024-12-19 11:58:05 [2024-12-19 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055337', 'tblTempUsageDetail_20' ) start [2024-12-19 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055337', 'tblTempUsageDetail_20' ) end [2024-12-19 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055337', 'tblTempVendorCDR_20' ) start [2024-12-19 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055337', 'tblTempVendorCDR_20' ) end [2024-12-19 11:58:20] Production.INFO: ProcessCDR(1,14055337,1,1,2) [2024-12-19 11:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055337', 'tblTempUsageDetail_20' ) start [2024-12-19 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055337', 'tblTempUsageDetail_20' ) end [2024-12-19 11:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:58:24] Production.INFO: ==12144== Releasing lock... [2024-12-19 11:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:58:24] Production.INFO: 63.75 MB #Memory Used# [2024-12-19 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 08:59:05 [end_date_ymd] => 2024-12-19 11:59:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 08:59:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 11:59:18] Production.INFO: count ==4778 [2024-12-19 11:59:20] Production.ERROR: pbx CDR StartTime 2024-12-19 08:59:05 - End Time 2024-12-19 11:59:05 [2024-12-19 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055342', 'tblTempUsageDetail_20' ) start [2024-12-19 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055342', 'tblTempUsageDetail_20' ) end [2024-12-19 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055342', 'tblTempVendorCDR_20' ) start [2024-12-19 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055342', 'tblTempVendorCDR_20' ) end [2024-12-19 11:59:20] Production.INFO: ProcessCDR(1,14055342,1,1,2) [2024-12-19 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 11:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055342', 'tblTempUsageDetail_20' ) start [2024-12-19 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055342', 'tblTempUsageDetail_20' ) end [2024-12-19 11:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 11:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 11:59:25] Production.INFO: ==12216== Releasing lock... [2024-12-19 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 11:59:25] Production.INFO: 63.75 MB #Memory Used# [2024-12-19 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:00:05 [end_date_ymd] => 2024-12-19 12:00:05 [RateCDR] => 1 ) [2024-12-19 12: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` >= '2024-12-19 09:00:05' and `end` < '2024-12-19 12: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 ,'') [2024-12-19 12:00:19] Production.INFO: count ==4800 [2024-12-19 12:00:20] Production.ERROR: pbx CDR StartTime 2024-12-19 09:00:05 - End Time 2024-12-19 12:00:05 [2024-12-19 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055347', 'tblTempUsageDetail_20' ) start [2024-12-19 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055347', 'tblTempUsageDetail_20' ) end [2024-12-19 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055347', 'tblTempVendorCDR_20' ) start [2024-12-19 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055347', 'tblTempVendorCDR_20' ) end [2024-12-19 12:00:21] Production.INFO: ProcessCDR(1,14055347,1,1,2) [2024-12-19 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055347', 'tblTempUsageDetail_20' ) start [2024-12-19 12:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055347', 'tblTempUsageDetail_20' ) end [2024-12-19 12:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:00:25] Production.INFO: ==12293== Releasing lock... [2024-12-19 12:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:00:25] Production.INFO: 64 MB #Memory Used# [2024-12-19 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:01:05 [end_date_ymd] => 2024-12-19 12:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:01:19] Production.INFO: count ==4858 [2024-12-19 12:01:21] Production.ERROR: pbx CDR StartTime 2024-12-19 09:01:05 - End Time 2024-12-19 12:01:05 [2024-12-19 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055353', 'tblTempUsageDetail_20' ) start [2024-12-19 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055353', 'tblTempUsageDetail_20' ) end [2024-12-19 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055353', 'tblTempVendorCDR_20' ) start [2024-12-19 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055353', 'tblTempVendorCDR_20' ) end [2024-12-19 12:01:21] Production.INFO: ProcessCDR(1,14055353,1,1,2) [2024-12-19 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055353', 'tblTempUsageDetail_20' ) start [2024-12-19 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055353', 'tblTempUsageDetail_20' ) end [2024-12-19 12:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:01:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:01:26] Production.INFO: ==12380== Releasing lock... [2024-12-19 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:01:26] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:02:05 [end_date_ymd] => 2024-12-19 12:02:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:02:20] Production.INFO: count ==4859 [2024-12-19 12:02:22] Production.ERROR: pbx CDR StartTime 2024-12-19 09:02:05 - End Time 2024-12-19 12:02:05 [2024-12-19 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055358', 'tblTempUsageDetail_20' ) start [2024-12-19 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055358', 'tblTempUsageDetail_20' ) end [2024-12-19 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055358', 'tblTempVendorCDR_20' ) start [2024-12-19 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055358', 'tblTempVendorCDR_20' ) end [2024-12-19 12:02:22] Production.INFO: ProcessCDR(1,14055358,1,1,2) [2024-12-19 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055358', 'tblTempUsageDetail_20' ) start [2024-12-19 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055358', 'tblTempUsageDetail_20' ) end [2024-12-19 12:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:02:26] Production.INFO: ==12453== Releasing lock... [2024-12-19 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:02:26] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:03:05 [end_date_ymd] => 2024-12-19 12:03:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:03:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:03:18] Production.INFO: count ==4838 [2024-12-19 12:03:20] Production.ERROR: pbx CDR StartTime 2024-12-19 09:03:05 - End Time 2024-12-19 12:03:05 [2024-12-19 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055363', 'tblTempUsageDetail_20' ) start [2024-12-19 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055363', 'tblTempUsageDetail_20' ) end [2024-12-19 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055363', 'tblTempVendorCDR_20' ) start [2024-12-19 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055363', 'tblTempVendorCDR_20' ) end [2024-12-19 12:03:20] Production.INFO: ProcessCDR(1,14055363,1,1,2) [2024-12-19 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055363', 'tblTempUsageDetail_20' ) start [2024-12-19 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055363', 'tblTempUsageDetail_20' ) end [2024-12-19 12:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:03:24] Production.INFO: ==12527== Releasing lock... [2024-12-19 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:03:24] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:04:05 [end_date_ymd] => 2024-12-19 12:04:05 [RateCDR] => 1 ) [2024-12-19 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:04:05' and `end` < '2024-12-19 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:04:22] Production.INFO: count ==4839 [2024-12-19 12:04:24] Production.ERROR: pbx CDR StartTime 2024-12-19 09:04:05 - End Time 2024-12-19 12:04:05 [2024-12-19 12:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055368', 'tblTempUsageDetail_20' ) start [2024-12-19 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055368', 'tblTempUsageDetail_20' ) end [2024-12-19 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055368', 'tblTempVendorCDR_20' ) start [2024-12-19 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055368', 'tblTempVendorCDR_20' ) end [2024-12-19 12:04:24] Production.INFO: ProcessCDR(1,14055368,1,1,2) [2024-12-19 12:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055368', 'tblTempUsageDetail_20' ) start [2024-12-19 12:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055368', 'tblTempUsageDetail_20' ) end [2024-12-19 12:04:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:04:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:04:29] Production.INFO: ==12599== Releasing lock... [2024-12-19 12:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:04:29] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:05:04 [end_date_ymd] => 2024-12-19 12:05:04 [RateCDR] => 1 ) [2024-12-19 12:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:05:04' and `end` < '2024-12-19 12:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:05:24] Production.INFO: count ==4856 [2024-12-19 12:05:26] Production.ERROR: pbx CDR StartTime 2024-12-19 09:05:04 - End Time 2024-12-19 12:05:04 [2024-12-19 12:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055373', 'tblTempUsageDetail_20' ) start [2024-12-19 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055373', 'tblTempUsageDetail_20' ) end [2024-12-19 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055373', 'tblTempVendorCDR_20' ) start [2024-12-19 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055373', 'tblTempVendorCDR_20' ) end [2024-12-19 12:05:26] Production.INFO: ProcessCDR(1,14055373,1,1,2) [2024-12-19 12:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055373', 'tblTempUsageDetail_20' ) start [2024-12-19 12:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055373', 'tblTempUsageDetail_20' ) end [2024-12-19 12:05:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:05:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:05:31] Production.INFO: ==12672== Releasing lock... [2024-12-19 12:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:05:31] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:06:05 [end_date_ymd] => 2024-12-19 12:06:05 [RateCDR] => 1 ) [2024-12-19 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:06:05' and `end` < '2024-12-19 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:06:23] Production.INFO: count ==4871 [2024-12-19 12:06:25] Production.ERROR: pbx CDR StartTime 2024-12-19 09:06:05 - End Time 2024-12-19 12:06:05 [2024-12-19 12:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055378', 'tblTempUsageDetail_20' ) start [2024-12-19 12:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055378', 'tblTempUsageDetail_20' ) end [2024-12-19 12:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055378', 'tblTempVendorCDR_20' ) start [2024-12-19 12:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055378', 'tblTempVendorCDR_20' ) end [2024-12-19 12:06:25] Production.INFO: ProcessCDR(1,14055378,1,1,2) [2024-12-19 12:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055378', 'tblTempUsageDetail_20' ) start [2024-12-19 12:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055378', 'tblTempUsageDetail_20' ) end [2024-12-19 12:06:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:06:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:06:30] Production.INFO: ==12781== Releasing lock... [2024-12-19 12:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:06:30] Production.INFO: 64.5 MB #Memory Used# [2024-12-19 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:07:04 [end_date_ymd] => 2024-12-19 12:07:04 [RateCDR] => 1 ) [2024-12-19 12: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` >= '2024-12-19 09:07:04' and `end` < '2024-12-19 12: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 ,'') [2024-12-19 12:07:20] Production.INFO: count ==4867 [2024-12-19 12:07:22] Production.ERROR: pbx CDR StartTime 2024-12-19 09:07:04 - End Time 2024-12-19 12:07:04 [2024-12-19 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055383', 'tblTempUsageDetail_20' ) start [2024-12-19 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055383', 'tblTempUsageDetail_20' ) end [2024-12-19 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055383', 'tblTempVendorCDR_20' ) start [2024-12-19 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055383', 'tblTempVendorCDR_20' ) end [2024-12-19 12:07:22] Production.INFO: ProcessCDR(1,14055383,1,1,2) [2024-12-19 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055383', 'tblTempUsageDetail_20' ) start [2024-12-19 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055383', 'tblTempUsageDetail_20' ) end [2024-12-19 12:07:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:07:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:07:27] Production.INFO: ==12853== Releasing lock... [2024-12-19 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:07:27] Production.INFO: 64.5 MB #Memory Used# [2024-12-19 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:08:05 [end_date_ymd] => 2024-12-19 12:08:05 [RateCDR] => 1 ) [2024-12-19 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:08:05' and `end` < '2024-12-19 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:08:24] Production.INFO: count ==4874 [2024-12-19 12:08:26] Production.ERROR: pbx CDR StartTime 2024-12-19 09:08:05 - End Time 2024-12-19 12:08:05 [2024-12-19 12:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055388', 'tblTempUsageDetail_20' ) start [2024-12-19 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055388', 'tblTempUsageDetail_20' ) end [2024-12-19 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055388', 'tblTempVendorCDR_20' ) start [2024-12-19 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055388', 'tblTempVendorCDR_20' ) end [2024-12-19 12:08:26] Production.INFO: ProcessCDR(1,14055388,1,1,2) [2024-12-19 12:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055388', 'tblTempUsageDetail_20' ) start [2024-12-19 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055388', 'tblTempUsageDetail_20' ) end [2024-12-19 12:08:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:08:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:08:31] Production.INFO: ==12926== Releasing lock... [2024-12-19 12:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:08:31] Production.INFO: 64.5 MB #Memory Used# [2024-12-19 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:09:04 [end_date_ymd] => 2024-12-19 12:09:04 [RateCDR] => 1 ) [2024-12-19 12:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:09:04' and `end` < '2024-12-19 12:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:09:22] Production.INFO: count ==4875 [2024-12-19 12:09:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:09:04 - End Time 2024-12-19 12:09:04 [2024-12-19 12:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055393', 'tblTempUsageDetail_20' ) start [2024-12-19 12:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055393', 'tblTempUsageDetail_20' ) end [2024-12-19 12:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055393', 'tblTempVendorCDR_20' ) start [2024-12-19 12:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055393', 'tblTempVendorCDR_20' ) end [2024-12-19 12:09:24] Production.INFO: ProcessCDR(1,14055393,1,1,2) [2024-12-19 12:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055393', 'tblTempUsageDetail_20' ) start [2024-12-19 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055393', 'tblTempUsageDetail_20' ) end [2024-12-19 12:09:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:09:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:09:28] Production.INFO: ==12996== Releasing lock... [2024-12-19 12:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:09:28] Production.INFO: 64.5 MB #Memory Used# [2024-12-19 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:10:05 [end_date_ymd] => 2024-12-19 12:10:05 [RateCDR] => 1 ) [2024-12-19 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:10:05' and `end` < '2024-12-19 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:10:31] Production.INFO: count ==4906 [2024-12-19 12:10:33] Production.ERROR: pbx CDR StartTime 2024-12-19 09:10:05 - End Time 2024-12-19 12:10:05 [2024-12-19 12:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055398', 'tblTempUsageDetail_20' ) start [2024-12-19 12:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055398', 'tblTempUsageDetail_20' ) end [2024-12-19 12:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055398', 'tblTempVendorCDR_20' ) start [2024-12-19 12:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055398', 'tblTempVendorCDR_20' ) end [2024-12-19 12:10:33] Production.INFO: ProcessCDR(1,14055398,1,1,2) [2024-12-19 12:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:10:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:10:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055398', 'tblTempUsageDetail_20' ) start [2024-12-19 12:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055398', 'tblTempUsageDetail_20' ) end [2024-12-19 12:10:38] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:10:38] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:10:38] Production.INFO: ==13073== Releasing lock... [2024-12-19 12:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:10:38] Production.INFO: 64.75 MB #Memory Used# [2024-12-19 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:11:05 [end_date_ymd] => 2024-12-19 12:11:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:11:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:11:21] Production.INFO: count ==4884 [2024-12-19 12:11:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:11:05 - End Time 2024-12-19 12:11:05 [2024-12-19 12:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055404', 'tblTempUsageDetail_20' ) start [2024-12-19 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055404', 'tblTempUsageDetail_20' ) end [2024-12-19 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055404', 'tblTempVendorCDR_20' ) start [2024-12-19 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055404', 'tblTempVendorCDR_20' ) end [2024-12-19 12:11:23] Production.INFO: ProcessCDR(1,14055404,1,1,2) [2024-12-19 12:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055404', 'tblTempUsageDetail_20' ) start [2024-12-19 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055404', 'tblTempUsageDetail_20' ) end [2024-12-19 12:11:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:11:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:11:27] Production.INFO: ==13146== Releasing lock... [2024-12-19 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:11:27] Production.INFO: 64.5 MB #Memory Used# [2024-12-19 12:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:12:04 [end_date_ymd] => 2024-12-19 12:12:04 [RateCDR] => 1 ) [2024-12-19 12: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` >= '2024-12-19 09:12:04' and `end` < '2024-12-19 12: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 ,'') [2024-12-19 12:12:19] Production.INFO: count ==4881 [2024-12-19 12:12:21] Production.ERROR: pbx CDR StartTime 2024-12-19 09:12:04 - End Time 2024-12-19 12:12:04 [2024-12-19 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055409', 'tblTempUsageDetail_20' ) start [2024-12-19 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055409', 'tblTempUsageDetail_20' ) end [2024-12-19 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055409', 'tblTempVendorCDR_20' ) start [2024-12-19 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055409', 'tblTempVendorCDR_20' ) end [2024-12-19 12:12:21] Production.INFO: ProcessCDR(1,14055409,1,1,2) [2024-12-19 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055409', 'tblTempUsageDetail_20' ) start [2024-12-19 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055409', 'tblTempUsageDetail_20' ) end [2024-12-19 12:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:12:25] Production.INFO: ==13216== Releasing lock... [2024-12-19 12:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:12:25] Production.INFO: 64.5 MB #Memory Used# [2024-12-19 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:13:05 [end_date_ymd] => 2024-12-19 12:13:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:13:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:13:20] Production.INFO: count ==4859 [2024-12-19 12:13:21] Production.ERROR: pbx CDR StartTime 2024-12-19 09:13:05 - End Time 2024-12-19 12:13:05 [2024-12-19 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055414', 'tblTempUsageDetail_20' ) start [2024-12-19 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055414', 'tblTempUsageDetail_20' ) end [2024-12-19 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055414', 'tblTempVendorCDR_20' ) start [2024-12-19 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055414', 'tblTempVendorCDR_20' ) end [2024-12-19 12:13:22] Production.INFO: ProcessCDR(1,14055414,1,1,2) [2024-12-19 12:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055414', 'tblTempUsageDetail_20' ) start [2024-12-19 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055414', 'tblTempUsageDetail_20' ) end [2024-12-19 12:13:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:13:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:13:26] Production.INFO: ==13289== Releasing lock... [2024-12-19 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:13:26] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:14:05 [end_date_ymd] => 2024-12-19 12:14:05 [RateCDR] => 1 ) [2024-12-19 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:14:05' and `end` < '2024-12-19 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:14:23] Production.INFO: count ==4857 [2024-12-19 12:14:25] Production.ERROR: pbx CDR StartTime 2024-12-19 09:14:05 - End Time 2024-12-19 12:14:05 [2024-12-19 12:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055419', 'tblTempUsageDetail_20' ) start [2024-12-19 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055419', 'tblTempUsageDetail_20' ) end [2024-12-19 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055419', 'tblTempVendorCDR_20' ) start [2024-12-19 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055419', 'tblTempVendorCDR_20' ) end [2024-12-19 12:14:25] Production.INFO: ProcessCDR(1,14055419,1,1,2) [2024-12-19 12:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055419', 'tblTempUsageDetail_20' ) start [2024-12-19 12:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055419', 'tblTempUsageDetail_20' ) end [2024-12-19 12:14:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:14:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:14:30] Production.INFO: ==13368== Releasing lock... [2024-12-19 12:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:14:30] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:15:05 [end_date_ymd] => 2024-12-19 12:15:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:15:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:15:23] Production.INFO: count ==4849 [2024-12-19 12:15:25] Production.ERROR: pbx CDR StartTime 2024-12-19 09:15:05 - End Time 2024-12-19 12:15:05 [2024-12-19 12:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055424', 'tblTempUsageDetail_20' ) start [2024-12-19 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055424', 'tblTempUsageDetail_20' ) end [2024-12-19 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055424', 'tblTempVendorCDR_20' ) start [2024-12-19 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055424', 'tblTempVendorCDR_20' ) end [2024-12-19 12:15:25] Production.INFO: ProcessCDR(1,14055424,1,1,2) [2024-12-19 12:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055424', 'tblTempUsageDetail_20' ) start [2024-12-19 12:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055424', 'tblTempUsageDetail_20' ) end [2024-12-19 12:15:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:15:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:15:30] Production.INFO: ==13447== Releasing lock... [2024-12-19 12:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:15:30] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:16:05 [end_date_ymd] => 2024-12-19 12:16:05 [RateCDR] => 1 ) [2024-12-19 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:16:05' and `end` < '2024-12-19 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:16:20] Production.INFO: count ==4861 [2024-12-19 12:16:22] Production.ERROR: pbx CDR StartTime 2024-12-19 09:16:05 - End Time 2024-12-19 12:16:05 [2024-12-19 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055429', 'tblTempUsageDetail_20' ) start [2024-12-19 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055429', 'tblTempUsageDetail_20' ) end [2024-12-19 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055429', 'tblTempVendorCDR_20' ) start [2024-12-19 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055429', 'tblTempVendorCDR_20' ) end [2024-12-19 12:16:22] Production.INFO: ProcessCDR(1,14055429,1,1,2) [2024-12-19 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055429', 'tblTempUsageDetail_20' ) start [2024-12-19 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055429', 'tblTempUsageDetail_20' ) end [2024-12-19 12:16:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:16:27] Production.INFO: ==13522== Releasing lock... [2024-12-19 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:16:27] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:17:04 [end_date_ymd] => 2024-12-19 12:17:04 [RateCDR] => 1 ) [2024-12-19 12:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:17:04' and `end` < '2024-12-19 12:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:17:18] Production.INFO: count ==4856 [2024-12-19 12:17:20] Production.ERROR: pbx CDR StartTime 2024-12-19 09:17:04 - End Time 2024-12-19 12:17:04 [2024-12-19 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055434', 'tblTempUsageDetail_20' ) start [2024-12-19 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055434', 'tblTempUsageDetail_20' ) end [2024-12-19 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055434', 'tblTempVendorCDR_20' ) start [2024-12-19 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055434', 'tblTempVendorCDR_20' ) end [2024-12-19 12:17:20] Production.INFO: ProcessCDR(1,14055434,1,1,2) [2024-12-19 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055434', 'tblTempUsageDetail_20' ) start [2024-12-19 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055434', 'tblTempUsageDetail_20' ) end [2024-12-19 12:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:17:25] Production.INFO: ==13609== Releasing lock... [2024-12-19 12:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:17:25] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:18:05 [end_date_ymd] => 2024-12-19 12:18:05 [RateCDR] => 1 ) [2024-12-19 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:18:05' and `end` < '2024-12-19 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:18:18] Production.INFO: count ==4850 [2024-12-19 12:18:20] Production.ERROR: pbx CDR StartTime 2024-12-19 09:18:05 - End Time 2024-12-19 12:18:05 [2024-12-19 12:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055439', 'tblTempUsageDetail_20' ) start [2024-12-19 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055439', 'tblTempUsageDetail_20' ) end [2024-12-19 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055439', 'tblTempVendorCDR_20' ) start [2024-12-19 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055439', 'tblTempVendorCDR_20' ) end [2024-12-19 12:18:20] Production.INFO: ProcessCDR(1,14055439,1,1,2) [2024-12-19 12:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055439', 'tblTempUsageDetail_20' ) start [2024-12-19 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055439', 'tblTempUsageDetail_20' ) end [2024-12-19 12:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:18:25] Production.INFO: ==13684== Releasing lock... [2024-12-19 12:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:18:25] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:19:04 [end_date_ymd] => 2024-12-19 12:19:04 [RateCDR] => 1 ) [2024-12-19 12: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` >= '2024-12-19 09:19:04' and `end` < '2024-12-19 12: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 ,'') [2024-12-19 12:19:17] Production.INFO: count ==4838 [2024-12-19 12:19:19] Production.ERROR: pbx CDR StartTime 2024-12-19 09:19:04 - End Time 2024-12-19 12:19:04 [2024-12-19 12:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055444', 'tblTempUsageDetail_20' ) start [2024-12-19 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055444', 'tblTempUsageDetail_20' ) end [2024-12-19 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055444', 'tblTempVendorCDR_20' ) start [2024-12-19 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055444', 'tblTempVendorCDR_20' ) end [2024-12-19 12:19:19] Production.INFO: ProcessCDR(1,14055444,1,1,2) [2024-12-19 12:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055444', 'tblTempUsageDetail_20' ) start [2024-12-19 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055444', 'tblTempUsageDetail_20' ) end [2024-12-19 12:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:19:23] Production.INFO: ==13765== Releasing lock... [2024-12-19 12:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:19:23] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:20:06 [end_date_ymd] => 2024-12-19 12:20:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:20:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:20:21] Production.INFO: count ==4839 [2024-12-19 12:20:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:20:06 - End Time 2024-12-19 12:20:06 [2024-12-19 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055450', 'tblTempUsageDetail_20' ) start [2024-12-19 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055450', 'tblTempUsageDetail_20' ) end [2024-12-19 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055450', 'tblTempVendorCDR_20' ) start [2024-12-19 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055450', 'tblTempVendorCDR_20' ) end [2024-12-19 12:20:23] Production.INFO: ProcessCDR(1,14055450,1,1,2) [2024-12-19 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055450', 'tblTempUsageDetail_20' ) start [2024-12-19 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055450', 'tblTempUsageDetail_20' ) end [2024-12-19 12:20:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:20:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:20:28] Production.INFO: ==13849== Releasing lock... [2024-12-19 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:20:28] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:21:04 [end_date_ymd] => 2024-12-19 12:21:04 [RateCDR] => 1 ) [2024-12-19 12: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` >= '2024-12-19 09:21:04' and `end` < '2024-12-19 12: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 ,'') [2024-12-19 12:21:26] Production.INFO: count ==4852 [2024-12-19 12:21:28] Production.ERROR: pbx CDR StartTime 2024-12-19 09:21:04 - End Time 2024-12-19 12:21:04 [2024-12-19 12:21:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055455', 'tblTempUsageDetail_20' ) start [2024-12-19 12:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055455', 'tblTempUsageDetail_20' ) end [2024-12-19 12:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055455', 'tblTempVendorCDR_20' ) start [2024-12-19 12:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055455', 'tblTempVendorCDR_20' ) end [2024-12-19 12:21:28] Production.INFO: ProcessCDR(1,14055455,1,1,2) [2024-12-19 12:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055455', 'tblTempUsageDetail_20' ) start [2024-12-19 12:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055455', 'tblTempUsageDetail_20' ) end [2024-12-19 12:21:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:21:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:21:32] Production.INFO: ==13930== Releasing lock... [2024-12-19 12:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:21:32] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:22:05 [end_date_ymd] => 2024-12-19 12:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:22:22] Production.INFO: count ==4847 [2024-12-19 12:22:24] Production.ERROR: pbx CDR StartTime 2024-12-19 09:22:05 - End Time 2024-12-19 12:22:05 [2024-12-19 12:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055460', 'tblTempUsageDetail_20' ) start [2024-12-19 12:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055460', 'tblTempUsageDetail_20' ) end [2024-12-19 12:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055460', 'tblTempVendorCDR_20' ) start [2024-12-19 12:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055460', 'tblTempVendorCDR_20' ) end [2024-12-19 12:22:24] Production.INFO: ProcessCDR(1,14055460,1,1,2) [2024-12-19 12:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055460', 'tblTempUsageDetail_20' ) start [2024-12-19 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055460', 'tblTempUsageDetail_20' ) end [2024-12-19 12:22:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:22:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:22:29] Production.INFO: ==14048== Releasing lock... [2024-12-19 12:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:22:29] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:23:04 [end_date_ymd] => 2024-12-19 12:23:04 [RateCDR] => 1 ) [2024-12-19 12:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:23:04' and `end` < '2024-12-19 12:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:23:25] Production.INFO: count ==4850 [2024-12-19 12:23:27] Production.ERROR: pbx CDR StartTime 2024-12-19 09:23:04 - End Time 2024-12-19 12:23:04 [2024-12-19 12:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055465', 'tblTempUsageDetail_20' ) start [2024-12-19 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055465', 'tblTempUsageDetail_20' ) end [2024-12-19 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055465', 'tblTempVendorCDR_20' ) start [2024-12-19 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055465', 'tblTempVendorCDR_20' ) end [2024-12-19 12:23:27] Production.INFO: ProcessCDR(1,14055465,1,1,2) [2024-12-19 12:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055465', 'tblTempUsageDetail_20' ) start [2024-12-19 12:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055465', 'tblTempUsageDetail_20' ) end [2024-12-19 12:23:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:23:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:23:32] Production.INFO: ==14135== Releasing lock... [2024-12-19 12:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:23:32] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:24:05 [end_date_ymd] => 2024-12-19 12:24:05 [RateCDR] => 1 ) [2024-12-19 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:24:05' and `end` < '2024-12-19 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:24:23] Production.INFO: count ==4837 [2024-12-19 12:24:25] Production.ERROR: pbx CDR StartTime 2024-12-19 09:24:05 - End Time 2024-12-19 12:24:05 [2024-12-19 12:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055470', 'tblTempUsageDetail_20' ) start [2024-12-19 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055470', 'tblTempUsageDetail_20' ) end [2024-12-19 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055470', 'tblTempVendorCDR_20' ) start [2024-12-19 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055470', 'tblTempVendorCDR_20' ) end [2024-12-19 12:24:25] Production.INFO: ProcessCDR(1,14055470,1,1,2) [2024-12-19 12:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055470', 'tblTempUsageDetail_20' ) start [2024-12-19 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055470', 'tblTempUsageDetail_20' ) end [2024-12-19 12:24:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:24:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:24:30] Production.INFO: ==14213== Releasing lock... [2024-12-19 12:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:24:30] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:25:04 [end_date_ymd] => 2024-12-19 12:25:04 [RateCDR] => 1 ) [2024-12-19 12:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:25:04' and `end` < '2024-12-19 12:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:25:20] Production.INFO: count ==4826 [2024-12-19 12:25:22] Production.ERROR: pbx CDR StartTime 2024-12-19 09:25:04 - End Time 2024-12-19 12:25:04 [2024-12-19 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055475', 'tblTempUsageDetail_20' ) start [2024-12-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055475', 'tblTempUsageDetail_20' ) end [2024-12-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055475', 'tblTempVendorCDR_20' ) start [2024-12-19 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055475', 'tblTempVendorCDR_20' ) end [2024-12-19 12:25:22] Production.INFO: ProcessCDR(1,14055475,1,1,2) [2024-12-19 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055475', 'tblTempUsageDetail_20' ) start [2024-12-19 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055475', 'tblTempUsageDetail_20' ) end [2024-12-19 12:25:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:25:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:25:27] Production.INFO: ==14299== Releasing lock... [2024-12-19 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:25:27] Production.INFO: 64 MB #Memory Used# [2024-12-19 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:26:05 [end_date_ymd] => 2024-12-19 12:26:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:26:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:26:23] Production.INFO: count ==4809 [2024-12-19 12:26:25] Production.ERROR: pbx CDR StartTime 2024-12-19 09:26:05 - End Time 2024-12-19 12:26:05 [2024-12-19 12:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055480', 'tblTempUsageDetail_20' ) start [2024-12-19 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055480', 'tblTempUsageDetail_20' ) end [2024-12-19 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055480', 'tblTempVendorCDR_20' ) start [2024-12-19 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055480', 'tblTempVendorCDR_20' ) end [2024-12-19 12:26:25] Production.INFO: ProcessCDR(1,14055480,1,1,2) [2024-12-19 12:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055480', 'tblTempUsageDetail_20' ) start [2024-12-19 12:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055480', 'tblTempUsageDetail_20' ) end [2024-12-19 12:26:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:26:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:26:29] Production.INFO: ==14379== Releasing lock... [2024-12-19 12:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:26:29] Production.INFO: 64 MB #Memory Used# [2024-12-19 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:27:05 [end_date_ymd] => 2024-12-19 12:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:27:22] Production.INFO: count ==4818 [2024-12-19 12:27:24] Production.ERROR: pbx CDR StartTime 2024-12-19 09:27:05 - End Time 2024-12-19 12:27:05 [2024-12-19 12:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055485', 'tblTempUsageDetail_20' ) start [2024-12-19 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055485', 'tblTempUsageDetail_20' ) end [2024-12-19 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055485', 'tblTempVendorCDR_20' ) start [2024-12-19 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055485', 'tblTempVendorCDR_20' ) end [2024-12-19 12:27:24] Production.INFO: ProcessCDR(1,14055485,1,1,2) [2024-12-19 12:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055485', 'tblTempUsageDetail_20' ) start [2024-12-19 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055485', 'tblTempUsageDetail_20' ) end [2024-12-19 12:27:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:27:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:27:29] Production.INFO: ==14466== Releasing lock... [2024-12-19 12:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:27:29] Production.INFO: 64 MB #Memory Used# [2024-12-19 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:28:04 [end_date_ymd] => 2024-12-19 12:28:04 [RateCDR] => 1 ) [2024-12-19 12:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:28:04' and `end` < '2024-12-19 12:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:28:22] Production.INFO: count ==4799 [2024-12-19 12:28:24] Production.ERROR: pbx CDR StartTime 2024-12-19 09:28:04 - End Time 2024-12-19 12:28:04 [2024-12-19 12:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055490', 'tblTempUsageDetail_20' ) start [2024-12-19 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055490', 'tblTempUsageDetail_20' ) end [2024-12-19 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055490', 'tblTempVendorCDR_20' ) start [2024-12-19 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055490', 'tblTempVendorCDR_20' ) end [2024-12-19 12:28:24] Production.INFO: ProcessCDR(1,14055490,1,1,2) [2024-12-19 12:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055490', 'tblTempUsageDetail_20' ) start [2024-12-19 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055490', 'tblTempUsageDetail_20' ) end [2024-12-19 12:28:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:28:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:28:29] Production.INFO: ==14544== Releasing lock... [2024-12-19 12:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:28:29] Production.INFO: 64 MB #Memory Used# [2024-12-19 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:29:05 [end_date_ymd] => 2024-12-19 12:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:29:19] Production.INFO: count ==4770 [2024-12-19 12:29:21] Production.ERROR: pbx CDR StartTime 2024-12-19 09:29:05 - End Time 2024-12-19 12:29:05 [2024-12-19 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055495', 'tblTempUsageDetail_20' ) start [2024-12-19 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055495', 'tblTempUsageDetail_20' ) end [2024-12-19 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055495', 'tblTempVendorCDR_20' ) start [2024-12-19 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055495', 'tblTempVendorCDR_20' ) end [2024-12-19 12:29:21] Production.INFO: ProcessCDR(1,14055495,1,1,2) [2024-12-19 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055495', 'tblTempUsageDetail_20' ) start [2024-12-19 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055495', 'tblTempUsageDetail_20' ) end [2024-12-19 12:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:29:26] Production.INFO: ==14627== Releasing lock... [2024-12-19 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:29:26] Production.INFO: 63.75 MB #Memory Used# [2024-12-19 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:30:06 [end_date_ymd] => 2024-12-19 12:30:06 [RateCDR] => 1 ) [2024-12-19 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:30:06' and `end` < '2024-12-19 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:30:23] Production.INFO: count ==4723 [2024-12-19 12:30:25] Production.ERROR: pbx CDR StartTime 2024-12-19 09:30:06 - End Time 2024-12-19 12:30:06 [2024-12-19 12:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055500', 'tblTempUsageDetail_20' ) start [2024-12-19 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055500', 'tblTempUsageDetail_20' ) end [2024-12-19 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055500', 'tblTempVendorCDR_20' ) start [2024-12-19 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055500', 'tblTempVendorCDR_20' ) end [2024-12-19 12:30:25] Production.INFO: ProcessCDR(1,14055500,1,1,2) [2024-12-19 12:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055500', 'tblTempUsageDetail_20' ) start [2024-12-19 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055500', 'tblTempUsageDetail_20' ) end [2024-12-19 12:30:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:30:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:30:28] Production.INFO: ==14709== Releasing lock... [2024-12-19 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:30:28] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:31:05 [end_date_ymd] => 2024-12-19 12:31:05 [RateCDR] => 1 ) [2024-12-19 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:31:05' and `end` < '2024-12-19 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:31:19] Production.INFO: count ==4706 [2024-12-19 12:31:21] Production.ERROR: pbx CDR StartTime 2024-12-19 09:31:05 - End Time 2024-12-19 12:31:05 [2024-12-19 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055506', 'tblTempUsageDetail_20' ) start [2024-12-19 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055506', 'tblTempUsageDetail_20' ) end [2024-12-19 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055506', 'tblTempVendorCDR_20' ) start [2024-12-19 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055506', 'tblTempVendorCDR_20' ) end [2024-12-19 12:31:21] Production.INFO: ProcessCDR(1,14055506,1,1,2) [2024-12-19 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055506', 'tblTempUsageDetail_20' ) start [2024-12-19 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055506', 'tblTempUsageDetail_20' ) end [2024-12-19 12:31:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:31:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:31:26] Production.INFO: ==14796== Releasing lock... [2024-12-19 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:31:26] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:32:04 [end_date_ymd] => 2024-12-19 12:32:04 [RateCDR] => 1 ) [2024-12-19 12:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:32:04' and `end` < '2024-12-19 12:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:32:22] Production.INFO: count ==4708 [2024-12-19 12:32:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:32:04 - End Time 2024-12-19 12:32:04 [2024-12-19 12:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055511', 'tblTempUsageDetail_20' ) start [2024-12-19 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055511', 'tblTempUsageDetail_20' ) end [2024-12-19 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055511', 'tblTempVendorCDR_20' ) start [2024-12-19 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055511', 'tblTempVendorCDR_20' ) end [2024-12-19 12:32:24] Production.INFO: ProcessCDR(1,14055511,1,1,2) [2024-12-19 12:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055511', 'tblTempUsageDetail_20' ) start [2024-12-19 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055511', 'tblTempUsageDetail_20' ) end [2024-12-19 12:32:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:32:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:32:28] Production.INFO: ==14874== Releasing lock... [2024-12-19 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:32:28] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:33:05 [end_date_ymd] => 2024-12-19 12:33:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:33:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:33:23] Production.INFO: count ==4674 [2024-12-19 12:33:25] Production.ERROR: pbx CDR StartTime 2024-12-19 09:33:05 - End Time 2024-12-19 12:33:05 [2024-12-19 12:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055516', 'tblTempUsageDetail_20' ) start [2024-12-19 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055516', 'tblTempUsageDetail_20' ) end [2024-12-19 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055516', 'tblTempVendorCDR_20' ) start [2024-12-19 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055516', 'tblTempVendorCDR_20' ) end [2024-12-19 12:33:25] Production.INFO: ProcessCDR(1,14055516,1,1,2) [2024-12-19 12:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055516', 'tblTempUsageDetail_20' ) start [2024-12-19 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055516', 'tblTempUsageDetail_20' ) end [2024-12-19 12:33:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:33:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:33:30] Production.INFO: ==14954== Releasing lock... [2024-12-19 12:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:33:30] Production.INFO: 63 MB #Memory Used# [2024-12-19 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:34:04 [end_date_ymd] => 2024-12-19 12:34:04 [RateCDR] => 1 ) [2024-12-19 12:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:34:04' and `end` < '2024-12-19 12:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:34:21] Production.INFO: count ==4650 [2024-12-19 12:34:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:34:04 - End Time 2024-12-19 12:34:04 [2024-12-19 12:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055521', 'tblTempUsageDetail_20' ) start [2024-12-19 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055521', 'tblTempUsageDetail_20' ) end [2024-12-19 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055521', 'tblTempVendorCDR_20' ) start [2024-12-19 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055521', 'tblTempVendorCDR_20' ) end [2024-12-19 12:34:23] Production.INFO: ProcessCDR(1,14055521,1,1,2) [2024-12-19 12:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055521', 'tblTempUsageDetail_20' ) start [2024-12-19 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055521', 'tblTempUsageDetail_20' ) end [2024-12-19 12:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:34:27] Production.INFO: ==15036== Releasing lock... [2024-12-19 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:34:27] Production.INFO: 62.75 MB #Memory Used# [2024-12-19 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:35:05 [end_date_ymd] => 2024-12-19 12:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:35:31] Production.INFO: count ==4651 [2024-12-19 12:35:33] Production.ERROR: pbx CDR StartTime 2024-12-19 09:35:05 - End Time 2024-12-19 12:35:05 [2024-12-19 12:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055526', 'tblTempUsageDetail_20' ) start [2024-12-19 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055526', 'tblTempUsageDetail_20' ) end [2024-12-19 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055526', 'tblTempVendorCDR_20' ) start [2024-12-19 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055526', 'tblTempVendorCDR_20' ) end [2024-12-19 12:35:33] Production.INFO: ProcessCDR(1,14055526,1,1,2) [2024-12-19 12:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055526', 'tblTempUsageDetail_20' ) start [2024-12-19 12:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055526', 'tblTempUsageDetail_20' ) end [2024-12-19 12:35:38] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:35:38] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:35:38] Production.INFO: ==15116== Releasing lock... [2024-12-19 12:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:35:38] Production.INFO: 62.75 MB #Memory Used# [2024-12-19 12:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:36:04 [end_date_ymd] => 2024-12-19 12:36:04 [RateCDR] => 1 ) [2024-12-19 12:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:36:04' and `end` < '2024-12-19 12:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:36:28] Production.INFO: count ==4657 [2024-12-19 12:36:30] Production.ERROR: pbx CDR StartTime 2024-12-19 09:36:04 - End Time 2024-12-19 12:36:04 [2024-12-19 12:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055531', 'tblTempUsageDetail_20' ) start [2024-12-19 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055531', 'tblTempUsageDetail_20' ) end [2024-12-19 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055531', 'tblTempVendorCDR_20' ) start [2024-12-19 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055531', 'tblTempVendorCDR_20' ) end [2024-12-19 12:36:30] Production.INFO: ProcessCDR(1,14055531,1,1,2) [2024-12-19 12:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055531', 'tblTempUsageDetail_20' ) start [2024-12-19 12:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055531', 'tblTempUsageDetail_20' ) end [2024-12-19 12:36:34] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:36:34] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:36:34] Production.INFO: ==15200== Releasing lock... [2024-12-19 12:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:36:34] Production.INFO: 62.75 MB #Memory Used# [2024-12-19 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:37:05 [end_date_ymd] => 2024-12-19 12:37:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:37:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:37:20] Production.INFO: count ==4657 [2024-12-19 12:37:22] Production.ERROR: pbx CDR StartTime 2024-12-19 09:37:05 - End Time 2024-12-19 12:37:05 [2024-12-19 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055536', 'tblTempUsageDetail_20' ) start [2024-12-19 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055536', 'tblTempUsageDetail_20' ) end [2024-12-19 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055536', 'tblTempVendorCDR_20' ) start [2024-12-19 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055536', 'tblTempVendorCDR_20' ) end [2024-12-19 12:37:22] Production.INFO: ProcessCDR(1,14055536,1,1,2) [2024-12-19 12:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055536', 'tblTempUsageDetail_20' ) start [2024-12-19 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055536', 'tblTempUsageDetail_20' ) end [2024-12-19 12:37:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:37:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:37:27] Production.INFO: ==15285== Releasing lock... [2024-12-19 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:37:27] Production.INFO: 62.75 MB #Memory Used# [2024-12-19 12:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:38:04 [end_date_ymd] => 2024-12-19 12:38:04 [RateCDR] => 1 ) [2024-12-19 12: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` >= '2024-12-19 09:38:04' and `end` < '2024-12-19 12: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 ,'') [2024-12-19 12:38:21] Production.INFO: count ==4661 [2024-12-19 12:38:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:38:04 - End Time 2024-12-19 12:38:04 [2024-12-19 12:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055541', 'tblTempUsageDetail_20' ) start [2024-12-19 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055541', 'tblTempUsageDetail_20' ) end [2024-12-19 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055541', 'tblTempVendorCDR_20' ) start [2024-12-19 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055541', 'tblTempVendorCDR_20' ) end [2024-12-19 12:38:23] Production.INFO: ProcessCDR(1,14055541,1,1,2) [2024-12-19 12:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055541', 'tblTempUsageDetail_20' ) start [2024-12-19 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055541', 'tblTempUsageDetail_20' ) end [2024-12-19 12:38:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:38:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:38:28] Production.INFO: ==15402== Releasing lock... [2024-12-19 12:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:38:28] Production.INFO: 63 MB #Memory Used# [2024-12-19 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:39:05 [end_date_ymd] => 2024-12-19 12:39:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:39:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:39:26] Production.INFO: count ==4683 [2024-12-19 12:39:28] Production.ERROR: pbx CDR StartTime 2024-12-19 09:39:05 - End Time 2024-12-19 12:39:05 [2024-12-19 12:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055546', 'tblTempUsageDetail_20' ) start [2024-12-19 12:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055546', 'tblTempUsageDetail_20' ) end [2024-12-19 12:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055546', 'tblTempVendorCDR_20' ) start [2024-12-19 12:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055546', 'tblTempVendorCDR_20' ) end [2024-12-19 12:39:28] Production.INFO: ProcessCDR(1,14055546,1,1,2) [2024-12-19 12:39:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:39:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:39:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055546', 'tblTempUsageDetail_20' ) start [2024-12-19 12:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055546', 'tblTempUsageDetail_20' ) end [2024-12-19 12:39:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:39:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:39:33] Production.INFO: ==15484== Releasing lock... [2024-12-19 12:39:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:39:33] Production.INFO: 63 MB #Memory Used# [2024-12-19 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:40:06 [end_date_ymd] => 2024-12-19 12:40:06 [RateCDR] => 1 ) [2024-12-19 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:40:06' and `end` < '2024-12-19 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:40:25] Production.INFO: count ==4690 [2024-12-19 12:40:27] Production.ERROR: pbx CDR StartTime 2024-12-19 09:40:06 - End Time 2024-12-19 12:40:06 [2024-12-19 12:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055552', 'tblTempUsageDetail_20' ) start [2024-12-19 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055552', 'tblTempUsageDetail_20' ) end [2024-12-19 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055552', 'tblTempVendorCDR_20' ) start [2024-12-19 12:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055552', 'tblTempVendorCDR_20' ) end [2024-12-19 12:40:27] Production.INFO: ProcessCDR(1,14055552,1,1,2) [2024-12-19 12:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055552', 'tblTempUsageDetail_20' ) start [2024-12-19 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055552', 'tblTempUsageDetail_20' ) end [2024-12-19 12:40:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:40:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:40:30] Production.INFO: ==15570== Releasing lock... [2024-12-19 12:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:40:30] Production.INFO: 63 MB #Memory Used# [2024-12-19 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:41:05 [end_date_ymd] => 2024-12-19 12:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:41:25] Production.INFO: count ==4721 [2024-12-19 12:41:27] Production.ERROR: pbx CDR StartTime 2024-12-19 09:41:05 - End Time 2024-12-19 12:41:05 [2024-12-19 12:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055557', 'tblTempUsageDetail_20' ) start [2024-12-19 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055557', 'tblTempUsageDetail_20' ) end [2024-12-19 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055557', 'tblTempVendorCDR_20' ) start [2024-12-19 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055557', 'tblTempVendorCDR_20' ) end [2024-12-19 12:41:27] Production.INFO: ProcessCDR(1,14055557,1,1,2) [2024-12-19 12:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055557', 'tblTempUsageDetail_20' ) start [2024-12-19 12:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055557', 'tblTempUsageDetail_20' ) end [2024-12-19 12:41:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:41:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:41:32] Production.INFO: ==15650== Releasing lock... [2024-12-19 12:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:41:32] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:42:05 [end_date_ymd] => 2024-12-19 12:42:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:42:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:42:24] Production.INFO: count ==4725 [2024-12-19 12:42:26] Production.ERROR: pbx CDR StartTime 2024-12-19 09:42:05 - End Time 2024-12-19 12:42:05 [2024-12-19 12:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055562', 'tblTempUsageDetail_20' ) start [2024-12-19 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055562', 'tblTempUsageDetail_20' ) end [2024-12-19 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055562', 'tblTempVendorCDR_20' ) start [2024-12-19 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055562', 'tblTempVendorCDR_20' ) end [2024-12-19 12:42:26] Production.INFO: ProcessCDR(1,14055562,1,1,2) [2024-12-19 12:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055562', 'tblTempUsageDetail_20' ) start [2024-12-19 12:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055562', 'tblTempUsageDetail_20' ) end [2024-12-19 12:42:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:42:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:42:31] Production.INFO: ==15733== Releasing lock... [2024-12-19 12:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:42:31] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:43:04 [end_date_ymd] => 2024-12-19 12:43:04 [RateCDR] => 1 ) [2024-12-19 12:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:43:04' and `end` < '2024-12-19 12:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:43:31] Production.INFO: count ==4713 [2024-12-19 12:43:33] Production.ERROR: pbx CDR StartTime 2024-12-19 09:43:04 - End Time 2024-12-19 12:43:04 [2024-12-19 12:43:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055567', 'tblTempUsageDetail_20' ) start [2024-12-19 12:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055567', 'tblTempUsageDetail_20' ) end [2024-12-19 12:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055567', 'tblTempVendorCDR_20' ) start [2024-12-19 12:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055567', 'tblTempVendorCDR_20' ) end [2024-12-19 12:43:33] Production.INFO: ProcessCDR(1,14055567,1,1,2) [2024-12-19 12:43:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:43:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:43:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:43:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055567', 'tblTempUsageDetail_20' ) start [2024-12-19 12:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055567', 'tblTempUsageDetail_20' ) end [2024-12-19 12:43:38] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:43:38] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:43:38] Production.INFO: ==15808== Releasing lock... [2024-12-19 12:43:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:43:38] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:44:05 [end_date_ymd] => 2024-12-19 12:44:05 [RateCDR] => 1 ) [2024-12-19 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:44:05' and `end` < '2024-12-19 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:44:22] Production.INFO: count ==4709 [2024-12-19 12:44:24] Production.ERROR: pbx CDR StartTime 2024-12-19 09:44:05 - End Time 2024-12-19 12:44:05 [2024-12-19 12:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055572', 'tblTempUsageDetail_20' ) start [2024-12-19 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055572', 'tblTempUsageDetail_20' ) end [2024-12-19 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055572', 'tblTempVendorCDR_20' ) start [2024-12-19 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055572', 'tblTempVendorCDR_20' ) end [2024-12-19 12:44:24] Production.INFO: ProcessCDR(1,14055572,1,1,2) [2024-12-19 12:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055572', 'tblTempUsageDetail_20' ) start [2024-12-19 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055572', 'tblTempUsageDetail_20' ) end [2024-12-19 12:44:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:44:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:44:29] Production.INFO: ==15888== Releasing lock... [2024-12-19 12:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:44:29] Production.INFO: 63.5 MB #Memory Used# [2024-12-19 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:45:04 [end_date_ymd] => 2024-12-19 12:45:04 [RateCDR] => 1 ) [2024-12-19 12: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` >= '2024-12-19 09:45:04' and `end` < '2024-12-19 12: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 ,'') [2024-12-19 12:45:29] Production.INFO: count ==4703 [2024-12-19 12:45:31] Production.ERROR: pbx CDR StartTime 2024-12-19 09:45:04 - End Time 2024-12-19 12:45:04 [2024-12-19 12:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055577', 'tblTempUsageDetail_20' ) start [2024-12-19 12:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055577', 'tblTempUsageDetail_20' ) end [2024-12-19 12:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055577', 'tblTempVendorCDR_20' ) start [2024-12-19 12:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055577', 'tblTempVendorCDR_20' ) end [2024-12-19 12:45:31] Production.INFO: ProcessCDR(1,14055577,1,1,2) [2024-12-19 12:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055577', 'tblTempUsageDetail_20' ) start [2024-12-19 12:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055577', 'tblTempUsageDetail_20' ) end [2024-12-19 12:45:36] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:45:36] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:45:36] Production.INFO: ==15962== Releasing lock... [2024-12-19 12:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:45:36] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:46:05 [end_date_ymd] => 2024-12-19 12:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:46:20] Production.INFO: count ==4693 [2024-12-19 12:46:22] Production.ERROR: pbx CDR StartTime 2024-12-19 09:46:05 - End Time 2024-12-19 12:46:05 [2024-12-19 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055582', 'tblTempUsageDetail_20' ) start [2024-12-19 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055582', 'tblTempUsageDetail_20' ) end [2024-12-19 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055582', 'tblTempVendorCDR_20' ) start [2024-12-19 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055582', 'tblTempVendorCDR_20' ) end [2024-12-19 12:46:22] Production.INFO: ProcessCDR(1,14055582,1,1,2) [2024-12-19 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055582', 'tblTempUsageDetail_20' ) start [2024-12-19 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055582', 'tblTempUsageDetail_20' ) end [2024-12-19 12:46:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:46:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:46:27] Production.INFO: ==16043== Releasing lock... [2024-12-19 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:46:27] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:47:04 [end_date_ymd] => 2024-12-19 12:47:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:47:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:47:18] Production.INFO: count ==4684 [2024-12-19 12:47:20] Production.ERROR: pbx CDR StartTime 2024-12-19 09:47:04 - End Time 2024-12-19 12:47:04 [2024-12-19 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055587', 'tblTempUsageDetail_20' ) start [2024-12-19 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055587', 'tblTempUsageDetail_20' ) end [2024-12-19 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055587', 'tblTempVendorCDR_20' ) start [2024-12-19 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055587', 'tblTempVendorCDR_20' ) end [2024-12-19 12:47:20] Production.INFO: ProcessCDR(1,14055587,1,1,2) [2024-12-19 12:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055587', 'tblTempUsageDetail_20' ) start [2024-12-19 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055587', 'tblTempUsageDetail_20' ) end [2024-12-19 12:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:47:25] Production.INFO: ==16117== Releasing lock... [2024-12-19 12:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:47:25] Production.INFO: 63 MB #Memory Used# [2024-12-19 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:48:05 [end_date_ymd] => 2024-12-19 12:48:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:48:21] Production.INFO: count ==4698 [2024-12-19 12:48:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:48:05 - End Time 2024-12-19 12:48:05 [2024-12-19 12:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055592', 'tblTempUsageDetail_20' ) start [2024-12-19 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055592', 'tblTempUsageDetail_20' ) end [2024-12-19 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055592', 'tblTempVendorCDR_20' ) start [2024-12-19 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055592', 'tblTempVendorCDR_20' ) end [2024-12-19 12:48:23] Production.INFO: ProcessCDR(1,14055592,1,1,2) [2024-12-19 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055592', 'tblTempUsageDetail_20' ) start [2024-12-19 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055592', 'tblTempUsageDetail_20' ) end [2024-12-19 12:48:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:48:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:48:27] Production.INFO: ==16194== Releasing lock... [2024-12-19 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:48:27] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:49:05 [end_date_ymd] => 2024-12-19 12:49:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:49:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:49:20] Production.INFO: count ==4699 [2024-12-19 12:49:22] Production.ERROR: pbx CDR StartTime 2024-12-19 09:49:05 - End Time 2024-12-19 12:49:05 [2024-12-19 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055597', 'tblTempUsageDetail_20' ) start [2024-12-19 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055597', 'tblTempUsageDetail_20' ) end [2024-12-19 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055597', 'tblTempVendorCDR_20' ) start [2024-12-19 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055597', 'tblTempVendorCDR_20' ) end [2024-12-19 12:49:22] Production.INFO: ProcessCDR(1,14055597,1,1,2) [2024-12-19 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055597', 'tblTempUsageDetail_20' ) start [2024-12-19 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055597', 'tblTempUsageDetail_20' ) end [2024-12-19 12:49:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:49:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:49:26] Production.INFO: ==16272== Releasing lock... [2024-12-19 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:49:26] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:50:05 [end_date_ymd] => 2024-12-19 12:50:05 [RateCDR] => 1 ) [2024-12-19 12:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:50:05' and `end` < '2024-12-19 12:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:50:25] Production.INFO: count ==4704 [2024-12-19 12:50:27] Production.ERROR: pbx CDR StartTime 2024-12-19 09:50:05 - End Time 2024-12-19 12:50:05 [2024-12-19 12:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055603', 'tblTempUsageDetail_20' ) start [2024-12-19 12:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055603', 'tblTempUsageDetail_20' ) end [2024-12-19 12:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055603', 'tblTempVendorCDR_20' ) start [2024-12-19 12:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055603', 'tblTempVendorCDR_20' ) end [2024-12-19 12:50:27] Production.INFO: ProcessCDR(1,14055603,1,1,2) [2024-12-19 12:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055603', 'tblTempUsageDetail_20' ) start [2024-12-19 12:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055603', 'tblTempUsageDetail_20' ) end [2024-12-19 12:50:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:50:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:50:31] Production.INFO: ==16351== Releasing lock... [2024-12-19 12:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:50:31] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:51:05 [end_date_ymd] => 2024-12-19 12:51:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:51:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:51:21] Production.INFO: count ==4704 [2024-12-19 12:51:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:51:05 - End Time 2024-12-19 12:51:05 [2024-12-19 12:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055608', 'tblTempUsageDetail_20' ) start [2024-12-19 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055608', 'tblTempUsageDetail_20' ) end [2024-12-19 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055608', 'tblTempVendorCDR_20' ) start [2024-12-19 12:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055608', 'tblTempVendorCDR_20' ) end [2024-12-19 12:51:23] Production.INFO: ProcessCDR(1,14055608,1,1,2) [2024-12-19 12:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055608', 'tblTempUsageDetail_20' ) start [2024-12-19 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055608', 'tblTempUsageDetail_20' ) end [2024-12-19 12:51:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:51:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:51:27] Production.INFO: ==16431== Releasing lock... [2024-12-19 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:51:27] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 12:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:52:04 [end_date_ymd] => 2024-12-19 12:52:04 [RateCDR] => 1 ) [2024-12-19 12: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` >= '2024-12-19 09:52:04' and `end` < '2024-12-19 12: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 ,'') [2024-12-19 12:52:22] Production.INFO: count ==4685 [2024-12-19 12:52:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:52:04 - End Time 2024-12-19 12:52:04 [2024-12-19 12:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055613', 'tblTempUsageDetail_20' ) start [2024-12-19 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055613', 'tblTempUsageDetail_20' ) end [2024-12-19 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055613', 'tblTempVendorCDR_20' ) start [2024-12-19 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055613', 'tblTempVendorCDR_20' ) end [2024-12-19 12:52:24] Production.INFO: ProcessCDR(1,14055613,1,1,2) [2024-12-19 12:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055613', 'tblTempUsageDetail_20' ) start [2024-12-19 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055613', 'tblTempUsageDetail_20' ) end [2024-12-19 12:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:52:28] Production.INFO: ==16505== Releasing lock... [2024-12-19 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:52:28] Production.INFO: 63 MB #Memory Used# [2024-12-19 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:53:05 [end_date_ymd] => 2024-12-19 12:53:05 [RateCDR] => 1 ) [2024-12-19 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:53:05' and `end` < '2024-12-19 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:53:18] Production.INFO: count ==4688 [2024-12-19 12:53:19] Production.ERROR: pbx CDR StartTime 2024-12-19 09:53:05 - End Time 2024-12-19 12:53:05 [2024-12-19 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055618', 'tblTempUsageDetail_20' ) start [2024-12-19 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055618', 'tblTempUsageDetail_20' ) end [2024-12-19 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055618', 'tblTempVendorCDR_20' ) start [2024-12-19 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055618', 'tblTempVendorCDR_20' ) end [2024-12-19 12:53:20] Production.INFO: ProcessCDR(1,14055618,1,1,2) [2024-12-19 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055618', 'tblTempUsageDetail_20' ) start [2024-12-19 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055618', 'tblTempUsageDetail_20' ) end [2024-12-19 12:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:53:24] Production.INFO: ==16580== Releasing lock... [2024-12-19 12:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:53:24] Production.INFO: 63 MB #Memory Used# [2024-12-19 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:54:05 [end_date_ymd] => 2024-12-19 12:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:54:21] Production.INFO: count ==4644 [2024-12-19 12:54:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:54:05 - End Time 2024-12-19 12:54:05 [2024-12-19 12:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055623', 'tblTempUsageDetail_20' ) start [2024-12-19 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055623', 'tblTempUsageDetail_20' ) end [2024-12-19 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055623', 'tblTempVendorCDR_20' ) start [2024-12-19 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055623', 'tblTempVendorCDR_20' ) end [2024-12-19 12:54:23] Production.INFO: ProcessCDR(1,14055623,1,1,2) [2024-12-19 12:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055623', 'tblTempUsageDetail_20' ) start [2024-12-19 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055623', 'tblTempUsageDetail_20' ) end [2024-12-19 12:54:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:54:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:54:28] Production.INFO: ==16701== Releasing lock... [2024-12-19 12:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:54:28] Production.INFO: 62.75 MB #Memory Used# [2024-12-19 12:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:55:04 [end_date_ymd] => 2024-12-19 12:55:04 [RateCDR] => 1 ) [2024-12-19 12:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:55:04' and `end` < '2024-12-19 12:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:55:19] Production.INFO: count ==4650 [2024-12-19 12:55:21] Production.ERROR: pbx CDR StartTime 2024-12-19 09:55:04 - End Time 2024-12-19 12:55:04 [2024-12-19 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055628', 'tblTempUsageDetail_20' ) start [2024-12-19 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055628', 'tblTempUsageDetail_20' ) end [2024-12-19 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055628', 'tblTempVendorCDR_20' ) start [2024-12-19 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055628', 'tblTempVendorCDR_20' ) end [2024-12-19 12:55:21] Production.INFO: ProcessCDR(1,14055628,1,1,2) [2024-12-19 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055628', 'tblTempUsageDetail_20' ) start [2024-12-19 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055628', 'tblTempUsageDetail_20' ) end [2024-12-19 12:55:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:55:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:55:25] Production.INFO: ==16772== Releasing lock... [2024-12-19 12:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:55:25] Production.INFO: 62.75 MB #Memory Used# [2024-12-19 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:56:05 [end_date_ymd] => 2024-12-19 12:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 09:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 12:56:22] Production.INFO: count ==4620 [2024-12-19 12:56:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:56:05 - End Time 2024-12-19 12:56:05 [2024-12-19 12:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055633', 'tblTempUsageDetail_20' ) start [2024-12-19 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055633', 'tblTempUsageDetail_20' ) end [2024-12-19 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055633', 'tblTempVendorCDR_20' ) start [2024-12-19 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055633', 'tblTempVendorCDR_20' ) end [2024-12-19 12:56:24] Production.INFO: ProcessCDR(1,14055633,1,1,2) [2024-12-19 12:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055633', 'tblTempUsageDetail_20' ) start [2024-12-19 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055633', 'tblTempUsageDetail_20' ) end [2024-12-19 12:56:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:56:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:56:28] Production.INFO: ==16845== Releasing lock... [2024-12-19 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:56:28] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:57:06 [end_date_ymd] => 2024-12-19 12:57:06 [RateCDR] => 1 ) [2024-12-19 12:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:57:06' and `end` < '2024-12-19 12: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 ,'') [2024-12-19 12:57:24] Production.INFO: count ==4620 [2024-12-19 12:57:26] Production.ERROR: pbx CDR StartTime 2024-12-19 09:57:06 - End Time 2024-12-19 12:57:06 [2024-12-19 12:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055638', 'tblTempUsageDetail_20' ) start [2024-12-19 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055638', 'tblTempUsageDetail_20' ) end [2024-12-19 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055638', 'tblTempVendorCDR_20' ) start [2024-12-19 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055638', 'tblTempVendorCDR_20' ) end [2024-12-19 12:57:26] Production.INFO: ProcessCDR(1,14055638,1,1,2) [2024-12-19 12:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055638', 'tblTempUsageDetail_20' ) start [2024-12-19 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055638', 'tblTempUsageDetail_20' ) end [2024-12-19 12:57:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:57:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:57:31] Production.INFO: ==16921== Releasing lock... [2024-12-19 12:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:57:31] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 12:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:58:04 [end_date_ymd] => 2024-12-19 12:58:04 [RateCDR] => 1 ) [2024-12-19 12:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:58:04' and `end` < '2024-12-19 12:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:58:21] Production.INFO: count ==4617 [2024-12-19 12:58:23] Production.ERROR: pbx CDR StartTime 2024-12-19 09:58:04 - End Time 2024-12-19 12:58:04 [2024-12-19 12:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055643', 'tblTempUsageDetail_20' ) start [2024-12-19 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055643', 'tblTempUsageDetail_20' ) end [2024-12-19 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055643', 'tblTempVendorCDR_20' ) start [2024-12-19 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055643', 'tblTempVendorCDR_20' ) end [2024-12-19 12:58:23] Production.INFO: ProcessCDR(1,14055643,1,1,2) [2024-12-19 12:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055643', 'tblTempUsageDetail_20' ) start [2024-12-19 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055643', 'tblTempUsageDetail_20' ) end [2024-12-19 12:58:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:58:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:58:27] Production.INFO: ==16992== Releasing lock... [2024-12-19 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:58:27] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 09:59:05 [end_date_ymd] => 2024-12-19 12:59:05 [RateCDR] => 1 ) [2024-12-19 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 09:59:05' and `end` < '2024-12-19 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 12:59:21] Production.INFO: count ==4591 [2024-12-19 12:59:22] Production.ERROR: pbx CDR StartTime 2024-12-19 09:59:05 - End Time 2024-12-19 12:59:05 [2024-12-19 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055648', 'tblTempUsageDetail_20' ) start [2024-12-19 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055648', 'tblTempUsageDetail_20' ) end [2024-12-19 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055648', 'tblTempVendorCDR_20' ) start [2024-12-19 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055648', 'tblTempVendorCDR_20' ) end [2024-12-19 12:59:23] Production.INFO: ProcessCDR(1,14055648,1,1,2) [2024-12-19 12:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 12:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055648', 'tblTempUsageDetail_20' ) start [2024-12-19 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055648', 'tblTempUsageDetail_20' ) end [2024-12-19 12:59:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 12:59:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 12:59:27] Production.INFO: ==17066== Releasing lock... [2024-12-19 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 12:59:27] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:00:05 [end_date_ymd] => 2024-12-19 13:00:05 [RateCDR] => 1 ) [2024-12-19 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:00:05' and `end` < '2024-12-19 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:00:19] Production.INFO: count ==4573 [2024-12-19 13:00:20] Production.ERROR: pbx CDR StartTime 2024-12-19 10:00:05 - End Time 2024-12-19 13:00:05 [2024-12-19 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055653', 'tblTempUsageDetail_20' ) start [2024-12-19 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055653', 'tblTempUsageDetail_20' ) end [2024-12-19 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055653', 'tblTempVendorCDR_20' ) start [2024-12-19 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055653', 'tblTempVendorCDR_20' ) end [2024-12-19 13:00:21] Production.INFO: ProcessCDR(1,14055653,1,1,2) [2024-12-19 13:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055653', 'tblTempUsageDetail_20' ) start [2024-12-19 13:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055653', 'tblTempUsageDetail_20' ) end [2024-12-19 13:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:00:25] Production.INFO: ==17145== Releasing lock... [2024-12-19 13:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:00:25] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:01:04 [end_date_ymd] => 2024-12-19 13:01:04 [RateCDR] => 1 ) [2024-12-19 13:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:01:04' and `end` < '2024-12-19 13:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:01:18] Production.INFO: count ==4519 [2024-12-19 13:01:19] Production.ERROR: pbx CDR StartTime 2024-12-19 10:01:04 - End Time 2024-12-19 13:01:04 [2024-12-19 13:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055659', 'tblTempUsageDetail_20' ) start [2024-12-19 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055659', 'tblTempUsageDetail_20' ) end [2024-12-19 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055659', 'tblTempVendorCDR_20' ) start [2024-12-19 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055659', 'tblTempVendorCDR_20' ) end [2024-12-19 13:01:20] Production.INFO: ProcessCDR(1,14055659,1,1,2) [2024-12-19 13:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055659', 'tblTempUsageDetail_20' ) start [2024-12-19 13:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055659', 'tblTempUsageDetail_20' ) end [2024-12-19 13:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:01:24] Production.INFO: ==17229== Releasing lock... [2024-12-19 13:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:01:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:02:05 [end_date_ymd] => 2024-12-19 13:02:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:02:20] Production.INFO: count ==4525 [2024-12-19 13:02:22] Production.ERROR: pbx CDR StartTime 2024-12-19 10:02:05 - End Time 2024-12-19 13:02:05 [2024-12-19 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055664', 'tblTempUsageDetail_20' ) start [2024-12-19 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055664', 'tblTempUsageDetail_20' ) end [2024-12-19 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055664', 'tblTempVendorCDR_20' ) start [2024-12-19 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055664', 'tblTempVendorCDR_20' ) end [2024-12-19 13:02:22] Production.INFO: ProcessCDR(1,14055664,1,1,2) [2024-12-19 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055664', 'tblTempUsageDetail_20' ) start [2024-12-19 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055664', 'tblTempUsageDetail_20' ) end [2024-12-19 13:02:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:02:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:02:27] Production.INFO: ==17305== Releasing lock... [2024-12-19 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:02:27] Production.INFO: 62 MB #Memory Used# [2024-12-19 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:03:04 [end_date_ymd] => 2024-12-19 13:03:04 [RateCDR] => 1 ) [2024-12-19 13:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:03:04' and `end` < '2024-12-19 13:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:03:19] Production.INFO: count ==4520 [2024-12-19 13:03:21] Production.ERROR: pbx CDR StartTime 2024-12-19 10:03:04 - End Time 2024-12-19 13:03:04 [2024-12-19 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055669', 'tblTempUsageDetail_20' ) start [2024-12-19 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055669', 'tblTempUsageDetail_20' ) end [2024-12-19 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055669', 'tblTempVendorCDR_20' ) start [2024-12-19 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055669', 'tblTempVendorCDR_20' ) end [2024-12-19 13:03:21] Production.INFO: ProcessCDR(1,14055669,1,1,2) [2024-12-19 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055669', 'tblTempUsageDetail_20' ) start [2024-12-19 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055669', 'tblTempUsageDetail_20' ) end [2024-12-19 13:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:03:26] Production.INFO: ==17379== Releasing lock... [2024-12-19 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:03:26] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:04:05 [end_date_ymd] => 2024-12-19 13:04:05 [RateCDR] => 1 ) [2024-12-19 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:04:05' and `end` < '2024-12-19 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:04:19] Production.INFO: count ==4526 [2024-12-19 13:04:21] Production.ERROR: pbx CDR StartTime 2024-12-19 10:04:05 - End Time 2024-12-19 13:04:05 [2024-12-19 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055674', 'tblTempUsageDetail_20' ) start [2024-12-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055674', 'tblTempUsageDetail_20' ) end [2024-12-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055674', 'tblTempVendorCDR_20' ) start [2024-12-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055674', 'tblTempVendorCDR_20' ) end [2024-12-19 13:04:21] Production.INFO: ProcessCDR(1,14055674,1,1,2) [2024-12-19 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055674', 'tblTempUsageDetail_20' ) start [2024-12-19 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055674', 'tblTempUsageDetail_20' ) end [2024-12-19 13:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:04:25] Production.INFO: ==17451== Releasing lock... [2024-12-19 13:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:04:25] Production.INFO: 62 MB #Memory Used# [2024-12-19 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:05:05 [end_date_ymd] => 2024-12-19 13:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:05:24] Production.INFO: count ==4523 [2024-12-19 13:05:25] Production.ERROR: pbx CDR StartTime 2024-12-19 10:05:05 - End Time 2024-12-19 13:05:05 [2024-12-19 13:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055679', 'tblTempUsageDetail_20' ) start [2024-12-19 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055679', 'tblTempUsageDetail_20' ) end [2024-12-19 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055679', 'tblTempVendorCDR_20' ) start [2024-12-19 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055679', 'tblTempVendorCDR_20' ) end [2024-12-19 13:05:26] Production.INFO: ProcessCDR(1,14055679,1,1,2) [2024-12-19 13:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055679', 'tblTempUsageDetail_20' ) start [2024-12-19 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055679', 'tblTempUsageDetail_20' ) end [2024-12-19 13:05:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:05:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:05:30] Production.INFO: ==17526== Releasing lock... [2024-12-19 13:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:05:30] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:06:05 [end_date_ymd] => 2024-12-19 13:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:06:21] Production.INFO: count ==4523 [2024-12-19 13:06:22] Production.ERROR: pbx CDR StartTime 2024-12-19 10:06:05 - End Time 2024-12-19 13:06:05 [2024-12-19 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055684', 'tblTempUsageDetail_20' ) start [2024-12-19 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055684', 'tblTempUsageDetail_20' ) end [2024-12-19 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055684', 'tblTempVendorCDR_20' ) start [2024-12-19 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055684', 'tblTempVendorCDR_20' ) end [2024-12-19 13:06:23] Production.INFO: ProcessCDR(1,14055684,1,1,2) [2024-12-19 13:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055684', 'tblTempUsageDetail_20' ) start [2024-12-19 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055684', 'tblTempUsageDetail_20' ) end [2024-12-19 13:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:06:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:06:27] Production.INFO: ==17600== Releasing lock... [2024-12-19 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:06:27] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:07:04 [end_date_ymd] => 2024-12-19 13:07:04 [RateCDR] => 1 ) [2024-12-19 13:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:07:04' and `end` < '2024-12-19 13:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:07:24] Production.INFO: count ==4531 [2024-12-19 13:07:26] Production.ERROR: pbx CDR StartTime 2024-12-19 10:07:04 - End Time 2024-12-19 13:07:04 [2024-12-19 13:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055689', 'tblTempUsageDetail_20' ) start [2024-12-19 13:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055689', 'tblTempUsageDetail_20' ) end [2024-12-19 13:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055689', 'tblTempVendorCDR_20' ) start [2024-12-19 13:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055689', 'tblTempVendorCDR_20' ) end [2024-12-19 13:07:26] Production.INFO: ProcessCDR(1,14055689,1,1,2) [2024-12-19 13:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055689', 'tblTempUsageDetail_20' ) start [2024-12-19 13:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055689', 'tblTempUsageDetail_20' ) end [2024-12-19 13:07:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:07:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:07:31] Production.INFO: ==17673== Releasing lock... [2024-12-19 13:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:07:31] Production.INFO: 62 MB #Memory Used# [2024-12-19 13:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:08:04 [end_date_ymd] => 2024-12-19 13:08:04 [RateCDR] => 1 ) [2024-12-19 13:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:08:04' and `end` < '2024-12-19 13: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 ,'') [2024-12-19 13:08:22] Production.INFO: count ==4551 [2024-12-19 13:08:23] Production.ERROR: pbx CDR StartTime 2024-12-19 10:08:04 - End Time 2024-12-19 13:08:04 [2024-12-19 13:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055694', 'tblTempUsageDetail_20' ) start [2024-12-19 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055694', 'tblTempUsageDetail_20' ) end [2024-12-19 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055694', 'tblTempVendorCDR_20' ) start [2024-12-19 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055694', 'tblTempVendorCDR_20' ) end [2024-12-19 13:08:24] Production.INFO: ProcessCDR(1,14055694,1,1,2) [2024-12-19 13:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055694', 'tblTempUsageDetail_20' ) start [2024-12-19 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055694', 'tblTempUsageDetail_20' ) end [2024-12-19 13:08:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:08:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:08:28] Production.INFO: ==17747== Releasing lock... [2024-12-19 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:08:28] Production.INFO: 62 MB #Memory Used# [2024-12-19 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:09:05 [end_date_ymd] => 2024-12-19 13:09:05 [RateCDR] => 1 ) [2024-12-19 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:09:05' and `end` < '2024-12-19 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:09:22] Production.INFO: count ==4574 [2024-12-19 13:09:24] Production.ERROR: pbx CDR StartTime 2024-12-19 10:09:05 - End Time 2024-12-19 13:09:05 [2024-12-19 13:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055699', 'tblTempUsageDetail_20' ) start [2024-12-19 13:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055699', 'tblTempUsageDetail_20' ) end [2024-12-19 13:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055699', 'tblTempVendorCDR_20' ) start [2024-12-19 13:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055699', 'tblTempVendorCDR_20' ) end [2024-12-19 13:09:24] Production.INFO: ProcessCDR(1,14055699,1,1,2) [2024-12-19 13:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055699', 'tblTempUsageDetail_20' ) start [2024-12-19 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055699', 'tblTempUsageDetail_20' ) end [2024-12-19 13:09:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:09:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:09:28] Production.INFO: ==17859== Releasing lock... [2024-12-19 13:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:09:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:10:05 [end_date_ymd] => 2024-12-19 13:10:05 [RateCDR] => 1 ) [2024-12-19 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:10:05' and `end` < '2024-12-19 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:10:26] Production.INFO: count ==4578 [2024-12-19 13:10:28] Production.ERROR: pbx CDR StartTime 2024-12-19 10:10:05 - End Time 2024-12-19 13:10:05 [2024-12-19 13:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055705', 'tblTempUsageDetail_20' ) start [2024-12-19 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055705', 'tblTempUsageDetail_20' ) end [2024-12-19 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055705', 'tblTempVendorCDR_20' ) start [2024-12-19 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055705', 'tblTempVendorCDR_20' ) end [2024-12-19 13:10:28] Production.INFO: ProcessCDR(1,14055705,1,1,2) [2024-12-19 13:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055705', 'tblTempUsageDetail_20' ) start [2024-12-19 13:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055705', 'tblTempUsageDetail_20' ) end [2024-12-19 13:10:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:10:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:10:33] Production.INFO: ==17935== Releasing lock... [2024-12-19 13:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:10:33] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:11:05 [end_date_ymd] => 2024-12-19 13:11:05 [RateCDR] => 1 ) [2024-12-19 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:11:05' and `end` < '2024-12-19 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:11:26] Production.INFO: count ==4607 [2024-12-19 13:11:28] Production.ERROR: pbx CDR StartTime 2024-12-19 10:11:05 - End Time 2024-12-19 13:11:05 [2024-12-19 13:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055710', 'tblTempUsageDetail_20' ) start [2024-12-19 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055710', 'tblTempUsageDetail_20' ) end [2024-12-19 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055710', 'tblTempVendorCDR_20' ) start [2024-12-19 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055710', 'tblTempVendorCDR_20' ) end [2024-12-19 13:11:28] Production.INFO: ProcessCDR(1,14055710,1,1,2) [2024-12-19 13:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055710', 'tblTempUsageDetail_20' ) start [2024-12-19 13:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055710', 'tblTempUsageDetail_20' ) end [2024-12-19 13:11:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:11:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:11:32] Production.INFO: ==18010== Releasing lock... [2024-12-19 13:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:11:32] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:12:05 [end_date_ymd] => 2024-12-19 13:12:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:12:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:12:23] Production.INFO: count ==4616 [2024-12-19 13:12:24] Production.ERROR: pbx CDR StartTime 2024-12-19 10:12:05 - End Time 2024-12-19 13:12:05 [2024-12-19 13:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055715', 'tblTempUsageDetail_20' ) start [2024-12-19 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055715', 'tblTempUsageDetail_20' ) end [2024-12-19 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055715', 'tblTempVendorCDR_20' ) start [2024-12-19 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055715', 'tblTempVendorCDR_20' ) end [2024-12-19 13:12:25] Production.INFO: ProcessCDR(1,14055715,1,1,2) [2024-12-19 13:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055715', 'tblTempUsageDetail_20' ) start [2024-12-19 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055715', 'tblTempUsageDetail_20' ) end [2024-12-19 13:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:12:29] Production.INFO: ==18086== Releasing lock... [2024-12-19 13:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:12:29] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 13:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:13:04 [end_date_ymd] => 2024-12-19 13:13:04 [RateCDR] => 1 ) [2024-12-19 13: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` >= '2024-12-19 10:13:04' and `end` < '2024-12-19 13: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 ,'') [2024-12-19 13:13:19] Production.INFO: count ==4621 [2024-12-19 13:13:21] Production.ERROR: pbx CDR StartTime 2024-12-19 10:13:04 - End Time 2024-12-19 13:13:04 [2024-12-19 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055720', 'tblTempUsageDetail_20' ) start [2024-12-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055720', 'tblTempUsageDetail_20' ) end [2024-12-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055720', 'tblTempVendorCDR_20' ) start [2024-12-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055720', 'tblTempVendorCDR_20' ) end [2024-12-19 13:13:21] Production.INFO: ProcessCDR(1,14055720,1,1,2) [2024-12-19 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055720', 'tblTempUsageDetail_20' ) start [2024-12-19 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055720', 'tblTempUsageDetail_20' ) end [2024-12-19 13:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:13:25] Production.INFO: ==18159== Releasing lock... [2024-12-19 13:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:13:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:14:04 [end_date_ymd] => 2024-12-19 13:14:04 [RateCDR] => 1 ) [2024-12-19 13: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` >= '2024-12-19 10:14:04' and `end` < '2024-12-19 13: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 ,'') [2024-12-19 13:14:23] Production.INFO: count ==4603 [2024-12-19 13:14:25] Production.ERROR: pbx CDR StartTime 2024-12-19 10:14:04 - End Time 2024-12-19 13:14:04 [2024-12-19 13:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055725', 'tblTempUsageDetail_20' ) start [2024-12-19 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055725', 'tblTempUsageDetail_20' ) end [2024-12-19 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055725', 'tblTempVendorCDR_20' ) start [2024-12-19 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055725', 'tblTempVendorCDR_20' ) end [2024-12-19 13:14:25] Production.INFO: ProcessCDR(1,14055725,1,1,2) [2024-12-19 13:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055725', 'tblTempUsageDetail_20' ) start [2024-12-19 13:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055725', 'tblTempUsageDetail_20' ) end [2024-12-19 13:14:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:14:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:14:30] Production.INFO: ==18231== Releasing lock... [2024-12-19 13:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:14:30] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:15:05 [end_date_ymd] => 2024-12-19 13:15:05 [RateCDR] => 1 ) [2024-12-19 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:15:05' and `end` < '2024-12-19 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:15:25] Production.INFO: count ==4591 [2024-12-19 13:15:27] Production.ERROR: pbx CDR StartTime 2024-12-19 10:15:05 - End Time 2024-12-19 13:15:05 [2024-12-19 13:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055730', 'tblTempUsageDetail_20' ) start [2024-12-19 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055730', 'tblTempUsageDetail_20' ) end [2024-12-19 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055730', 'tblTempVendorCDR_20' ) start [2024-12-19 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055730', 'tblTempVendorCDR_20' ) end [2024-12-19 13:15:27] Production.INFO: ProcessCDR(1,14055730,1,1,2) [2024-12-19 13:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055730', 'tblTempUsageDetail_20' ) start [2024-12-19 13:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055730', 'tblTempUsageDetail_20' ) end [2024-12-19 13:15:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:15:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:15:32] Production.INFO: ==18308== Releasing lock... [2024-12-19 13:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:15:32] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 13:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:16:04 [end_date_ymd] => 2024-12-19 13:16:04 [RateCDR] => 1 ) [2024-12-19 13: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` >= '2024-12-19 10:16:04' and `end` < '2024-12-19 13: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 ,'') [2024-12-19 13:16:21] Production.INFO: count ==4579 [2024-12-19 13:16:23] Production.ERROR: pbx CDR StartTime 2024-12-19 10:16:04 - End Time 2024-12-19 13:16:04 [2024-12-19 13:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055735', 'tblTempUsageDetail_20' ) start [2024-12-19 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055735', 'tblTempUsageDetail_20' ) end [2024-12-19 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055735', 'tblTempVendorCDR_20' ) start [2024-12-19 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055735', 'tblTempVendorCDR_20' ) end [2024-12-19 13:16:23] Production.INFO: ProcessCDR(1,14055735,1,1,2) [2024-12-19 13:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055735', 'tblTempUsageDetail_20' ) start [2024-12-19 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055735', 'tblTempUsageDetail_20' ) end [2024-12-19 13:16:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:16:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:16:28] Production.INFO: ==18378== Releasing lock... [2024-12-19 13:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:16:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 13:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:17:04 [end_date_ymd] => 2024-12-19 13:17:04 [RateCDR] => 1 ) [2024-12-19 13: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` >= '2024-12-19 10:17:04' and `end` < '2024-12-19 13: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 ,'') [2024-12-19 13:17:17] Production.INFO: count ==4561 [2024-12-19 13:17:19] Production.ERROR: pbx CDR StartTime 2024-12-19 10:17:04 - End Time 2024-12-19 13:17:04 [2024-12-19 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055740', 'tblTempUsageDetail_20' ) start [2024-12-19 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055740', 'tblTempUsageDetail_20' ) end [2024-12-19 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055740', 'tblTempVendorCDR_20' ) start [2024-12-19 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055740', 'tblTempVendorCDR_20' ) end [2024-12-19 13:17:19] Production.INFO: ProcessCDR(1,14055740,1,1,2) [2024-12-19 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055740', 'tblTempUsageDetail_20' ) start [2024-12-19 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055740', 'tblTempUsageDetail_20' ) end [2024-12-19 13:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:17:24] Production.INFO: ==18453== Releasing lock... [2024-12-19 13:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:17:24] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:18:05 [end_date_ymd] => 2024-12-19 13:18:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:18:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:18:24] Production.INFO: count ==4543 [2024-12-19 13:18:26] Production.ERROR: pbx CDR StartTime 2024-12-19 10:18:05 - End Time 2024-12-19 13:18:05 [2024-12-19 13:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055745', 'tblTempUsageDetail_20' ) start [2024-12-19 13:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055745', 'tblTempUsageDetail_20' ) end [2024-12-19 13:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055745', 'tblTempVendorCDR_20' ) start [2024-12-19 13:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055745', 'tblTempVendorCDR_20' ) end [2024-12-19 13:18:26] Production.INFO: ProcessCDR(1,14055745,1,1,2) [2024-12-19 13:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055745', 'tblTempUsageDetail_20' ) start [2024-12-19 13:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055745', 'tblTempUsageDetail_20' ) end [2024-12-19 13:18:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:18:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:18:30] Production.INFO: ==18524== Releasing lock... [2024-12-19 13:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:18:30] Production.INFO: 62 MB #Memory Used# [2024-12-19 13:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:19:04 [end_date_ymd] => 2024-12-19 13:19:04 [RateCDR] => 1 ) [2024-12-19 13: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` >= '2024-12-19 10:19:04' and `end` < '2024-12-19 13: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 ,'') [2024-12-19 13:19:25] Production.INFO: count ==4533 [2024-12-19 13:19:27] Production.ERROR: pbx CDR StartTime 2024-12-19 10:19:04 - End Time 2024-12-19 13:19:04 [2024-12-19 13:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055750', 'tblTempUsageDetail_20' ) start [2024-12-19 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055750', 'tblTempUsageDetail_20' ) end [2024-12-19 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055750', 'tblTempVendorCDR_20' ) start [2024-12-19 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055750', 'tblTempVendorCDR_20' ) end [2024-12-19 13:19:27] Production.INFO: ProcessCDR(1,14055750,1,1,2) [2024-12-19 13:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055750', 'tblTempUsageDetail_20' ) start [2024-12-19 13:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055750', 'tblTempUsageDetail_20' ) end [2024-12-19 13:19:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:19:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:19:32] Production.INFO: ==18594== Releasing lock... [2024-12-19 13:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:19:32] Production.INFO: 62 MB #Memory Used# [2024-12-19 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:20:06 [end_date_ymd] => 2024-12-19 13:20:06 [RateCDR] => 1 ) [2024-12-19 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:20:06' and `end` < '2024-12-19 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:20:28] Production.INFO: count ==4531 [2024-12-19 13:20:30] Production.ERROR: pbx CDR StartTime 2024-12-19 10:20:06 - End Time 2024-12-19 13:20:06 [2024-12-19 13:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055756', 'tblTempUsageDetail_20' ) start [2024-12-19 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055756', 'tblTempUsageDetail_20' ) end [2024-12-19 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055756', 'tblTempVendorCDR_20' ) start [2024-12-19 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055756', 'tblTempVendorCDR_20' ) end [2024-12-19 13:20:30] Production.INFO: ProcessCDR(1,14055756,1,1,2) [2024-12-19 13:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055756', 'tblTempUsageDetail_20' ) start [2024-12-19 13:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055756', 'tblTempUsageDetail_20' ) end [2024-12-19 13:20:34] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:20:34] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:20:34] Production.INFO: ==18669== Releasing lock... [2024-12-19 13:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:20:34] Production.INFO: 62 MB #Memory Used# [2024-12-19 13:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:21:04 [end_date_ymd] => 2024-12-19 13:21:04 [RateCDR] => 1 ) [2024-12-19 13:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:21:04' and `end` < '2024-12-19 13:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:21:26] Production.INFO: count ==4495 [2024-12-19 13:21:27] Production.ERROR: pbx CDR StartTime 2024-12-19 10:21:04 - End Time 2024-12-19 13:21:04 [2024-12-19 13:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055761', 'tblTempUsageDetail_20' ) start [2024-12-19 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055761', 'tblTempUsageDetail_20' ) end [2024-12-19 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055761', 'tblTempVendorCDR_20' ) start [2024-12-19 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055761', 'tblTempVendorCDR_20' ) end [2024-12-19 13:21:27] Production.INFO: ProcessCDR(1,14055761,1,1,2) [2024-12-19 13:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055761', 'tblTempUsageDetail_20' ) start [2024-12-19 13:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055761', 'tblTempUsageDetail_20' ) end [2024-12-19 13:21:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:21:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:21:32] Production.INFO: ==18742== Releasing lock... [2024-12-19 13:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:21:32] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:22:05 [end_date_ymd] => 2024-12-19 13:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:22:23] Production.INFO: count ==4482 [2024-12-19 13:22:25] Production.ERROR: pbx CDR StartTime 2024-12-19 10:22:05 - End Time 2024-12-19 13:22:05 [2024-12-19 13:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055766', 'tblTempUsageDetail_20' ) start [2024-12-19 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055766', 'tblTempUsageDetail_20' ) end [2024-12-19 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055766', 'tblTempVendorCDR_20' ) start [2024-12-19 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055766', 'tblTempVendorCDR_20' ) end [2024-12-19 13:22:25] Production.INFO: ProcessCDR(1,14055766,1,1,2) [2024-12-19 13:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055766', 'tblTempUsageDetail_20' ) start [2024-12-19 13:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055766', 'tblTempUsageDetail_20' ) end [2024-12-19 13:22:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:22:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:22:30] Production.INFO: ==18812== Releasing lock... [2024-12-19 13:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:22:30] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 13:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:23:04 [end_date_ymd] => 2024-12-19 13:23:04 [RateCDR] => 1 ) [2024-12-19 13:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:23:04' and `end` < '2024-12-19 13:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:23:20] Production.INFO: count ==4483 [2024-12-19 13:23:21] Production.ERROR: pbx CDR StartTime 2024-12-19 10:23:04 - End Time 2024-12-19 13:23:04 [2024-12-19 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055771', 'tblTempUsageDetail_20' ) start [2024-12-19 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055771', 'tblTempUsageDetail_20' ) end [2024-12-19 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055771', 'tblTempVendorCDR_20' ) start [2024-12-19 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055771', 'tblTempVendorCDR_20' ) end [2024-12-19 13:23:21] Production.INFO: ProcessCDR(1,14055771,1,1,2) [2024-12-19 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055771', 'tblTempUsageDetail_20' ) start [2024-12-19 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055771', 'tblTempUsageDetail_20' ) end [2024-12-19 13:23:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:23:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:23:26] Production.INFO: ==18886== Releasing lock... [2024-12-19 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:23:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:24:05 [end_date_ymd] => 2024-12-19 13:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:24:23] Production.INFO: count ==4486 [2024-12-19 13:24:25] Production.ERROR: pbx CDR StartTime 2024-12-19 10:24:05 - End Time 2024-12-19 13:24:05 [2024-12-19 13:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055776', 'tblTempUsageDetail_20' ) start [2024-12-19 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055776', 'tblTempUsageDetail_20' ) end [2024-12-19 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055776', 'tblTempVendorCDR_20' ) start [2024-12-19 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055776', 'tblTempVendorCDR_20' ) end [2024-12-19 13:24:25] Production.INFO: ProcessCDR(1,14055776,1,1,2) [2024-12-19 13:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055776', 'tblTempUsageDetail_20' ) start [2024-12-19 13:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055776', 'tblTempUsageDetail_20' ) end [2024-12-19 13:24:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:24:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:24:29] Production.INFO: ==18956== Releasing lock... [2024-12-19 13:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:24:29] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:25:05 [end_date_ymd] => 2024-12-19 13:25:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:25:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:25:25] Production.INFO: count ==4516 [2024-12-19 13:25:26] Production.ERROR: pbx CDR StartTime 2024-12-19 10:25:05 - End Time 2024-12-19 13:25:05 [2024-12-19 13:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055781', 'tblTempUsageDetail_20' ) start [2024-12-19 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055781', 'tblTempUsageDetail_20' ) end [2024-12-19 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055781', 'tblTempVendorCDR_20' ) start [2024-12-19 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055781', 'tblTempVendorCDR_20' ) end [2024-12-19 13:25:26] Production.INFO: ProcessCDR(1,14055781,1,1,2) [2024-12-19 13:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055781', 'tblTempUsageDetail_20' ) start [2024-12-19 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055781', 'tblTempUsageDetail_20' ) end [2024-12-19 13:25:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:25:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:25:31] Production.INFO: ==19069== Releasing lock... [2024-12-19 13:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:25:31] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:26:05 [end_date_ymd] => 2024-12-19 13:26:05 [RateCDR] => 1 ) [2024-12-19 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:26:05' and `end` < '2024-12-19 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:26:19] Production.INFO: count ==4484 [2024-12-19 13:26:21] Production.ERROR: pbx CDR StartTime 2024-12-19 10:26:05 - End Time 2024-12-19 13:26:05 [2024-12-19 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055786', 'tblTempUsageDetail_20' ) start [2024-12-19 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055786', 'tblTempUsageDetail_20' ) end [2024-12-19 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055786', 'tblTempVendorCDR_20' ) start [2024-12-19 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055786', 'tblTempVendorCDR_20' ) end [2024-12-19 13:26:21] Production.INFO: ProcessCDR(1,14055786,1,1,2) [2024-12-19 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055786', 'tblTempUsageDetail_20' ) start [2024-12-19 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055786', 'tblTempUsageDetail_20' ) end [2024-12-19 13:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:26:25] Production.INFO: ==19142== Releasing lock... [2024-12-19 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:26:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:27:05 [end_date_ymd] => 2024-12-19 13:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:27:18] Production.INFO: count ==4510 [2024-12-19 13:27:20] Production.ERROR: pbx CDR StartTime 2024-12-19 10:27:05 - End Time 2024-12-19 13:27:05 [2024-12-19 13:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055791', 'tblTempUsageDetail_20' ) start [2024-12-19 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055791', 'tblTempUsageDetail_20' ) end [2024-12-19 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055791', 'tblTempVendorCDR_20' ) start [2024-12-19 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055791', 'tblTempVendorCDR_20' ) end [2024-12-19 13:27:20] Production.INFO: ProcessCDR(1,14055791,1,1,2) [2024-12-19 13:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055791', 'tblTempUsageDetail_20' ) start [2024-12-19 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055791', 'tblTempUsageDetail_20' ) end [2024-12-19 13:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:27:25] Production.INFO: ==19212== Releasing lock... [2024-12-19 13:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:27:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:28:05 [end_date_ymd] => 2024-12-19 13:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:28:18] Production.INFO: count ==4511 [2024-12-19 13:28:19] Production.ERROR: pbx CDR StartTime 2024-12-19 10:28:05 - End Time 2024-12-19 13:28:05 [2024-12-19 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055796', 'tblTempUsageDetail_20' ) start [2024-12-19 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055796', 'tblTempUsageDetail_20' ) end [2024-12-19 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055796', 'tblTempVendorCDR_20' ) start [2024-12-19 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055796', 'tblTempVendorCDR_20' ) end [2024-12-19 13:28:19] Production.INFO: ProcessCDR(1,14055796,1,1,2) [2024-12-19 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055796', 'tblTempUsageDetail_20' ) start [2024-12-19 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055796', 'tblTempUsageDetail_20' ) end [2024-12-19 13:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:28:24] Production.INFO: ==19288== Releasing lock... [2024-12-19 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:28:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:29:05 [end_date_ymd] => 2024-12-19 13:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:29:20] Production.INFO: count ==4522 [2024-12-19 13:29:22] Production.ERROR: pbx CDR StartTime 2024-12-19 10:29:05 - End Time 2024-12-19 13:29:05 [2024-12-19 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055801', 'tblTempUsageDetail_20' ) start [2024-12-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055801', 'tblTempUsageDetail_20' ) end [2024-12-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055801', 'tblTempVendorCDR_20' ) start [2024-12-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055801', 'tblTempVendorCDR_20' ) end [2024-12-19 13:29:22] Production.INFO: ProcessCDR(1,14055801,1,1,2) [2024-12-19 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055801', 'tblTempUsageDetail_20' ) start [2024-12-19 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055801', 'tblTempUsageDetail_20' ) end [2024-12-19 13:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:29:27] Production.INFO: ==19359== Releasing lock... [2024-12-19 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:29:27] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:30:06 [end_date_ymd] => 2024-12-19 13:30:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:30:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:30:19] Production.INFO: count ==4519 [2024-12-19 13:30:21] Production.ERROR: pbx CDR StartTime 2024-12-19 10:30:06 - End Time 2024-12-19 13:30:06 [2024-12-19 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055807', 'tblTempUsageDetail_20' ) start [2024-12-19 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055807', 'tblTempUsageDetail_20' ) end [2024-12-19 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055807', 'tblTempVendorCDR_20' ) start [2024-12-19 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055807', 'tblTempVendorCDR_20' ) end [2024-12-19 13:30:21] Production.INFO: ProcessCDR(1,14055807,1,1,2) [2024-12-19 13:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055807', 'tblTempUsageDetail_20' ) start [2024-12-19 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055807', 'tblTempUsageDetail_20' ) end [2024-12-19 13:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:30:25] Production.INFO: ==19433== Releasing lock... [2024-12-19 13:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:30:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:31:05 [end_date_ymd] => 2024-12-19 13:31:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:31:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:31:18] Production.INFO: count ==4488 [2024-12-19 13:31:20] Production.ERROR: pbx CDR StartTime 2024-12-19 10:31:05 - End Time 2024-12-19 13:31:05 [2024-12-19 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055812', 'tblTempUsageDetail_20' ) start [2024-12-19 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055812', 'tblTempUsageDetail_20' ) end [2024-12-19 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055812', 'tblTempVendorCDR_20' ) start [2024-12-19 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055812', 'tblTempVendorCDR_20' ) end [2024-12-19 13:31:20] Production.INFO: ProcessCDR(1,14055812,1,1,2) [2024-12-19 13:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055812', 'tblTempUsageDetail_20' ) start [2024-12-19 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055812', 'tblTempUsageDetail_20' ) end [2024-12-19 13:31:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:31:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:31:25] Production.INFO: ==19507== Releasing lock... [2024-12-19 13:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:31:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 13:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:32:04 [end_date_ymd] => 2024-12-19 13:32:04 [RateCDR] => 1 ) [2024-12-19 13:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:32:04' and `end` < '2024-12-19 13:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:32:20] Production.INFO: count ==4487 [2024-12-19 13:32:22] Production.ERROR: pbx CDR StartTime 2024-12-19 10:32:04 - End Time 2024-12-19 13:32:04 [2024-12-19 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055817', 'tblTempUsageDetail_20' ) start [2024-12-19 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055817', 'tblTempUsageDetail_20' ) end [2024-12-19 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055817', 'tblTempVendorCDR_20' ) start [2024-12-19 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055817', 'tblTempVendorCDR_20' ) end [2024-12-19 13:32:22] Production.INFO: ProcessCDR(1,14055817,1,1,2) [2024-12-19 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055817', 'tblTempUsageDetail_20' ) start [2024-12-19 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055817', 'tblTempUsageDetail_20' ) end [2024-12-19 13:32:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:32:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:32:27] Production.INFO: ==19580== Releasing lock... [2024-12-19 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:32:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:33:05 [end_date_ymd] => 2024-12-19 13:33:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:33:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:33:23] Production.INFO: count ==4468 [2024-12-19 13:33:25] Production.ERROR: pbx CDR StartTime 2024-12-19 10:33:05 - End Time 2024-12-19 13:33:05 [2024-12-19 13:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055821', 'tblTempUsageDetail_20' ) start [2024-12-19 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055821', 'tblTempUsageDetail_20' ) end [2024-12-19 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055821', 'tblTempVendorCDR_20' ) start [2024-12-19 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055821', 'tblTempVendorCDR_20' ) end [2024-12-19 13:33:25] Production.INFO: ProcessCDR(1,14055821,1,1,2) [2024-12-19 13:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055821', 'tblTempUsageDetail_20' ) start [2024-12-19 13:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055821', 'tblTempUsageDetail_20' ) end [2024-12-19 13:33:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:33:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:33:30] Production.INFO: ==19652== Releasing lock... [2024-12-19 13:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:33:30] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 13:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:34:04 [end_date_ymd] => 2024-12-19 13:34:04 [RateCDR] => 1 ) [2024-12-19 13:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:34:04' and `end` < '2024-12-19 13:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:34:21] Production.INFO: count ==4458 [2024-12-19 13:34:23] Production.ERROR: pbx CDR StartTime 2024-12-19 10:34:04 - End Time 2024-12-19 13:34:04 [2024-12-19 13:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055827', 'tblTempUsageDetail_20' ) start [2024-12-19 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055827', 'tblTempUsageDetail_20' ) end [2024-12-19 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055827', 'tblTempVendorCDR_20' ) start [2024-12-19 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055827', 'tblTempVendorCDR_20' ) end [2024-12-19 13:34:23] Production.INFO: ProcessCDR(1,14055827,1,1,2) [2024-12-19 13:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055827', 'tblTempUsageDetail_20' ) start [2024-12-19 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055827', 'tblTempUsageDetail_20' ) end [2024-12-19 13:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:34:27] Production.INFO: ==19726== Releasing lock... [2024-12-19 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:34:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:35:05 [end_date_ymd] => 2024-12-19 13:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:35:18] Production.INFO: count ==4421 [2024-12-19 13:35:20] Production.ERROR: pbx CDR StartTime 2024-12-19 10:35:05 - End Time 2024-12-19 13:35:05 [2024-12-19 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055832', 'tblTempUsageDetail_20' ) start [2024-12-19 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055832', 'tblTempUsageDetail_20' ) end [2024-12-19 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055832', 'tblTempVendorCDR_20' ) start [2024-12-19 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055832', 'tblTempVendorCDR_20' ) end [2024-12-19 13:35:20] Production.INFO: ProcessCDR(1,14055832,1,1,2) [2024-12-19 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055832', 'tblTempUsageDetail_20' ) start [2024-12-19 13:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055832', 'tblTempUsageDetail_20' ) end [2024-12-19 13:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:35:24] Production.INFO: ==19798== Releasing lock... [2024-12-19 13:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:35:24] Production.INFO: 61 MB #Memory Used# [2024-12-19 13:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:36:04 [end_date_ymd] => 2024-12-19 13:36:04 [RateCDR] => 1 ) [2024-12-19 13:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:36:04' and `end` < '2024-12-19 13:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:36:18] Production.INFO: count ==4396 [2024-12-19 13:36:20] Production.ERROR: pbx CDR StartTime 2024-12-19 10:36:04 - End Time 2024-12-19 13:36:04 [2024-12-19 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055837', 'tblTempUsageDetail_20' ) start [2024-12-19 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055837', 'tblTempUsageDetail_20' ) end [2024-12-19 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055837', 'tblTempVendorCDR_20' ) start [2024-12-19 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055837', 'tblTempVendorCDR_20' ) end [2024-12-19 13:36:20] Production.INFO: ProcessCDR(1,14055837,1,1,2) [2024-12-19 13:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055837', 'tblTempUsageDetail_20' ) start [2024-12-19 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055837', 'tblTempUsageDetail_20' ) end [2024-12-19 13:36:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:36:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:36:25] Production.INFO: ==19869== Releasing lock... [2024-12-19 13:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:36:25] Production.INFO: 61 MB #Memory Used# [2024-12-19 13:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:37:04 [end_date_ymd] => 2024-12-19 13:37:04 [RateCDR] => 1 ) [2024-12-19 13: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` >= '2024-12-19 10:37:04' and `end` < '2024-12-19 13: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 ,'') [2024-12-19 13:37:17] Production.INFO: count ==4395 [2024-12-19 13:37:19] Production.ERROR: pbx CDR StartTime 2024-12-19 10:37:04 - End Time 2024-12-19 13:37:04 [2024-12-19 13:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055842', 'tblTempUsageDetail_20' ) start [2024-12-19 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055842', 'tblTempUsageDetail_20' ) end [2024-12-19 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055842', 'tblTempVendorCDR_20' ) start [2024-12-19 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055842', 'tblTempVendorCDR_20' ) end [2024-12-19 13:37:19] Production.INFO: ProcessCDR(1,14055842,1,1,2) [2024-12-19 13:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055842', 'tblTempUsageDetail_20' ) start [2024-12-19 13:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055842', 'tblTempUsageDetail_20' ) end [2024-12-19 13:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:37:24] Production.INFO: ==19942== Releasing lock... [2024-12-19 13:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:37:24] Production.INFO: 61 MB #Memory Used# [2024-12-19 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:38:05 [end_date_ymd] => 2024-12-19 13:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:38:24] Production.INFO: count ==4385 [2024-12-19 13:38:26] Production.ERROR: pbx CDR StartTime 2024-12-19 10:38:05 - End Time 2024-12-19 13:38:05 [2024-12-19 13:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055847', 'tblTempUsageDetail_20' ) start [2024-12-19 13:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055847', 'tblTempUsageDetail_20' ) end [2024-12-19 13:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055847', 'tblTempVendorCDR_20' ) start [2024-12-19 13:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055847', 'tblTempVendorCDR_20' ) end [2024-12-19 13:38:26] Production.INFO: ProcessCDR(1,14055847,1,1,2) [2024-12-19 13:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055847', 'tblTempUsageDetail_20' ) start [2024-12-19 13:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055847', 'tblTempUsageDetail_20' ) end [2024-12-19 13:38:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:38:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:38:30] Production.INFO: ==20017== Releasing lock... [2024-12-19 13:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:38:30] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:39:04 [end_date_ymd] => 2024-12-19 13:39:04 [RateCDR] => 1 ) [2024-12-19 13:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:39:04' and `end` < '2024-12-19 13:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:39:17] Production.INFO: count ==4381 [2024-12-19 13:39:19] Production.ERROR: pbx CDR StartTime 2024-12-19 10:39:04 - End Time 2024-12-19 13:39:04 [2024-12-19 13:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055852', 'tblTempUsageDetail_20' ) start [2024-12-19 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055852', 'tblTempUsageDetail_20' ) end [2024-12-19 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055852', 'tblTempVendorCDR_20' ) start [2024-12-19 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055852', 'tblTempVendorCDR_20' ) end [2024-12-19 13:39:19] Production.INFO: ProcessCDR(1,14055852,1,1,2) [2024-12-19 13:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055852', 'tblTempUsageDetail_20' ) start [2024-12-19 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055852', 'tblTempUsageDetail_20' ) end [2024-12-19 13:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:39:22] Production.INFO: ==20086== Releasing lock... [2024-12-19 13:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:39:22] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:40:05 [end_date_ymd] => 2024-12-19 13:40:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:40:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:40:18] Production.INFO: count ==4375 [2024-12-19 13:40:20] Production.ERROR: pbx CDR StartTime 2024-12-19 10:40:05 - End Time 2024-12-19 13:40:05 [2024-12-19 13:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055858', 'tblTempUsageDetail_20' ) start [2024-12-19 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055858', 'tblTempUsageDetail_20' ) end [2024-12-19 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055858', 'tblTempVendorCDR_20' ) start [2024-12-19 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055858', 'tblTempVendorCDR_20' ) end [2024-12-19 13:40:20] Production.INFO: ProcessCDR(1,14055858,1,1,2) [2024-12-19 13:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055858', 'tblTempUsageDetail_20' ) start [2024-12-19 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055858', 'tblTempUsageDetail_20' ) end [2024-12-19 13:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:40:24] Production.INFO: ==20162== Releasing lock... [2024-12-19 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:40:24] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:41:04 [end_date_ymd] => 2024-12-19 13:41:04 [RateCDR] => 1 ) [2024-12-19 13:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:41:04' and `end` < '2024-12-19 13:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:41:21] Production.INFO: count ==4345 [2024-12-19 13:41:22] Production.ERROR: pbx CDR StartTime 2024-12-19 10:41:04 - End Time 2024-12-19 13:41:04 [2024-12-19 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055863', 'tblTempUsageDetail_20' ) start [2024-12-19 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055863', 'tblTempUsageDetail_20' ) end [2024-12-19 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055863', 'tblTempVendorCDR_20' ) start [2024-12-19 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055863', 'tblTempVendorCDR_20' ) end [2024-12-19 13:41:22] Production.INFO: ProcessCDR(1,14055863,1,1,2) [2024-12-19 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055863', 'tblTempUsageDetail_20' ) start [2024-12-19 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055863', 'tblTempUsageDetail_20' ) end [2024-12-19 13:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:41:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:41:27] Production.INFO: ==20275== Releasing lock... [2024-12-19 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:41:27] Production.INFO: 60.5 MB #Memory Used# [2024-12-19 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:42:05 [end_date_ymd] => 2024-12-19 13:42:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:42:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:42:26] Production.INFO: count ==4343 [2024-12-19 13:42:28] Production.ERROR: pbx CDR StartTime 2024-12-19 10:42:05 - End Time 2024-12-19 13:42:05 [2024-12-19 13:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055868', 'tblTempUsageDetail_20' ) start [2024-12-19 13:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055868', 'tblTempUsageDetail_20' ) end [2024-12-19 13:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055868', 'tblTempVendorCDR_20' ) start [2024-12-19 13:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055868', 'tblTempVendorCDR_20' ) end [2024-12-19 13:42:28] Production.INFO: ProcessCDR(1,14055868,1,1,2) [2024-12-19 13:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055868', 'tblTempUsageDetail_20' ) start [2024-12-19 13:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055868', 'tblTempUsageDetail_20' ) end [2024-12-19 13:42:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:42:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:42:32] Production.INFO: ==20345== Releasing lock... [2024-12-19 13:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:42:32] Production.INFO: 60.5 MB #Memory Used# [2024-12-19 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:43:05 [end_date_ymd] => 2024-12-19 13:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:43:22] Production.INFO: count ==4331 [2024-12-19 13:43:23] Production.ERROR: pbx CDR StartTime 2024-12-19 10:43:05 - End Time 2024-12-19 13:43:05 [2024-12-19 13:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055873', 'tblTempUsageDetail_20' ) start [2024-12-19 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055873', 'tblTempUsageDetail_20' ) end [2024-12-19 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055873', 'tblTempVendorCDR_20' ) start [2024-12-19 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055873', 'tblTempVendorCDR_20' ) end [2024-12-19 13:43:23] Production.INFO: ProcessCDR(1,14055873,1,1,2) [2024-12-19 13:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055873', 'tblTempUsageDetail_20' ) start [2024-12-19 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055873', 'tblTempUsageDetail_20' ) end [2024-12-19 13:43:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:43:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:43:28] Production.INFO: ==20419== Releasing lock... [2024-12-19 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:43:28] Production.INFO: 60.5 MB #Memory Used# [2024-12-19 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:44:05 [end_date_ymd] => 2024-12-19 13:44:05 [RateCDR] => 1 ) [2024-12-19 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:44:05' and `end` < '2024-12-19 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:44:21] Production.INFO: count ==4311 [2024-12-19 13:44:23] Production.ERROR: pbx CDR StartTime 2024-12-19 10:44:05 - End Time 2024-12-19 13:44:05 [2024-12-19 13:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055878', 'tblTempUsageDetail_20' ) start [2024-12-19 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055878', 'tblTempUsageDetail_20' ) end [2024-12-19 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055878', 'tblTempVendorCDR_20' ) start [2024-12-19 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055878', 'tblTempVendorCDR_20' ) end [2024-12-19 13:44:23] Production.INFO: ProcessCDR(1,14055878,1,1,2) [2024-12-19 13:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055878', 'tblTempUsageDetail_20' ) start [2024-12-19 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055878', 'tblTempUsageDetail_20' ) end [2024-12-19 13:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:44:26] Production.INFO: ==20498== Releasing lock... [2024-12-19 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:44:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-19 13:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:45:04 [end_date_ymd] => 2024-12-19 13:45:04 [RateCDR] => 1 ) [2024-12-19 13: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` >= '2024-12-19 10:45:04' and `end` < '2024-12-19 13: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 ,'') [2024-12-19 13:45:23] Production.INFO: count ==4311 [2024-12-19 13:45:24] Production.ERROR: pbx CDR StartTime 2024-12-19 10:45:04 - End Time 2024-12-19 13:45:04 [2024-12-19 13:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055883', 'tblTempUsageDetail_20' ) start [2024-12-19 13:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055883', 'tblTempUsageDetail_20' ) end [2024-12-19 13:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055883', 'tblTempVendorCDR_20' ) start [2024-12-19 13:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055883', 'tblTempVendorCDR_20' ) end [2024-12-19 13:45:24] Production.INFO: ProcessCDR(1,14055883,1,1,2) [2024-12-19 13:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055883', 'tblTempUsageDetail_20' ) start [2024-12-19 13:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055883', 'tblTempUsageDetail_20' ) end [2024-12-19 13:45:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:45:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:45:29] Production.INFO: ==20568== Releasing lock... [2024-12-19 13:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:45:29] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:46:05 [end_date_ymd] => 2024-12-19 13:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:46:20] Production.INFO: count ==4309 [2024-12-19 13:46:22] Production.ERROR: pbx CDR StartTime 2024-12-19 10:46:05 - End Time 2024-12-19 13:46:05 [2024-12-19 13:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055888', 'tblTempUsageDetail_20' ) start [2024-12-19 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055888', 'tblTempUsageDetail_20' ) end [2024-12-19 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055888', 'tblTempVendorCDR_20' ) start [2024-12-19 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055888', 'tblTempVendorCDR_20' ) end [2024-12-19 13:46:22] Production.INFO: ProcessCDR(1,14055888,1,1,2) [2024-12-19 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055888', 'tblTempUsageDetail_20' ) start [2024-12-19 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055888', 'tblTempUsageDetail_20' ) end [2024-12-19 13:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:46:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:46:27] Production.INFO: ==20641== Releasing lock... [2024-12-19 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:46:27] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:47:05 [end_date_ymd] => 2024-12-19 13:47:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:47:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:47:18] Production.INFO: count ==4304 [2024-12-19 13:47:19] Production.ERROR: pbx CDR StartTime 2024-12-19 10:47:05 - End Time 2024-12-19 13:47:05 [2024-12-19 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055893', 'tblTempUsageDetail_20' ) start [2024-12-19 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055893', 'tblTempUsageDetail_20' ) end [2024-12-19 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055893', 'tblTempVendorCDR_20' ) start [2024-12-19 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055893', 'tblTempVendorCDR_20' ) end [2024-12-19 13:47:19] Production.INFO: ProcessCDR(1,14055893,1,1,2) [2024-12-19 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055893', 'tblTempUsageDetail_20' ) start [2024-12-19 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055893', 'tblTempUsageDetail_20' ) end [2024-12-19 13:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:47:24] Production.INFO: ==20714== Releasing lock... [2024-12-19 13:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:47:24] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 13:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:48:04 [end_date_ymd] => 2024-12-19 13:48:04 [RateCDR] => 1 ) [2024-12-19 13:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:48:04' and `end` < '2024-12-19 13:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:48:21] Production.INFO: count ==4310 [2024-12-19 13:48:23] Production.ERROR: pbx CDR StartTime 2024-12-19 10:48:04 - End Time 2024-12-19 13:48:04 [2024-12-19 13:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055898', 'tblTempUsageDetail_20' ) start [2024-12-19 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055898', 'tblTempUsageDetail_20' ) end [2024-12-19 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055898', 'tblTempVendorCDR_20' ) start [2024-12-19 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055898', 'tblTempVendorCDR_20' ) end [2024-12-19 13:48:23] Production.INFO: ProcessCDR(1,14055898,1,1,2) [2024-12-19 13:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055898', 'tblTempUsageDetail_20' ) start [2024-12-19 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055898', 'tblTempUsageDetail_20' ) end [2024-12-19 13:48:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:48:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:48:27] Production.INFO: ==20783== Releasing lock... [2024-12-19 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:48:27] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:49:05 [end_date_ymd] => 2024-12-19 13:49:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:49:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:49:20] Production.INFO: count ==4303 [2024-12-19 13:49:22] Production.ERROR: pbx CDR StartTime 2024-12-19 10:49:05 - End Time 2024-12-19 13:49:05 [2024-12-19 13:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055903', 'tblTempUsageDetail_20' ) start [2024-12-19 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055903', 'tblTempUsageDetail_20' ) end [2024-12-19 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055903', 'tblTempVendorCDR_20' ) start [2024-12-19 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055903', 'tblTempVendorCDR_20' ) end [2024-12-19 13:49:22] Production.INFO: ProcessCDR(1,14055903,1,1,2) [2024-12-19 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055903', 'tblTempUsageDetail_20' ) start [2024-12-19 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055903', 'tblTempUsageDetail_20' ) end [2024-12-19 13:49:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:49:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:49:26] Production.INFO: ==20860== Releasing lock... [2024-12-19 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:49:26] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:50:05 [end_date_ymd] => 2024-12-19 13:50:05 [RateCDR] => 1 ) [2024-12-19 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:50:05' and `end` < '2024-12-19 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:50:19] Production.INFO: count ==4292 [2024-12-19 13:50:21] Production.ERROR: pbx CDR StartTime 2024-12-19 10:50:05 - End Time 2024-12-19 13:50:05 [2024-12-19 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055909', 'tblTempUsageDetail_20' ) start [2024-12-19 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055909', 'tblTempUsageDetail_20' ) end [2024-12-19 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055909', 'tblTempVendorCDR_20' ) start [2024-12-19 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055909', 'tblTempVendorCDR_20' ) end [2024-12-19 13:50:21] Production.INFO: ProcessCDR(1,14055909,1,1,2) [2024-12-19 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055909', 'tblTempUsageDetail_20' ) start [2024-12-19 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055909', 'tblTempUsageDetail_20' ) end [2024-12-19 13:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:50:25] Production.INFO: ==20935== Releasing lock... [2024-12-19 13:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:50:25] Production.INFO: 60.5 MB #Memory Used# [2024-12-19 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:51:05 [end_date_ymd] => 2024-12-19 13:51:05 [RateCDR] => 1 ) [2024-12-19 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:51:05' and `end` < '2024-12-19 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:51:19] Production.INFO: count ==4296 [2024-12-19 13:51:21] Production.ERROR: pbx CDR StartTime 2024-12-19 10:51:05 - End Time 2024-12-19 13:51:05 [2024-12-19 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055914', 'tblTempUsageDetail_20' ) start [2024-12-19 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055914', 'tblTempUsageDetail_20' ) end [2024-12-19 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055914', 'tblTempVendorCDR_20' ) start [2024-12-19 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055914', 'tblTempVendorCDR_20' ) end [2024-12-19 13:51:21] Production.INFO: ProcessCDR(1,14055914,1,1,2) [2024-12-19 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055914', 'tblTempUsageDetail_20' ) start [2024-12-19 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055914', 'tblTempUsageDetail_20' ) end [2024-12-19 13:51:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:51:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:51:25] Production.INFO: ==21008== Releasing lock... [2024-12-19 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:51:25] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 13:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:52:04 [end_date_ymd] => 2024-12-19 13:52:04 [RateCDR] => 1 ) [2024-12-19 13: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` >= '2024-12-19 10:52:04' and `end` < '2024-12-19 13: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 ,'') [2024-12-19 13:52:23] Production.INFO: count ==4304 [2024-12-19 13:52:24] Production.ERROR: pbx CDR StartTime 2024-12-19 10:52:04 - End Time 2024-12-19 13:52:04 [2024-12-19 13:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055919', 'tblTempUsageDetail_20' ) start [2024-12-19 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055919', 'tblTempUsageDetail_20' ) end [2024-12-19 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055919', 'tblTempVendorCDR_20' ) start [2024-12-19 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055919', 'tblTempVendorCDR_20' ) end [2024-12-19 13:52:24] Production.INFO: ProcessCDR(1,14055919,1,1,2) [2024-12-19 13:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055919', 'tblTempUsageDetail_20' ) start [2024-12-19 13:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055919', 'tblTempUsageDetail_20' ) end [2024-12-19 13:52:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:52:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:52:29] Production.INFO: ==21080== Releasing lock... [2024-12-19 13:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:52:29] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:53:04 [end_date_ymd] => 2024-12-19 13:53:04 [RateCDR] => 1 ) [2024-12-19 13:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:53:04' and `end` < '2024-12-19 13:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:53:23] Production.INFO: count ==4299 [2024-12-19 13:53:24] Production.ERROR: pbx CDR StartTime 2024-12-19 10:53:04 - End Time 2024-12-19 13:53:04 [2024-12-19 13:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055924', 'tblTempUsageDetail_20' ) start [2024-12-19 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055924', 'tblTempUsageDetail_20' ) end [2024-12-19 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055924', 'tblTempVendorCDR_20' ) start [2024-12-19 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055924', 'tblTempVendorCDR_20' ) end [2024-12-19 13:53:25] Production.INFO: ProcessCDR(1,14055924,1,1,2) [2024-12-19 13:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055924', 'tblTempUsageDetail_20' ) start [2024-12-19 13:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055924', 'tblTempUsageDetail_20' ) end [2024-12-19 13:53:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:53:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:53:29] Production.INFO: ==21155== Releasing lock... [2024-12-19 13:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:53:29] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:54:05 [end_date_ymd] => 2024-12-19 13:54:05 [RateCDR] => 1 ) [2024-12-19 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:54:05' and `end` < '2024-12-19 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:54:20] Production.INFO: count ==4296 [2024-12-19 13:54:22] Production.ERROR: pbx CDR StartTime 2024-12-19 10:54:05 - End Time 2024-12-19 13:54:05 [2024-12-19 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055929', 'tblTempUsageDetail_20' ) start [2024-12-19 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055929', 'tblTempUsageDetail_20' ) end [2024-12-19 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055929', 'tblTempVendorCDR_20' ) start [2024-12-19 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055929', 'tblTempVendorCDR_20' ) end [2024-12-19 13:54:22] Production.INFO: ProcessCDR(1,14055929,1,1,2) [2024-12-19 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055929', 'tblTempUsageDetail_20' ) start [2024-12-19 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055929', 'tblTempUsageDetail_20' ) end [2024-12-19 13:54:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:54:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:54:26] Production.INFO: ==21226== Releasing lock... [2024-12-19 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:54:26] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:55:05 [end_date_ymd] => 2024-12-19 13:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:55:26] Production.INFO: count ==4283 [2024-12-19 13:55:27] Production.ERROR: pbx CDR StartTime 2024-12-19 10:55:05 - End Time 2024-12-19 13:55:05 [2024-12-19 13:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055934', 'tblTempUsageDetail_20' ) start [2024-12-19 13:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055934', 'tblTempUsageDetail_20' ) end [2024-12-19 13:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055934', 'tblTempVendorCDR_20' ) start [2024-12-19 13:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055934', 'tblTempVendorCDR_20' ) end [2024-12-19 13:55:27] Production.INFO: ProcessCDR(1,14055934,1,1,2) [2024-12-19 13:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055934', 'tblTempUsageDetail_20' ) start [2024-12-19 13:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055934', 'tblTempUsageDetail_20' ) end [2024-12-19 13:55:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:55:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:55:32] Production.INFO: ==21302== Releasing lock... [2024-12-19 13:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:55:32] Production.INFO: 60 MB #Memory Used# [2024-12-19 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:56:05 [end_date_ymd] => 2024-12-19 13:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:56:23] Production.INFO: count ==4253 [2024-12-19 13:56:24] Production.ERROR: pbx CDR StartTime 2024-12-19 10:56:05 - End Time 2024-12-19 13:56:05 [2024-12-19 13:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055939', 'tblTempUsageDetail_20' ) start [2024-12-19 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055939', 'tblTempUsageDetail_20' ) end [2024-12-19 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055939', 'tblTempVendorCDR_20' ) start [2024-12-19 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055939', 'tblTempVendorCDR_20' ) end [2024-12-19 13:56:25] Production.INFO: ProcessCDR(1,14055939,1,1,2) [2024-12-19 13:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055939', 'tblTempUsageDetail_20' ) start [2024-12-19 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055939', 'tblTempUsageDetail_20' ) end [2024-12-19 13:56:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:56:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:56:29] Production.INFO: ==21415== Releasing lock... [2024-12-19 13:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:56:29] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:57:04 [end_date_ymd] => 2024-12-19 13:57:04 [RateCDR] => 1 ) [2024-12-19 13:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 10:57:04' and `end` < '2024-12-19 13:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 13:57:26] Production.INFO: count ==4256 [2024-12-19 13:57:28] Production.ERROR: pbx CDR StartTime 2024-12-19 10:57:04 - End Time 2024-12-19 13:57:04 [2024-12-19 13:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055944', 'tblTempUsageDetail_20' ) start [2024-12-19 13:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055944', 'tblTempUsageDetail_20' ) end [2024-12-19 13:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055944', 'tblTempVendorCDR_20' ) start [2024-12-19 13:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055944', 'tblTempVendorCDR_20' ) end [2024-12-19 13:57:28] Production.INFO: ProcessCDR(1,14055944,1,1,2) [2024-12-19 13:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055944', 'tblTempUsageDetail_20' ) start [2024-12-19 13:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055944', 'tblTempUsageDetail_20' ) end [2024-12-19 13:57:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:57:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:57:33] Production.INFO: ==21486== Releasing lock... [2024-12-19 13:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:57:33] Production.INFO: 60 MB #Memory Used# [2024-12-19 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:58:05 [end_date_ymd] => 2024-12-19 13:58:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 10:58:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 13:58:23] Production.INFO: count ==4230 [2024-12-19 13:58:24] Production.ERROR: pbx CDR StartTime 2024-12-19 10:58:05 - End Time 2024-12-19 13:58:05 [2024-12-19 13:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055949', 'tblTempUsageDetail_20' ) start [2024-12-19 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055949', 'tblTempUsageDetail_20' ) end [2024-12-19 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055949', 'tblTempVendorCDR_20' ) start [2024-12-19 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055949', 'tblTempVendorCDR_20' ) end [2024-12-19 13:58:24] Production.INFO: ProcessCDR(1,14055949,1,1,2) [2024-12-19 13:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055949', 'tblTempUsageDetail_20' ) start [2024-12-19 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055949', 'tblTempUsageDetail_20' ) end [2024-12-19 13:58:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:58:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:58:29] Production.INFO: ==21559== Releasing lock... [2024-12-19 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:58:29] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 13:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 10:59:04 [end_date_ymd] => 2024-12-19 13:59:04 [RateCDR] => 1 ) [2024-12-19 13: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` >= '2024-12-19 10:59:04' and `end` < '2024-12-19 13: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 ,'') [2024-12-19 13:59:17] Production.INFO: count ==4225 [2024-12-19 13:59:19] Production.ERROR: pbx CDR StartTime 2024-12-19 10:59:04 - End Time 2024-12-19 13:59:04 [2024-12-19 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055954', 'tblTempUsageDetail_20' ) start [2024-12-19 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055954', 'tblTempUsageDetail_20' ) end [2024-12-19 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055954', 'tblTempVendorCDR_20' ) start [2024-12-19 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055954', 'tblTempVendorCDR_20' ) end [2024-12-19 13:59:19] Production.INFO: ProcessCDR(1,14055954,1,1,2) [2024-12-19 13:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055954', 'tblTempUsageDetail_20' ) start [2024-12-19 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055954', 'tblTempUsageDetail_20' ) end [2024-12-19 13:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 13:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 13:59:23] Production.INFO: ==21633== Releasing lock... [2024-12-19 13:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 13:59:23] Production.INFO: 60 MB #Memory Used# [2024-12-19 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:00:05 [end_date_ymd] => 2024-12-19 14:00:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:00:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:00:18] Production.INFO: count ==4207 [2024-12-19 14:00:20] Production.ERROR: pbx CDR StartTime 2024-12-19 11:00:05 - End Time 2024-12-19 14:00:05 [2024-12-19 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055960', 'tblTempUsageDetail_20' ) start [2024-12-19 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055960', 'tblTempUsageDetail_20' ) end [2024-12-19 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055960', 'tblTempVendorCDR_20' ) start [2024-12-19 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055960', 'tblTempVendorCDR_20' ) end [2024-12-19 14:00:20] Production.INFO: ProcessCDR(1,14055960,1,1,2) [2024-12-19 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055960', 'tblTempUsageDetail_20' ) start [2024-12-19 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055960', 'tblTempUsageDetail_20' ) end [2024-12-19 14:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:00:24] Production.INFO: ==21710== Releasing lock... [2024-12-19 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:00:24] Production.INFO: 59.5 MB #Memory Used# [2024-12-19 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:01:06 [end_date_ymd] => 2024-12-19 14:01:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:01:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:01:19] Production.INFO: count ==4205 [2024-12-19 14:01:20] Production.ERROR: pbx CDR StartTime 2024-12-19 11:01:06 - End Time 2024-12-19 14:01:06 [2024-12-19 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055965', 'tblTempUsageDetail_20' ) start [2024-12-19 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055965', 'tblTempUsageDetail_20' ) end [2024-12-19 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055965', 'tblTempVendorCDR_20' ) start [2024-12-19 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055965', 'tblTempVendorCDR_20' ) end [2024-12-19 14:01:20] Production.INFO: ProcessCDR(1,14055965,1,1,2) [2024-12-19 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055965', 'tblTempUsageDetail_20' ) start [2024-12-19 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055965', 'tblTempUsageDetail_20' ) end [2024-12-19 14:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:01:25] Production.INFO: ==21798== Releasing lock... [2024-12-19 14:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:01:25] Production.INFO: 59.5 MB #Memory Used# [2024-12-19 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:02:05 [end_date_ymd] => 2024-12-19 14:02:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:02:22] Production.INFO: count ==4206 [2024-12-19 14:02:24] Production.ERROR: pbx CDR StartTime 2024-12-19 11:02:05 - End Time 2024-12-19 14:02:05 [2024-12-19 14:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055970', 'tblTempUsageDetail_20' ) start [2024-12-19 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055970', 'tblTempUsageDetail_20' ) end [2024-12-19 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055970', 'tblTempVendorCDR_20' ) start [2024-12-19 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055970', 'tblTempVendorCDR_20' ) end [2024-12-19 14:02:24] Production.INFO: ProcessCDR(1,14055970,1,1,2) [2024-12-19 14:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055970', 'tblTempUsageDetail_20' ) start [2024-12-19 14:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055970', 'tblTempUsageDetail_20' ) end [2024-12-19 14:02:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:02:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:02:29] Production.INFO: ==21869== Releasing lock... [2024-12-19 14:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:02:29] Production.INFO: 59.5 MB #Memory Used# [2024-12-19 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:03:05 [end_date_ymd] => 2024-12-19 14:03:05 [RateCDR] => 1 ) [2024-12-19 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:03:05' and `end` < '2024-12-19 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:03:18] Production.INFO: count ==4217 [2024-12-19 14:03:20] Production.ERROR: pbx CDR StartTime 2024-12-19 11:03:05 - End Time 2024-12-19 14:03:05 [2024-12-19 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055975', 'tblTempUsageDetail_20' ) start [2024-12-19 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055975', 'tblTempUsageDetail_20' ) end [2024-12-19 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055975', 'tblTempVendorCDR_20' ) start [2024-12-19 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055975', 'tblTempVendorCDR_20' ) end [2024-12-19 14:03:20] Production.INFO: ProcessCDR(1,14055975,1,1,2) [2024-12-19 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055975', 'tblTempUsageDetail_20' ) start [2024-12-19 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055975', 'tblTempUsageDetail_20' ) end [2024-12-19 14:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:03:24] Production.INFO: ==21942== Releasing lock... [2024-12-19 14:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:03:24] Production.INFO: 59.5 MB #Memory Used# [2024-12-19 14:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:04:04 [end_date_ymd] => 2024-12-19 14:04:04 [RateCDR] => 1 ) [2024-12-19 14:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:04:04' and `end` < '2024-12-19 14:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:04:17] Production.INFO: count ==4232 [2024-12-19 14:04:19] Production.ERROR: pbx CDR StartTime 2024-12-19 11:04:04 - End Time 2024-12-19 14:04:04 [2024-12-19 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055980', 'tblTempUsageDetail_20' ) start [2024-12-19 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055980', 'tblTempUsageDetail_20' ) end [2024-12-19 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055980', 'tblTempVendorCDR_20' ) start [2024-12-19 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055980', 'tblTempVendorCDR_20' ) end [2024-12-19 14:04:19] Production.INFO: ProcessCDR(1,14055980,1,1,2) [2024-12-19 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055980', 'tblTempUsageDetail_20' ) start [2024-12-19 14:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055980', 'tblTempUsageDetail_20' ) end [2024-12-19 14:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:04:24] Production.INFO: ==22014== Releasing lock... [2024-12-19 14:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:04:24] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:05:05 [end_date_ymd] => 2024-12-19 14:05:05 [RateCDR] => 1 ) [2024-12-19 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:05:05' and `end` < '2024-12-19 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:05:18] Production.INFO: count ==4274 [2024-12-19 14:05:20] Production.ERROR: pbx CDR StartTime 2024-12-19 11:05:05 - End Time 2024-12-19 14:05:05 [2024-12-19 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055985', 'tblTempUsageDetail_20' ) start [2024-12-19 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055985', 'tblTempUsageDetail_20' ) end [2024-12-19 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055985', 'tblTempVendorCDR_20' ) start [2024-12-19 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055985', 'tblTempVendorCDR_20' ) end [2024-12-19 14:05:20] Production.INFO: ProcessCDR(1,14055985,1,1,2) [2024-12-19 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055985', 'tblTempUsageDetail_20' ) start [2024-12-19 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055985', 'tblTempUsageDetail_20' ) end [2024-12-19 14:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:05:25] Production.INFO: ==22088== Releasing lock... [2024-12-19 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:05:25] Production.INFO: 60 MB #Memory Used# [2024-12-19 14:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:06:04 [end_date_ymd] => 2024-12-19 14:06:04 [RateCDR] => 1 ) [2024-12-19 14: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` >= '2024-12-19 11:06:04' and `end` < '2024-12-19 14: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 ,'') [2024-12-19 14:06:17] Production.INFO: count ==4272 [2024-12-19 14:06:19] Production.ERROR: pbx CDR StartTime 2024-12-19 11:06:04 - End Time 2024-12-19 14:06:04 [2024-12-19 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055990', 'tblTempUsageDetail_20' ) start [2024-12-19 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055990', 'tblTempUsageDetail_20' ) end [2024-12-19 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055990', 'tblTempVendorCDR_20' ) start [2024-12-19 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055990', 'tblTempVendorCDR_20' ) end [2024-12-19 14:06:19] Production.INFO: ProcessCDR(1,14055990,1,1,2) [2024-12-19 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055990', 'tblTempUsageDetail_20' ) start [2024-12-19 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055990', 'tblTempUsageDetail_20' ) end [2024-12-19 14:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:06:24] Production.INFO: ==22163== Releasing lock... [2024-12-19 14:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:06:24] Production.INFO: 60 MB #Memory Used# [2024-12-19 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:07:05 [end_date_ymd] => 2024-12-19 14:07:05 [RateCDR] => 1 ) [2024-12-19 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:07:05' and `end` < '2024-12-19 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:07:18] Production.INFO: count ==4241 [2024-12-19 14:07:19] Production.ERROR: pbx CDR StartTime 2024-12-19 11:07:05 - End Time 2024-12-19 14:07:05 [2024-12-19 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055995', 'tblTempUsageDetail_20' ) start [2024-12-19 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14055995', 'tblTempUsageDetail_20' ) end [2024-12-19 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055995', 'tblTempVendorCDR_20' ) start [2024-12-19 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14055995', 'tblTempVendorCDR_20' ) end [2024-12-19 14:07:19] Production.INFO: ProcessCDR(1,14055995,1,1,2) [2024-12-19 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14055995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14055995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14055995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14055995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055995', 'tblTempUsageDetail_20' ) start [2024-12-19 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14055995', 'tblTempUsageDetail_20' ) end [2024-12-19 14:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:07:23] Production.INFO: ==22237== Releasing lock... [2024-12-19 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:07:23] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 14:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:08:04 [end_date_ymd] => 2024-12-19 14:08:04 [RateCDR] => 1 ) [2024-12-19 14:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:08:04' and `end` < '2024-12-19 14: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 ,'') [2024-12-19 14:08:19] Production.INFO: count ==4248 [2024-12-19 14:08:20] Production.ERROR: pbx CDR StartTime 2024-12-19 11:08:04 - End Time 2024-12-19 14:08:04 [2024-12-19 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056000', 'tblTempUsageDetail_20' ) start [2024-12-19 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056000', 'tblTempUsageDetail_20' ) end [2024-12-19 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056000', 'tblTempVendorCDR_20' ) start [2024-12-19 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056000', 'tblTempVendorCDR_20' ) end [2024-12-19 14:08:20] Production.INFO: ProcessCDR(1,14056000,1,1,2) [2024-12-19 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056000', 'tblTempUsageDetail_20' ) start [2024-12-19 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056000', 'tblTempUsageDetail_20' ) end [2024-12-19 14:08:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:08:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:08:25] Production.INFO: ==22309== Releasing lock... [2024-12-19 14:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:08:25] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:09:05 [end_date_ymd] => 2024-12-19 14:09:05 [RateCDR] => 1 ) [2024-12-19 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:09:05' and `end` < '2024-12-19 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:09:33] Production.INFO: count ==4257 [2024-12-19 14:09:35] Production.ERROR: pbx CDR StartTime 2024-12-19 11:09:05 - End Time 2024-12-19 14:09:05 [2024-12-19 14:09:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:09:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056005', 'tblTempUsageDetail_20' ) start [2024-12-19 14:09:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056005', 'tblTempUsageDetail_20' ) end [2024-12-19 14:09:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056005', 'tblTempVendorCDR_20' ) start [2024-12-19 14:09:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056005', 'tblTempVendorCDR_20' ) end [2024-12-19 14:09:35] Production.INFO: ProcessCDR(1,14056005,1,1,2) [2024-12-19 14:09:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:09:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:09:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:09:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:09:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056005', 'tblTempUsageDetail_20' ) start [2024-12-19 14:09:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056005', 'tblTempUsageDetail_20' ) end [2024-12-19 14:09:39] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:09:39] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:09:39] Production.INFO: ==22381== Releasing lock... [2024-12-19 14:09:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:09:39] Production.INFO: 60 MB #Memory Used# [2024-12-19 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:10:06 [end_date_ymd] => 2024-12-19 14:10:06 [RateCDR] => 1 ) [2024-12-19 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:10:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:10:35] Production.INFO: count ==4270 [2024-12-19 14:10:37] Production.ERROR: pbx CDR StartTime 2024-12-19 11:10:06 - End Time 2024-12-19 14:10:06 [2024-12-19 14:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056011', 'tblTempUsageDetail_20' ) start [2024-12-19 14:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056011', 'tblTempUsageDetail_20' ) end [2024-12-19 14:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056011', 'tblTempVendorCDR_20' ) start [2024-12-19 14:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056011', 'tblTempVendorCDR_20' ) end [2024-12-19 14:10:37] Production.INFO: ProcessCDR(1,14056011,1,1,2) [2024-12-19 14:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:10:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:10:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:10:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:10:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056011', 'tblTempUsageDetail_20' ) start [2024-12-19 14:10:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056011', 'tblTempUsageDetail_20' ) end [2024-12-19 14:10:41] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:10:41] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:10:41] Production.INFO: ==22457== Releasing lock... [2024-12-19 14:10:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:10:41] Production.INFO: 60 MB #Memory Used# [2024-12-19 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:11:05 [end_date_ymd] => 2024-12-19 14:11:05 [RateCDR] => 1 ) [2024-12-19 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:11:05' and `end` < '2024-12-19 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:11:27] Production.INFO: count ==4277 [2024-12-19 14:11:28] Production.ERROR: pbx CDR StartTime 2024-12-19 11:11:05 - End Time 2024-12-19 14:11:05 [2024-12-19 14:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056016', 'tblTempUsageDetail_20' ) start [2024-12-19 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056016', 'tblTempUsageDetail_20' ) end [2024-12-19 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056016', 'tblTempVendorCDR_20' ) start [2024-12-19 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056016', 'tblTempVendorCDR_20' ) end [2024-12-19 14:11:29] Production.INFO: ProcessCDR(1,14056016,1,1,2) [2024-12-19 14:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056016', 'tblTempUsageDetail_20' ) start [2024-12-19 14:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056016', 'tblTempUsageDetail_20' ) end [2024-12-19 14:11:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:11:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:11:33] Production.INFO: ==22529== Releasing lock... [2024-12-19 14:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:11:33] Production.INFO: 60 MB #Memory Used# [2024-12-19 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:12:05 [end_date_ymd] => 2024-12-19 14:12:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:12:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:12:23] Production.INFO: count ==4261 [2024-12-19 14:12:24] Production.ERROR: pbx CDR StartTime 2024-12-19 11:12:05 - End Time 2024-12-19 14:12:05 [2024-12-19 14:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056021', 'tblTempUsageDetail_20' ) start [2024-12-19 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056021', 'tblTempUsageDetail_20' ) end [2024-12-19 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056021', 'tblTempVendorCDR_20' ) start [2024-12-19 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056021', 'tblTempVendorCDR_20' ) end [2024-12-19 14:12:25] Production.INFO: ProcessCDR(1,14056021,1,1,2) [2024-12-19 14:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056021', 'tblTempUsageDetail_20' ) start [2024-12-19 14:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056021', 'tblTempUsageDetail_20' ) end [2024-12-19 14:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:12:29] Production.INFO: ==22644== Releasing lock... [2024-12-19 14:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:12:29] Production.INFO: 60 MB #Memory Used# [2024-12-19 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:13:04 [end_date_ymd] => 2024-12-19 14:13:04 [RateCDR] => 1 ) [2024-12-19 14: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` >= '2024-12-19 11:13:04' and `end` < '2024-12-19 14:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:13:17] Production.INFO: count ==4260 [2024-12-19 14:13:19] Production.ERROR: pbx CDR StartTime 2024-12-19 11:13:04 - End Time 2024-12-19 14:13:04 [2024-12-19 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056026', 'tblTempUsageDetail_20' ) start [2024-12-19 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056026', 'tblTempUsageDetail_20' ) end [2024-12-19 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056026', 'tblTempVendorCDR_20' ) start [2024-12-19 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056026', 'tblTempVendorCDR_20' ) end [2024-12-19 14:13:19] Production.INFO: ProcessCDR(1,14056026,1,1,2) [2024-12-19 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056026', 'tblTempUsageDetail_20' ) start [2024-12-19 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056026', 'tblTempUsageDetail_20' ) end [2024-12-19 14:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:13:23] Production.INFO: ==22718== Releasing lock... [2024-12-19 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:13:23] Production.INFO: 60 MB #Memory Used# [2024-12-19 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:14:05 [end_date_ymd] => 2024-12-19 14:14:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:14:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:14:24] Production.INFO: count ==4247 [2024-12-19 14:14:26] Production.ERROR: pbx CDR StartTime 2024-12-19 11:14:05 - End Time 2024-12-19 14:14:05 [2024-12-19 14:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056031', 'tblTempUsageDetail_20' ) start [2024-12-19 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056031', 'tblTempUsageDetail_20' ) end [2024-12-19 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056031', 'tblTempVendorCDR_20' ) start [2024-12-19 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056031', 'tblTempVendorCDR_20' ) end [2024-12-19 14:14:26] Production.INFO: ProcessCDR(1,14056031,1,1,2) [2024-12-19 14:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056031', 'tblTempUsageDetail_20' ) start [2024-12-19 14:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056031', 'tblTempUsageDetail_20' ) end [2024-12-19 14:14:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:14:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:14:30] Production.INFO: ==22793== Releasing lock... [2024-12-19 14:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:14:30] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:15:05 [end_date_ymd] => 2024-12-19 14:15:05 [RateCDR] => 1 ) [2024-12-19 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:15:05' and `end` < '2024-12-19 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:15:18] Production.INFO: count ==4248 [2024-12-19 14:15:20] Production.ERROR: pbx CDR StartTime 2024-12-19 11:15:05 - End Time 2024-12-19 14:15:05 [2024-12-19 14:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056036', 'tblTempUsageDetail_20' ) start [2024-12-19 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056036', 'tblTempUsageDetail_20' ) end [2024-12-19 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056036', 'tblTempVendorCDR_20' ) start [2024-12-19 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056036', 'tblTempVendorCDR_20' ) end [2024-12-19 14:15:20] Production.INFO: ProcessCDR(1,14056036,1,1,2) [2024-12-19 14:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056036', 'tblTempUsageDetail_20' ) start [2024-12-19 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056036', 'tblTempUsageDetail_20' ) end [2024-12-19 14:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:15:24] Production.INFO: ==22871== Releasing lock... [2024-12-19 14:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:15:24] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:16:05 [end_date_ymd] => 2024-12-19 14:16:05 [RateCDR] => 1 ) [2024-12-19 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:16:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:16:26] Production.INFO: count ==4245 [2024-12-19 14:16:27] Production.ERROR: pbx CDR StartTime 2024-12-19 11:16:05 - End Time 2024-12-19 14:16:05 [2024-12-19 14:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056041', 'tblTempUsageDetail_20' ) start [2024-12-19 14:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056041', 'tblTempUsageDetail_20' ) end [2024-12-19 14:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056041', 'tblTempVendorCDR_20' ) start [2024-12-19 14:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056041', 'tblTempVendorCDR_20' ) end [2024-12-19 14:16:28] Production.INFO: ProcessCDR(1,14056041,1,1,2) [2024-12-19 14:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056041', 'tblTempUsageDetail_20' ) start [2024-12-19 14:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056041', 'tblTempUsageDetail_20' ) end [2024-12-19 14:16:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:16:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:16:32] Production.INFO: ==22943== Releasing lock... [2024-12-19 14:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:16:32] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:17:04 [end_date_ymd] => 2024-12-19 14:17:04 [RateCDR] => 1 ) [2024-12-19 14: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` >= '2024-12-19 11:17:04' and `end` < '2024-12-19 14: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 ,'') [2024-12-19 14:17:20] Production.INFO: count ==4249 [2024-12-19 14:17:22] Production.ERROR: pbx CDR StartTime 2024-12-19 11:17:04 - End Time 2024-12-19 14:17:04 [2024-12-19 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056046', 'tblTempUsageDetail_20' ) start [2024-12-19 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056046', 'tblTempUsageDetail_20' ) end [2024-12-19 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056046', 'tblTempVendorCDR_20' ) start [2024-12-19 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056046', 'tblTempVendorCDR_20' ) end [2024-12-19 14:17:22] Production.INFO: ProcessCDR(1,14056046,1,1,2) [2024-12-19 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056046', 'tblTempUsageDetail_20' ) start [2024-12-19 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056046', 'tblTempUsageDetail_20' ) end [2024-12-19 14:17:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:17:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:17:27] Production.INFO: ==23013== Releasing lock... [2024-12-19 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:17:27] Production.INFO: 59.75 MB #Memory Used# [2024-12-19 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:18:05 [end_date_ymd] => 2024-12-19 14:18:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:18:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:18:27] Production.INFO: count ==4291 [2024-12-19 14:18:29] Production.ERROR: pbx CDR StartTime 2024-12-19 11:18:05 - End Time 2024-12-19 14:18:05 [2024-12-19 14:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056051', 'tblTempUsageDetail_20' ) start [2024-12-19 14:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056051', 'tblTempUsageDetail_20' ) end [2024-12-19 14:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056051', 'tblTempVendorCDR_20' ) start [2024-12-19 14:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056051', 'tblTempVendorCDR_20' ) end [2024-12-19 14:18:29] Production.INFO: ProcessCDR(1,14056051,1,1,2) [2024-12-19 14:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056051', 'tblTempUsageDetail_20' ) start [2024-12-19 14:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056051', 'tblTempUsageDetail_20' ) end [2024-12-19 14:18:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:18:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:18:33] Production.INFO: ==23086== Releasing lock... [2024-12-19 14:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:18:33] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 14:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:19:04 [end_date_ymd] => 2024-12-19 14:19:04 [RateCDR] => 1 ) [2024-12-19 14: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` >= '2024-12-19 11:19:04' and `end` < '2024-12-19 14: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 ,'') [2024-12-19 14:19:21] Production.INFO: count ==4295 [2024-12-19 14:19:23] Production.ERROR: pbx CDR StartTime 2024-12-19 11:19:04 - End Time 2024-12-19 14:19:04 [2024-12-19 14:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056056', 'tblTempUsageDetail_20' ) start [2024-12-19 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056056', 'tblTempUsageDetail_20' ) end [2024-12-19 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056056', 'tblTempVendorCDR_20' ) start [2024-12-19 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056056', 'tblTempVendorCDR_20' ) end [2024-12-19 14:19:23] Production.INFO: ProcessCDR(1,14056056,1,1,2) [2024-12-19 14:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056056', 'tblTempUsageDetail_20' ) start [2024-12-19 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056056', 'tblTempUsageDetail_20' ) end [2024-12-19 14:19:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:19:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:19:28] Production.INFO: ==23163== Releasing lock... [2024-12-19 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:19:28] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:20:06 [end_date_ymd] => 2024-12-19 14:20:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:20:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:20:27] Production.INFO: count ==4307 [2024-12-19 14:20:28] Production.ERROR: pbx CDR StartTime 2024-12-19 11:20:06 - End Time 2024-12-19 14:20:06 [2024-12-19 14:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056062', 'tblTempUsageDetail_20' ) start [2024-12-19 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056062', 'tblTempUsageDetail_20' ) end [2024-12-19 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056062', 'tblTempVendorCDR_20' ) start [2024-12-19 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056062', 'tblTempVendorCDR_20' ) end [2024-12-19 14:20:28] Production.INFO: ProcessCDR(1,14056062,1,1,2) [2024-12-19 14:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056062', 'tblTempUsageDetail_20' ) start [2024-12-19 14:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056062', 'tblTempUsageDetail_20' ) end [2024-12-19 14:20:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:20:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:20:34] Production.INFO: ==23236== Releasing lock... [2024-12-19 14:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:20:34] Production.INFO: 60.25 MB #Memory Used# [2024-12-19 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:21:05 [end_date_ymd] => 2024-12-19 14:21:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:21:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:21:23] Production.INFO: count ==4367 [2024-12-19 14:21:24] Production.ERROR: pbx CDR StartTime 2024-12-19 11:21:05 - End Time 2024-12-19 14:21:05 [2024-12-19 14:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056067', 'tblTempUsageDetail_20' ) start [2024-12-19 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056067', 'tblTempUsageDetail_20' ) end [2024-12-19 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056067', 'tblTempVendorCDR_20' ) start [2024-12-19 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056067', 'tblTempVendorCDR_20' ) end [2024-12-19 14:21:25] Production.INFO: ProcessCDR(1,14056067,1,1,2) [2024-12-19 14:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056067', 'tblTempUsageDetail_20' ) start [2024-12-19 14:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056067', 'tblTempUsageDetail_20' ) end [2024-12-19 14:21:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:21:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:21:29] Production.INFO: ==23309== Releasing lock... [2024-12-19 14:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:21:29] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:22:05 [end_date_ymd] => 2024-12-19 14:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:22:18] Production.INFO: count ==4372 [2024-12-19 14:22:20] Production.ERROR: pbx CDR StartTime 2024-12-19 11:22:05 - End Time 2024-12-19 14:22:05 [2024-12-19 14:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056072', 'tblTempUsageDetail_20' ) start [2024-12-19 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056072', 'tblTempUsageDetail_20' ) end [2024-12-19 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056072', 'tblTempVendorCDR_20' ) start [2024-12-19 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056072', 'tblTempVendorCDR_20' ) end [2024-12-19 14:22:20] Production.INFO: ProcessCDR(1,14056072,1,1,2) [2024-12-19 14:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056072', 'tblTempUsageDetail_20' ) start [2024-12-19 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056072', 'tblTempUsageDetail_20' ) end [2024-12-19 14:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:22:24] Production.INFO: ==23382== Releasing lock... [2024-12-19 14:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:22:24] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 14:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:23:04 [end_date_ymd] => 2024-12-19 14:23:04 [RateCDR] => 1 ) [2024-12-19 14:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:23:04' and `end` < '2024-12-19 14:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:23:18] Production.INFO: count ==4366 [2024-12-19 14:23:20] Production.ERROR: pbx CDR StartTime 2024-12-19 11:23:04 - End Time 2024-12-19 14:23:04 [2024-12-19 14:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056077', 'tblTempUsageDetail_20' ) start [2024-12-19 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056077', 'tblTempUsageDetail_20' ) end [2024-12-19 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056077', 'tblTempVendorCDR_20' ) start [2024-12-19 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056077', 'tblTempVendorCDR_20' ) end [2024-12-19 14:23:20] Production.INFO: ProcessCDR(1,14056077,1,1,2) [2024-12-19 14:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056077', 'tblTempUsageDetail_20' ) start [2024-12-19 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056077', 'tblTempUsageDetail_20' ) end [2024-12-19 14:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:23:24] Production.INFO: ==23450== Releasing lock... [2024-12-19 14:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:23:24] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:24:05 [end_date_ymd] => 2024-12-19 14:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:24:24] Production.INFO: count ==4372 [2024-12-19 14:24:25] Production.ERROR: pbx CDR StartTime 2024-12-19 11:24:05 - End Time 2024-12-19 14:24:05 [2024-12-19 14:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056082', 'tblTempUsageDetail_20' ) start [2024-12-19 14:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056082', 'tblTempUsageDetail_20' ) end [2024-12-19 14:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056082', 'tblTempVendorCDR_20' ) start [2024-12-19 14:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056082', 'tblTempVendorCDR_20' ) end [2024-12-19 14:24:25] Production.INFO: ProcessCDR(1,14056082,1,1,2) [2024-12-19 14:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056082', 'tblTempUsageDetail_20' ) start [2024-12-19 14:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056082', 'tblTempUsageDetail_20' ) end [2024-12-19 14:24:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:24:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:24:30] Production.INFO: ==23524== Releasing lock... [2024-12-19 14:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:24:30] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:25:05 [end_date_ymd] => 2024-12-19 14:25:05 [RateCDR] => 1 ) [2024-12-19 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:25:05' and `end` < '2024-12-19 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:25:28] Production.INFO: count ==4384 [2024-12-19 14:25:30] Production.ERROR: pbx CDR StartTime 2024-12-19 11:25:05 - End Time 2024-12-19 14:25:05 [2024-12-19 14:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056087', 'tblTempUsageDetail_20' ) start [2024-12-19 14:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056087', 'tblTempUsageDetail_20' ) end [2024-12-19 14:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056087', 'tblTempVendorCDR_20' ) start [2024-12-19 14:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056087', 'tblTempVendorCDR_20' ) end [2024-12-19 14:25:30] Production.INFO: ProcessCDR(1,14056087,1,1,2) [2024-12-19 14:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056087', 'tblTempUsageDetail_20' ) start [2024-12-19 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056087', 'tblTempUsageDetail_20' ) end [2024-12-19 14:25:34] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:25:34] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:25:34] Production.INFO: ==23596== Releasing lock... [2024-12-19 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:25:34] Production.INFO: 60.75 MB #Memory Used# [2024-12-19 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:26:05 [end_date_ymd] => 2024-12-19 14:26:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:26:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:26:28] Production.INFO: count ==4397 [2024-12-19 14:26:29] Production.ERROR: pbx CDR StartTime 2024-12-19 11:26:05 - End Time 2024-12-19 14:26:05 [2024-12-19 14:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056092', 'tblTempUsageDetail_20' ) start [2024-12-19 14:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056092', 'tblTempUsageDetail_20' ) end [2024-12-19 14:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056092', 'tblTempVendorCDR_20' ) start [2024-12-19 14:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056092', 'tblTempVendorCDR_20' ) end [2024-12-19 14:26:30] Production.INFO: ProcessCDR(1,14056092,1,1,2) [2024-12-19 14:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056092', 'tblTempUsageDetail_20' ) start [2024-12-19 14:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056092', 'tblTempUsageDetail_20' ) end [2024-12-19 14:26:34] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:26:34] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:26:34] Production.INFO: ==23667== Releasing lock... [2024-12-19 14:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:26:34] Production.INFO: 61 MB #Memory Used# [2024-12-19 14:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:27:04 [end_date_ymd] => 2024-12-19 14:27:04 [RateCDR] => 1 ) [2024-12-19 14:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:27:04' and `end` < '2024-12-19 14:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:27:33] Production.INFO: count ==4395 [2024-12-19 14:27:35] Production.ERROR: pbx CDR StartTime 2024-12-19 11:27:04 - End Time 2024-12-19 14:27:04 [2024-12-19 14:27:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056097', 'tblTempUsageDetail_20' ) start [2024-12-19 14:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056097', 'tblTempUsageDetail_20' ) end [2024-12-19 14:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056097', 'tblTempVendorCDR_20' ) start [2024-12-19 14:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056097', 'tblTempVendorCDR_20' ) end [2024-12-19 14:27:35] Production.INFO: ProcessCDR(1,14056097,1,1,2) [2024-12-19 14:27:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:27:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:27:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:27:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056097', 'tblTempUsageDetail_20' ) start [2024-12-19 14:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056097', 'tblTempUsageDetail_20' ) end [2024-12-19 14:27:39] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:27:39] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:27:39] Production.INFO: ==23739== Releasing lock... [2024-12-19 14:27:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:27:39] Production.INFO: 61 MB #Memory Used# [2024-12-19 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:28:05 [end_date_ymd] => 2024-12-19 14:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:28:27] Production.INFO: count ==4403 [2024-12-19 14:28:29] Production.ERROR: pbx CDR StartTime 2024-12-19 11:28:05 - End Time 2024-12-19 14:28:05 [2024-12-19 14:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056102', 'tblTempUsageDetail_20' ) start [2024-12-19 14:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056102', 'tblTempUsageDetail_20' ) end [2024-12-19 14:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056102', 'tblTempVendorCDR_20' ) start [2024-12-19 14:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056102', 'tblTempVendorCDR_20' ) end [2024-12-19 14:28:29] Production.INFO: ProcessCDR(1,14056102,1,1,2) [2024-12-19 14:28:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:28:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:28:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:28:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056102', 'tblTempUsageDetail_20' ) start [2024-12-19 14:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056102', 'tblTempUsageDetail_20' ) end [2024-12-19 14:28:34] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:28:34] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:28:34] Production.INFO: ==23850== Releasing lock... [2024-12-19 14:28:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:28:34] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:29:05 [end_date_ymd] => 2024-12-19 14:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:29:29] Production.INFO: count ==4403 [2024-12-19 14:29:31] Production.ERROR: pbx CDR StartTime 2024-12-19 11:29:05 - End Time 2024-12-19 14:29:05 [2024-12-19 14:29:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056107', 'tblTempUsageDetail_20' ) start [2024-12-19 14:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056107', 'tblTempUsageDetail_20' ) end [2024-12-19 14:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056107', 'tblTempVendorCDR_20' ) start [2024-12-19 14:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056107', 'tblTempVendorCDR_20' ) end [2024-12-19 14:29:31] Production.INFO: ProcessCDR(1,14056107,1,1,2) [2024-12-19 14:29:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:29:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:29:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056107', 'tblTempUsageDetail_20' ) start [2024-12-19 14:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056107', 'tblTempUsageDetail_20' ) end [2024-12-19 14:29:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:29:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:29:35] Production.INFO: ==23923== Releasing lock... [2024-12-19 14:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:29:35] Production.INFO: 61 MB #Memory Used# [2024-12-19 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:30:05 [end_date_ymd] => 2024-12-19 14:30:05 [RateCDR] => 1 ) [2024-12-19 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:30:05' and `end` < '2024-12-19 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:30:25] Production.INFO: count ==4449 [2024-12-19 14:30:27] Production.ERROR: pbx CDR StartTime 2024-12-19 11:30:05 - End Time 2024-12-19 14:30:05 [2024-12-19 14:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056113', 'tblTempUsageDetail_20' ) start [2024-12-19 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056113', 'tblTempUsageDetail_20' ) end [2024-12-19 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056113', 'tblTempVendorCDR_20' ) start [2024-12-19 14:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056113', 'tblTempVendorCDR_20' ) end [2024-12-19 14:30:27] Production.INFO: ProcessCDR(1,14056113,1,1,2) [2024-12-19 14:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056113', 'tblTempUsageDetail_20' ) start [2024-12-19 14:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056113', 'tblTempUsageDetail_20' ) end [2024-12-19 14:30:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:30:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:30:32] Production.INFO: ==24001== Releasing lock... [2024-12-19 14:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:30:32] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:31:05 [end_date_ymd] => 2024-12-19 14:31:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:31:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:31:25] Production.INFO: count ==4452 [2024-12-19 14:31:26] Production.ERROR: pbx CDR StartTime 2024-12-19 11:31:05 - End Time 2024-12-19 14:31:05 [2024-12-19 14:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056118', 'tblTempUsageDetail_20' ) start [2024-12-19 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056118', 'tblTempUsageDetail_20' ) end [2024-12-19 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056118', 'tblTempVendorCDR_20' ) start [2024-12-19 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056118', 'tblTempVendorCDR_20' ) end [2024-12-19 14:31:26] Production.INFO: ProcessCDR(1,14056118,1,1,2) [2024-12-19 14:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056118', 'tblTempUsageDetail_20' ) start [2024-12-19 14:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056118', 'tblTempUsageDetail_20' ) end [2024-12-19 14:31:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:31:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:31:31] Production.INFO: ==24082== Releasing lock... [2024-12-19 14:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:31:31] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 14:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:32:04 [end_date_ymd] => 2024-12-19 14:32:04 [RateCDR] => 1 ) [2024-12-19 14:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:32:04' and `end` < '2024-12-19 14:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:32:29] Production.INFO: count ==4445 [2024-12-19 14:32:31] Production.ERROR: pbx CDR StartTime 2024-12-19 11:32:04 - End Time 2024-12-19 14:32:04 [2024-12-19 14:32:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056123', 'tblTempUsageDetail_20' ) start [2024-12-19 14:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056123', 'tblTempUsageDetail_20' ) end [2024-12-19 14:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056123', 'tblTempVendorCDR_20' ) start [2024-12-19 14:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056123', 'tblTempVendorCDR_20' ) end [2024-12-19 14:32:31] Production.INFO: ProcessCDR(1,14056123,1,1,2) [2024-12-19 14:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056123', 'tblTempUsageDetail_20' ) start [2024-12-19 14:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056123', 'tblTempUsageDetail_20' ) end [2024-12-19 14:32:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:32:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:32:35] Production.INFO: ==24159== Releasing lock... [2024-12-19 14:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:32:35] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:33:05 [end_date_ymd] => 2024-12-19 14:33:05 [RateCDR] => 1 ) [2024-12-19 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:33:05' and `end` < '2024-12-19 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:33:27] Production.INFO: count ==4477 [2024-12-19 14:33:28] Production.ERROR: pbx CDR StartTime 2024-12-19 11:33:05 - End Time 2024-12-19 14:33:05 [2024-12-19 14:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056128', 'tblTempUsageDetail_20' ) start [2024-12-19 14:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056128', 'tblTempUsageDetail_20' ) end [2024-12-19 14:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056128', 'tblTempVendorCDR_20' ) start [2024-12-19 14:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056128', 'tblTempVendorCDR_20' ) end [2024-12-19 14:33:29] Production.INFO: ProcessCDR(1,14056128,1,1,2) [2024-12-19 14:33:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056128', 'tblTempUsageDetail_20' ) start [2024-12-19 14:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056128', 'tblTempUsageDetail_20' ) end [2024-12-19 14:33:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:33:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:33:33] Production.INFO: ==24245== Releasing lock... [2024-12-19 14:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:33:33] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 14:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:34:04 [end_date_ymd] => 2024-12-19 14:34:04 [RateCDR] => 1 ) [2024-12-19 14:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:34:04' and `end` < '2024-12-19 14:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:34:24] Production.INFO: count ==4508 [2024-12-19 14:34:26] Production.ERROR: pbx CDR StartTime 2024-12-19 11:34:04 - End Time 2024-12-19 14:34:04 [2024-12-19 14:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056133', 'tblTempUsageDetail_20' ) start [2024-12-19 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056133', 'tblTempUsageDetail_20' ) end [2024-12-19 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056133', 'tblTempVendorCDR_20' ) start [2024-12-19 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056133', 'tblTempVendorCDR_20' ) end [2024-12-19 14:34:26] Production.INFO: ProcessCDR(1,14056133,1,1,2) [2024-12-19 14:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056133', 'tblTempUsageDetail_20' ) start [2024-12-19 14:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056133', 'tblTempUsageDetail_20' ) end [2024-12-19 14:34:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:34:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:34:31] Production.INFO: ==24329== Releasing lock... [2024-12-19 14:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:34:31] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:35:05 [end_date_ymd] => 2024-12-19 14:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:35:23] Production.INFO: count ==4524 [2024-12-19 14:35:25] Production.ERROR: pbx CDR StartTime 2024-12-19 11:35:05 - End Time 2024-12-19 14:35:05 [2024-12-19 14:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056138', 'tblTempUsageDetail_20' ) start [2024-12-19 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056138', 'tblTempUsageDetail_20' ) end [2024-12-19 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056138', 'tblTempVendorCDR_20' ) start [2024-12-19 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056138', 'tblTempVendorCDR_20' ) end [2024-12-19 14:35:25] Production.INFO: ProcessCDR(1,14056138,1,1,2) [2024-12-19 14:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056138', 'tblTempUsageDetail_20' ) start [2024-12-19 14:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056138', 'tblTempUsageDetail_20' ) end [2024-12-19 14:35:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:35:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:35:30] Production.INFO: ==24422== Releasing lock... [2024-12-19 14:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:35:30] Production.INFO: 62 MB #Memory Used# [2024-12-19 14:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:36:04 [end_date_ymd] => 2024-12-19 14:36:04 [RateCDR] => 1 ) [2024-12-19 14:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:36:04' and `end` < '2024-12-19 14:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:36:23] Production.INFO: count ==4535 [2024-12-19 14:36:25] Production.ERROR: pbx CDR StartTime 2024-12-19 11:36:04 - End Time 2024-12-19 14:36:04 [2024-12-19 14:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056143', 'tblTempUsageDetail_20' ) start [2024-12-19 14:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056143', 'tblTempUsageDetail_20' ) end [2024-12-19 14:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056143', 'tblTempVendorCDR_20' ) start [2024-12-19 14:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056143', 'tblTempVendorCDR_20' ) end [2024-12-19 14:36:25] Production.INFO: ProcessCDR(1,14056143,1,1,2) [2024-12-19 14:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056143', 'tblTempUsageDetail_20' ) start [2024-12-19 14:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056143', 'tblTempUsageDetail_20' ) end [2024-12-19 14:36:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:36:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:36:30] Production.INFO: ==24505== Releasing lock... [2024-12-19 14:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:36:30] Production.INFO: 62 MB #Memory Used# [2024-12-19 14:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:37:04 [end_date_ymd] => 2024-12-19 14:37:04 [RateCDR] => 1 ) [2024-12-19 14: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` >= '2024-12-19 11:37:04' and `end` < '2024-12-19 14: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 ,'') [2024-12-19 14:37:23] Production.INFO: count ==4540 [2024-12-19 14:37:24] Production.ERROR: pbx CDR StartTime 2024-12-19 11:37:04 - End Time 2024-12-19 14:37:04 [2024-12-19 14:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056148', 'tblTempUsageDetail_20' ) start [2024-12-19 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056148', 'tblTempUsageDetail_20' ) end [2024-12-19 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056148', 'tblTempVendorCDR_20' ) start [2024-12-19 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056148', 'tblTempVendorCDR_20' ) end [2024-12-19 14:37:25] Production.INFO: ProcessCDR(1,14056148,1,1,2) [2024-12-19 14:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056148', 'tblTempUsageDetail_20' ) start [2024-12-19 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056148', 'tblTempUsageDetail_20' ) end [2024-12-19 14:37:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:37:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:37:29] Production.INFO: ==24586== Releasing lock... [2024-12-19 14:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:37:29] Production.INFO: 62 MB #Memory Used# [2024-12-19 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:38:05 [end_date_ymd] => 2024-12-19 14:38:05 [RateCDR] => 1 ) [2024-12-19 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:38:05' and `end` < '2024-12-19 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:38:23] Production.INFO: count ==4531 [2024-12-19 14:38:24] Production.ERROR: pbx CDR StartTime 2024-12-19 11:38:05 - End Time 2024-12-19 14:38:05 [2024-12-19 14:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056153', 'tblTempUsageDetail_20' ) start [2024-12-19 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056153', 'tblTempUsageDetail_20' ) end [2024-12-19 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056153', 'tblTempVendorCDR_20' ) start [2024-12-19 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056153', 'tblTempVendorCDR_20' ) end [2024-12-19 14:38:24] Production.INFO: ProcessCDR(1,14056153,1,1,2) [2024-12-19 14:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056153', 'tblTempUsageDetail_20' ) start [2024-12-19 14:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056153', 'tblTempUsageDetail_20' ) end [2024-12-19 14:38:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:38:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:38:29] Production.INFO: ==24670== Releasing lock... [2024-12-19 14:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:38:29] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:39:04 [end_date_ymd] => 2024-12-19 14:39:04 [RateCDR] => 1 ) [2024-12-19 14:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:39:04' and `end` < '2024-12-19 14:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:39:23] Production.INFO: count ==4528 [2024-12-19 14:39:25] Production.ERROR: pbx CDR StartTime 2024-12-19 11:39:04 - End Time 2024-12-19 14:39:04 [2024-12-19 14:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056158', 'tblTempUsageDetail_20' ) start [2024-12-19 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056158', 'tblTempUsageDetail_20' ) end [2024-12-19 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056158', 'tblTempVendorCDR_20' ) start [2024-12-19 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056158', 'tblTempVendorCDR_20' ) end [2024-12-19 14:39:25] Production.INFO: ProcessCDR(1,14056158,1,1,2) [2024-12-19 14:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056158', 'tblTempUsageDetail_20' ) start [2024-12-19 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056158', 'tblTempUsageDetail_20' ) end [2024-12-19 14:39:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:39:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:39:29] Production.INFO: ==24751== Releasing lock... [2024-12-19 14:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:39:29] Production.INFO: 62 MB #Memory Used# [2024-12-19 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:40:06 [end_date_ymd] => 2024-12-19 14:40:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:40:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:40:29] Production.INFO: count ==4530 [2024-12-19 14:40:30] Production.ERROR: pbx CDR StartTime 2024-12-19 11:40:06 - End Time 2024-12-19 14:40:06 [2024-12-19 14:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056164', 'tblTempUsageDetail_20' ) start [2024-12-19 14:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056164', 'tblTempUsageDetail_20' ) end [2024-12-19 14:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056164', 'tblTempVendorCDR_20' ) start [2024-12-19 14:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056164', 'tblTempVendorCDR_20' ) end [2024-12-19 14:40:31] Production.INFO: ProcessCDR(1,14056164,1,1,2) [2024-12-19 14:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056164', 'tblTempUsageDetail_20' ) start [2024-12-19 14:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056164', 'tblTempUsageDetail_20' ) end [2024-12-19 14:40:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:40:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:40:35] Production.INFO: ==24837== Releasing lock... [2024-12-19 14:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:40:35] Production.INFO: 62 MB #Memory Used# [2024-12-19 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:41:04 [end_date_ymd] => 2024-12-19 14:41:04 [RateCDR] => 1 ) [2024-12-19 14:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:41:04' and `end` < '2024-12-19 14:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:41:29] Production.INFO: count ==4549 [2024-12-19 14:41:31] Production.ERROR: pbx CDR StartTime 2024-12-19 11:41:04 - End Time 2024-12-19 14:41:04 [2024-12-19 14:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056169', 'tblTempUsageDetail_20' ) start [2024-12-19 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056169', 'tblTempUsageDetail_20' ) end [2024-12-19 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056169', 'tblTempVendorCDR_20' ) start [2024-12-19 14:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056169', 'tblTempVendorCDR_20' ) end [2024-12-19 14:41:31] Production.INFO: ProcessCDR(1,14056169,1,1,2) [2024-12-19 14:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056169', 'tblTempUsageDetail_20' ) start [2024-12-19 14:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056169', 'tblTempUsageDetail_20' ) end [2024-12-19 14:41:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:41:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:41:35] Production.INFO: ==24924== Releasing lock... [2024-12-19 14:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:41:35] Production.INFO: 62 MB #Memory Used# [2024-12-19 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:42:05 [end_date_ymd] => 2024-12-19 14:42:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:42:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:42:22] Production.INFO: count ==4549 [2024-12-19 14:42:23] Production.ERROR: pbx CDR StartTime 2024-12-19 11:42:05 - End Time 2024-12-19 14:42:05 [2024-12-19 14:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056174', 'tblTempUsageDetail_20' ) start [2024-12-19 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056174', 'tblTempUsageDetail_20' ) end [2024-12-19 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056174', 'tblTempVendorCDR_20' ) start [2024-12-19 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056174', 'tblTempVendorCDR_20' ) end [2024-12-19 14:42:23] Production.INFO: ProcessCDR(1,14056174,1,1,2) [2024-12-19 14:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056174', 'tblTempUsageDetail_20' ) start [2024-12-19 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056174', 'tblTempUsageDetail_20' ) end [2024-12-19 14:42:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:42:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:42:28] Production.INFO: ==25007== Releasing lock... [2024-12-19 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:42:28] Production.INFO: 62 MB #Memory Used# [2024-12-19 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:43:04 [end_date_ymd] => 2024-12-19 14:43:04 [RateCDR] => 1 ) [2024-12-19 14:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:43:04' and `end` < '2024-12-19 14:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:43:31] Production.INFO: count ==4548 [2024-12-19 14:43:33] Production.ERROR: pbx CDR StartTime 2024-12-19 11:43:04 - End Time 2024-12-19 14:43:04 [2024-12-19 14:43:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056179', 'tblTempUsageDetail_20' ) start [2024-12-19 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056179', 'tblTempUsageDetail_20' ) end [2024-12-19 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056179', 'tblTempVendorCDR_20' ) start [2024-12-19 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056179', 'tblTempVendorCDR_20' ) end [2024-12-19 14:43:33] Production.INFO: ProcessCDR(1,14056179,1,1,2) [2024-12-19 14:43:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:43:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:43:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:43:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056179', 'tblTempUsageDetail_20' ) start [2024-12-19 14:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056179', 'tblTempUsageDetail_20' ) end [2024-12-19 14:43:38] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:43:38] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:43:38] Production.INFO: ==25129== Releasing lock... [2024-12-19 14:43:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:43:38] Production.INFO: 62 MB #Memory Used# [2024-12-19 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:44:05 [end_date_ymd] => 2024-12-19 14:44:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:44:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:44:30] Production.INFO: count ==4568 [2024-12-19 14:44:32] Production.ERROR: pbx CDR StartTime 2024-12-19 11:44:05 - End Time 2024-12-19 14:44:05 [2024-12-19 14:44:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056184', 'tblTempUsageDetail_20' ) start [2024-12-19 14:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056184', 'tblTempUsageDetail_20' ) end [2024-12-19 14:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056184', 'tblTempVendorCDR_20' ) start [2024-12-19 14:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056184', 'tblTempVendorCDR_20' ) end [2024-12-19 14:44:32] Production.INFO: ProcessCDR(1,14056184,1,1,2) [2024-12-19 14:44:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:44:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:44:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:44:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056184', 'tblTempUsageDetail_20' ) start [2024-12-19 14:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056184', 'tblTempUsageDetail_20' ) end [2024-12-19 14:44:36] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:44:37] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:44:37] Production.INFO: ==25213== Releasing lock... [2024-12-19 14:44:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:44:37] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:45:05 [end_date_ymd] => 2024-12-19 14:45:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:45:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:45:27] Production.INFO: count ==4568 [2024-12-19 14:45:29] Production.ERROR: pbx CDR StartTime 2024-12-19 11:45:05 - End Time 2024-12-19 14:45:05 [2024-12-19 14:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056189', 'tblTempUsageDetail_20' ) start [2024-12-19 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056189', 'tblTempUsageDetail_20' ) end [2024-12-19 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056189', 'tblTempVendorCDR_20' ) start [2024-12-19 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056189', 'tblTempVendorCDR_20' ) end [2024-12-19 14:45:29] Production.INFO: ProcessCDR(1,14056189,1,1,2) [2024-12-19 14:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056189', 'tblTempUsageDetail_20' ) start [2024-12-19 14:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056189', 'tblTempUsageDetail_20' ) end [2024-12-19 14:45:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:45:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:45:33] Production.INFO: ==25301== Releasing lock... [2024-12-19 14:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:45:33] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 14:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:46:04 [end_date_ymd] => 2024-12-19 14:46:04 [RateCDR] => 1 ) [2024-12-19 14: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` >= '2024-12-19 11:46:04' and `end` < '2024-12-19 14: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 ,'') [2024-12-19 14:46:21] Production.INFO: count ==4566 [2024-12-19 14:46:23] Production.ERROR: pbx CDR StartTime 2024-12-19 11:46:04 - End Time 2024-12-19 14:46:04 [2024-12-19 14:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056194', 'tblTempUsageDetail_20' ) start [2024-12-19 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056194', 'tblTempUsageDetail_20' ) end [2024-12-19 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056194', 'tblTempVendorCDR_20' ) start [2024-12-19 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056194', 'tblTempVendorCDR_20' ) end [2024-12-19 14:46:23] Production.INFO: ProcessCDR(1,14056194,1,1,2) [2024-12-19 14:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056194', 'tblTempUsageDetail_20' ) start [2024-12-19 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056194', 'tblTempUsageDetail_20' ) end [2024-12-19 14:46:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:46:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:46:27] Production.INFO: ==25383== Releasing lock... [2024-12-19 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:46:27] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:47:05 [end_date_ymd] => 2024-12-19 14:47:05 [RateCDR] => 1 ) [2024-12-19 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:47:05' and `end` < '2024-12-19 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:47:22] Production.INFO: count ==4572 [2024-12-19 14:47:24] Production.ERROR: pbx CDR StartTime 2024-12-19 11:47:05 - End Time 2024-12-19 14:47:05 [2024-12-19 14:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056199', 'tblTempUsageDetail_20' ) start [2024-12-19 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056199', 'tblTempUsageDetail_20' ) end [2024-12-19 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056199', 'tblTempVendorCDR_20' ) start [2024-12-19 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056199', 'tblTempVendorCDR_20' ) end [2024-12-19 14:47:24] Production.INFO: ProcessCDR(1,14056199,1,1,2) [2024-12-19 14:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056199', 'tblTempUsageDetail_20' ) start [2024-12-19 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056199', 'tblTempUsageDetail_20' ) end [2024-12-19 14:47:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:47:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:47:28] Production.INFO: ==25467== Releasing lock... [2024-12-19 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:47:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 14:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:48:04 [end_date_ymd] => 2024-12-19 14:48:04 [RateCDR] => 1 ) [2024-12-19 14: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` >= '2024-12-19 11:48:04' and `end` < '2024-12-19 14: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 ,'') [2024-12-19 14:48:24] Production.INFO: count ==4583 [2024-12-19 14:48:26] Production.ERROR: pbx CDR StartTime 2024-12-19 11:48:04 - End Time 2024-12-19 14:48:04 [2024-12-19 14:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056204', 'tblTempUsageDetail_20' ) start [2024-12-19 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056204', 'tblTempUsageDetail_20' ) end [2024-12-19 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056204', 'tblTempVendorCDR_20' ) start [2024-12-19 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056204', 'tblTempVendorCDR_20' ) end [2024-12-19 14:48:26] Production.INFO: ProcessCDR(1,14056204,1,1,2) [2024-12-19 14:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056204', 'tblTempUsageDetail_20' ) start [2024-12-19 14:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056204', 'tblTempUsageDetail_20' ) end [2024-12-19 14:48:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:48:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:48:31] Production.INFO: ==25548== Releasing lock... [2024-12-19 14:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:48:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 14:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:49:04 [end_date_ymd] => 2024-12-19 14:49:04 [RateCDR] => 1 ) [2024-12-19 14: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` >= '2024-12-19 11:49:04' and `end` < '2024-12-19 14: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 ,'') [2024-12-19 14:49:23] Production.INFO: count ==4588 [2024-12-19 14:49:25] Production.ERROR: pbx CDR StartTime 2024-12-19 11:49:04 - End Time 2024-12-19 14:49:04 [2024-12-19 14:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056209', 'tblTempUsageDetail_20' ) start [2024-12-19 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056209', 'tblTempUsageDetail_20' ) end [2024-12-19 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056209', 'tblTempVendorCDR_20' ) start [2024-12-19 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056209', 'tblTempVendorCDR_20' ) end [2024-12-19 14:49:25] Production.INFO: ProcessCDR(1,14056209,1,1,2) [2024-12-19 14:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056209', 'tblTempUsageDetail_20' ) start [2024-12-19 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056209', 'tblTempUsageDetail_20' ) end [2024-12-19 14:49:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:49:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:49:29] Production.INFO: ==25628== Releasing lock... [2024-12-19 14:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:49:29] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:50:06 [end_date_ymd] => 2024-12-19 14:50:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:50:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:50:33] Production.INFO: count ==4580 [2024-12-19 14:50:34] Production.ERROR: pbx CDR StartTime 2024-12-19 11:50:06 - End Time 2024-12-19 14:50:06 [2024-12-19 14:50:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056214', 'tblTempUsageDetail_20' ) start [2024-12-19 14:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056214', 'tblTempUsageDetail_20' ) end [2024-12-19 14:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056214', 'tblTempVendorCDR_20' ) start [2024-12-19 14:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056214', 'tblTempVendorCDR_20' ) end [2024-12-19 14:50:35] Production.INFO: ProcessCDR(1,14056214,1,1,2) [2024-12-19 14:50:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:50:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:50:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:50:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:50:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056214', 'tblTempUsageDetail_20' ) start [2024-12-19 14:50:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056214', 'tblTempUsageDetail_20' ) end [2024-12-19 14:50:39] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:50:39] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:50:39] Production.INFO: ==25714== Releasing lock... [2024-12-19 14:50:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:50:39] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:51:04 [end_date_ymd] => 2024-12-19 14:51:04 [RateCDR] => 1 ) [2024-12-19 14: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` >= '2024-12-19 11:51:04' and `end` < '2024-12-19 14: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 ,'') [2024-12-19 14:51:27] Production.INFO: count ==4559 [2024-12-19 14:51:29] Production.ERROR: pbx CDR StartTime 2024-12-19 11:51:04 - End Time 2024-12-19 14:51:04 [2024-12-19 14:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056220', 'tblTempUsageDetail_20' ) start [2024-12-19 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056220', 'tblTempUsageDetail_20' ) end [2024-12-19 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056220', 'tblTempVendorCDR_20' ) start [2024-12-19 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056220', 'tblTempVendorCDR_20' ) end [2024-12-19 14:51:29] Production.INFO: ProcessCDR(1,14056220,1,1,2) [2024-12-19 14:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056220', 'tblTempUsageDetail_20' ) start [2024-12-19 14:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056220', 'tblTempUsageDetail_20' ) end [2024-12-19 14:51:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:51:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:51:33] Production.INFO: ==25802== Releasing lock... [2024-12-19 14:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:51:33] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:52:04 [end_date_ymd] => 2024-12-19 14:52:04 [RateCDR] => 1 ) [2024-12-19 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:52:04' and `end` < '2024-12-19 14: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 ,'') [2024-12-19 14:52:22] Production.INFO: count ==4532 [2024-12-19 14:52:23] Production.ERROR: pbx CDR StartTime 2024-12-19 11:52:04 - End Time 2024-12-19 14:52:04 [2024-12-19 14:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056225', 'tblTempUsageDetail_20' ) start [2024-12-19 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056225', 'tblTempUsageDetail_20' ) end [2024-12-19 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056225', 'tblTempVendorCDR_20' ) start [2024-12-19 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056225', 'tblTempVendorCDR_20' ) end [2024-12-19 14:52:23] Production.INFO: ProcessCDR(1,14056225,1,1,2) [2024-12-19 14:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056225', 'tblTempUsageDetail_20' ) start [2024-12-19 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056225', 'tblTempUsageDetail_20' ) end [2024-12-19 14:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:52:28] Production.INFO: ==25882== Releasing lock... [2024-12-19 14:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:52:28] Production.INFO: 62 MB #Memory Used# [2024-12-19 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:53:04 [end_date_ymd] => 2024-12-19 14:53:04 [RateCDR] => 1 ) [2024-12-19 14:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:53:04' and `end` < '2024-12-19 14:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:53:18] Production.INFO: count ==4514 [2024-12-19 14:53:19] Production.ERROR: pbx CDR StartTime 2024-12-19 11:53:04 - End Time 2024-12-19 14:53:04 [2024-12-19 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056230', 'tblTempUsageDetail_20' ) start [2024-12-19 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056230', 'tblTempUsageDetail_20' ) end [2024-12-19 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056230', 'tblTempVendorCDR_20' ) start [2024-12-19 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056230', 'tblTempVendorCDR_20' ) end [2024-12-19 14:53:19] Production.INFO: ProcessCDR(1,14056230,1,1,2) [2024-12-19 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056230', 'tblTempUsageDetail_20' ) start [2024-12-19 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056230', 'tblTempUsageDetail_20' ) end [2024-12-19 14:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:53:24] Production.INFO: ==25964== Releasing lock... [2024-12-19 14:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:53:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:54:05 [end_date_ymd] => 2024-12-19 14:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:54:20] Production.INFO: count ==4472 [2024-12-19 14:54:21] Production.ERROR: pbx CDR StartTime 2024-12-19 11:54:05 - End Time 2024-12-19 14:54:05 [2024-12-19 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056235', 'tblTempUsageDetail_20' ) start [2024-12-19 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056235', 'tblTempUsageDetail_20' ) end [2024-12-19 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056235', 'tblTempVendorCDR_20' ) start [2024-12-19 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056235', 'tblTempVendorCDR_20' ) end [2024-12-19 14:54:21] Production.INFO: ProcessCDR(1,14056235,1,1,2) [2024-12-19 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056235', 'tblTempUsageDetail_20' ) start [2024-12-19 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056235', 'tblTempUsageDetail_20' ) end [2024-12-19 14:54:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:54:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:54:26] Production.INFO: ==26048== Releasing lock... [2024-12-19 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:54:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-19 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:55:05 [end_date_ymd] => 2024-12-19 14:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:55:25] Production.INFO: count ==4496 [2024-12-19 14:55:27] Production.ERROR: pbx CDR StartTime 2024-12-19 11:55:05 - End Time 2024-12-19 14:55:05 [2024-12-19 14:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056240', 'tblTempUsageDetail_20' ) start [2024-12-19 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056240', 'tblTempUsageDetail_20' ) end [2024-12-19 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056240', 'tblTempVendorCDR_20' ) start [2024-12-19 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056240', 'tblTempVendorCDR_20' ) end [2024-12-19 14:55:27] Production.INFO: ProcessCDR(1,14056240,1,1,2) [2024-12-19 14:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056240', 'tblTempUsageDetail_20' ) start [2024-12-19 14:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056240', 'tblTempUsageDetail_20' ) end [2024-12-19 14:55:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:55:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:55:32] Production.INFO: ==26132== Releasing lock... [2024-12-19 14:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:55:32] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 14:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:56:04 [end_date_ymd] => 2024-12-19 14:56:04 [RateCDR] => 1 ) [2024-12-19 14:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:56:04' and `end` < '2024-12-19 14:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:56:19] Production.INFO: count ==4514 [2024-12-19 14:56:20] Production.ERROR: pbx CDR StartTime 2024-12-19 11:56:04 - End Time 2024-12-19 14:56:04 [2024-12-19 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056245', 'tblTempUsageDetail_20' ) start [2024-12-19 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056245', 'tblTempUsageDetail_20' ) end [2024-12-19 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056245', 'tblTempVendorCDR_20' ) start [2024-12-19 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056245', 'tblTempVendorCDR_20' ) end [2024-12-19 14:56:21] Production.INFO: ProcessCDR(1,14056245,1,1,2) [2024-12-19 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056245', 'tblTempUsageDetail_20' ) start [2024-12-19 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056245', 'tblTempUsageDetail_20' ) end [2024-12-19 14:56:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:56:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:56:25] Production.INFO: ==26216== Releasing lock... [2024-12-19 14:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:56:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:57:05 [end_date_ymd] => 2024-12-19 14:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 11:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 14:57:19] Production.INFO: count ==4533 [2024-12-19 14:57:20] Production.ERROR: pbx CDR StartTime 2024-12-19 11:57:05 - End Time 2024-12-19 14:57:05 [2024-12-19 14:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056250', 'tblTempUsageDetail_20' ) start [2024-12-19 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056250', 'tblTempUsageDetail_20' ) end [2024-12-19 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056250', 'tblTempVendorCDR_20' ) start [2024-12-19 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056250', 'tblTempVendorCDR_20' ) end [2024-12-19 14:57:20] Production.INFO: ProcessCDR(1,14056250,1,1,2) [2024-12-19 14:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056250', 'tblTempUsageDetail_20' ) start [2024-12-19 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056250', 'tblTempUsageDetail_20' ) end [2024-12-19 14:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:57:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:57:25] Production.INFO: ==26300== Releasing lock... [2024-12-19 14:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:57:25] Production.INFO: 62 MB #Memory Used# [2024-12-19 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:58:04 [end_date_ymd] => 2024-12-19 14:58:04 [RateCDR] => 1 ) [2024-12-19 14:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:58:04' and `end` < '2024-12-19 14:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:58:17] Production.INFO: count ==4525 [2024-12-19 14:58:19] Production.ERROR: pbx CDR StartTime 2024-12-19 11:58:04 - End Time 2024-12-19 14:58:04 [2024-12-19 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056255', 'tblTempUsageDetail_20' ) start [2024-12-19 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056255', 'tblTempUsageDetail_20' ) end [2024-12-19 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056255', 'tblTempVendorCDR_20' ) start [2024-12-19 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056255', 'tblTempVendorCDR_20' ) end [2024-12-19 14:58:19] Production.INFO: ProcessCDR(1,14056255,1,1,2) [2024-12-19 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056255', 'tblTempUsageDetail_20' ) start [2024-12-19 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056255', 'tblTempUsageDetail_20' ) end [2024-12-19 14:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:58:24] Production.INFO: ==26382== Releasing lock... [2024-12-19 14:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:58:24] Production.INFO: 62 MB #Memory Used# [2024-12-19 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 11:59:05 [end_date_ymd] => 2024-12-19 14:59:05 [RateCDR] => 1 ) [2024-12-19 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 11:59:05' and `end` < '2024-12-19 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 14:59:18] Production.INFO: count ==4522 [2024-12-19 14:59:19] Production.ERROR: pbx CDR StartTime 2024-12-19 11:59:05 - End Time 2024-12-19 14:59:05 [2024-12-19 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056260', 'tblTempUsageDetail_20' ) start [2024-12-19 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056260', 'tblTempUsageDetail_20' ) end [2024-12-19 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056260', 'tblTempVendorCDR_20' ) start [2024-12-19 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056260', 'tblTempVendorCDR_20' ) end [2024-12-19 14:59:19] Production.INFO: ProcessCDR(1,14056260,1,1,2) [2024-12-19 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 14:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056260', 'tblTempUsageDetail_20' ) start [2024-12-19 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056260', 'tblTempUsageDetail_20' ) end [2024-12-19 14:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 14:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 14:59:24] Production.INFO: ==26512== Releasing lock... [2024-12-19 14:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 14:59:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:00:05 [end_date_ymd] => 2024-12-19 15:00:05 [RateCDR] => 1 ) [2024-12-19 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:00:05' and `end` < '2024-12-19 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:00:20] Production.INFO: count ==4537 [2024-12-19 15:00:22] Production.ERROR: pbx CDR StartTime 2024-12-19 12:00:05 - End Time 2024-12-19 15:00:05 [2024-12-19 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056266', 'tblTempUsageDetail_20' ) start [2024-12-19 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056266', 'tblTempUsageDetail_20' ) end [2024-12-19 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056266', 'tblTempVendorCDR_20' ) start [2024-12-19 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056266', 'tblTempVendorCDR_20' ) end [2024-12-19 15:00:22] Production.INFO: ProcessCDR(1,14056266,1,1,2) [2024-12-19 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056266', 'tblTempUsageDetail_20' ) start [2024-12-19 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056266', 'tblTempUsageDetail_20' ) end [2024-12-19 15:00:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:00:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:00:27] Production.INFO: ==26598== Releasing lock... [2024-12-19 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:00:27] Production.INFO: 62 MB #Memory Used# [2024-12-19 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:01:05 [end_date_ymd] => 2024-12-19 15:01:05 [RateCDR] => 1 ) [2024-12-19 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:01:05' and `end` < '2024-12-19 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:01:18] Production.INFO: count ==4509 [2024-12-19 15:01:20] Production.ERROR: pbx CDR StartTime 2024-12-19 12:01:05 - End Time 2024-12-19 15:01:05 [2024-12-19 15:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056271', 'tblTempUsageDetail_20' ) start [2024-12-19 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056271', 'tblTempUsageDetail_20' ) end [2024-12-19 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056271', 'tblTempVendorCDR_20' ) start [2024-12-19 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056271', 'tblTempVendorCDR_20' ) end [2024-12-19 15:01:20] Production.INFO: ProcessCDR(1,14056271,1,1,2) [2024-12-19 15:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056271', 'tblTempUsageDetail_20' ) start [2024-12-19 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056271', 'tblTempUsageDetail_20' ) end [2024-12-19 15:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:01:24] Production.INFO: ==26697== Releasing lock... [2024-12-19 15:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:01:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:02:05 [end_date_ymd] => 2024-12-19 15:02:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:02:33] Production.INFO: count ==4523 [2024-12-19 15:02:34] Production.ERROR: pbx CDR StartTime 2024-12-19 12:02:05 - End Time 2024-12-19 15:02:05 [2024-12-19 15:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056276', 'tblTempUsageDetail_20' ) start [2024-12-19 15:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056276', 'tblTempUsageDetail_20' ) end [2024-12-19 15:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056276', 'tblTempVendorCDR_20' ) start [2024-12-19 15:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056276', 'tblTempVendorCDR_20' ) end [2024-12-19 15:02:35] Production.INFO: ProcessCDR(1,14056276,1,1,2) [2024-12-19 15:02:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:02:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:02:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056276', 'tblTempUsageDetail_20' ) start [2024-12-19 15:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056276', 'tblTempUsageDetail_20' ) end [2024-12-19 15:02:40] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:02:40] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:02:40] Production.INFO: ==26863== Releasing lock... [2024-12-19 15:02:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:02:40] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:03:04 [end_date_ymd] => 2024-12-19 15:03:04 [RateCDR] => 1 ) [2024-12-19 15: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` >= '2024-12-19 12:03:04' and `end` < '2024-12-19 15: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 ,'') [2024-12-19 15:03:22] Production.INFO: count ==4546 [2024-12-19 15:03:24] Production.ERROR: pbx CDR StartTime 2024-12-19 12:03:04 - End Time 2024-12-19 15:03:04 [2024-12-19 15:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056281', 'tblTempUsageDetail_20' ) start [2024-12-19 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056281', 'tblTempUsageDetail_20' ) end [2024-12-19 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056281', 'tblTempVendorCDR_20' ) start [2024-12-19 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056281', 'tblTempVendorCDR_20' ) end [2024-12-19 15:03:24] Production.INFO: ProcessCDR(1,14056281,1,1,2) [2024-12-19 15:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056281', 'tblTempUsageDetail_20' ) start [2024-12-19 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056281', 'tblTempUsageDetail_20' ) end [2024-12-19 15:03:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:03:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:03:29] Production.INFO: ==26948== Releasing lock... [2024-12-19 15:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:03:29] Production.INFO: 62 MB #Memory Used# [2024-12-19 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:04:05 [end_date_ymd] => 2024-12-19 15:04:05 [RateCDR] => 1 ) [2024-12-19 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:04:05' and `end` < '2024-12-19 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:04:23] Production.INFO: count ==4550 [2024-12-19 15:04:25] Production.ERROR: pbx CDR StartTime 2024-12-19 12:04:05 - End Time 2024-12-19 15:04:05 [2024-12-19 15:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056286', 'tblTempUsageDetail_20' ) start [2024-12-19 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056286', 'tblTempUsageDetail_20' ) end [2024-12-19 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056286', 'tblTempVendorCDR_20' ) start [2024-12-19 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056286', 'tblTempVendorCDR_20' ) end [2024-12-19 15:04:25] Production.INFO: ProcessCDR(1,14056286,1,1,2) [2024-12-19 15:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056286', 'tblTempUsageDetail_20' ) start [2024-12-19 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056286', 'tblTempUsageDetail_20' ) end [2024-12-19 15:04:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:04:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:04:30] Production.INFO: ==27037== Releasing lock... [2024-12-19 15:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:04:30] Production.INFO: 62 MB #Memory Used# [2024-12-19 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:05:05 [end_date_ymd] => 2024-12-19 15:05:05 [RateCDR] => 1 ) [2024-12-19 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:05:05' and `end` < '2024-12-19 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:05:28] Production.INFO: count ==4549 [2024-12-19 15:05:30] Production.ERROR: pbx CDR StartTime 2024-12-19 12:05:05 - End Time 2024-12-19 15:05:05 [2024-12-19 15:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056291', 'tblTempUsageDetail_20' ) start [2024-12-19 15:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056291', 'tblTempUsageDetail_20' ) end [2024-12-19 15:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056291', 'tblTempVendorCDR_20' ) start [2024-12-19 15:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056291', 'tblTempVendorCDR_20' ) end [2024-12-19 15:05:30] Production.INFO: ProcessCDR(1,14056291,1,1,2) [2024-12-19 15:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056291', 'tblTempUsageDetail_20' ) start [2024-12-19 15:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056291', 'tblTempUsageDetail_20' ) end [2024-12-19 15:05:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:05:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:05:35] Production.INFO: ==27207== Releasing lock... [2024-12-19 15:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:05:35] Production.INFO: 62 MB #Memory Used# [2024-12-19 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:06:05 [end_date_ymd] => 2024-12-19 15:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:06:29] Production.INFO: count ==4559 [2024-12-19 15:06:31] Production.ERROR: pbx CDR StartTime 2024-12-19 12:06:05 - End Time 2024-12-19 15:06:05 [2024-12-19 15:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056296', 'tblTempUsageDetail_20' ) start [2024-12-19 15:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056296', 'tblTempUsageDetail_20' ) end [2024-12-19 15:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056296', 'tblTempVendorCDR_20' ) start [2024-12-19 15:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056296', 'tblTempVendorCDR_20' ) end [2024-12-19 15:06:31] Production.INFO: ProcessCDR(1,14056296,1,1,2) [2024-12-19 15:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:06:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:06:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:06:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056296', 'tblTempUsageDetail_20' ) start [2024-12-19 15:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056296', 'tblTempUsageDetail_20' ) end [2024-12-19 15:06:36] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:06:36] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:06:36] Production.INFO: ==27301== Releasing lock... [2024-12-19 15:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:06:36] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:07:04 [end_date_ymd] => 2024-12-19 15:07:04 [RateCDR] => 1 ) [2024-12-19 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:07:04' and `end` < '2024-12-19 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:07:26] Production.INFO: count ==4553 [2024-12-19 15:07:28] Production.ERROR: pbx CDR StartTime 2024-12-19 12:07:04 - End Time 2024-12-19 15:07:04 [2024-12-19 15:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056301', 'tblTempUsageDetail_20' ) start [2024-12-19 15:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056301', 'tblTempUsageDetail_20' ) end [2024-12-19 15:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056301', 'tblTempVendorCDR_20' ) start [2024-12-19 15:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056301', 'tblTempVendorCDR_20' ) end [2024-12-19 15:07:28] Production.INFO: ProcessCDR(1,14056301,1,1,2) [2024-12-19 15:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056301', 'tblTempUsageDetail_20' ) start [2024-12-19 15:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056301', 'tblTempUsageDetail_20' ) end [2024-12-19 15:07:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:07:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:07:32] Production.INFO: ==27388== Releasing lock... [2024-12-19 15:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:07:32] Production.INFO: 62 MB #Memory Used# [2024-12-19 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:08:05 [end_date_ymd] => 2024-12-19 15:08:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:08:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:08:22] Production.INFO: count ==4543 [2024-12-19 15:08:24] Production.ERROR: pbx CDR StartTime 2024-12-19 12:08:05 - End Time 2024-12-19 15:08:05 [2024-12-19 15:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056306', 'tblTempUsageDetail_20' ) start [2024-12-19 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056306', 'tblTempUsageDetail_20' ) end [2024-12-19 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056306', 'tblTempVendorCDR_20' ) start [2024-12-19 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056306', 'tblTempVendorCDR_20' ) end [2024-12-19 15:08:24] Production.INFO: ProcessCDR(1,14056306,1,1,2) [2024-12-19 15:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056306', 'tblTempUsageDetail_20' ) start [2024-12-19 15:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056306', 'tblTempUsageDetail_20' ) end [2024-12-19 15:08:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:08:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:08:29] Production.INFO: ==27558== Releasing lock... [2024-12-19 15:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:08:29] Production.INFO: 62 MB #Memory Used# [2024-12-19 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:09:04 [end_date_ymd] => 2024-12-19 15:09:04 [RateCDR] => 1 ) [2024-12-19 15:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:09:04' and `end` < '2024-12-19 15:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:09:17] Production.INFO: count ==4557 [2024-12-19 15:09:19] Production.ERROR: pbx CDR StartTime 2024-12-19 12:09:04 - End Time 2024-12-19 15:09:04 [2024-12-19 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056311', 'tblTempUsageDetail_20' ) start [2024-12-19 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056311', 'tblTempUsageDetail_20' ) end [2024-12-19 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056311', 'tblTempVendorCDR_20' ) start [2024-12-19 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056311', 'tblTempVendorCDR_20' ) end [2024-12-19 15:09:19] Production.INFO: ProcessCDR(1,14056311,1,1,2) [2024-12-19 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056311', 'tblTempUsageDetail_20' ) start [2024-12-19 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056311', 'tblTempUsageDetail_20' ) end [2024-12-19 15:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:09:24] Production.INFO: ==27655== Releasing lock... [2024-12-19 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:09:24] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:10:05 [end_date_ymd] => 2024-12-19 15:10:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:10:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:10:25] Production.INFO: count ==4566 [2024-12-19 15:10:26] Production.ERROR: pbx CDR StartTime 2024-12-19 12:10:05 - End Time 2024-12-19 15:10:05 [2024-12-19 15:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056317', 'tblTempUsageDetail_20' ) start [2024-12-19 15:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056317', 'tblTempUsageDetail_20' ) end [2024-12-19 15:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056317', 'tblTempVendorCDR_20' ) start [2024-12-19 15:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056317', 'tblTempVendorCDR_20' ) end [2024-12-19 15:10:27] Production.INFO: ProcessCDR(1,14056317,1,1,2) [2024-12-19 15:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056317', 'tblTempUsageDetail_20' ) start [2024-12-19 15:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056317', 'tblTempUsageDetail_20' ) end [2024-12-19 15:10:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:10:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:10:32] Production.INFO: ==27748== Releasing lock... [2024-12-19 15:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:10:32] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:11:04 [end_date_ymd] => 2024-12-19 15:11:04 [RateCDR] => 1 ) [2024-12-19 15:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:11:04' and `end` < '2024-12-19 15:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:11:26] Production.INFO: count ==4601 [2024-12-19 15:11:28] Production.ERROR: pbx CDR StartTime 2024-12-19 12:11:04 - End Time 2024-12-19 15:11:04 [2024-12-19 15:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056322', 'tblTempUsageDetail_20' ) start [2024-12-19 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056322', 'tblTempUsageDetail_20' ) end [2024-12-19 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056322', 'tblTempVendorCDR_20' ) start [2024-12-19 15:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056322', 'tblTempVendorCDR_20' ) end [2024-12-19 15:11:28] Production.INFO: ProcessCDR(1,14056322,1,1,2) [2024-12-19 15:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056322', 'tblTempUsageDetail_20' ) start [2024-12-19 15:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056322', 'tblTempUsageDetail_20' ) end [2024-12-19 15:11:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:11:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:11:33] Production.INFO: ==27847== Releasing lock... [2024-12-19 15:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:11:33] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 15:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:12:04 [end_date_ymd] => 2024-12-19 15:12:04 [RateCDR] => 1 ) [2024-12-19 15:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:12:04' and `end` < '2024-12-19 15:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:12:27] Production.INFO: count ==4687 [2024-12-19 15:12:28] Production.ERROR: pbx CDR StartTime 2024-12-19 12:12:04 - End Time 2024-12-19 15:12:04 [2024-12-19 15:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056327', 'tblTempUsageDetail_20' ) start [2024-12-19 15:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056327', 'tblTempUsageDetail_20' ) end [2024-12-19 15:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056327', 'tblTempVendorCDR_20' ) start [2024-12-19 15:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056327', 'tblTempVendorCDR_20' ) end [2024-12-19 15:12:29] Production.INFO: ProcessCDR(1,14056327,1,1,2) [2024-12-19 15:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056327', 'tblTempUsageDetail_20' ) start [2024-12-19 15:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056327', 'tblTempUsageDetail_20' ) end [2024-12-19 15:12:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:12:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:12:33] Production.INFO: ==28025== Releasing lock... [2024-12-19 15:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:12:33] Production.INFO: 63 MB #Memory Used# [2024-12-19 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:13:05 [end_date_ymd] => 2024-12-19 15:13:05 [RateCDR] => 1 ) [2024-12-19 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:13:05' and `end` < '2024-12-19 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:13:22] Production.INFO: count ==4699 [2024-12-19 15:13:24] Production.ERROR: pbx CDR StartTime 2024-12-19 12:13:05 - End Time 2024-12-19 15:13:05 [2024-12-19 15:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056332', 'tblTempUsageDetail_20' ) start [2024-12-19 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056332', 'tblTempUsageDetail_20' ) end [2024-12-19 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056332', 'tblTempVendorCDR_20' ) start [2024-12-19 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056332', 'tblTempVendorCDR_20' ) end [2024-12-19 15:13:24] Production.INFO: ProcessCDR(1,14056332,1,1,2) [2024-12-19 15:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056332', 'tblTempUsageDetail_20' ) start [2024-12-19 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056332', 'tblTempUsageDetail_20' ) end [2024-12-19 15:13:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:13:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:13:28] Production.INFO: ==28121== Releasing lock... [2024-12-19 15:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:13:28] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 15:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:14:04 [end_date_ymd] => 2024-12-19 15:14:04 [RateCDR] => 1 ) [2024-12-19 15: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` >= '2024-12-19 12:14:04' and `end` < '2024-12-19 15: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 ,'') [2024-12-19 15:14:26] Production.INFO: count ==4707 [2024-12-19 15:14:28] Production.ERROR: pbx CDR StartTime 2024-12-19 12:14:04 - End Time 2024-12-19 15:14:04 [2024-12-19 15:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056337', 'tblTempUsageDetail_20' ) start [2024-12-19 15:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056337', 'tblTempUsageDetail_20' ) end [2024-12-19 15:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056337', 'tblTempVendorCDR_20' ) start [2024-12-19 15:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056337', 'tblTempVendorCDR_20' ) end [2024-12-19 15:14:28] Production.INFO: ProcessCDR(1,14056337,1,1,2) [2024-12-19 15:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056337', 'tblTempUsageDetail_20' ) start [2024-12-19 15:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056337', 'tblTempUsageDetail_20' ) end [2024-12-19 15:14:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:14:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:14:32] Production.INFO: ==28235== Releasing lock... [2024-12-19 15:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:14:32] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:15:05 [end_date_ymd] => 2024-12-19 15:15:05 [RateCDR] => 1 ) [2024-12-19 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:15:05' and `end` < '2024-12-19 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:15:29] Production.INFO: count ==4711 [2024-12-19 15:15:31] Production.ERROR: pbx CDR StartTime 2024-12-19 12:15:05 - End Time 2024-12-19 15:15:05 [2024-12-19 15:15:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056342', 'tblTempUsageDetail_20' ) start [2024-12-19 15:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056342', 'tblTempUsageDetail_20' ) end [2024-12-19 15:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056342', 'tblTempVendorCDR_20' ) start [2024-12-19 15:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056342', 'tblTempVendorCDR_20' ) end [2024-12-19 15:15:31] Production.INFO: ProcessCDR(1,14056342,1,1,2) [2024-12-19 15:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056342', 'tblTempUsageDetail_20' ) start [2024-12-19 15:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056342', 'tblTempUsageDetail_20' ) end [2024-12-19 15:15:36] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:15:36] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:15:36] Production.INFO: ==28484== Releasing lock... [2024-12-19 15:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:15:36] Production.INFO: 63.25 MB #Memory Used# [2024-12-19 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:16:05 [end_date_ymd] => 2024-12-19 15:16:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:16:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:16:25] Production.INFO: count ==4725 [2024-12-19 15:16:26] Production.ERROR: pbx CDR StartTime 2024-12-19 12:16:05 - End Time 2024-12-19 15:16:05 [2024-12-19 15:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056347', 'tblTempUsageDetail_20' ) start [2024-12-19 15:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056347', 'tblTempUsageDetail_20' ) end [2024-12-19 15:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056347', 'tblTempVendorCDR_20' ) start [2024-12-19 15:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056347', 'tblTempVendorCDR_20' ) end [2024-12-19 15:16:27] Production.INFO: ProcessCDR(1,14056347,1,1,2) [2024-12-19 15:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056347', 'tblTempUsageDetail_20' ) start [2024-12-19 15:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056347', 'tblTempUsageDetail_20' ) end [2024-12-19 15:16:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:16:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:16:32] Production.INFO: ==28605== Releasing lock... [2024-12-19 15:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:16:32] Production.INFO: 63.5 MB #Memory Used# [2024-12-19 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:17:05 [end_date_ymd] => 2024-12-19 15:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:17:19] Production.INFO: count ==4733 [2024-12-19 15:17:21] Production.ERROR: pbx CDR StartTime 2024-12-19 12:17:05 - End Time 2024-12-19 15:17:05 [2024-12-19 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056352', 'tblTempUsageDetail_20' ) start [2024-12-19 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056352', 'tblTempUsageDetail_20' ) end [2024-12-19 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056352', 'tblTempVendorCDR_20' ) start [2024-12-19 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056352', 'tblTempVendorCDR_20' ) end [2024-12-19 15:17:21] Production.INFO: ProcessCDR(1,14056352,1,1,2) [2024-12-19 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056352', 'tblTempUsageDetail_20' ) start [2024-12-19 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056352', 'tblTempUsageDetail_20' ) end [2024-12-19 15:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:17:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:17:26] Production.INFO: ==28728== Releasing lock... [2024-12-19 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:17:26] Production.INFO: 63.5 MB #Memory Used# [2024-12-19 15:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:18:04 [end_date_ymd] => 2024-12-19 15:18:04 [RateCDR] => 1 ) [2024-12-19 15: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` >= '2024-12-19 12:18:04' and `end` < '2024-12-19 15: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 ,'') [2024-12-19 15:18:27] Production.INFO: count ==4750 [2024-12-19 15:18:29] Production.ERROR: pbx CDR StartTime 2024-12-19 12:18:04 - End Time 2024-12-19 15:18:04 [2024-12-19 15:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056357', 'tblTempUsageDetail_20' ) start [2024-12-19 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056357', 'tblTempUsageDetail_20' ) end [2024-12-19 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056357', 'tblTempVendorCDR_20' ) start [2024-12-19 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056357', 'tblTempVendorCDR_20' ) end [2024-12-19 15:18:29] Production.INFO: ProcessCDR(1,14056357,1,1,2) [2024-12-19 15:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056357', 'tblTempUsageDetail_20' ) start [2024-12-19 15:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056357', 'tblTempUsageDetail_20' ) end [2024-12-19 15:18:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:18:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:18:33] Production.INFO: ==28856== Releasing lock... [2024-12-19 15:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:18:33] Production.INFO: 63.5 MB #Memory Used# [2024-12-19 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:19:05 [end_date_ymd] => 2024-12-19 15:19:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:19:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:19:22] Production.INFO: count ==4759 [2024-12-19 15:19:24] Production.ERROR: pbx CDR StartTime 2024-12-19 12:19:05 - End Time 2024-12-19 15:19:05 [2024-12-19 15:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056362', 'tblTempUsageDetail_20' ) start [2024-12-19 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056362', 'tblTempUsageDetail_20' ) end [2024-12-19 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056362', 'tblTempVendorCDR_20' ) start [2024-12-19 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056362', 'tblTempVendorCDR_20' ) end [2024-12-19 15:19:24] Production.INFO: ProcessCDR(1,14056362,1,1,2) [2024-12-19 15:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056362', 'tblTempUsageDetail_20' ) start [2024-12-19 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056362', 'tblTempUsageDetail_20' ) end [2024-12-19 15:19:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:19:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:19:29] Production.INFO: ==28982== Releasing lock... [2024-12-19 15:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:19:29] Production.INFO: 63.75 MB #Memory Used# [2024-12-19 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:20:06 [end_date_ymd] => 2024-12-19 15:20:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:20:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:20:23] Production.INFO: count ==4743 [2024-12-19 15:20:25] Production.ERROR: pbx CDR StartTime 2024-12-19 12:20:06 - End Time 2024-12-19 15:20:06 [2024-12-19 15:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056368', 'tblTempUsageDetail_20' ) start [2024-12-19 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056368', 'tblTempUsageDetail_20' ) end [2024-12-19 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056368', 'tblTempVendorCDR_20' ) start [2024-12-19 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056368', 'tblTempVendorCDR_20' ) end [2024-12-19 15:20:25] Production.INFO: ProcessCDR(1,14056368,1,1,2) [2024-12-19 15:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056368', 'tblTempUsageDetail_20' ) start [2024-12-19 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056368', 'tblTempUsageDetail_20' ) end [2024-12-19 15:20:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:20:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:20:30] Production.INFO: ==29116== Releasing lock... [2024-12-19 15:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:20:30] Production.INFO: 63.5 MB #Memory Used# [2024-12-19 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:21:04 [end_date_ymd] => 2024-12-19 15:21:04 [RateCDR] => 1 ) [2024-12-19 15:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:21:04' and `end` < '2024-12-19 15:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:21:28] Production.INFO: count ==4786 [2024-12-19 15:21:30] Production.ERROR: pbx CDR StartTime 2024-12-19 12:21:04 - End Time 2024-12-19 15:21:04 [2024-12-19 15:21:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056373', 'tblTempUsageDetail_20' ) start [2024-12-19 15:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056373', 'tblTempUsageDetail_20' ) end [2024-12-19 15:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056373', 'tblTempVendorCDR_20' ) start [2024-12-19 15:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056373', 'tblTempVendorCDR_20' ) end [2024-12-19 15:21:30] Production.INFO: ProcessCDR(1,14056373,1,1,2) [2024-12-19 15:21:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:21:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056373', 'tblTempUsageDetail_20' ) start [2024-12-19 15:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056373', 'tblTempUsageDetail_20' ) end [2024-12-19 15:21:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:21:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:21:35] Production.INFO: ==29239== Releasing lock... [2024-12-19 15:21:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:21:35] Production.INFO: 63.75 MB #Memory Used# [2024-12-19 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:22:05 [end_date_ymd] => 2024-12-19 15:22:05 [RateCDR] => 1 ) [2024-12-19 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:22:05' and `end` < '2024-12-19 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:22:25] Production.INFO: count ==4835 [2024-12-19 15:22:27] Production.ERROR: pbx CDR StartTime 2024-12-19 12:22:05 - End Time 2024-12-19 15:22:05 [2024-12-19 15:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056378', 'tblTempUsageDetail_20' ) start [2024-12-19 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056378', 'tblTempUsageDetail_20' ) end [2024-12-19 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056378', 'tblTempVendorCDR_20' ) start [2024-12-19 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056378', 'tblTempVendorCDR_20' ) end [2024-12-19 15:22:27] Production.INFO: ProcessCDR(1,14056378,1,1,2) [2024-12-19 15:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056378', 'tblTempUsageDetail_20' ) start [2024-12-19 15:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056378', 'tblTempUsageDetail_20' ) end [2024-12-19 15:22:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:22:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:22:32] Production.INFO: ==29368== Releasing lock... [2024-12-19 15:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:22:32] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:23:05 [end_date_ymd] => 2024-12-19 15:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:23:26] Production.INFO: count ==4867 [2024-12-19 15:23:28] Production.ERROR: pbx CDR StartTime 2024-12-19 12:23:05 - End Time 2024-12-19 15:23:05 [2024-12-19 15:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056383', 'tblTempUsageDetail_20' ) start [2024-12-19 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056383', 'tblTempUsageDetail_20' ) end [2024-12-19 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056383', 'tblTempVendorCDR_20' ) start [2024-12-19 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056383', 'tblTempVendorCDR_20' ) end [2024-12-19 15:23:28] Production.INFO: ProcessCDR(1,14056383,1,1,2) [2024-12-19 15:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056383', 'tblTempUsageDetail_20' ) start [2024-12-19 15:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056383', 'tblTempUsageDetail_20' ) end [2024-12-19 15:23:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:23:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:23:33] Production.INFO: ==29494== Releasing lock... [2024-12-19 15:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:23:33] Production.INFO: 64.5 MB #Memory Used# [2024-12-19 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:24:05 [end_date_ymd] => 2024-12-19 15:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:24:25] Production.INFO: count ==4893 [2024-12-19 15:24:27] Production.ERROR: pbx CDR StartTime 2024-12-19 12:24:05 - End Time 2024-12-19 15:24:05 [2024-12-19 15:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056388', 'tblTempUsageDetail_20' ) start [2024-12-19 15:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056388', 'tblTempUsageDetail_20' ) end [2024-12-19 15:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056388', 'tblTempVendorCDR_20' ) start [2024-12-19 15:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056388', 'tblTempVendorCDR_20' ) end [2024-12-19 15:24:27] Production.INFO: ProcessCDR(1,14056388,1,1,2) [2024-12-19 15:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056388', 'tblTempUsageDetail_20' ) start [2024-12-19 15:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056388', 'tblTempUsageDetail_20' ) end [2024-12-19 15:24:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:24:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:24:32] Production.INFO: ==29621== Releasing lock... [2024-12-19 15:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:24:32] Production.INFO: 64.75 MB #Memory Used# [2024-12-19 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:25:04 [end_date_ymd] => 2024-12-19 15:25:04 [RateCDR] => 1 ) [2024-12-19 15:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:25:04' and `end` < '2024-12-19 15:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:25:32] Production.INFO: count ==4890 [2024-12-19 15:25:34] Production.ERROR: pbx CDR StartTime 2024-12-19 12:25:04 - End Time 2024-12-19 15:25:04 [2024-12-19 15:25:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056393', 'tblTempUsageDetail_20' ) start [2024-12-19 15:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056393', 'tblTempUsageDetail_20' ) end [2024-12-19 15:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056393', 'tblTempVendorCDR_20' ) start [2024-12-19 15:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056393', 'tblTempVendorCDR_20' ) end [2024-12-19 15:25:34] Production.INFO: ProcessCDR(1,14056393,1,1,2) [2024-12-19 15:25:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:25:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:25:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:25:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056393', 'tblTempUsageDetail_20' ) start [2024-12-19 15:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056393', 'tblTempUsageDetail_20' ) end [2024-12-19 15:25:39] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:25:39] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:25:39] Production.INFO: ==29743== Releasing lock... [2024-12-19 15:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:25:39] Production.INFO: 64.75 MB #Memory Used# [2024-12-19 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:26:05 [end_date_ymd] => 2024-12-19 15:26:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:26:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:26:22] Production.INFO: count ==4883 [2024-12-19 15:26:24] Production.ERROR: pbx CDR StartTime 2024-12-19 12:26:05 - End Time 2024-12-19 15:26:05 [2024-12-19 15:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056398', 'tblTempUsageDetail_20' ) start [2024-12-19 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056398', 'tblTempUsageDetail_20' ) end [2024-12-19 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056398', 'tblTempVendorCDR_20' ) start [2024-12-19 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056398', 'tblTempVendorCDR_20' ) end [2024-12-19 15:26:24] Production.INFO: ProcessCDR(1,14056398,1,1,2) [2024-12-19 15:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056398', 'tblTempUsageDetail_20' ) start [2024-12-19 15:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056398', 'tblTempUsageDetail_20' ) end [2024-12-19 15:26:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:26:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:26:29] Production.INFO: ==29868== Releasing lock... [2024-12-19 15:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:26:29] Production.INFO: 64.5 MB #Memory Used# [2024-12-19 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:27:04 [end_date_ymd] => 2024-12-19 15:27:04 [RateCDR] => 1 ) [2024-12-19 15: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` >= '2024-12-19 12:27:04' and `end` < '2024-12-19 15: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 ,'') [2024-12-19 15:27:24] Production.INFO: count ==4901 [2024-12-19 15:27:26] Production.ERROR: pbx CDR StartTime 2024-12-19 12:27:04 - End Time 2024-12-19 15:27:04 [2024-12-19 15:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056403', 'tblTempUsageDetail_20' ) start [2024-12-19 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056403', 'tblTempUsageDetail_20' ) end [2024-12-19 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056403', 'tblTempVendorCDR_20' ) start [2024-12-19 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056403', 'tblTempVendorCDR_20' ) end [2024-12-19 15:27:26] Production.INFO: ProcessCDR(1,14056403,1,1,2) [2024-12-19 15:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056403', 'tblTempUsageDetail_20' ) start [2024-12-19 15:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056403', 'tblTempUsageDetail_20' ) end [2024-12-19 15:27:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:27:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:27:31] Production.INFO: ==29988== Releasing lock... [2024-12-19 15:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:27:31] Production.INFO: 64.75 MB #Memory Used# [2024-12-19 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:28:05 [end_date_ymd] => 2024-12-19 15:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:28:24] Production.INFO: count ==4912 [2024-12-19 15:28:26] Production.ERROR: pbx CDR StartTime 2024-12-19 12:28:05 - End Time 2024-12-19 15:28:05 [2024-12-19 15:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056408', 'tblTempUsageDetail_20' ) start [2024-12-19 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056408', 'tblTempUsageDetail_20' ) end [2024-12-19 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056408', 'tblTempVendorCDR_20' ) start [2024-12-19 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056408', 'tblTempVendorCDR_20' ) end [2024-12-19 15:28:26] Production.INFO: ProcessCDR(1,14056408,1,1,2) [2024-12-19 15:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056408', 'tblTempUsageDetail_20' ) start [2024-12-19 15:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056408', 'tblTempUsageDetail_20' ) end [2024-12-19 15:28:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:28:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:28:31] Production.INFO: ==30114== Releasing lock... [2024-12-19 15:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:28:31] Production.INFO: 64.75 MB #Memory Used# [2024-12-19 15:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:29:04 [end_date_ymd] => 2024-12-19 15:29:04 [RateCDR] => 1 ) [2024-12-19 15: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` >= '2024-12-19 12:29:04' and `end` < '2024-12-19 15: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 ,'') [2024-12-19 15:29:28] Production.INFO: count ==4946 [2024-12-19 15:29:30] Production.ERROR: pbx CDR StartTime 2024-12-19 12:29:04 - End Time 2024-12-19 15:29:04 [2024-12-19 15:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056413', 'tblTempUsageDetail_20' ) start [2024-12-19 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056413', 'tblTempUsageDetail_20' ) end [2024-12-19 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056413', 'tblTempVendorCDR_20' ) start [2024-12-19 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056413', 'tblTempVendorCDR_20' ) end [2024-12-19 15:29:30] Production.INFO: ProcessCDR(1,14056413,1,1,2) [2024-12-19 15:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056413', 'tblTempUsageDetail_20' ) start [2024-12-19 15:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056413', 'tblTempUsageDetail_20' ) end [2024-12-19 15:29:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:29:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:29:35] Production.INFO: ==30239== Releasing lock... [2024-12-19 15:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:29:35] Production.INFO: 65 MB #Memory Used# [2024-12-19 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:30:05 [end_date_ymd] => 2024-12-19 15:30:05 [RateCDR] => 1 ) [2024-12-19 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:30:05' and `end` < '2024-12-19 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:30:37] Production.INFO: count ==4972 [2024-12-19 15:30:39] Production.ERROR: pbx CDR StartTime 2024-12-19 12:30:05 - End Time 2024-12-19 15:30:05 [2024-12-19 15:30:39] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:30:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056418', 'tblTempUsageDetail_20' ) start [2024-12-19 15:30:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056418', 'tblTempUsageDetail_20' ) end [2024-12-19 15:30:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056418', 'tblTempVendorCDR_20' ) start [2024-12-19 15:30:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056418', 'tblTempVendorCDR_20' ) end [2024-12-19 15:30:39] Production.INFO: ProcessCDR(1,14056418,1,1,2) [2024-12-19 15:30:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:30:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:30:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:30:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:30:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056418', 'tblTempUsageDetail_20' ) start [2024-12-19 15:30:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056418', 'tblTempUsageDetail_20' ) end [2024-12-19 15:30:44] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:30:44] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:30:44] Production.INFO: ==30361== Releasing lock... [2024-12-19 15:30:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:30:44] Production.INFO: 65.25 MB #Memory Used# [2024-12-19 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:31:05 [end_date_ymd] => 2024-12-19 15:31:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:31:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:31:30] Production.INFO: count ==5019 [2024-12-19 15:31:32] Production.ERROR: pbx CDR StartTime 2024-12-19 12:31:05 - End Time 2024-12-19 15:31:05 [2024-12-19 15:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056424', 'tblTempUsageDetail_20' ) start [2024-12-19 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056424', 'tblTempUsageDetail_20' ) end [2024-12-19 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056424', 'tblTempVendorCDR_20' ) start [2024-12-19 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056424', 'tblTempVendorCDR_20' ) end [2024-12-19 15:31:32] Production.INFO: ProcessCDR(1,14056424,1,1,2) [2024-12-19 15:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:31:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056424', 'tblTempUsageDetail_20' ) start [2024-12-19 15:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056424', 'tblTempUsageDetail_20' ) end [2024-12-19 15:31:36] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:31:36] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:31:36] Production.INFO: ==30521== Releasing lock... [2024-12-19 15:31:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:31:36] Production.INFO: 65.5 MB #Memory Used# [2024-12-19 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:32:04 [end_date_ymd] => 2024-12-19 15:32:04 [RateCDR] => 1 ) [2024-12-19 15:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:32:04' and `end` < '2024-12-19 15:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:32:25] Production.INFO: count ==5034 [2024-12-19 15:32:27] Production.ERROR: pbx CDR StartTime 2024-12-19 12:32:04 - End Time 2024-12-19 15:32:04 [2024-12-19 15:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056429', 'tblTempUsageDetail_20' ) start [2024-12-19 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056429', 'tblTempUsageDetail_20' ) end [2024-12-19 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056429', 'tblTempVendorCDR_20' ) start [2024-12-19 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056429', 'tblTempVendorCDR_20' ) end [2024-12-19 15:32:27] Production.INFO: ProcessCDR(1,14056429,1,1,2) [2024-12-19 15:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056429', 'tblTempUsageDetail_20' ) start [2024-12-19 15:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056429', 'tblTempUsageDetail_20' ) end [2024-12-19 15:32:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:32:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:32:32] Production.INFO: ==30617== Releasing lock... [2024-12-19 15:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:32:32] Production.INFO: 65.75 MB #Memory Used# [2024-12-19 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:33:05 [end_date_ymd] => 2024-12-19 15:33:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:33:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:33:29] Production.INFO: count ==5056 [2024-12-19 15:33:31] Production.ERROR: pbx CDR StartTime 2024-12-19 12:33:05 - End Time 2024-12-19 15:33:05 [2024-12-19 15:33:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056434', 'tblTempUsageDetail_20' ) start [2024-12-19 15:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056434', 'tblTempUsageDetail_20' ) end [2024-12-19 15:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056434', 'tblTempVendorCDR_20' ) start [2024-12-19 15:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056434', 'tblTempVendorCDR_20' ) end [2024-12-19 15:33:31] Production.INFO: ProcessCDR(1,14056434,1,1,2) [2024-12-19 15:33:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:33:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:33:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:33:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056434', 'tblTempUsageDetail_20' ) start [2024-12-19 15:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056434', 'tblTempUsageDetail_20' ) end [2024-12-19 15:33:36] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:33:36] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:33:36] Production.INFO: ==30712== Releasing lock... [2024-12-19 15:33:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:33:36] Production.INFO: 65.75 MB #Memory Used# [2024-12-19 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:34:05 [end_date_ymd] => 2024-12-19 15:34:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:34:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:34:22] Production.INFO: count ==5114 [2024-12-19 15:34:24] Production.ERROR: pbx CDR StartTime 2024-12-19 12:34:05 - End Time 2024-12-19 15:34:05 [2024-12-19 15:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056439', 'tblTempUsageDetail_20' ) start [2024-12-19 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056439', 'tblTempUsageDetail_20' ) end [2024-12-19 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056439', 'tblTempVendorCDR_20' ) start [2024-12-19 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056439', 'tblTempVendorCDR_20' ) end [2024-12-19 15:34:24] Production.INFO: ProcessCDR(1,14056439,1,1,2) [2024-12-19 15:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056439', 'tblTempUsageDetail_20' ) start [2024-12-19 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056439', 'tblTempUsageDetail_20' ) end [2024-12-19 15:34:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:34:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:34:29] Production.INFO: ==30810== Releasing lock... [2024-12-19 15:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:34:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-19 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:35:05 [end_date_ymd] => 2024-12-19 15:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:35:22] Production.INFO: count ==5124 [2024-12-19 15:35:24] Production.ERROR: pbx CDR StartTime 2024-12-19 12:35:05 - End Time 2024-12-19 15:35:05 [2024-12-19 15:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056444', 'tblTempUsageDetail_20' ) start [2024-12-19 15:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056444', 'tblTempUsageDetail_20' ) end [2024-12-19 15:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056444', 'tblTempVendorCDR_20' ) start [2024-12-19 15:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056444', 'tblTempVendorCDR_20' ) end [2024-12-19 15:35:24] Production.INFO: ProcessCDR(1,14056444,1,1,2) [2024-12-19 15:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056444', 'tblTempUsageDetail_20' ) start [2024-12-19 15:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056444', 'tblTempUsageDetail_20' ) end [2024-12-19 15:35:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:35:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:35:29] Production.INFO: ==30909== Releasing lock... [2024-12-19 15:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:35:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-19 15:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:36:04 [end_date_ymd] => 2024-12-19 15:36:04 [RateCDR] => 1 ) [2024-12-19 15:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:36:04' and `end` < '2024-12-19 15:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:36:20] Production.INFO: count ==5111 [2024-12-19 15:36:22] Production.ERROR: pbx CDR StartTime 2024-12-19 12:36:04 - End Time 2024-12-19 15:36:04 [2024-12-19 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056449', 'tblTempUsageDetail_20' ) start [2024-12-19 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056449', 'tblTempUsageDetail_20' ) end [2024-12-19 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056449', 'tblTempVendorCDR_20' ) start [2024-12-19 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056449', 'tblTempVendorCDR_20' ) end [2024-12-19 15:36:22] Production.INFO: ProcessCDR(1,14056449,1,1,2) [2024-12-19 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056449', 'tblTempUsageDetail_20' ) start [2024-12-19 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056449', 'tblTempUsageDetail_20' ) end [2024-12-19 15:36:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:36:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:36:27] Production.INFO: ==30999== Releasing lock... [2024-12-19 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:36:27] Production.INFO: 66.25 MB #Memory Used# [2024-12-19 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:37:05 [end_date_ymd] => 2024-12-19 15:37:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:37:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:37:28] Production.INFO: count ==5161 [2024-12-19 15:37:30] Production.ERROR: pbx CDR StartTime 2024-12-19 12:37:05 - End Time 2024-12-19 15:37:05 [2024-12-19 15:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056454', 'tblTempUsageDetail_20' ) start [2024-12-19 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056454', 'tblTempUsageDetail_20' ) end [2024-12-19 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056454', 'tblTempVendorCDR_20' ) start [2024-12-19 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056454', 'tblTempVendorCDR_20' ) end [2024-12-19 15:37:30] Production.INFO: ProcessCDR(1,14056454,1,1,2) [2024-12-19 15:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056454', 'tblTempUsageDetail_20' ) start [2024-12-19 15:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056454', 'tblTempUsageDetail_20' ) end [2024-12-19 15:37:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:37:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:37:35] Production.INFO: ==31095== Releasing lock... [2024-12-19 15:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:37:35] Production.INFO: 66.75 MB #Memory Used# [2024-12-19 15:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:38:04 [end_date_ymd] => 2024-12-19 15:38:04 [RateCDR] => 1 ) [2024-12-19 15: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` >= '2024-12-19 12:38:04' and `end` < '2024-12-19 15: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 ,'') [2024-12-19 15:38:24] Production.INFO: count ==5177 [2024-12-19 15:38:26] Production.ERROR: pbx CDR StartTime 2024-12-19 12:38:04 - End Time 2024-12-19 15:38:04 [2024-12-19 15:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056459', 'tblTempUsageDetail_20' ) start [2024-12-19 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056459', 'tblTempUsageDetail_20' ) end [2024-12-19 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056459', 'tblTempVendorCDR_20' ) start [2024-12-19 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056459', 'tblTempVendorCDR_20' ) end [2024-12-19 15:38:26] Production.INFO: ProcessCDR(1,14056459,1,1,2) [2024-12-19 15:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056459', 'tblTempUsageDetail_20' ) start [2024-12-19 15:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056459', 'tblTempUsageDetail_20' ) end [2024-12-19 15:38:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:38:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:38:31] Production.INFO: ==31189== Releasing lock... [2024-12-19 15:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:38:31] Production.INFO: 66.75 MB #Memory Used# [2024-12-19 15:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:39:04 [end_date_ymd] => 2024-12-19 15:39:04 [RateCDR] => 1 ) [2024-12-19 15:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:39:04' and `end` < '2024-12-19 15:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:39:17] Production.INFO: count ==5219 [2024-12-19 15:39:20] Production.ERROR: pbx CDR StartTime 2024-12-19 12:39:04 - End Time 2024-12-19 15:39:04 [2024-12-19 15:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056464', 'tblTempUsageDetail_20' ) start [2024-12-19 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056464', 'tblTempUsageDetail_20' ) end [2024-12-19 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056464', 'tblTempVendorCDR_20' ) start [2024-12-19 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056464', 'tblTempVendorCDR_20' ) end [2024-12-19 15:39:20] Production.INFO: ProcessCDR(1,14056464,1,1,2) [2024-12-19 15:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056464', 'tblTempUsageDetail_20' ) start [2024-12-19 15:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056464', 'tblTempUsageDetail_20' ) end [2024-12-19 15:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:39:24] Production.INFO: ==31280== Releasing lock... [2024-12-19 15:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:39:24] Production.INFO: 67 MB #Memory Used# [2024-12-19 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:40:06 [end_date_ymd] => 2024-12-19 15:40:06 [RateCDR] => 1 ) [2024-12-19 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:40:06' and `end` < '2024-12-19 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:40:19] Production.INFO: count ==5259 [2024-12-19 15:40:22] Production.ERROR: pbx CDR StartTime 2024-12-19 12:40:06 - End Time 2024-12-19 15:40:06 [2024-12-19 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056470', 'tblTempUsageDetail_20' ) start [2024-12-19 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056470', 'tblTempUsageDetail_20' ) end [2024-12-19 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056470', 'tblTempVendorCDR_20' ) start [2024-12-19 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056470', 'tblTempVendorCDR_20' ) end [2024-12-19 15:40:22] Production.INFO: ProcessCDR(1,14056470,1,1,2) [2024-12-19 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056470', 'tblTempUsageDetail_20' ) start [2024-12-19 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056470', 'tblTempUsageDetail_20' ) end [2024-12-19 15:40:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:40:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:40:26] Production.INFO: ==31382== Releasing lock... [2024-12-19 15:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:40:26] Production.INFO: 67.5 MB #Memory Used# [2024-12-19 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:41:05 [end_date_ymd] => 2024-12-19 15:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:41:22] Production.INFO: count ==5310 [2024-12-19 15:41:25] Production.ERROR: pbx CDR StartTime 2024-12-19 12:41:05 - End Time 2024-12-19 15:41:05 [2024-12-19 15:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056475', 'tblTempUsageDetail_20' ) start [2024-12-19 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056475', 'tblTempUsageDetail_20' ) end [2024-12-19 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056475', 'tblTempVendorCDR_20' ) start [2024-12-19 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056475', 'tblTempVendorCDR_20' ) end [2024-12-19 15:41:25] Production.INFO: ProcessCDR(1,14056475,1,1,2) [2024-12-19 15:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056475', 'tblTempUsageDetail_20' ) start [2024-12-19 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056475', 'tblTempUsageDetail_20' ) end [2024-12-19 15:41:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:41:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:41:29] Production.INFO: ==31479== Releasing lock... [2024-12-19 15:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:41:29] Production.INFO: 67.75 MB #Memory Used# [2024-12-19 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:42:05 [end_date_ymd] => 2024-12-19 15:42:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:42:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:42:21] Production.INFO: count ==5354 [2024-12-19 15:42:23] Production.ERROR: pbx CDR StartTime 2024-12-19 12:42:05 - End Time 2024-12-19 15:42:05 [2024-12-19 15:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056480', 'tblTempUsageDetail_20' ) start [2024-12-19 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056480', 'tblTempUsageDetail_20' ) end [2024-12-19 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056480', 'tblTempVendorCDR_20' ) start [2024-12-19 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056480', 'tblTempVendorCDR_20' ) end [2024-12-19 15:42:24] Production.INFO: ProcessCDR(1,14056480,1,1,2) [2024-12-19 15:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056480', 'tblTempUsageDetail_20' ) start [2024-12-19 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056480', 'tblTempUsageDetail_20' ) end [2024-12-19 15:42:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:42:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:42:28] Production.INFO: ==31564== Releasing lock... [2024-12-19 15:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:42:28] Production.INFO: 68 MB #Memory Used# [2024-12-19 15:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:43:04 [end_date_ymd] => 2024-12-19 15:43:04 [RateCDR] => 1 ) [2024-12-19 15:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:43:04' and `end` < '2024-12-19 15:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:43:24] Production.INFO: count ==5431 [2024-12-19 15:43:26] Production.ERROR: pbx CDR StartTime 2024-12-19 12:43:04 - End Time 2024-12-19 15:43:04 [2024-12-19 15:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056485', 'tblTempUsageDetail_20' ) start [2024-12-19 15:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056485', 'tblTempUsageDetail_20' ) end [2024-12-19 15:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056485', 'tblTempVendorCDR_20' ) start [2024-12-19 15:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056485', 'tblTempVendorCDR_20' ) end [2024-12-19 15:43:26] Production.INFO: ProcessCDR(1,14056485,1,1,2) [2024-12-19 15:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056485', 'tblTempUsageDetail_20' ) start [2024-12-19 15:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056485', 'tblTempUsageDetail_20' ) end [2024-12-19 15:43:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:43:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:43:31] Production.INFO: ==31656== Releasing lock... [2024-12-19 15:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:43:31] Production.INFO: 68.75 MB #Memory Used# [2024-12-19 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:44:04 [end_date_ymd] => 2024-12-19 15:44:04 [RateCDR] => 1 ) [2024-12-19 15:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:44:04' and `end` < '2024-12-19 15:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:44:36] Production.INFO: count ==5499 [2024-12-19 15:44:38] Production.ERROR: pbx CDR StartTime 2024-12-19 12:44:04 - End Time 2024-12-19 15:44:04 [2024-12-19 15:44:38] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:44:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056490', 'tblTempUsageDetail_20' ) start [2024-12-19 15:44:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056490', 'tblTempUsageDetail_20' ) end [2024-12-19 15:44:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056490', 'tblTempVendorCDR_20' ) start [2024-12-19 15:44:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056490', 'tblTempVendorCDR_20' ) end [2024-12-19 15:44:39] Production.INFO: ProcessCDR(1,14056490,1,1,2) [2024-12-19 15:44:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:44:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:44:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:44:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:44:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056490', 'tblTempUsageDetail_20' ) start [2024-12-19 15:44:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056490', 'tblTempUsageDetail_20' ) end [2024-12-19 15:44:43] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:44:43] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:44:43] Production.INFO: ==31745== Releasing lock... [2024-12-19 15:44:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:44:43] Production.INFO: 69.25 MB #Memory Used# [2024-12-19 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:45:05 [end_date_ymd] => 2024-12-19 15:45:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:45:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:45:30] Production.INFO: count ==5555 [2024-12-19 15:45:33] Production.ERROR: pbx CDR StartTime 2024-12-19 12:45:05 - End Time 2024-12-19 15:45:05 [2024-12-19 15:45:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056495', 'tblTempUsageDetail_20' ) start [2024-12-19 15:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056495', 'tblTempUsageDetail_20' ) end [2024-12-19 15:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056495', 'tblTempVendorCDR_20' ) start [2024-12-19 15:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056495', 'tblTempVendorCDR_20' ) end [2024-12-19 15:45:33] Production.INFO: ProcessCDR(1,14056495,1,1,2) [2024-12-19 15:45:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056495', 'tblTempUsageDetail_20' ) start [2024-12-19 15:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056495', 'tblTempUsageDetail_20' ) end [2024-12-19 15:45:37] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:45:37] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:45:37] Production.INFO: ==31837== Releasing lock... [2024-12-19 15:45:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:45:37] Production.INFO: 69.5 MB #Memory Used# [2024-12-19 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:46:04 [end_date_ymd] => 2024-12-19 15:46:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:46:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:46:26] Production.INFO: count ==5623 [2024-12-19 15:46:28] Production.ERROR: pbx CDR StartTime 2024-12-19 12:46:04 - End Time 2024-12-19 15:46:04 [2024-12-19 15:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056500', 'tblTempUsageDetail_20' ) start [2024-12-19 15:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056500', 'tblTempUsageDetail_20' ) end [2024-12-19 15:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056500', 'tblTempVendorCDR_20' ) start [2024-12-19 15:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056500', 'tblTempVendorCDR_20' ) end [2024-12-19 15:46:29] Production.INFO: ProcessCDR(1,14056500,1,1,2) [2024-12-19 15:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056500', 'tblTempUsageDetail_20' ) start [2024-12-19 15:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056500', 'tblTempUsageDetail_20' ) end [2024-12-19 15:46:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:46:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:46:33] Production.INFO: ==31969== Releasing lock... [2024-12-19 15:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:46:33] Production.INFO: 70 MB #Memory Used# [2024-12-19 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:47:05 [end_date_ymd] => 2024-12-19 15:47:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:47:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:47:32] Production.INFO: count ==5706 [2024-12-19 15:47:35] Production.ERROR: pbx CDR StartTime 2024-12-19 12:47:05 - End Time 2024-12-19 15:47:05 [2024-12-19 15:47:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056505', 'tblTempUsageDetail_20' ) start [2024-12-19 15:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056505', 'tblTempUsageDetail_20' ) end [2024-12-19 15:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056505', 'tblTempVendorCDR_20' ) start [2024-12-19 15:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056505', 'tblTempVendorCDR_20' ) end [2024-12-19 15:47:35] Production.INFO: ProcessCDR(1,14056505,1,1,2) [2024-12-19 15:47:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:47:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:47:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:47:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:47:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056505', 'tblTempUsageDetail_20' ) start [2024-12-19 15:47:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056505', 'tblTempUsageDetail_20' ) end [2024-12-19 15:47:40] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:47:40] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:47:40] Production.INFO: ==32057== Releasing lock... [2024-12-19 15:47:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:47:40] Production.INFO: 70.75 MB #Memory Used# [2024-12-19 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:48:05 [end_date_ymd] => 2024-12-19 15:48:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:48:33] Production.INFO: count ==5757 [2024-12-19 15:48:36] Production.ERROR: pbx CDR StartTime 2024-12-19 12:48:05 - End Time 2024-12-19 15:48:05 [2024-12-19 15:48:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:48:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056510', 'tblTempUsageDetail_20' ) start [2024-12-19 15:48:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056510', 'tblTempUsageDetail_20' ) end [2024-12-19 15:48:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056510', 'tblTempVendorCDR_20' ) start [2024-12-19 15:48:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056510', 'tblTempVendorCDR_20' ) end [2024-12-19 15:48:36] Production.INFO: ProcessCDR(1,14056510,1,1,2) [2024-12-19 15:48:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:48:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:48:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:48:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:48:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056510', 'tblTempUsageDetail_20' ) start [2024-12-19 15:48:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056510', 'tblTempUsageDetail_20' ) end [2024-12-19 15:48:40] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:48:41] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:48:41] Production.INFO: ==32145== Releasing lock... [2024-12-19 15:48:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:48:41] Production.INFO: 71 MB #Memory Used# [2024-12-19 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:49:05 [end_date_ymd] => 2024-12-19 15:49:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:49:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:49:31] Production.INFO: count ==5795 [2024-12-19 15:49:33] Production.ERROR: pbx CDR StartTime 2024-12-19 12:49:05 - End Time 2024-12-19 15:49:05 [2024-12-19 15:49:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056515', 'tblTempUsageDetail_20' ) start [2024-12-19 15:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056515', 'tblTempUsageDetail_20' ) end [2024-12-19 15:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056515', 'tblTempVendorCDR_20' ) start [2024-12-19 15:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056515', 'tblTempVendorCDR_20' ) end [2024-12-19 15:49:33] Production.INFO: ProcessCDR(1,14056515,1,1,2) [2024-12-19 15:49:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:49:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:49:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:49:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:49:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056515', 'tblTempUsageDetail_20' ) start [2024-12-19 15:49:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056515', 'tblTempUsageDetail_20' ) end [2024-12-19 15:49:38] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:49:38] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:49:38] Production.INFO: ==32238== Releasing lock... [2024-12-19 15:49:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:49:38] Production.INFO: 71.5 MB #Memory Used# [2024-12-19 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:50:05 [end_date_ymd] => 2024-12-19 15:50:05 [RateCDR] => 1 ) [2024-12-19 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:50:05' and `end` < '2024-12-19 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:50:37] Production.INFO: count ==5862 [2024-12-19 15:50:40] Production.ERROR: pbx CDR StartTime 2024-12-19 12:50:05 - End Time 2024-12-19 15:50:05 [2024-12-19 15:50:40] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:50:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056521', 'tblTempUsageDetail_20' ) start [2024-12-19 15:50:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056521', 'tblTempUsageDetail_20' ) end [2024-12-19 15:50:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056521', 'tblTempVendorCDR_20' ) start [2024-12-19 15:50:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056521', 'tblTempVendorCDR_20' ) end [2024-12-19 15:50:40] Production.INFO: ProcessCDR(1,14056521,1,1,2) [2024-12-19 15:50:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:50:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:50:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:50:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:50:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056521', 'tblTempUsageDetail_20' ) start [2024-12-19 15:50:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056521', 'tblTempUsageDetail_20' ) end [2024-12-19 15:50:44] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:50:44] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:50:44] Production.INFO: ==32328== Releasing lock... [2024-12-19 15:50:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:50:44] Production.INFO: 72 MB #Memory Used# [2024-12-19 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:51:04 [end_date_ymd] => 2024-12-19 15:51:04 [RateCDR] => 1 ) [2024-12-19 15: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` >= '2024-12-19 12:51:04' and `end` < '2024-12-19 15: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 ,'') [2024-12-19 15:51:30] Production.INFO: count ==5983 [2024-12-19 15:51:32] Production.ERROR: pbx CDR StartTime 2024-12-19 12:51:04 - End Time 2024-12-19 15:51:04 [2024-12-19 15:51:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056526', 'tblTempUsageDetail_20' ) start [2024-12-19 15:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056526', 'tblTempUsageDetail_20' ) end [2024-12-19 15:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056526', 'tblTempVendorCDR_20' ) start [2024-12-19 15:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056526', 'tblTempVendorCDR_20' ) end [2024-12-19 15:51:32] Production.INFO: ProcessCDR(1,14056526,1,1,2) [2024-12-19 15:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:51:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:51:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:51:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056526', 'tblTempUsageDetail_20' ) start [2024-12-19 15:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056526', 'tblTempUsageDetail_20' ) end [2024-12-19 15:51:37] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:51:37] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:51:37] Production.INFO: ==32419== Releasing lock... [2024-12-19 15:51:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:51:37] Production.INFO: 72.75 MB #Memory Used# [2024-12-19 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:52:05 [end_date_ymd] => 2024-12-19 15:52:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:52:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:52:27] Production.INFO: count ==6636 [2024-12-19 15:52:30] Production.ERROR: pbx CDR StartTime 2024-12-19 12:52:05 - End Time 2024-12-19 15:52:05 [2024-12-19 15:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056531', 'tblTempUsageDetail_20' ) start [2024-12-19 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056531', 'tblTempUsageDetail_20' ) end [2024-12-19 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056531', 'tblTempVendorCDR_20' ) start [2024-12-19 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056531', 'tblTempVendorCDR_20' ) end [2024-12-19 15:52:30] Production.INFO: ProcessCDR(1,14056531,1,1,2) [2024-12-19 15:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:52:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056531', 'tblTempUsageDetail_20' ) start [2024-12-19 15:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056531', 'tblTempUsageDetail_20' ) end [2024-12-19 15:52:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:52:36] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:52:36] Production.INFO: ==32510== Releasing lock... [2024-12-19 15:52:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:52:36] Production.INFO: 77.75 MB #Memory Used# [2024-12-19 15:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:53:04 [end_date_ymd] => 2024-12-19 15:53:04 [RateCDR] => 1 ) [2024-12-19 15:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:53:04' and `end` < '2024-12-19 15:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:53:22] Production.INFO: count ==6770 [2024-12-19 15:53:25] Production.ERROR: pbx CDR StartTime 2024-12-19 12:53:04 - End Time 2024-12-19 15:53:04 [2024-12-19 15:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056536', 'tblTempUsageDetail_20' ) start [2024-12-19 15:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056536', 'tblTempUsageDetail_20' ) end [2024-12-19 15:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056536', 'tblTempVendorCDR_20' ) start [2024-12-19 15:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056536', 'tblTempVendorCDR_20' ) end [2024-12-19 15:53:26] Production.INFO: ProcessCDR(1,14056536,1,1,2) [2024-12-19 15:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056536', 'tblTempUsageDetail_20' ) start [2024-12-19 15:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056536', 'tblTempUsageDetail_20' ) end [2024-12-19 15:53:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:53:30] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:53:30] Production.INFO: ==32597== Releasing lock... [2024-12-19 15:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:53:30] Production.INFO: 78.75 MB #Memory Used# [2024-12-19 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:54:05 [end_date_ymd] => 2024-12-19 15:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:54:34] Production.INFO: count ==6775 [2024-12-19 15:54:37] Production.ERROR: pbx CDR StartTime 2024-12-19 12:54:05 - End Time 2024-12-19 15:54:05 [2024-12-19 15:54:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:54:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056541', 'tblTempUsageDetail_20' ) start [2024-12-19 15:54:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056541', 'tblTempUsageDetail_20' ) end [2024-12-19 15:54:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056541', 'tblTempVendorCDR_20' ) start [2024-12-19 15:54:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056541', 'tblTempVendorCDR_20' ) end [2024-12-19 15:54:38] Production.INFO: ProcessCDR(1,14056541,1,1,2) [2024-12-19 15:54:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:54:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:54:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:54:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:54:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056541', 'tblTempUsageDetail_20' ) start [2024-12-19 15:54:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056541', 'tblTempUsageDetail_20' ) end [2024-12-19 15:54:42] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:54:42] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:54:42] Production.INFO: ==32687== Releasing lock... [2024-12-19 15:54:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:54:42] Production.INFO: 78.75 MB #Memory Used# [2024-12-19 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:55:05 [end_date_ymd] => 2024-12-19 15:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:55:27] Production.INFO: count ==6872 [2024-12-19 15:55:30] Production.ERROR: pbx CDR StartTime 2024-12-19 12:55:05 - End Time 2024-12-19 15:55:05 [2024-12-19 15:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056546', 'tblTempUsageDetail_20' ) start [2024-12-19 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056546', 'tblTempUsageDetail_20' ) end [2024-12-19 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056546', 'tblTempVendorCDR_20' ) start [2024-12-19 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056546', 'tblTempVendorCDR_20' ) end [2024-12-19 15:55:30] Production.INFO: ProcessCDR(1,14056546,1,1,2) [2024-12-19 15:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056546', 'tblTempUsageDetail_20' ) start [2024-12-19 15:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056546', 'tblTempUsageDetail_20' ) end [2024-12-19 15:55:36] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:55:36] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:55:36] Production.INFO: ==315== Releasing lock... [2024-12-19 15:55:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:55:36] Production.INFO: 79.5 MB #Memory Used# [2024-12-19 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:56:05 [end_date_ymd] => 2024-12-19 15:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:56:26] Production.INFO: count ==7008 [2024-12-19 15:56:29] Production.ERROR: pbx CDR StartTime 2024-12-19 12:56:05 - End Time 2024-12-19 15:56:05 [2024-12-19 15:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056551', 'tblTempUsageDetail_20' ) start [2024-12-19 15:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056551', 'tblTempUsageDetail_20' ) end [2024-12-19 15:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056551', 'tblTempVendorCDR_20' ) start [2024-12-19 15:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056551', 'tblTempVendorCDR_20' ) end [2024-12-19 15:56:29] Production.INFO: ProcessCDR(1,14056551,1,1,2) [2024-12-19 15:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:56:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:56:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:56:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056551', 'tblTempUsageDetail_20' ) start [2024-12-19 15:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056551', 'tblTempUsageDetail_20' ) end [2024-12-19 15:56:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:56:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:56:35] Production.INFO: ==439== Releasing lock... [2024-12-19 15:56:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:56:35] Production.INFO: 80.5 MB #Memory Used# [2024-12-19 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:57:04 [end_date_ymd] => 2024-12-19 15:57:04 [RateCDR] => 1 ) [2024-12-19 15: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` >= '2024-12-19 12:57:04' and `end` < '2024-12-19 15: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 ,'') [2024-12-19 15:57:26] Production.INFO: count ==7187 [2024-12-19 15:57:29] Production.ERROR: pbx CDR StartTime 2024-12-19 12:57:04 - End Time 2024-12-19 15:57:04 [2024-12-19 15:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056556', 'tblTempUsageDetail_20' ) start [2024-12-19 15:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056556', 'tblTempUsageDetail_20' ) end [2024-12-19 15:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056556', 'tblTempVendorCDR_20' ) start [2024-12-19 15:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056556', 'tblTempVendorCDR_20' ) end [2024-12-19 15:57:30] Production.INFO: ProcessCDR(1,14056556,1,1,2) [2024-12-19 15:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056556', 'tblTempUsageDetail_20' ) start [2024-12-19 15:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056556', 'tblTempUsageDetail_20' ) end [2024-12-19 15:57:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:57:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:57:35] Production.INFO: ==545== Releasing lock... [2024-12-19 15:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:57:35] Production.INFO: 82.25 MB #Memory Used# [2024-12-19 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:58:05 [end_date_ymd] => 2024-12-19 15:58:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 12:58:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 15:58:25] Production.INFO: count ==7321 [2024-12-19 15:58:28] Production.ERROR: pbx CDR StartTime 2024-12-19 12:58:05 - End Time 2024-12-19 15:58:05 [2024-12-19 15:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056561', 'tblTempUsageDetail_20' ) start [2024-12-19 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056561', 'tblTempUsageDetail_20' ) end [2024-12-19 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056561', 'tblTempVendorCDR_20' ) start [2024-12-19 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056561', 'tblTempVendorCDR_20' ) end [2024-12-19 15:58:28] Production.INFO: ProcessCDR(1,14056561,1,1,2) [2024-12-19 15:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056561', 'tblTempUsageDetail_20' ) start [2024-12-19 15:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056561', 'tblTempUsageDetail_20' ) end [2024-12-19 15:58:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:58:34] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:58:34] Production.INFO: ==680== Releasing lock... [2024-12-19 15:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:58:34] Production.INFO: 83.25 MB #Memory Used# [2024-12-19 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 12:59:04 [end_date_ymd] => 2024-12-19 15:59:04 [RateCDR] => 1 ) [2024-12-19 15:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 12:59:04' and `end` < '2024-12-19 15:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 15:59:26] Production.INFO: count ==7498 [2024-12-19 15:59:29] Production.ERROR: pbx CDR StartTime 2024-12-19 12:59:04 - End Time 2024-12-19 15:59:04 [2024-12-19 15:59:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056566', 'tblTempUsageDetail_20' ) start [2024-12-19 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056566', 'tblTempUsageDetail_20' ) end [2024-12-19 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056566', 'tblTempVendorCDR_20' ) start [2024-12-19 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056566', 'tblTempVendorCDR_20' ) end [2024-12-19 15:59:29] Production.INFO: ProcessCDR(1,14056566,1,1,2) [2024-12-19 15:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:59:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 15:59:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:59:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 15:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056566', 'tblTempUsageDetail_20' ) start [2024-12-19 15:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056566', 'tblTempUsageDetail_20' ) end [2024-12-19 15:59:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 15:59:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 15:59:35] Production.INFO: ==799== Releasing lock... [2024-12-19 15:59:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 15:59:35] Production.INFO: 84.75 MB #Memory Used# [2024-12-19 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:00:06 [end_date_ymd] => 2024-12-19 16:00:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:00:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:00:20] Production.INFO: count ==7779 [2024-12-19 16:00:24] Production.ERROR: pbx CDR StartTime 2024-12-19 13:00:06 - End Time 2024-12-19 16:00:06 [2024-12-19 16:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056572', 'tblTempUsageDetail_20' ) start [2024-12-19 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056572', 'tblTempUsageDetail_20' ) end [2024-12-19 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056572', 'tblTempVendorCDR_20' ) start [2024-12-19 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056572', 'tblTempVendorCDR_20' ) end [2024-12-19 16:00:24] Production.INFO: ProcessCDR(1,14056572,1,1,2) [2024-12-19 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056572', 'tblTempUsageDetail_20' ) start [2024-12-19 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056572', 'tblTempUsageDetail_20' ) end [2024-12-19 16:00:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:00:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:00:29] Production.INFO: ==902== Releasing lock... [2024-12-19 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:00:29] Production.INFO: 86.75 MB #Memory Used# [2024-12-19 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:01:04 [end_date_ymd] => 2024-12-19 16:01:04 [RateCDR] => 1 ) [2024-12-19 16:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:01:04' and `end` < '2024-12-19 16:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:01:20] Production.INFO: count ==7893 [2024-12-19 16:01:24] Production.ERROR: pbx CDR StartTime 2024-12-19 13:01:04 - End Time 2024-12-19 16:01:04 [2024-12-19 16:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056577', 'tblTempUsageDetail_20' ) start [2024-12-19 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056577', 'tblTempUsageDetail_20' ) end [2024-12-19 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056577', 'tblTempVendorCDR_20' ) start [2024-12-19 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056577', 'tblTempVendorCDR_20' ) end [2024-12-19 16:01:24] Production.INFO: ProcessCDR(1,14056577,1,1,2) [2024-12-19 16:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056577', 'tblTempUsageDetail_20' ) start [2024-12-19 16:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056577', 'tblTempUsageDetail_20' ) end [2024-12-19 16:01:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:01:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:01:29] Production.INFO: ==1009== Releasing lock... [2024-12-19 16:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:01:29] Production.INFO: 87.5 MB #Memory Used# [2024-12-19 16:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:02:04 [end_date_ymd] => 2024-12-19 16:02:04 [RateCDR] => 1 ) [2024-12-19 16: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` >= '2024-12-19 13:02:04' and `end` < '2024-12-19 16: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 ,'') [2024-12-19 16:02:04] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2024-12-19 16:02:05] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:02:05] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:02:05] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:02:05] Production.INFO: ==1142== Releasing lock... [2024-12-19 16:02:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:02:05] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:03:05 [end_date_ymd] => 2024-12-19 16:03:05 [RateCDR] => 1 ) [2024-12-19 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:03:05' and `end` < '2024-12-19 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:03:35] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2024-12-19 16:03:35] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:03:36] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:03:36] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:03:36] Production.INFO: ==1247== Releasing lock... [2024-12-19 16:03:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:03:36] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:04:04 [end_date_ymd] => 2024-12-19 16:04:04 [RateCDR] => 1 ) [2024-12-19 16:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:04:04' and `end` < '2024-12-19 16:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:04:34] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2024-12-19 16:04:34] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:04:35] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:04:35] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:04:35] Production.INFO: ==1344== Releasing lock... [2024-12-19 16:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:04:35] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:05:04 [end_date_ymd] => 2024-12-19 16:05:04 [RateCDR] => 1 ) [2024-12-19 16:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:05:04' and `end` < '2024-12-19 16:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:05:34] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2024-12-19 16:05:34] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:05:35] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:05:35] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:05:35] Production.INFO: ==1437== Releasing lock... [2024-12-19 16:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:05:35] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:06:03] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:06:03 [end_date_ymd] => 2024-12-19 16:06:03 [RateCDR] => 1 ) [2024-12-19 16:06:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:06:03' and `end` < '2024-12-19 16:06:03' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:06:03] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2024-12-19 16:06:03] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:06:04] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:06:04] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:06:04] Production.INFO: ==1567== Releasing lock... [2024-12-19 16:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:06:04] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:07:04 [end_date_ymd] => 2024-12-19 16:07:04 [RateCDR] => 1 ) [2024-12-19 16: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` >= '2024-12-19 13:07:04' and `end` < '2024-12-19 16: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 ,'') [2024-12-19 16:09:20] Production.INFO: count ==7898 [2024-12-19 16:09:24] Production.ERROR: pbx CDR StartTime 2024-12-19 13:07:04 - End Time 2024-12-19 16:07:04 [2024-12-19 16:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056607', 'tblTempUsageDetail_20' ) start [2024-12-19 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056607', 'tblTempUsageDetail_20' ) end [2024-12-19 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056607', 'tblTempVendorCDR_20' ) start [2024-12-19 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056607', 'tblTempVendorCDR_20' ) end [2024-12-19 16:09:24] Production.INFO: ProcessCDR(1,14056607,1,1,2) [2024-12-19 16:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056607', 'tblTempUsageDetail_20' ) start [2024-12-19 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056607', 'tblTempUsageDetail_20' ) end [2024-12-19 16:09:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:09:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:09:29] Production.INFO: ==1666== Releasing lock... [2024-12-19 16:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:09:29] Production.INFO: 87.5 MB #Memory Used# [2024-12-19 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:10:06 [end_date_ymd] => 2024-12-19 16:10:06 [RateCDR] => 1 ) [2024-12-19 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:10:06' and `end` < '2024-12-19 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:10:19] Production.INFO: count ==7932 [2024-12-19 16:10:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:10:06 - End Time 2024-12-19 16:10:06 [2024-12-19 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056621', 'tblTempUsageDetail_20' ) start [2024-12-19 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056621', 'tblTempUsageDetail_20' ) end [2024-12-19 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056621', 'tblTempVendorCDR_20' ) start [2024-12-19 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056621', 'tblTempVendorCDR_20' ) end [2024-12-19 16:10:23] Production.INFO: ProcessCDR(1,14056621,1,1,2) [2024-12-19 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056621', 'tblTempUsageDetail_20' ) start [2024-12-19 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056621', 'tblTempUsageDetail_20' ) end [2024-12-19 16:10:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:10:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:10:27] Production.INFO: ==1949== Releasing lock... [2024-12-19 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:10:27] Production.INFO: 87.75 MB #Memory Used# [2024-12-19 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:11:04 [end_date_ymd] => 2024-12-19 16:11:04 [RateCDR] => 1 ) [2024-12-19 16: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` >= '2024-12-19 13:11:04' and `end` < '2024-12-19 16: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 ,'') [2024-12-19 16:11:17] Production.INFO: count ==7967 [2024-12-19 16:11:21] Production.ERROR: pbx CDR StartTime 2024-12-19 13:11:04 - End Time 2024-12-19 16:11:04 [2024-12-19 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056626', 'tblTempUsageDetail_20' ) start [2024-12-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056626', 'tblTempUsageDetail_20' ) end [2024-12-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056626', 'tblTempVendorCDR_20' ) start [2024-12-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056626', 'tblTempVendorCDR_20' ) end [2024-12-19 16:11:21] Production.INFO: ProcessCDR(1,14056626,1,1,2) [2024-12-19 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056626', 'tblTempUsageDetail_20' ) start [2024-12-19 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056626', 'tblTempUsageDetail_20' ) end [2024-12-19 16:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:11:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:11:26] Production.INFO: ==2042== Releasing lock... [2024-12-19 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:11:26] Production.INFO: 88 MB #Memory Used# [2024-12-19 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:12:05 [end_date_ymd] => 2024-12-19 16:12:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:12:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:12:18] Production.INFO: count ==8040 [2024-12-19 16:12:22] Production.ERROR: pbx CDR StartTime 2024-12-19 13:12:05 - End Time 2024-12-19 16:12:05 [2024-12-19 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056631', 'tblTempUsageDetail_20' ) start [2024-12-19 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056631', 'tblTempUsageDetail_20' ) end [2024-12-19 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056631', 'tblTempVendorCDR_20' ) start [2024-12-19 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056631', 'tblTempVendorCDR_20' ) end [2024-12-19 16:12:22] Production.INFO: ProcessCDR(1,14056631,1,1,2) [2024-12-19 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056631', 'tblTempUsageDetail_20' ) start [2024-12-19 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056631', 'tblTempUsageDetail_20' ) end [2024-12-19 16:12:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:12:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:12:27] Production.INFO: ==2130== Releasing lock... [2024-12-19 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:12:27] Production.INFO: 88.75 MB #Memory Used# [2024-12-19 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:13:05 [end_date_ymd] => 2024-12-19 16:13:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:13:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:13:18] Production.INFO: count ==8036 [2024-12-19 16:13:22] Production.ERROR: pbx CDR StartTime 2024-12-19 13:13:05 - End Time 2024-12-19 16:13:05 [2024-12-19 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056636', 'tblTempUsageDetail_20' ) start [2024-12-19 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056636', 'tblTempUsageDetail_20' ) end [2024-12-19 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056636', 'tblTempVendorCDR_20' ) start [2024-12-19 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056636', 'tblTempVendorCDR_20' ) end [2024-12-19 16:13:22] Production.INFO: ProcessCDR(1,14056636,1,1,2) [2024-12-19 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056636', 'tblTempUsageDetail_20' ) start [2024-12-19 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056636', 'tblTempUsageDetail_20' ) end [2024-12-19 16:13:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:13:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:13:26] Production.INFO: ==2228== Releasing lock... [2024-12-19 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:13:26] Production.INFO: 88.75 MB #Memory Used# [2024-12-19 16:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:14:04 [end_date_ymd] => 2024-12-19 16:14:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:14:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:14:18] Production.INFO: count ==8089 [2024-12-19 16:14:22] Production.ERROR: pbx CDR StartTime 2024-12-19 13:14:04 - End Time 2024-12-19 16:14:04 [2024-12-19 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056641', 'tblTempUsageDetail_20' ) start [2024-12-19 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056641', 'tblTempUsageDetail_20' ) end [2024-12-19 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056641', 'tblTempVendorCDR_20' ) start [2024-12-19 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056641', 'tblTempVendorCDR_20' ) end [2024-12-19 16:14:22] Production.INFO: ProcessCDR(1,14056641,1,1,2) [2024-12-19 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056641', 'tblTempUsageDetail_20' ) start [2024-12-19 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056641', 'tblTempUsageDetail_20' ) end [2024-12-19 16:14:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:14:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:14:27] Production.INFO: ==2318== Releasing lock... [2024-12-19 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:14:27] Production.INFO: 89 MB #Memory Used# [2024-12-19 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:15:05 [end_date_ymd] => 2024-12-19 16:15:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:15:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:15:19] Production.INFO: count ==8135 [2024-12-19 16:15:22] Production.ERROR: pbx CDR StartTime 2024-12-19 13:15:05 - End Time 2024-12-19 16:15:05 [2024-12-19 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056646', 'tblTempUsageDetail_20' ) start [2024-12-19 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056646', 'tblTempUsageDetail_20' ) end [2024-12-19 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056646', 'tblTempVendorCDR_20' ) start [2024-12-19 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056646', 'tblTempVendorCDR_20' ) end [2024-12-19 16:15:22] Production.INFO: ProcessCDR(1,14056646,1,1,2) [2024-12-19 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056646', 'tblTempUsageDetail_20' ) start [2024-12-19 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056646', 'tblTempUsageDetail_20' ) end [2024-12-19 16:15:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:15:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:15:27] Production.INFO: ==2409== Releasing lock... [2024-12-19 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:15:27] Production.INFO: 89.25 MB #Memory Used# [2024-12-19 16:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:16:04 [end_date_ymd] => 2024-12-19 16:16:04 [RateCDR] => 1 ) [2024-12-19 16:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:16:04' and `end` < '2024-12-19 16:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:16:04] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2024-12-19 16:16:04] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:16:05] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:16:05] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:16:05] Production.INFO: ==2505== Releasing lock... [2024-12-19 16:16:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:16:05] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:17:05 [end_date_ymd] => 2024-12-19 16:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:17:35] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2024-12-19 16:17:35] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:17:35] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:17:35] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:17:35] Production.INFO: ==2606== Releasing lock... [2024-12-19 16:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:17:35] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:18:03] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:18:03 [end_date_ymd] => 2024-12-19 16:18:03 [RateCDR] => 1 ) [2024-12-19 16:18:03] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:18:03' and `end` < '2024-12-19 16:18:03' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:18:33] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2024-12-19 16:18:33] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:18:34] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:18:34] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:18:34] Production.INFO: ==2738== Releasing lock... [2024-12-19 16:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:18:34] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:19:04 [end_date_ymd] => 2024-12-19 16:19:04 [RateCDR] => 1 ) [2024-12-19 16:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:19:04' and `end` < '2024-12-19 16:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:19:34] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2024-12-19 16:19:34] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:19:34] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:19:34] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:19:34] Production.INFO: ==2828== Releasing lock... [2024-12-19 16:19:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:19:34] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:20:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:20:04 [end_date_ymd] => 2024-12-19 16:20:04 [RateCDR] => 1 ) [2024-12-19 16:20:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:20:04' and `end` < '2024-12-19 16:20:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:23:17] Production.INFO: count ==8114 [2024-12-19 16:23:21] Production.ERROR: pbx CDR StartTime 2024-12-19 13:20:04 - End Time 2024-12-19 16:20:04 [2024-12-19 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056671', 'tblTempUsageDetail_20' ) start [2024-12-19 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056671', 'tblTempUsageDetail_20' ) end [2024-12-19 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056671', 'tblTempVendorCDR_20' ) start [2024-12-19 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056671', 'tblTempVendorCDR_20' ) end [2024-12-19 16:23:21] Production.INFO: ProcessCDR(1,14056671,1,1,2) [2024-12-19 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056671', 'tblTempUsageDetail_20' ) start [2024-12-19 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056671', 'tblTempUsageDetail_20' ) end [2024-12-19 16:23:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:23:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:23:25] Production.INFO: ==2903== Releasing lock... [2024-12-19 16:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:23:25] Production.INFO: 89.25 MB #Memory Used# [2024-12-19 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:24:05 [end_date_ymd] => 2024-12-19 16:24:05 [RateCDR] => 1 ) [2024-12-19 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:24:05' and `end` < '2024-12-19 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:24:20] Production.INFO: count ==6511 [2024-12-19 16:24:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:24:05 - End Time 2024-12-19 16:24:05 [2024-12-19 16:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056689', 'tblTempUsageDetail_20' ) start [2024-12-19 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056689', 'tblTempUsageDetail_20' ) end [2024-12-19 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056689', 'tblTempVendorCDR_20' ) start [2024-12-19 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056689', 'tblTempVendorCDR_20' ) end [2024-12-19 16:24:24] Production.INFO: ProcessCDR(1,14056689,1,1,2) [2024-12-19 16:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056689', 'tblTempUsageDetail_20' ) start [2024-12-19 16:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056689', 'tblTempUsageDetail_20' ) end [2024-12-19 16:24:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:24:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:24:29] Production.INFO: ==3226== Releasing lock... [2024-12-19 16:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:24:29] Production.INFO: 76.75 MB #Memory Used# [2024-12-19 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:25:04 [end_date_ymd] => 2024-12-19 16:25:04 [RateCDR] => 1 ) [2024-12-19 16:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:25:04' and `end` < '2024-12-19 16:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:25:18] Production.INFO: count ==6533 [2024-12-19 16:25:21] Production.ERROR: pbx CDR StartTime 2024-12-19 13:25:04 - End Time 2024-12-19 16:25:04 [2024-12-19 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056694', 'tblTempUsageDetail_20' ) start [2024-12-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056694', 'tblTempUsageDetail_20' ) end [2024-12-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056694', 'tblTempVendorCDR_20' ) start [2024-12-19 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056694', 'tblTempVendorCDR_20' ) end [2024-12-19 16:25:21] Production.INFO: ProcessCDR(1,14056694,1,1,2) [2024-12-19 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056694', 'tblTempUsageDetail_20' ) start [2024-12-19 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056694', 'tblTempUsageDetail_20' ) end [2024-12-19 16:25:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:25:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:25:26] Production.INFO: ==3304== Releasing lock... [2024-12-19 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:25:26] Production.INFO: 77 MB #Memory Used# [2024-12-19 16:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:26:04 [end_date_ymd] => 2024-12-19 16:26:04 [RateCDR] => 1 ) [2024-12-19 16:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:26:04' and `end` < '2024-12-19 16:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:26:17] Production.INFO: count ==6545 [2024-12-19 16:26:21] Production.ERROR: pbx CDR StartTime 2024-12-19 13:26:04 - End Time 2024-12-19 16:26:04 [2024-12-19 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056699', 'tblTempUsageDetail_20' ) start [2024-12-19 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056699', 'tblTempUsageDetail_20' ) end [2024-12-19 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056699', 'tblTempVendorCDR_20' ) start [2024-12-19 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056699', 'tblTempVendorCDR_20' ) end [2024-12-19 16:26:21] Production.INFO: ProcessCDR(1,14056699,1,1,2) [2024-12-19 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056699', 'tblTempUsageDetail_20' ) start [2024-12-19 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056699', 'tblTempUsageDetail_20' ) end [2024-12-19 16:26:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:26:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:26:26] Production.INFO: ==3394== Releasing lock... [2024-12-19 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:26:26] Production.INFO: 77 MB #Memory Used# [2024-12-19 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:27:05 [end_date_ymd] => 2024-12-19 16:27:05 [RateCDR] => 1 ) [2024-12-19 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:27:05' and `end` < '2024-12-19 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:27:18] Production.INFO: count ==6556 [2024-12-19 16:27:21] Production.ERROR: pbx CDR StartTime 2024-12-19 13:27:05 - End Time 2024-12-19 16:27:05 [2024-12-19 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056704', 'tblTempUsageDetail_20' ) start [2024-12-19 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056704', 'tblTempUsageDetail_20' ) end [2024-12-19 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056704', 'tblTempVendorCDR_20' ) start [2024-12-19 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056704', 'tblTempVendorCDR_20' ) end [2024-12-19 16:27:22] Production.INFO: ProcessCDR(1,14056704,1,1,2) [2024-12-19 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056704', 'tblTempUsageDetail_20' ) start [2024-12-19 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056704', 'tblTempUsageDetail_20' ) end [2024-12-19 16:27:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:27:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:27:26] Production.INFO: ==3477== Releasing lock... [2024-12-19 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:27:26] Production.INFO: 77 MB #Memory Used# [2024-12-19 16:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:28:04 [end_date_ymd] => 2024-12-19 16:28:04 [RateCDR] => 1 ) [2024-12-19 16:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:28:04' and `end` < '2024-12-19 16:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:28:19] Production.INFO: count ==6907 [2024-12-19 16:28:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:28:04 - End Time 2024-12-19 16:28:04 [2024-12-19 16:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056709', 'tblTempUsageDetail_20' ) start [2024-12-19 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056709', 'tblTempUsageDetail_20' ) end [2024-12-19 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056709', 'tblTempVendorCDR_20' ) start [2024-12-19 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056709', 'tblTempVendorCDR_20' ) end [2024-12-19 16:28:23] Production.INFO: ProcessCDR(1,14056709,1,1,2) [2024-12-19 16:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056709', 'tblTempUsageDetail_20' ) start [2024-12-19 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056709', 'tblTempUsageDetail_20' ) end [2024-12-19 16:28:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:28:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:28:28] Production.INFO: ==3559== Releasing lock... [2024-12-19 16:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:28:28] Production.INFO: 79.75 MB #Memory Used# [2024-12-19 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:29:05 [end_date_ymd] => 2024-12-19 16:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:29:22] Production.INFO: count ==7077 [2024-12-19 16:29:26] Production.ERROR: pbx CDR StartTime 2024-12-19 13:29:05 - End Time 2024-12-19 16:29:05 [2024-12-19 16:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056714', 'tblTempUsageDetail_20' ) start [2024-12-19 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056714', 'tblTempUsageDetail_20' ) end [2024-12-19 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056714', 'tblTempVendorCDR_20' ) start [2024-12-19 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056714', 'tblTempVendorCDR_20' ) end [2024-12-19 16:29:26] Production.INFO: ProcessCDR(1,14056714,1,1,2) [2024-12-19 16:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056714', 'tblTempUsageDetail_20' ) start [2024-12-19 16:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056714', 'tblTempUsageDetail_20' ) end [2024-12-19 16:29:31] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:29:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:29:31] Production.INFO: ==3642== Releasing lock... [2024-12-19 16:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:29:31] Production.INFO: 81.5 MB #Memory Used# [2024-12-19 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:30:05 [end_date_ymd] => 2024-12-19 16:30:05 [RateCDR] => 1 ) [2024-12-19 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:30:05' and `end` < '2024-12-19 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:30:37] Production.INFO: count ==7185 [2024-12-19 16:30:41] Production.ERROR: pbx CDR StartTime 2024-12-19 13:30:05 - End Time 2024-12-19 16:30:05 [2024-12-19 16:30:41] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:30:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056720', 'tblTempUsageDetail_20' ) start [2024-12-19 16:30:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056720', 'tblTempUsageDetail_20' ) end [2024-12-19 16:30:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056720', 'tblTempVendorCDR_20' ) start [2024-12-19 16:30:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056720', 'tblTempVendorCDR_20' ) end [2024-12-19 16:30:42] Production.INFO: ProcessCDR(1,14056720,1,1,2) [2024-12-19 16:30:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:30:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:30:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:30:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:30:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056720', 'tblTempUsageDetail_20' ) start [2024-12-19 16:30:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056720', 'tblTempUsageDetail_20' ) end [2024-12-19 16:30:46] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:30:46] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:30:46] Production.INFO: ==3724== Releasing lock... [2024-12-19 16:30:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:30:46] Production.INFO: 82.25 MB #Memory Used# [2024-12-19 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:31:04 [end_date_ymd] => 2024-12-19 16:31:04 [RateCDR] => 1 ) [2024-12-19 16:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:31:04' and `end` < '2024-12-19 16:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:31:23] Production.INFO: count ==7329 [2024-12-19 16:31:27] Production.ERROR: pbx CDR StartTime 2024-12-19 13:31:04 - End Time 2024-12-19 16:31:04 [2024-12-19 16:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056725', 'tblTempUsageDetail_20' ) start [2024-12-19 16:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056725', 'tblTempUsageDetail_20' ) end [2024-12-19 16:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056725', 'tblTempVendorCDR_20' ) start [2024-12-19 16:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056725', 'tblTempVendorCDR_20' ) end [2024-12-19 16:31:28] Production.INFO: ProcessCDR(1,14056725,1,1,2) [2024-12-19 16:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:31:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:31:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056725', 'tblTempUsageDetail_20' ) start [2024-12-19 16:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056725', 'tblTempUsageDetail_20' ) end [2024-12-19 16:31:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:31:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:31:33] Production.INFO: ==3805== Releasing lock... [2024-12-19 16:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:31:33] Production.INFO: 83.25 MB #Memory Used# [2024-12-19 16:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:32:04 [end_date_ymd] => 2024-12-19 16:32:04 [RateCDR] => 1 ) [2024-12-19 16:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:32:04' and `end` < '2024-12-19 16:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:32:24] Production.INFO: count ==7361 [2024-12-19 16:32:28] Production.ERROR: pbx CDR StartTime 2024-12-19 13:32:04 - End Time 2024-12-19 16:32:04 [2024-12-19 16:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056730', 'tblTempUsageDetail_20' ) start [2024-12-19 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056730', 'tblTempUsageDetail_20' ) end [2024-12-19 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056730', 'tblTempVendorCDR_20' ) start [2024-12-19 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056730', 'tblTempVendorCDR_20' ) end [2024-12-19 16:32:28] Production.INFO: ProcessCDR(1,14056730,1,1,2) [2024-12-19 16:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056730', 'tblTempUsageDetail_20' ) start [2024-12-19 16:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056730', 'tblTempUsageDetail_20' ) end [2024-12-19 16:32:33] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:32:33] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:32:33] Production.INFO: ==3895== Releasing lock... [2024-12-19 16:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:32:33] Production.INFO: 83.5 MB #Memory Used# [2024-12-19 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:33:04 [end_date_ymd] => 2024-12-19 16:33:04 [RateCDR] => 1 ) [2024-12-19 16:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:33:04' and `end` < '2024-12-19 16:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:33:18] Production.INFO: count ==7373 [2024-12-19 16:33:21] Production.ERROR: pbx CDR StartTime 2024-12-19 13:33:04 - End Time 2024-12-19 16:33:04 [2024-12-19 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056735', 'tblTempUsageDetail_20' ) start [2024-12-19 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056735', 'tblTempUsageDetail_20' ) end [2024-12-19 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056735', 'tblTempVendorCDR_20' ) start [2024-12-19 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056735', 'tblTempVendorCDR_20' ) end [2024-12-19 16:33:22] Production.INFO: ProcessCDR(1,14056735,1,1,2) [2024-12-19 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056735', 'tblTempUsageDetail_20' ) start [2024-12-19 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056735', 'tblTempUsageDetail_20' ) end [2024-12-19 16:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:33:25] Production.INFO: ==4017== Releasing lock... [2024-12-19 16:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:33:25] Production.INFO: 83.75 MB #Memory Used# [2024-12-19 16:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:34:04 [end_date_ymd] => 2024-12-19 16:34:04 [RateCDR] => 1 ) [2024-12-19 16:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:34:04' and `end` < '2024-12-19 16:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:34:09] Production.INFO: count ==0 [2024-12-19 16:34:09] Production.ERROR: pbx CDR StartTime 2024-12-19 13:34:04 - End Time 2024-12-19 16:34:04 [2024-12-19 16:34:09] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:34:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056740', 'tblTempUsageDetail_20' ) start [2024-12-19 16:34:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056740', 'tblTempUsageDetail_20' ) end [2024-12-19 16:34:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056740', 'tblTempVendorCDR_20' ) start [2024-12-19 16:34:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056740', 'tblTempVendorCDR_20' ) end [2024-12-19 16:34:09] Production.INFO: ProcessCDR(1,14056740,1,1,2) [2024-12-19 16:34:09] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:34:10] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:34:10] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:34:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:34:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056740', 'tblTempUsageDetail_20' ) start [2024-12-19 16:34:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056740', 'tblTempUsageDetail_20' ) end [2024-12-19 16:34:13] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:34:13] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:34:13] Production.INFO: ==4106== Releasing lock... [2024-12-19 16:34:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:34:13] Production.INFO: 27.5 MB #Memory Used# [2024-12-19 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:35:04 [end_date_ymd] => 2024-12-19 16:35:04 [RateCDR] => 1 ) [2024-12-19 16: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` >= '2024-12-19 13:35:04' and `end` < '2024-12-19 16: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 ,'') [2024-12-19 16:35:04] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2024-12-19 16:35:04] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:35:05] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:35:05] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:35:05] Production.INFO: ==4190== Releasing lock... [2024-12-19 16:35:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:35:05] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:36:04 [end_date_ymd] => 2024-12-19 16:36:04 [RateCDR] => 1 ) [2024-12-19 16:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:36:04' and `end` < '2024-12-19 16:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:36:34] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2024-12-19 16:36:34] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:36:35] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:36:35] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:36:35] Production.INFO: ==4272== Releasing lock... [2024-12-19 16:36:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:36:35] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:37:04 [end_date_ymd] => 2024-12-19 16:37:04 [RateCDR] => 1 ) [2024-12-19 16: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` >= '2024-12-19 13:37:04' and `end` < '2024-12-19 16: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 ,'') [2024-12-19 16:37:34] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2024-12-19 16:37:34] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:37:35] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:37:35] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:37:35] Production.INFO: ==4355== Releasing lock... [2024-12-19 16:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:37:35] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:38:04 [end_date_ymd] => 2024-12-19 16:38:04 [RateCDR] => 1 ) [2024-12-19 16:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:38:04' and `end` < '2024-12-19 16:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:38:34] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection timed out [2024-12-19 16:38:34] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection timed out' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2024-12-19 16:38:34] Production.ERROR: **Email Sent Status 1 [2024-12-19 16:38:34] Production.ERROR: **Email Sent message Email has been sent [2024-12-19 16:38:34] Production.INFO: ==4437== Releasing lock... [2024-12-19 16:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:38:34] Production.INFO: 29.5 MB #Memory Used# [2024-12-19 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:39:04 [end_date_ymd] => 2024-12-19 16:39:04 [RateCDR] => 1 ) [2024-12-19 16: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` >= '2024-12-19 13:39:04' and `end` < '2024-12-19 16: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 ,'') [2024-12-19 16:41:44] Production.INFO: count ==7462 [2024-12-19 16:41:48] Production.ERROR: pbx CDR StartTime 2024-12-19 13:39:04 - End Time 2024-12-19 16:39:04 [2024-12-19 16:41:48] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:41:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056765', 'tblTempUsageDetail_20' ) start [2024-12-19 16:41:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056765', 'tblTempUsageDetail_20' ) end [2024-12-19 16:41:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056765', 'tblTempVendorCDR_20' ) start [2024-12-19 16:41:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056765', 'tblTempVendorCDR_20' ) end [2024-12-19 16:41:48] Production.INFO: ProcessCDR(1,14056765,1,1,2) [2024-12-19 16:41:48] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:41:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:41:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:41:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:41:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056765', 'tblTempUsageDetail_20' ) start [2024-12-19 16:41:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056765', 'tblTempUsageDetail_20' ) end [2024-12-19 16:41:53] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:41:53] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:41:53] Production.INFO: ==4522== Releasing lock... [2024-12-19 16:41:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:41:53] Production.INFO: 84.25 MB #Memory Used# [2024-12-19 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:42:05 [end_date_ymd] => 2024-12-19 16:42:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:42:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:42:19] Production.INFO: count ==7731 [2024-12-19 16:42:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:42:05 - End Time 2024-12-19 16:42:05 [2024-12-19 16:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056779', 'tblTempUsageDetail_20' ) start [2024-12-19 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056779', 'tblTempUsageDetail_20' ) end [2024-12-19 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056779', 'tblTempVendorCDR_20' ) start [2024-12-19 16:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056779', 'tblTempVendorCDR_20' ) end [2024-12-19 16:42:24] Production.INFO: ProcessCDR(1,14056779,1,1,2) [2024-12-19 16:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056779', 'tblTempUsageDetail_20' ) start [2024-12-19 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056779', 'tblTempUsageDetail_20' ) end [2024-12-19 16:42:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:42:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:42:28] Production.INFO: ==4778== Releasing lock... [2024-12-19 16:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:42:28] Production.INFO: 86.25 MB #Memory Used# [2024-12-19 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:43:05 [end_date_ymd] => 2024-12-19 16:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:43:18] Production.INFO: count ==7839 [2024-12-19 16:43:22] Production.ERROR: pbx CDR StartTime 2024-12-19 13:43:05 - End Time 2024-12-19 16:43:05 [2024-12-19 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056784', 'tblTempUsageDetail_20' ) start [2024-12-19 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056784', 'tblTempUsageDetail_20' ) end [2024-12-19 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056784', 'tblTempVendorCDR_20' ) start [2024-12-19 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056784', 'tblTempVendorCDR_20' ) end [2024-12-19 16:43:23] Production.INFO: ProcessCDR(1,14056784,1,1,2) [2024-12-19 16:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056784', 'tblTempUsageDetail_20' ) start [2024-12-19 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056784', 'tblTempUsageDetail_20' ) end [2024-12-19 16:43:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:43:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:43:27] Production.INFO: ==4862== Releasing lock... [2024-12-19 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:43:27] Production.INFO: 87.25 MB #Memory Used# [2024-12-19 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:44:05 [end_date_ymd] => 2024-12-19 16:44:05 [RateCDR] => 1 ) [2024-12-19 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:44:05' and `end` < '2024-12-19 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:44:19] Production.INFO: count ==7941 [2024-12-19 16:44:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:44:05 - End Time 2024-12-19 16:44:05 [2024-12-19 16:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056789', 'tblTempUsageDetail_20' ) start [2024-12-19 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056789', 'tblTempUsageDetail_20' ) end [2024-12-19 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056789', 'tblTempVendorCDR_20' ) start [2024-12-19 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056789', 'tblTempVendorCDR_20' ) end [2024-12-19 16:44:23] Production.INFO: ProcessCDR(1,14056789,1,1,2) [2024-12-19 16:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056789', 'tblTempUsageDetail_20' ) start [2024-12-19 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056789', 'tblTempUsageDetail_20' ) end [2024-12-19 16:44:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:44:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:44:28] Production.INFO: ==4937== Releasing lock... [2024-12-19 16:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:44:28] Production.INFO: 88 MB #Memory Used# [2024-12-19 16:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:45:04 [end_date_ymd] => 2024-12-19 16:45:04 [RateCDR] => 1 ) [2024-12-19 16:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:45:04' and `end` < '2024-12-19 16:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:45:18] Production.INFO: count ==8011 [2024-12-19 16:45:22] Production.ERROR: pbx CDR StartTime 2024-12-19 13:45:04 - End Time 2024-12-19 16:45:04 [2024-12-19 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056794', 'tblTempUsageDetail_20' ) start [2024-12-19 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056794', 'tblTempUsageDetail_20' ) end [2024-12-19 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056794', 'tblTempVendorCDR_20' ) start [2024-12-19 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056794', 'tblTempVendorCDR_20' ) end [2024-12-19 16:45:22] Production.INFO: ProcessCDR(1,14056794,1,1,2) [2024-12-19 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056794', 'tblTempUsageDetail_20' ) start [2024-12-19 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056794', 'tblTempUsageDetail_20' ) end [2024-12-19 16:45:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:45:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:45:27] Production.INFO: ==5024== Releasing lock... [2024-12-19 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:45:27] Production.INFO: 88.75 MB #Memory Used# [2024-12-19 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:46:05 [end_date_ymd] => 2024-12-19 16:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:46:18] Production.INFO: count ==8151 [2024-12-19 16:46:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:46:05 - End Time 2024-12-19 16:46:05 [2024-12-19 16:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056799', 'tblTempUsageDetail_20' ) start [2024-12-19 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056799', 'tblTempUsageDetail_20' ) end [2024-12-19 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056799', 'tblTempVendorCDR_20' ) start [2024-12-19 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056799', 'tblTempVendorCDR_20' ) end [2024-12-19 16:46:23] Production.INFO: ProcessCDR(1,14056799,1,1,2) [2024-12-19 16:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056799', 'tblTempUsageDetail_20' ) start [2024-12-19 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056799', 'tblTempUsageDetail_20' ) end [2024-12-19 16:46:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:46:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:46:28] Production.INFO: ==5105== Releasing lock... [2024-12-19 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:46:28] Production.INFO: 89.5 MB #Memory Used# [2024-12-19 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:47:04 [end_date_ymd] => 2024-12-19 16:47:04 [RateCDR] => 1 ) [2024-12-19 16:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:47:04' and `end` < '2024-12-19 16:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:47:18] Production.INFO: count ==8378 [2024-12-19 16:47:22] Production.ERROR: pbx CDR StartTime 2024-12-19 13:47:04 - End Time 2024-12-19 16:47:04 [2024-12-19 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056804', 'tblTempUsageDetail_20' ) start [2024-12-19 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056804', 'tblTempUsageDetail_20' ) end [2024-12-19 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056804', 'tblTempVendorCDR_20' ) start [2024-12-19 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056804', 'tblTempVendorCDR_20' ) end [2024-12-19 16:47:23] Production.INFO: ProcessCDR(1,14056804,1,1,2) [2024-12-19 16:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056804', 'tblTempUsageDetail_20' ) start [2024-12-19 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056804', 'tblTempUsageDetail_20' ) end [2024-12-19 16:47:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:47:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:47:28] Production.INFO: ==5188== Releasing lock... [2024-12-19 16:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:47:28] Production.INFO: 91.25 MB #Memory Used# [2024-12-19 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:48:05 [end_date_ymd] => 2024-12-19 16:48:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:48:19] Production.INFO: count ==8456 [2024-12-19 16:48:24] Production.ERROR: pbx CDR StartTime 2024-12-19 13:48:05 - End Time 2024-12-19 16:48:05 [2024-12-19 16:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056809', 'tblTempUsageDetail_20' ) start [2024-12-19 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056809', 'tblTempUsageDetail_20' ) end [2024-12-19 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056809', 'tblTempVendorCDR_20' ) start [2024-12-19 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056809', 'tblTempVendorCDR_20' ) end [2024-12-19 16:48:24] Production.INFO: ProcessCDR(1,14056809,1,1,2) [2024-12-19 16:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056809', 'tblTempUsageDetail_20' ) start [2024-12-19 16:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056809', 'tblTempUsageDetail_20' ) end [2024-12-19 16:48:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:48:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:48:29] Production.INFO: ==5272== Releasing lock... [2024-12-19 16:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:48:29] Production.INFO: 92 MB #Memory Used# [2024-12-19 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:49:05 [end_date_ymd] => 2024-12-19 16:49:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:49:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:49:19] Production.INFO: count ==8647 [2024-12-19 16:49:24] Production.ERROR: pbx CDR StartTime 2024-12-19 13:49:05 - End Time 2024-12-19 16:49:05 [2024-12-19 16:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056814', 'tblTempUsageDetail_20' ) start [2024-12-19 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056814', 'tblTempUsageDetail_20' ) end [2024-12-19 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056814', 'tblTempVendorCDR_20' ) start [2024-12-19 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056814', 'tblTempVendorCDR_20' ) end [2024-12-19 16:49:24] Production.INFO: ProcessCDR(1,14056814,1,1,2) [2024-12-19 16:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056814', 'tblTempUsageDetail_20' ) start [2024-12-19 16:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056814', 'tblTempUsageDetail_20' ) end [2024-12-19 16:49:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:49:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:49:29] Production.INFO: ==5390== Releasing lock... [2024-12-19 16:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:49:29] Production.INFO: 93.25 MB #Memory Used# [2024-12-19 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:50:05 [end_date_ymd] => 2024-12-19 16:50:05 [RateCDR] => 1 ) [2024-12-19 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:50:05' and `end` < '2024-12-19 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:50:18] Production.INFO: count ==8724 [2024-12-19 16:50:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:50:05 - End Time 2024-12-19 16:50:05 [2024-12-19 16:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056819', 'tblTempUsageDetail_20' ) start [2024-12-19 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056819', 'tblTempUsageDetail_20' ) end [2024-12-19 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056819', 'tblTempVendorCDR_20' ) start [2024-12-19 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056819', 'tblTempVendorCDR_20' ) end [2024-12-19 16:50:23] Production.INFO: ProcessCDR(1,14056819,1,1,2) [2024-12-19 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056819', 'tblTempUsageDetail_20' ) start [2024-12-19 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056819', 'tblTempUsageDetail_20' ) end [2024-12-19 16:50:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:50:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:50:28] Production.INFO: ==5474== Releasing lock... [2024-12-19 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:50:28] Production.INFO: 94 MB #Memory Used# [2024-12-19 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:51:05 [end_date_ymd] => 2024-12-19 16:51:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:51:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:51:18] Production.INFO: count ==8855 [2024-12-19 16:51:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:51:05 - End Time 2024-12-19 16:51:05 [2024-12-19 16:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056825', 'tblTempUsageDetail_20' ) start [2024-12-19 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056825', 'tblTempUsageDetail_20' ) end [2024-12-19 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056825', 'tblTempVendorCDR_20' ) start [2024-12-19 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056825', 'tblTempVendorCDR_20' ) end [2024-12-19 16:51:24] Production.INFO: ProcessCDR(1,14056825,1,1,2) [2024-12-19 16:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056825', 'tblTempUsageDetail_20' ) start [2024-12-19 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056825', 'tblTempUsageDetail_20' ) end [2024-12-19 16:51:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:51:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:51:28] Production.INFO: ==5560== Releasing lock... [2024-12-19 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:51:28] Production.INFO: 94.75 MB #Memory Used# [2024-12-19 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:52:05 [end_date_ymd] => 2024-12-19 16:52:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:52:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:52:18] Production.INFO: count ==8916 [2024-12-19 16:52:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:52:05 - End Time 2024-12-19 16:52:05 [2024-12-19 16:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056830', 'tblTempUsageDetail_20' ) start [2024-12-19 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056830', 'tblTempUsageDetail_20' ) end [2024-12-19 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056830', 'tblTempVendorCDR_20' ) start [2024-12-19 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056830', 'tblTempVendorCDR_20' ) end [2024-12-19 16:52:23] Production.INFO: ProcessCDR(1,14056830,1,1,2) [2024-12-19 16:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056830', 'tblTempUsageDetail_20' ) start [2024-12-19 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056830', 'tblTempUsageDetail_20' ) end [2024-12-19 16:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:52:28] Production.INFO: ==5638== Releasing lock... [2024-12-19 16:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:52:28] Production.INFO: 95.25 MB #Memory Used# [2024-12-19 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:53:05 [end_date_ymd] => 2024-12-19 16:53:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:53:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:53:18] Production.INFO: count ==8976 [2024-12-19 16:53:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:53:05 - End Time 2024-12-19 16:53:05 [2024-12-19 16:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056835', 'tblTempUsageDetail_20' ) start [2024-12-19 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056835', 'tblTempUsageDetail_20' ) end [2024-12-19 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056835', 'tblTempVendorCDR_20' ) start [2024-12-19 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056835', 'tblTempVendorCDR_20' ) end [2024-12-19 16:53:23] Production.INFO: ProcessCDR(1,14056835,1,1,2) [2024-12-19 16:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056835', 'tblTempUsageDetail_20' ) start [2024-12-19 16:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056835', 'tblTempUsageDetail_20' ) end [2024-12-19 16:53:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:53:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:53:28] Production.INFO: ==5720== Releasing lock... [2024-12-19 16:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:53:28] Production.INFO: 95.75 MB #Memory Used# [2024-12-19 16:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:54:04 [end_date_ymd] => 2024-12-19 16:54:04 [RateCDR] => 1 ) [2024-12-19 16: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` >= '2024-12-19 13:54:04' and `end` < '2024-12-19 16: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 ,'') [2024-12-19 16:54:18] Production.INFO: count ==8988 [2024-12-19 16:54:22] Production.ERROR: pbx CDR StartTime 2024-12-19 13:54:04 - End Time 2024-12-19 16:54:04 [2024-12-19 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056840', 'tblTempUsageDetail_20' ) start [2024-12-19 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056840', 'tblTempUsageDetail_20' ) end [2024-12-19 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056840', 'tblTempVendorCDR_20' ) start [2024-12-19 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056840', 'tblTempVendorCDR_20' ) end [2024-12-19 16:54:23] Production.INFO: ProcessCDR(1,14056840,1,1,2) [2024-12-19 16:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056840', 'tblTempUsageDetail_20' ) start [2024-12-19 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056840', 'tblTempUsageDetail_20' ) end [2024-12-19 16:54:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:54:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:54:27] Production.INFO: ==5805== Releasing lock... [2024-12-19 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:54:27] Production.INFO: 95.75 MB #Memory Used# [2024-12-19 16:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:55:04 [end_date_ymd] => 2024-12-19 16:55:04 [RateCDR] => 1 ) [2024-12-19 16:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:55:04' and `end` < '2024-12-19 16:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:55:18] Production.INFO: count ==9119 [2024-12-19 16:55:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:55:04 - End Time 2024-12-19 16:55:04 [2024-12-19 16:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056845', 'tblTempUsageDetail_20' ) start [2024-12-19 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056845', 'tblTempUsageDetail_20' ) end [2024-12-19 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056845', 'tblTempVendorCDR_20' ) start [2024-12-19 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056845', 'tblTempVendorCDR_20' ) end [2024-12-19 16:55:23] Production.INFO: ProcessCDR(1,14056845,1,1,2) [2024-12-19 16:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056845', 'tblTempUsageDetail_20' ) start [2024-12-19 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056845', 'tblTempUsageDetail_20' ) end [2024-12-19 16:55:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:55:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:55:28] Production.INFO: ==5885== Releasing lock... [2024-12-19 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:55:28] Production.INFO: 96.75 MB #Memory Used# [2024-12-19 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:56:05 [end_date_ymd] => 2024-12-19 16:56:05 [RateCDR] => 1 ) [2024-12-19 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:56:05' and `end` < '2024-12-19 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:56:18] Production.INFO: count ==9128 [2024-12-19 16:56:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:56:05 - End Time 2024-12-19 16:56:05 [2024-12-19 16:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056850', 'tblTempUsageDetail_20' ) start [2024-12-19 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056850', 'tblTempUsageDetail_20' ) end [2024-12-19 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056850', 'tblTempVendorCDR_20' ) start [2024-12-19 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056850', 'tblTempVendorCDR_20' ) end [2024-12-19 16:56:23] Production.INFO: ProcessCDR(1,14056850,1,1,2) [2024-12-19 16:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056850', 'tblTempUsageDetail_20' ) start [2024-12-19 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056850', 'tblTempUsageDetail_20' ) end [2024-12-19 16:56:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:56:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:56:28] Production.INFO: ==5966== Releasing lock... [2024-12-19 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:56:28] Production.INFO: 97 MB #Memory Used# [2024-12-19 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:57:04 [end_date_ymd] => 2024-12-19 16:57:04 [RateCDR] => 1 ) [2024-12-19 16: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` >= '2024-12-19 13:57:04' and `end` < '2024-12-19 16: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 ,'') [2024-12-19 16:57:18] Production.INFO: count ==9190 [2024-12-19 16:57:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:57:04 - End Time 2024-12-19 16:57:04 [2024-12-19 16:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056855', 'tblTempUsageDetail_20' ) start [2024-12-19 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056855', 'tblTempUsageDetail_20' ) end [2024-12-19 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056855', 'tblTempVendorCDR_20' ) start [2024-12-19 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056855', 'tblTempVendorCDR_20' ) end [2024-12-19 16:57:23] Production.INFO: ProcessCDR(1,14056855,1,1,2) [2024-12-19 16:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056855', 'tblTempUsageDetail_20' ) start [2024-12-19 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056855', 'tblTempUsageDetail_20' ) end [2024-12-19 16:57:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:57:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:57:28] Production.INFO: ==6053== Releasing lock... [2024-12-19 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:57:28] Production.INFO: 97.25 MB #Memory Used# [2024-12-19 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:58:05 [end_date_ymd] => 2024-12-19 16:58:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 13:58:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 16:58:18] Production.INFO: count ==9169 [2024-12-19 16:58:23] Production.ERROR: pbx CDR StartTime 2024-12-19 13:58:05 - End Time 2024-12-19 16:58:05 [2024-12-19 16:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056860', 'tblTempUsageDetail_20' ) start [2024-12-19 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056860', 'tblTempUsageDetail_20' ) end [2024-12-19 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056860', 'tblTempVendorCDR_20' ) start [2024-12-19 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056860', 'tblTempVendorCDR_20' ) end [2024-12-19 16:58:23] Production.INFO: ProcessCDR(1,14056860,1,1,2) [2024-12-19 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056860', 'tblTempUsageDetail_20' ) start [2024-12-19 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056860', 'tblTempUsageDetail_20' ) end [2024-12-19 16:58:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:58:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:58:28] Production.INFO: ==6136== Releasing lock... [2024-12-19 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:58:28] Production.INFO: 97.25 MB #Memory Used# [2024-12-19 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 13:59:04 [end_date_ymd] => 2024-12-19 16:59:04 [RateCDR] => 1 ) [2024-12-19 16:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 13:59:04' and `end` < '2024-12-19 16:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 16:59:18] Production.INFO: count ==9216 [2024-12-19 16:59:22] Production.ERROR: pbx CDR StartTime 2024-12-19 13:59:04 - End Time 2024-12-19 16:59:04 [2024-12-19 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056865', 'tblTempUsageDetail_20' ) start [2024-12-19 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056865', 'tblTempUsageDetail_20' ) end [2024-12-19 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056865', 'tblTempVendorCDR_20' ) start [2024-12-19 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056865', 'tblTempVendorCDR_20' ) end [2024-12-19 16:59:23] Production.INFO: ProcessCDR(1,14056865,1,1,2) [2024-12-19 16:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056865', 'tblTempUsageDetail_20' ) start [2024-12-19 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056865', 'tblTempUsageDetail_20' ) end [2024-12-19 16:59:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 16:59:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 16:59:27] Production.INFO: ==6221== Releasing lock... [2024-12-19 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 16:59:27] Production.INFO: 97.5 MB #Memory Used# [2024-12-19 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:00:06 [end_date_ymd] => 2024-12-19 17:00:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:00:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:00:19] Production.INFO: count ==9305 [2024-12-19 17:00:24] Production.ERROR: pbx CDR StartTime 2024-12-19 14:00:06 - End Time 2024-12-19 17:00:06 [2024-12-19 17:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056871', 'tblTempUsageDetail_20' ) start [2024-12-19 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056871', 'tblTempUsageDetail_20' ) end [2024-12-19 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056871', 'tblTempVendorCDR_20' ) start [2024-12-19 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056871', 'tblTempVendorCDR_20' ) end [2024-12-19 17:00:25] Production.INFO: ProcessCDR(1,14056871,1,1,2) [2024-12-19 17:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056871', 'tblTempUsageDetail_20' ) start [2024-12-19 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056871', 'tblTempUsageDetail_20' ) end [2024-12-19 17:00:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:00:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:00:29] Production.INFO: ==6311== Releasing lock... [2024-12-19 17:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:00:29] Production.INFO: 98.25 MB #Memory Used# [2024-12-19 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:01:06 [end_date_ymd] => 2024-12-19 17:01:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:01:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:01:20] Production.INFO: count ==9411 [2024-12-19 17:01:27] Production.ERROR: pbx CDR StartTime 2024-12-19 14:01:06 - End Time 2024-12-19 17:01:06 [2024-12-19 17:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056876', 'tblTempUsageDetail_20' ) start [2024-12-19 17:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056876', 'tblTempUsageDetail_20' ) end [2024-12-19 17:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056876', 'tblTempVendorCDR_20' ) start [2024-12-19 17:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056876', 'tblTempVendorCDR_20' ) end [2024-12-19 17:01:27] Production.INFO: ProcessCDR(1,14056876,1,1,2) [2024-12-19 17:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056876', 'tblTempUsageDetail_20' ) start [2024-12-19 17:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056876', 'tblTempUsageDetail_20' ) end [2024-12-19 17:01:32] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:01:32] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:01:32] Production.INFO: ==6435== Releasing lock... [2024-12-19 17:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:01:32] Production.INFO: 99 MB #Memory Used# [2024-12-19 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:02:05 [end_date_ymd] => 2024-12-19 17:02:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:02:18] Production.INFO: count ==9379 [2024-12-19 17:02:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:02:05 - End Time 2024-12-19 17:02:05 [2024-12-19 17:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056881', 'tblTempUsageDetail_20' ) start [2024-12-19 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056881', 'tblTempUsageDetail_20' ) end [2024-12-19 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056881', 'tblTempVendorCDR_20' ) start [2024-12-19 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056881', 'tblTempVendorCDR_20' ) end [2024-12-19 17:02:23] Production.INFO: ProcessCDR(1,14056881,1,1,2) [2024-12-19 17:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056881', 'tblTempUsageDetail_20' ) start [2024-12-19 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056881', 'tblTempUsageDetail_20' ) end [2024-12-19 17:02:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:02:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:02:28] Production.INFO: ==6520== Releasing lock... [2024-12-19 17:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:02:28] Production.INFO: 98.75 MB #Memory Used# [2024-12-19 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:03:04 [end_date_ymd] => 2024-12-19 17:03:04 [RateCDR] => 1 ) [2024-12-19 17:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:03:04' and `end` < '2024-12-19 17:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:03:17] Production.INFO: count ==9449 [2024-12-19 17:03:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:03:04 - End Time 2024-12-19 17:03:04 [2024-12-19 17:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056886', 'tblTempUsageDetail_20' ) start [2024-12-19 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056886', 'tblTempUsageDetail_20' ) end [2024-12-19 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056886', 'tblTempVendorCDR_20' ) start [2024-12-19 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056886', 'tblTempVendorCDR_20' ) end [2024-12-19 17:03:23] Production.INFO: ProcessCDR(1,14056886,1,1,2) [2024-12-19 17:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056886', 'tblTempUsageDetail_20' ) start [2024-12-19 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056886', 'tblTempUsageDetail_20' ) end [2024-12-19 17:03:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:03:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:03:28] Production.INFO: ==6605== Releasing lock... [2024-12-19 17:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:03:28] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:04:05 [end_date_ymd] => 2024-12-19 17:04:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:04:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:04:18] Production.INFO: count ==9447 [2024-12-19 17:04:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:04:05 - End Time 2024-12-19 17:04:05 [2024-12-19 17:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056891', 'tblTempUsageDetail_20' ) start [2024-12-19 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056891', 'tblTempUsageDetail_20' ) end [2024-12-19 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056891', 'tblTempVendorCDR_20' ) start [2024-12-19 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056891', 'tblTempVendorCDR_20' ) end [2024-12-19 17:04:24] Production.INFO: ProcessCDR(1,14056891,1,1,2) [2024-12-19 17:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056891', 'tblTempUsageDetail_20' ) start [2024-12-19 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056891', 'tblTempUsageDetail_20' ) end [2024-12-19 17:04:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:04:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:04:28] Production.INFO: ==6683== Releasing lock... [2024-12-19 17:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:04:28] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:05:05 [end_date_ymd] => 2024-12-19 17:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:05:18] Production.INFO: count ==9443 [2024-12-19 17:05:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:05:05 - End Time 2024-12-19 17:05:05 [2024-12-19 17:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056896', 'tblTempUsageDetail_20' ) start [2024-12-19 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056896', 'tblTempUsageDetail_20' ) end [2024-12-19 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056896', 'tblTempVendorCDR_20' ) start [2024-12-19 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056896', 'tblTempVendorCDR_20' ) end [2024-12-19 17:05:23] Production.INFO: ProcessCDR(1,14056896,1,1,2) [2024-12-19 17:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056896', 'tblTempUsageDetail_20' ) start [2024-12-19 17:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056896', 'tblTempUsageDetail_20' ) end [2024-12-19 17:05:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:05:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:05:28] Production.INFO: ==6805== Releasing lock... [2024-12-19 17:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:05:28] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:06:05 [end_date_ymd] => 2024-12-19 17:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:06:05' and `end` < '2024-12-19 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:06:18] Production.INFO: count ==9432 [2024-12-19 17:06:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:06:05 - End Time 2024-12-19 17:06:05 [2024-12-19 17:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056901', 'tblTempUsageDetail_20' ) start [2024-12-19 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056901', 'tblTempUsageDetail_20' ) end [2024-12-19 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056901', 'tblTempVendorCDR_20' ) start [2024-12-19 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056901', 'tblTempVendorCDR_20' ) end [2024-12-19 17:06:23] Production.INFO: ProcessCDR(1,14056901,1,1,2) [2024-12-19 17:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056901', 'tblTempUsageDetail_20' ) start [2024-12-19 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056901', 'tblTempUsageDetail_20' ) end [2024-12-19 17:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:06:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:06:27] Production.INFO: ==6887== Releasing lock... [2024-12-19 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:06:27] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:07:04 [end_date_ymd] => 2024-12-19 17:07:04 [RateCDR] => 1 ) [2024-12-19 17: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` >= '2024-12-19 14:07:04' and `end` < '2024-12-19 17: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 ,'') [2024-12-19 17:07:17] Production.INFO: count ==9575 [2024-12-19 17:07:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:07:04 - End Time 2024-12-19 17:07:04 [2024-12-19 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056906', 'tblTempUsageDetail_20' ) start [2024-12-19 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056906', 'tblTempUsageDetail_20' ) end [2024-12-19 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056906', 'tblTempVendorCDR_20' ) start [2024-12-19 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056906', 'tblTempVendorCDR_20' ) end [2024-12-19 17:07:23] Production.INFO: ProcessCDR(1,14056906,1,1,2) [2024-12-19 17:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056906', 'tblTempUsageDetail_20' ) start [2024-12-19 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056906', 'tblTempUsageDetail_20' ) end [2024-12-19 17:07:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:07:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:07:27] Production.INFO: ==6967== Releasing lock... [2024-12-19 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:07:27] Production.INFO: 100.25 MB #Memory Used# [2024-12-19 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:08:05 [end_date_ymd] => 2024-12-19 17:08:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:08:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:08:18] Production.INFO: count ==9562 [2024-12-19 17:08:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:08:05 - End Time 2024-12-19 17:08:05 [2024-12-19 17:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056911', 'tblTempUsageDetail_20' ) start [2024-12-19 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056911', 'tblTempUsageDetail_20' ) end [2024-12-19 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056911', 'tblTempVendorCDR_20' ) start [2024-12-19 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056911', 'tblTempVendorCDR_20' ) end [2024-12-19 17:08:23] Production.INFO: ProcessCDR(1,14056911,1,1,2) [2024-12-19 17:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056911', 'tblTempUsageDetail_20' ) start [2024-12-19 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056911', 'tblTempUsageDetail_20' ) end [2024-12-19 17:08:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:08:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:08:28] Production.INFO: ==7045== Releasing lock... [2024-12-19 17:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:08:28] Production.INFO: 100.25 MB #Memory Used# [2024-12-19 17:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:09:04 [end_date_ymd] => 2024-12-19 17:09:04 [RateCDR] => 1 ) [2024-12-19 17:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:09:04' and `end` < '2024-12-19 17:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:09:17] Production.INFO: count ==9588 [2024-12-19 17:09:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:09:04 - End Time 2024-12-19 17:09:04 [2024-12-19 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056916', 'tblTempUsageDetail_20' ) start [2024-12-19 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056916', 'tblTempUsageDetail_20' ) end [2024-12-19 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056916', 'tblTempVendorCDR_20' ) start [2024-12-19 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056916', 'tblTempVendorCDR_20' ) end [2024-12-19 17:09:22] Production.INFO: ProcessCDR(1,14056916,1,1,2) [2024-12-19 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056916', 'tblTempUsageDetail_20' ) start [2024-12-19 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056916', 'tblTempUsageDetail_20' ) end [2024-12-19 17:09:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:09:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:09:27] Production.INFO: ==7127== Releasing lock... [2024-12-19 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:09:27] Production.INFO: 100.25 MB #Memory Used# [2024-12-19 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:10:05 [end_date_ymd] => 2024-12-19 17:10:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:10:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:10:18] Production.INFO: count ==9593 [2024-12-19 17:10:24] Production.ERROR: pbx CDR StartTime 2024-12-19 14:10:05 - End Time 2024-12-19 17:10:05 [2024-12-19 17:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056922', 'tblTempUsageDetail_20' ) start [2024-12-19 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056922', 'tblTempUsageDetail_20' ) end [2024-12-19 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056922', 'tblTempVendorCDR_20' ) start [2024-12-19 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056922', 'tblTempVendorCDR_20' ) end [2024-12-19 17:10:24] Production.INFO: ProcessCDR(1,14056922,1,1,2) [2024-12-19 17:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056922', 'tblTempUsageDetail_20' ) start [2024-12-19 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056922', 'tblTempUsageDetail_20' ) end [2024-12-19 17:10:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:10:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:10:28] Production.INFO: ==7206== Releasing lock... [2024-12-19 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:10:28] Production.INFO: 100.5 MB #Memory Used# [2024-12-19 17:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:11:04 [end_date_ymd] => 2024-12-19 17:11:04 [RateCDR] => 1 ) [2024-12-19 17: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` >= '2024-12-19 14:11:04' and `end` < '2024-12-19 17: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 ,'') [2024-12-19 17:11:18] Production.INFO: count ==9650 [2024-12-19 17:11:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:11:04 - End Time 2024-12-19 17:11:04 [2024-12-19 17:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056927', 'tblTempUsageDetail_20' ) start [2024-12-19 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056927', 'tblTempUsageDetail_20' ) end [2024-12-19 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056927', 'tblTempVendorCDR_20' ) start [2024-12-19 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056927', 'tblTempVendorCDR_20' ) end [2024-12-19 17:11:23] Production.INFO: ProcessCDR(1,14056927,1,1,2) [2024-12-19 17:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056927', 'tblTempUsageDetail_20' ) start [2024-12-19 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056927', 'tblTempUsageDetail_20' ) end [2024-12-19 17:11:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:11:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:11:27] Production.INFO: ==7287== Releasing lock... [2024-12-19 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:11:27] Production.INFO: 100.75 MB #Memory Used# [2024-12-19 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:12:05 [end_date_ymd] => 2024-12-19 17:12:05 [RateCDR] => 1 ) [2024-12-19 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:12:05' and `end` < '2024-12-19 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:12:18] Production.INFO: count ==9652 [2024-12-19 17:12:24] Production.ERROR: pbx CDR StartTime 2024-12-19 14:12:05 - End Time 2024-12-19 17:12:05 [2024-12-19 17:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056932', 'tblTempUsageDetail_20' ) start [2024-12-19 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056932', 'tblTempUsageDetail_20' ) end [2024-12-19 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056932', 'tblTempVendorCDR_20' ) start [2024-12-19 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056932', 'tblTempVendorCDR_20' ) end [2024-12-19 17:12:24] Production.INFO: ProcessCDR(1,14056932,1,1,2) [2024-12-19 17:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056932', 'tblTempUsageDetail_20' ) start [2024-12-19 17:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056932', 'tblTempUsageDetail_20' ) end [2024-12-19 17:12:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:12:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:12:28] Production.INFO: ==7368== Releasing lock... [2024-12-19 17:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:12:28] Production.INFO: 100.75 MB #Memory Used# [2024-12-19 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:13:05 [end_date_ymd] => 2024-12-19 17:13:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:13:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:13:18] Production.INFO: count ==9653 [2024-12-19 17:13:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:13:05 - End Time 2024-12-19 17:13:05 [2024-12-19 17:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056937', 'tblTempUsageDetail_20' ) start [2024-12-19 17:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056937', 'tblTempUsageDetail_20' ) end [2024-12-19 17:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056937', 'tblTempVendorCDR_20' ) start [2024-12-19 17:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056937', 'tblTempVendorCDR_20' ) end [2024-12-19 17:13:24] Production.INFO: ProcessCDR(1,14056937,1,1,2) [2024-12-19 17:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056937', 'tblTempUsageDetail_20' ) start [2024-12-19 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056937', 'tblTempUsageDetail_20' ) end [2024-12-19 17:13:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:13:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:13:28] Production.INFO: ==7445== Releasing lock... [2024-12-19 17:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:13:28] Production.INFO: 100.75 MB #Memory Used# [2024-12-19 17:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:14:04 [end_date_ymd] => 2024-12-19 17:14:04 [RateCDR] => 1 ) [2024-12-19 17:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:14:04' and `end` < '2024-12-19 17:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:14:17] Production.INFO: count ==9655 [2024-12-19 17:14:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:14:04 - End Time 2024-12-19 17:14:04 [2024-12-19 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056942', 'tblTempUsageDetail_20' ) start [2024-12-19 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056942', 'tblTempUsageDetail_20' ) end [2024-12-19 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056942', 'tblTempVendorCDR_20' ) start [2024-12-19 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056942', 'tblTempVendorCDR_20' ) end [2024-12-19 17:14:23] Production.INFO: ProcessCDR(1,14056942,1,1,2) [2024-12-19 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056942', 'tblTempUsageDetail_20' ) start [2024-12-19 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056942', 'tblTempUsageDetail_20' ) end [2024-12-19 17:14:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:14:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:14:27] Production.INFO: ==7521== Releasing lock... [2024-12-19 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:14:27] Production.INFO: 100.75 MB #Memory Used# [2024-12-19 17:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:15:04 [end_date_ymd] => 2024-12-19 17:15:04 [RateCDR] => 1 ) [2024-12-19 17:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:15:04' and `end` < '2024-12-19 17:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:15:18] Production.INFO: count ==9622 [2024-12-19 17:15:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:15:04 - End Time 2024-12-19 17:15:04 [2024-12-19 17:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056947', 'tblTempUsageDetail_20' ) start [2024-12-19 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056947', 'tblTempUsageDetail_20' ) end [2024-12-19 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056947', 'tblTempVendorCDR_20' ) start [2024-12-19 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056947', 'tblTempVendorCDR_20' ) end [2024-12-19 17:15:23] Production.INFO: ProcessCDR(1,14056947,1,1,2) [2024-12-19 17:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056947', 'tblTempUsageDetail_20' ) start [2024-12-19 17:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056947', 'tblTempUsageDetail_20' ) end [2024-12-19 17:15:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:15:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:15:28] Production.INFO: ==7597== Releasing lock... [2024-12-19 17:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:15:28] Production.INFO: 100.5 MB #Memory Used# [2024-12-19 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:16:05 [end_date_ymd] => 2024-12-19 17:16:05 [RateCDR] => 1 ) [2024-12-19 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:16:05' and `end` < '2024-12-19 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:16:18] Production.INFO: count ==9621 [2024-12-19 17:16:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:16:05 - End Time 2024-12-19 17:16:05 [2024-12-19 17:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056952', 'tblTempUsageDetail_20' ) start [2024-12-19 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056952', 'tblTempUsageDetail_20' ) end [2024-12-19 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056952', 'tblTempVendorCDR_20' ) start [2024-12-19 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056952', 'tblTempVendorCDR_20' ) end [2024-12-19 17:16:24] Production.INFO: ProcessCDR(1,14056952,1,1,2) [2024-12-19 17:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056952', 'tblTempUsageDetail_20' ) start [2024-12-19 17:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056952', 'tblTempUsageDetail_20' ) end [2024-12-19 17:16:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:16:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:16:28] Production.INFO: ==7670== Releasing lock... [2024-12-19 17:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:16:28] Production.INFO: 100.5 MB #Memory Used# [2024-12-19 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:17:05 [end_date_ymd] => 2024-12-19 17:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:17:18] Production.INFO: count ==9612 [2024-12-19 17:17:24] Production.ERROR: pbx CDR StartTime 2024-12-19 14:17:05 - End Time 2024-12-19 17:17:05 [2024-12-19 17:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056957', 'tblTempUsageDetail_20' ) start [2024-12-19 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056957', 'tblTempUsageDetail_20' ) end [2024-12-19 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056957', 'tblTempVendorCDR_20' ) start [2024-12-19 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056957', 'tblTempVendorCDR_20' ) end [2024-12-19 17:17:24] Production.INFO: ProcessCDR(1,14056957,1,1,2) [2024-12-19 17:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056957', 'tblTempUsageDetail_20' ) start [2024-12-19 17:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056957', 'tblTempUsageDetail_20' ) end [2024-12-19 17:17:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:17:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:17:28] Production.INFO: ==7749== Releasing lock... [2024-12-19 17:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:17:28] Production.INFO: 100.5 MB #Memory Used# [2024-12-19 17:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:18:04 [end_date_ymd] => 2024-12-19 17:18:04 [RateCDR] => 1 ) [2024-12-19 17: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` >= '2024-12-19 14:18:04' and `end` < '2024-12-19 17: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 ,'') [2024-12-19 17:18:18] Production.INFO: count ==9584 [2024-12-19 17:18:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:18:04 - End Time 2024-12-19 17:18:04 [2024-12-19 17:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056960', 'tblTempUsageDetail_20' ) start [2024-12-19 17:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056960', 'tblTempUsageDetail_20' ) end [2024-12-19 17:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056960', 'tblTempVendorCDR_20' ) start [2024-12-19 17:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056960', 'tblTempVendorCDR_20' ) end [2024-12-19 17:18:24] Production.INFO: ProcessCDR(1,14056960,1,1,2) [2024-12-19 17:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056960', 'tblTempUsageDetail_20' ) start [2024-12-19 17:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056960', 'tblTempUsageDetail_20' ) end [2024-12-19 17:18:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:18:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:18:29] Production.INFO: ==7824== Releasing lock... [2024-12-19 17:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:18:29] Production.INFO: 100.25 MB #Memory Used# [2024-12-19 17:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:19:04 [end_date_ymd] => 2024-12-19 17:19:04 [RateCDR] => 1 ) [2024-12-19 17: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` >= '2024-12-19 14:19:04' and `end` < '2024-12-19 17: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 ,'') [2024-12-19 17:19:17] Production.INFO: count ==9556 [2024-12-19 17:19:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:19:04 - End Time 2024-12-19 17:19:04 [2024-12-19 17:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056967', 'tblTempUsageDetail_20' ) start [2024-12-19 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056967', 'tblTempUsageDetail_20' ) end [2024-12-19 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056967', 'tblTempVendorCDR_20' ) start [2024-12-19 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056967', 'tblTempVendorCDR_20' ) end [2024-12-19 17:19:23] Production.INFO: ProcessCDR(1,14056967,1,1,2) [2024-12-19 17:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056967', 'tblTempUsageDetail_20' ) start [2024-12-19 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056967', 'tblTempUsageDetail_20' ) end [2024-12-19 17:19:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:19:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:19:27] Production.INFO: ==7902== Releasing lock... [2024-12-19 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:19:27] Production.INFO: 100 MB #Memory Used# [2024-12-19 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:20:06 [end_date_ymd] => 2024-12-19 17:20:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:20:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:20:19] Production.INFO: count ==9544 [2024-12-19 17:20:24] Production.ERROR: pbx CDR StartTime 2024-12-19 14:20:06 - End Time 2024-12-19 17:20:06 [2024-12-19 17:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056973', 'tblTempUsageDetail_20' ) start [2024-12-19 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056973', 'tblTempUsageDetail_20' ) end [2024-12-19 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056973', 'tblTempVendorCDR_20' ) start [2024-12-19 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056973', 'tblTempVendorCDR_20' ) end [2024-12-19 17:20:25] Production.INFO: ProcessCDR(1,14056973,1,1,2) [2024-12-19 17:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056973', 'tblTempUsageDetail_20' ) start [2024-12-19 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056973', 'tblTempUsageDetail_20' ) end [2024-12-19 17:20:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:20:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:20:29] Production.INFO: ==8021== Releasing lock... [2024-12-19 17:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:20:29] Production.INFO: 100 MB #Memory Used# [2024-12-19 17:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:21:04 [end_date_ymd] => 2024-12-19 17:21:04 [RateCDR] => 1 ) [2024-12-19 17: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` >= '2024-12-19 14:21:04' and `end` < '2024-12-19 17: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 ,'') [2024-12-19 17:21:18] Production.INFO: count ==9593 [2024-12-19 17:21:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:21:04 - End Time 2024-12-19 17:21:04 [2024-12-19 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056978', 'tblTempUsageDetail_20' ) start [2024-12-19 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056978', 'tblTempUsageDetail_20' ) end [2024-12-19 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056978', 'tblTempVendorCDR_20' ) start [2024-12-19 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056978', 'tblTempVendorCDR_20' ) end [2024-12-19 17:21:23] Production.INFO: ProcessCDR(1,14056978,1,1,2) [2024-12-19 17:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056978', 'tblTempUsageDetail_20' ) start [2024-12-19 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056978', 'tblTempUsageDetail_20' ) end [2024-12-19 17:21:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:21:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:21:27] Production.INFO: ==8099== Releasing lock... [2024-12-19 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:21:27] Production.INFO: 100.5 MB #Memory Used# [2024-12-19 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:22:05 [end_date_ymd] => 2024-12-19 17:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:22:18] Production.INFO: count ==9592 [2024-12-19 17:22:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:22:05 - End Time 2024-12-19 17:22:05 [2024-12-19 17:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056983', 'tblTempUsageDetail_20' ) start [2024-12-19 17:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056983', 'tblTempUsageDetail_20' ) end [2024-12-19 17:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056983', 'tblTempVendorCDR_20' ) start [2024-12-19 17:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056983', 'tblTempVendorCDR_20' ) end [2024-12-19 17:22:23] Production.INFO: ProcessCDR(1,14056983,1,1,2) [2024-12-19 17:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056983', 'tblTempUsageDetail_20' ) start [2024-12-19 17:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056983', 'tblTempUsageDetail_20' ) end [2024-12-19 17:22:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:22:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:22:28] Production.INFO: ==8174== Releasing lock... [2024-12-19 17:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:22:28] Production.INFO: 100.25 MB #Memory Used# [2024-12-19 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:23:04 [end_date_ymd] => 2024-12-19 17:23:04 [RateCDR] => 1 ) [2024-12-19 17:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:23:04' and `end` < '2024-12-19 17:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:23:17] Production.INFO: count ==9585 [2024-12-19 17:23:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:23:04 - End Time 2024-12-19 17:23:04 [2024-12-19 17:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056988', 'tblTempUsageDetail_20' ) start [2024-12-19 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056988', 'tblTempUsageDetail_20' ) end [2024-12-19 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056988', 'tblTempVendorCDR_20' ) start [2024-12-19 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056988', 'tblTempVendorCDR_20' ) end [2024-12-19 17:23:23] Production.INFO: ProcessCDR(1,14056988,1,1,2) [2024-12-19 17:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056988', 'tblTempUsageDetail_20' ) start [2024-12-19 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056988', 'tblTempUsageDetail_20' ) end [2024-12-19 17:23:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:23:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:23:28] Production.INFO: ==8251== Releasing lock... [2024-12-19 17:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:23:28] Production.INFO: 100.25 MB #Memory Used# [2024-12-19 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:24:05 [end_date_ymd] => 2024-12-19 17:24:05 [RateCDR] => 1 ) [2024-12-19 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:24:05' and `end` < '2024-12-19 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:24:18] Production.INFO: count ==9584 [2024-12-19 17:24:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:24:05 - End Time 2024-12-19 17:24:05 [2024-12-19 17:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056993', 'tblTempUsageDetail_20' ) start [2024-12-19 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056993', 'tblTempUsageDetail_20' ) end [2024-12-19 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056993', 'tblTempVendorCDR_20' ) start [2024-12-19 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056993', 'tblTempVendorCDR_20' ) end [2024-12-19 17:24:24] Production.INFO: ProcessCDR(1,14056993,1,1,2) [2024-12-19 17:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056993', 'tblTempUsageDetail_20' ) start [2024-12-19 17:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056993', 'tblTempUsageDetail_20' ) end [2024-12-19 17:24:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:24:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:24:29] Production.INFO: ==8328== Releasing lock... [2024-12-19 17:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:24:29] Production.INFO: 100.25 MB #Memory Used# [2024-12-19 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:25:04 [end_date_ymd] => 2024-12-19 17:25:04 [RateCDR] => 1 ) [2024-12-19 17:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:25:04' and `end` < '2024-12-19 17:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:25:17] Production.INFO: count ==9549 [2024-12-19 17:25:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:25:04 - End Time 2024-12-19 17:25:04 [2024-12-19 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056998', 'tblTempUsageDetail_20' ) start [2024-12-19 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14056998', 'tblTempUsageDetail_20' ) end [2024-12-19 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056998', 'tblTempVendorCDR_20' ) start [2024-12-19 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14056998', 'tblTempVendorCDR_20' ) end [2024-12-19 17:25:22] Production.INFO: ProcessCDR(1,14056998,1,1,2) [2024-12-19 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14056998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14056998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14056998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14056998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056998', 'tblTempUsageDetail_20' ) start [2024-12-19 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14056998', 'tblTempUsageDetail_20' ) end [2024-12-19 17:25:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:25:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:25:27] Production.INFO: ==8399== Releasing lock... [2024-12-19 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:25:27] Production.INFO: 100 MB #Memory Used# [2024-12-19 17:26:15] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:26:15 [end_date_ymd] => 2024-12-19 17:26:15 [RateCDR] => 1 ) [2024-12-19 17:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:26:15' and `end` < '2024-12-19 17:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:26:28] Production.INFO: count ==9498 [2024-12-19 17:27:42] Production.ERROR: pbx CDR StartTime 2024-12-19 14:26:15 - End Time 2024-12-19 17:26:15 [2024-12-19 17:27:42] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:27:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057003', 'tblTempUsageDetail_20' ) start [2024-12-19 17:27:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057003', 'tblTempUsageDetail_20' ) end [2024-12-19 17:27:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057003', 'tblTempVendorCDR_20' ) start [2024-12-19 17:27:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057003', 'tblTempVendorCDR_20' ) end [2024-12-19 17:27:55] Production.INFO: ProcessCDR(1,14057003,1,1,2) [2024-12-19 17:27:55] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:28:07] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:28:07] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057003', 'tblTempUsageDetail_20' ) start [2024-12-19 17:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057003', 'tblTempUsageDetail_20' ) end [2024-12-19 17:28:35] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:28:35] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:28:40] Production.INFO: ==8476== Releasing lock... [2024-12-19 17:28:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:28:40] Production.INFO: 99.75 MB #Memory Used# [2024-12-19 17:29:14] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:29:14 [end_date_ymd] => 2024-12-19 17:29:14 [RateCDR] => 1 ) [2024-12-19 17:29:14] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:29:14' and `end` < '2024-12-19 17:29:14' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:29:27] Production.INFO: count ==9488 [2024-12-19 17:30:10] Production.ERROR: pbx CDR StartTime 2024-12-19 14:29:14 - End Time 2024-12-19 17:29:14 [2024-12-19 17:30:10] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:30:10] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057014', 'tblTempUsageDetail_20' ) start [2024-12-19 17:30:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057014', 'tblTempUsageDetail_20' ) end [2024-12-19 17:30:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057014', 'tblTempVendorCDR_20' ) start [2024-12-19 17:30:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057014', 'tblTempVendorCDR_20' ) end [2024-12-19 17:30:15] Production.INFO: ProcessCDR(1,14057014,1,1,2) [2024-12-19 17:30:15] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:30:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:30:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057014', 'tblTempUsageDetail_20' ) start [2024-12-19 17:30:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057014', 'tblTempUsageDetail_20' ) end [2024-12-19 17:30:47] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:30:47] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:30:51] Production.INFO: ==8680== Releasing lock... [2024-12-19 17:30:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:30:51] Production.INFO: 99.5 MB #Memory Used# [2024-12-19 17:31:16] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:31:16 [end_date_ymd] => 2024-12-19 17:31:16 [RateCDR] => 1 ) [2024-12-19 17:31:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:31:16' and `end` < '2024-12-19 17:31:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:31:29] Production.INFO: count ==9541 [2024-12-19 17:32:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:31:16 - End Time 2024-12-19 17:31:16 [2024-12-19 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057022', 'tblTempUsageDetail_20' ) start [2024-12-19 17:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057022', 'tblTempUsageDetail_20' ) end [2024-12-19 17:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057022', 'tblTempVendorCDR_20' ) start [2024-12-19 17:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057022', 'tblTempVendorCDR_20' ) end [2024-12-19 17:32:23] Production.INFO: ProcessCDR(1,14057022,1,1,2) [2024-12-19 17:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057022', 'tblTempUsageDetail_20' ) start [2024-12-19 17:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057022', 'tblTempUsageDetail_20' ) end [2024-12-19 17:32:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:32:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:32:29] Production.INFO: ==8815== Releasing lock... [2024-12-19 17:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:32:29] Production.INFO: 100 MB #Memory Used# [2024-12-19 17:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:33:04 [end_date_ymd] => 2024-12-19 17:33:04 [RateCDR] => 1 ) [2024-12-19 17:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:33:04' and `end` < '2024-12-19 17:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:33:17] Production.INFO: count ==9471 [2024-12-19 17:33:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:33:04 - End Time 2024-12-19 17:33:04 [2024-12-19 17:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057031', 'tblTempUsageDetail_20' ) start [2024-12-19 17:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057031', 'tblTempUsageDetail_20' ) end [2024-12-19 17:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057031', 'tblTempVendorCDR_20' ) start [2024-12-19 17:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057031', 'tblTempVendorCDR_20' ) end [2024-12-19 17:33:23] Production.INFO: ProcessCDR(1,14057031,1,1,2) [2024-12-19 17:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057031', 'tblTempUsageDetail_20' ) start [2024-12-19 17:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057031', 'tblTempUsageDetail_20' ) end [2024-12-19 17:33:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:33:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:33:28] Production.INFO: ==8968== Releasing lock... [2024-12-19 17:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:33:28] Production.INFO: 99.5 MB #Memory Used# [2024-12-19 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:34:05 [end_date_ymd] => 2024-12-19 17:34:05 [RateCDR] => 1 ) [2024-12-19 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:34:05' and `end` < '2024-12-19 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:34:18] Production.INFO: count ==9458 [2024-12-19 17:34:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:34:05 - End Time 2024-12-19 17:34:05 [2024-12-19 17:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057036', 'tblTempUsageDetail_20' ) start [2024-12-19 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057036', 'tblTempUsageDetail_20' ) end [2024-12-19 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057036', 'tblTempVendorCDR_20' ) start [2024-12-19 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057036', 'tblTempVendorCDR_20' ) end [2024-12-19 17:34:23] Production.INFO: ProcessCDR(1,14057036,1,1,2) [2024-12-19 17:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057036', 'tblTempUsageDetail_20' ) start [2024-12-19 17:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057036', 'tblTempUsageDetail_20' ) end [2024-12-19 17:34:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:34:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:34:28] Production.INFO: ==9043== Releasing lock... [2024-12-19 17:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:34:28] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:35:05 [end_date_ymd] => 2024-12-19 17:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:35:18] Production.INFO: count ==9460 [2024-12-19 17:35:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:35:05 - End Time 2024-12-19 17:35:05 [2024-12-19 17:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057041', 'tblTempUsageDetail_20' ) start [2024-12-19 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057041', 'tblTempUsageDetail_20' ) end [2024-12-19 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057041', 'tblTempVendorCDR_20' ) start [2024-12-19 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057041', 'tblTempVendorCDR_20' ) end [2024-12-19 17:35:24] Production.INFO: ProcessCDR(1,14057041,1,1,2) [2024-12-19 17:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057041', 'tblTempUsageDetail_20' ) start [2024-12-19 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057041', 'tblTempUsageDetail_20' ) end [2024-12-19 17:35:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:35:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:35:28] Production.INFO: ==9117== Releasing lock... [2024-12-19 17:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:35:28] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:36:05 [end_date_ymd] => 2024-12-19 17:36:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:36:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:36:18] Production.INFO: count ==9450 [2024-12-19 17:36:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:36:05 - End Time 2024-12-19 17:36:05 [2024-12-19 17:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057046', 'tblTempUsageDetail_20' ) start [2024-12-19 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057046', 'tblTempUsageDetail_20' ) end [2024-12-19 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057046', 'tblTempVendorCDR_20' ) start [2024-12-19 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057046', 'tblTempVendorCDR_20' ) end [2024-12-19 17:36:23] Production.INFO: ProcessCDR(1,14057046,1,1,2) [2024-12-19 17:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057046', 'tblTempUsageDetail_20' ) start [2024-12-19 17:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057046', 'tblTempUsageDetail_20' ) end [2024-12-19 17:36:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:36:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:36:29] Production.INFO: ==9228== Releasing lock... [2024-12-19 17:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:36:29] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:37:05 [end_date_ymd] => 2024-12-19 17:37:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:37:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:37:18] Production.INFO: count ==9443 [2024-12-19 17:37:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:37:05 - End Time 2024-12-19 17:37:05 [2024-12-19 17:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057051', 'tblTempUsageDetail_20' ) start [2024-12-19 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057051', 'tblTempUsageDetail_20' ) end [2024-12-19 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057051', 'tblTempVendorCDR_20' ) start [2024-12-19 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057051', 'tblTempVendorCDR_20' ) end [2024-12-19 17:37:24] Production.INFO: ProcessCDR(1,14057051,1,1,2) [2024-12-19 17:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057051', 'tblTempUsageDetail_20' ) start [2024-12-19 17:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057051', 'tblTempUsageDetail_20' ) end [2024-12-19 17:37:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:37:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:37:29] Production.INFO: ==9300== Releasing lock... [2024-12-19 17:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:37:29] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:38:05 [end_date_ymd] => 2024-12-19 17:38:05 [RateCDR] => 1 ) [2024-12-19 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:38:05' and `end` < '2024-12-19 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:38:18] Production.INFO: count ==9442 [2024-12-19 17:38:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:38:05 - End Time 2024-12-19 17:38:05 [2024-12-19 17:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057056', 'tblTempUsageDetail_20' ) start [2024-12-19 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057056', 'tblTempUsageDetail_20' ) end [2024-12-19 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057056', 'tblTempVendorCDR_20' ) start [2024-12-19 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057056', 'tblTempVendorCDR_20' ) end [2024-12-19 17:38:23] Production.INFO: ProcessCDR(1,14057056,1,1,2) [2024-12-19 17:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057056', 'tblTempUsageDetail_20' ) start [2024-12-19 17:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057056', 'tblTempUsageDetail_20' ) end [2024-12-19 17:38:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:38:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:38:28] Production.INFO: ==9371== Releasing lock... [2024-12-19 17:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:38:28] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:39:05 [end_date_ymd] => 2024-12-19 17:39:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:39:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:39:18] Production.INFO: count ==9448 [2024-12-19 17:39:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:39:05 - End Time 2024-12-19 17:39:05 [2024-12-19 17:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057061', 'tblTempUsageDetail_20' ) start [2024-12-19 17:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057061', 'tblTempUsageDetail_20' ) end [2024-12-19 17:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057061', 'tblTempVendorCDR_20' ) start [2024-12-19 17:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057061', 'tblTempVendorCDR_20' ) end [2024-12-19 17:39:24] Production.INFO: ProcessCDR(1,14057061,1,1,2) [2024-12-19 17:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057061', 'tblTempUsageDetail_20' ) start [2024-12-19 17:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057061', 'tblTempUsageDetail_20' ) end [2024-12-19 17:39:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:39:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:39:29] Production.INFO: ==9447== Releasing lock... [2024-12-19 17:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:39:29] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:40:05 [end_date_ymd] => 2024-12-19 17:40:05 [RateCDR] => 1 ) [2024-12-19 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:40:05' and `end` < '2024-12-19 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:40:18] Production.INFO: count ==9460 [2024-12-19 17:40:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:40:05 - End Time 2024-12-19 17:40:05 [2024-12-19 17:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057067', 'tblTempUsageDetail_20' ) start [2024-12-19 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057067', 'tblTempUsageDetail_20' ) end [2024-12-19 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057067', 'tblTempVendorCDR_20' ) start [2024-12-19 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057067', 'tblTempVendorCDR_20' ) end [2024-12-19 17:40:24] Production.INFO: ProcessCDR(1,14057067,1,1,2) [2024-12-19 17:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057067', 'tblTempUsageDetail_20' ) start [2024-12-19 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057067', 'tblTempUsageDetail_20' ) end [2024-12-19 17:40:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:40:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:40:28] Production.INFO: ==9519== Releasing lock... [2024-12-19 17:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:40:28] Production.INFO: 99.5 MB #Memory Used# [2024-12-19 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:41:05 [end_date_ymd] => 2024-12-19 17:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:41:18] Production.INFO: count ==9506 [2024-12-19 17:41:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:41:05 - End Time 2024-12-19 17:41:05 [2024-12-19 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057072', 'tblTempUsageDetail_20' ) start [2024-12-19 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057072', 'tblTempUsageDetail_20' ) end [2024-12-19 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057072', 'tblTempVendorCDR_20' ) start [2024-12-19 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057072', 'tblTempVendorCDR_20' ) end [2024-12-19 17:41:23] Production.INFO: ProcessCDR(1,14057072,1,1,2) [2024-12-19 17:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057072', 'tblTempUsageDetail_20' ) start [2024-12-19 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057072', 'tblTempUsageDetail_20' ) end [2024-12-19 17:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:41:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:41:27] Production.INFO: ==9595== Releasing lock... [2024-12-19 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:41:27] Production.INFO: 99.75 MB #Memory Used# [2024-12-19 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:42:05 [end_date_ymd] => 2024-12-19 17:42:05 [RateCDR] => 1 ) [2024-12-19 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:42:05' and `end` < '2024-12-19 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:42:18] Production.INFO: count ==9496 [2024-12-19 17:42:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:42:05 - End Time 2024-12-19 17:42:05 [2024-12-19 17:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057077', 'tblTempUsageDetail_20' ) start [2024-12-19 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057077', 'tblTempUsageDetail_20' ) end [2024-12-19 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057077', 'tblTempVendorCDR_20' ) start [2024-12-19 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057077', 'tblTempVendorCDR_20' ) end [2024-12-19 17:42:23] Production.INFO: ProcessCDR(1,14057077,1,1,2) [2024-12-19 17:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057077', 'tblTempUsageDetail_20' ) start [2024-12-19 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057077', 'tblTempUsageDetail_20' ) end [2024-12-19 17:42:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:42:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:42:27] Production.INFO: ==9669== Releasing lock... [2024-12-19 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:42:27] Production.INFO: 99.75 MB #Memory Used# [2024-12-19 17:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:43:04 [end_date_ymd] => 2024-12-19 17:43:04 [RateCDR] => 1 ) [2024-12-19 17:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:43:04' and `end` < '2024-12-19 17:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:43:17] Production.INFO: count ==9484 [2024-12-19 17:43:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:43:04 - End Time 2024-12-19 17:43:04 [2024-12-19 17:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057082', 'tblTempUsageDetail_20' ) start [2024-12-19 17:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057082', 'tblTempUsageDetail_20' ) end [2024-12-19 17:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057082', 'tblTempVendorCDR_20' ) start [2024-12-19 17:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057082', 'tblTempVendorCDR_20' ) end [2024-12-19 17:43:23] Production.INFO: ProcessCDR(1,14057082,1,1,2) [2024-12-19 17:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057082', 'tblTempUsageDetail_20' ) start [2024-12-19 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057082', 'tblTempUsageDetail_20' ) end [2024-12-19 17:43:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:43:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:43:26] Production.INFO: ==9737== Releasing lock... [2024-12-19 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:43:26] Production.INFO: 99.5 MB #Memory Used# [2024-12-19 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:44:05 [end_date_ymd] => 2024-12-19 17:44:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:44:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:44:18] Production.INFO: count ==9455 [2024-12-19 17:44:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:44:05 - End Time 2024-12-19 17:44:05 [2024-12-19 17:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057087', 'tblTempUsageDetail_20' ) start [2024-12-19 17:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057087', 'tblTempUsageDetail_20' ) end [2024-12-19 17:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057087', 'tblTempVendorCDR_20' ) start [2024-12-19 17:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057087', 'tblTempVendorCDR_20' ) end [2024-12-19 17:44:23] Production.INFO: ProcessCDR(1,14057087,1,1,2) [2024-12-19 17:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057087', 'tblTempUsageDetail_20' ) start [2024-12-19 17:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057087', 'tblTempUsageDetail_20' ) end [2024-12-19 17:44:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:44:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:44:28] Production.INFO: ==9810== Releasing lock... [2024-12-19 17:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:44:28] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:45:04 [end_date_ymd] => 2024-12-19 17:45:04 [RateCDR] => 1 ) [2024-12-19 17: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` >= '2024-12-19 14:45:04' and `end` < '2024-12-19 17: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 ,'') [2024-12-19 17:45:17] Production.INFO: count ==9435 [2024-12-19 17:45:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:45:04 - End Time 2024-12-19 17:45:04 [2024-12-19 17:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057092', 'tblTempUsageDetail_20' ) start [2024-12-19 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057092', 'tblTempUsageDetail_20' ) end [2024-12-19 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057092', 'tblTempVendorCDR_20' ) start [2024-12-19 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057092', 'tblTempVendorCDR_20' ) end [2024-12-19 17:45:22] Production.INFO: ProcessCDR(1,14057092,1,1,2) [2024-12-19 17:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057092', 'tblTempUsageDetail_20' ) start [2024-12-19 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057092', 'tblTempUsageDetail_20' ) end [2024-12-19 17:45:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:45:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:45:27] Production.INFO: ==9887== Releasing lock... [2024-12-19 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:45:27] Production.INFO: 99.5 MB #Memory Used# [2024-12-19 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:46:05 [end_date_ymd] => 2024-12-19 17:46:05 [RateCDR] => 1 ) [2024-12-19 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:46:05' and `end` < '2024-12-19 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:46:18] Production.INFO: count ==9429 [2024-12-19 17:46:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:46:05 - End Time 2024-12-19 17:46:05 [2024-12-19 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057097', 'tblTempUsageDetail_20' ) start [2024-12-19 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057097', 'tblTempUsageDetail_20' ) end [2024-12-19 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057097', 'tblTempVendorCDR_20' ) start [2024-12-19 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057097', 'tblTempVendorCDR_20' ) end [2024-12-19 17:46:23] Production.INFO: ProcessCDR(1,14057097,1,1,2) [2024-12-19 17:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057097', 'tblTempUsageDetail_20' ) start [2024-12-19 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057097', 'tblTempUsageDetail_20' ) end [2024-12-19 17:46:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:46:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:46:27] Production.INFO: ==9961== Releasing lock... [2024-12-19 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:46:27] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:47:04 [end_date_ymd] => 2024-12-19 17:47:04 [RateCDR] => 1 ) [2024-12-19 17:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:47:04' and `end` < '2024-12-19 17:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:47:17] Production.INFO: count ==9436 [2024-12-19 17:47:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:47:04 - End Time 2024-12-19 17:47:04 [2024-12-19 17:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057102', 'tblTempUsageDetail_20' ) start [2024-12-19 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057102', 'tblTempUsageDetail_20' ) end [2024-12-19 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057102', 'tblTempVendorCDR_20' ) start [2024-12-19 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057102', 'tblTempVendorCDR_20' ) end [2024-12-19 17:47:23] Production.INFO: ProcessCDR(1,14057102,1,1,2) [2024-12-19 17:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057102', 'tblTempUsageDetail_20' ) start [2024-12-19 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057102', 'tblTempUsageDetail_20' ) end [2024-12-19 17:47:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:47:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:47:27] Production.INFO: ==10033== Releasing lock... [2024-12-19 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:47:27] Production.INFO: 99.25 MB #Memory Used# [2024-12-19 17:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:48:04 [end_date_ymd] => 2024-12-19 17:48:04 [RateCDR] => 1 ) [2024-12-19 17: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` >= '2024-12-19 14:48:04' and `end` < '2024-12-19 17: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 ,'') [2024-12-19 17:48:17] Production.INFO: count ==9418 [2024-12-19 17:48:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:48:04 - End Time 2024-12-19 17:48:04 [2024-12-19 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057107', 'tblTempUsageDetail_20' ) start [2024-12-19 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057107', 'tblTempUsageDetail_20' ) end [2024-12-19 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057107', 'tblTempVendorCDR_20' ) start [2024-12-19 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057107', 'tblTempVendorCDR_20' ) end [2024-12-19 17:48:22] Production.INFO: ProcessCDR(1,14057107,1,1,2) [2024-12-19 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057107', 'tblTempUsageDetail_20' ) start [2024-12-19 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057107', 'tblTempUsageDetail_20' ) end [2024-12-19 17:48:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:48:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:48:27] Production.INFO: ==10107== Releasing lock... [2024-12-19 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:48:27] Production.INFO: 99 MB #Memory Used# [2024-12-19 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:49:05 [end_date_ymd] => 2024-12-19 17:49:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:49:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:49:18] Production.INFO: count ==9403 [2024-12-19 17:49:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:49:05 - End Time 2024-12-19 17:49:05 [2024-12-19 17:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057112', 'tblTempUsageDetail_20' ) start [2024-12-19 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057112', 'tblTempUsageDetail_20' ) end [2024-12-19 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057112', 'tblTempVendorCDR_20' ) start [2024-12-19 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057112', 'tblTempVendorCDR_20' ) end [2024-12-19 17:49:23] Production.INFO: ProcessCDR(1,14057112,1,1,2) [2024-12-19 17:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057112', 'tblTempUsageDetail_20' ) start [2024-12-19 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057112', 'tblTempUsageDetail_20' ) end [2024-12-19 17:49:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:49:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:49:28] Production.INFO: ==10182== Releasing lock... [2024-12-19 17:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:49:28] Production.INFO: 99 MB #Memory Used# [2024-12-19 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:50:05 [end_date_ymd] => 2024-12-19 17:50:05 [RateCDR] => 1 ) [2024-12-19 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:50:05' and `end` < '2024-12-19 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:50:18] Production.INFO: count ==9386 [2024-12-19 17:50:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:50:05 - End Time 2024-12-19 17:50:05 [2024-12-19 17:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057117', 'tblTempUsageDetail_20' ) start [2024-12-19 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057117', 'tblTempUsageDetail_20' ) end [2024-12-19 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057117', 'tblTempVendorCDR_20' ) start [2024-12-19 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057117', 'tblTempVendorCDR_20' ) end [2024-12-19 17:50:23] Production.INFO: ProcessCDR(1,14057117,1,1,2) [2024-12-19 17:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057117', 'tblTempUsageDetail_20' ) start [2024-12-19 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057117', 'tblTempUsageDetail_20' ) end [2024-12-19 17:50:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:50:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:50:28] Production.INFO: ==10259== Releasing lock... [2024-12-19 17:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:50:28] Production.INFO: 98.75 MB #Memory Used# [2024-12-19 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:51:05 [end_date_ymd] => 2024-12-19 17:51:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:51:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:51:19] Production.INFO: count ==9415 [2024-12-19 17:51:24] Production.ERROR: pbx CDR StartTime 2024-12-19 14:51:05 - End Time 2024-12-19 17:51:05 [2024-12-19 17:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057123', 'tblTempUsageDetail_20' ) start [2024-12-19 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057123', 'tblTempUsageDetail_20' ) end [2024-12-19 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057123', 'tblTempVendorCDR_20' ) start [2024-12-19 17:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057123', 'tblTempVendorCDR_20' ) end [2024-12-19 17:51:24] Production.INFO: ProcessCDR(1,14057123,1,1,2) [2024-12-19 17:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057123', 'tblTempUsageDetail_20' ) start [2024-12-19 17:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057123', 'tblTempUsageDetail_20' ) end [2024-12-19 17:51:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:51:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:51:28] Production.INFO: ==10337== Releasing lock... [2024-12-19 17:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:51:28] Production.INFO: 99 MB #Memory Used# [2024-12-19 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:52:05 [end_date_ymd] => 2024-12-19 17:52:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:52:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:52:18] Production.INFO: count ==9405 [2024-12-19 17:52:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:52:05 - End Time 2024-12-19 17:52:05 [2024-12-19 17:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057128', 'tblTempUsageDetail_20' ) start [2024-12-19 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057128', 'tblTempUsageDetail_20' ) end [2024-12-19 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057128', 'tblTempVendorCDR_20' ) start [2024-12-19 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057128', 'tblTempVendorCDR_20' ) end [2024-12-19 17:52:23] Production.INFO: ProcessCDR(1,14057128,1,1,2) [2024-12-19 17:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057128', 'tblTempUsageDetail_20' ) start [2024-12-19 17:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057128', 'tblTempUsageDetail_20' ) end [2024-12-19 17:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:52:28] Production.INFO: ==10453== Releasing lock... [2024-12-19 17:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:52:28] Production.INFO: 99 MB #Memory Used# [2024-12-19 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:53:05 [end_date_ymd] => 2024-12-19 17:53:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:53:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:53:18] Production.INFO: count ==9381 [2024-12-19 17:53:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:53:05 - End Time 2024-12-19 17:53:05 [2024-12-19 17:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057133', 'tblTempUsageDetail_20' ) start [2024-12-19 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057133', 'tblTempUsageDetail_20' ) end [2024-12-19 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057133', 'tblTempVendorCDR_20' ) start [2024-12-19 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057133', 'tblTempVendorCDR_20' ) end [2024-12-19 17:53:23] Production.INFO: ProcessCDR(1,14057133,1,1,2) [2024-12-19 17:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057133', 'tblTempUsageDetail_20' ) start [2024-12-19 17:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057133', 'tblTempUsageDetail_20' ) end [2024-12-19 17:53:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:53:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:53:28] Production.INFO: ==10532== Releasing lock... [2024-12-19 17:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:53:28] Production.INFO: 98.75 MB #Memory Used# [2024-12-19 17:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:54:04 [end_date_ymd] => 2024-12-19 17:54:04 [RateCDR] => 1 ) [2024-12-19 17: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` >= '2024-12-19 14:54:04' and `end` < '2024-12-19 17: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 ,'') [2024-12-19 17:54:17] Production.INFO: count ==9359 [2024-12-19 17:54:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:54:04 - End Time 2024-12-19 17:54:04 [2024-12-19 17:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057138', 'tblTempUsageDetail_20' ) start [2024-12-19 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057138', 'tblTempUsageDetail_20' ) end [2024-12-19 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057138', 'tblTempVendorCDR_20' ) start [2024-12-19 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057138', 'tblTempVendorCDR_20' ) end [2024-12-19 17:54:23] Production.INFO: ProcessCDR(1,14057138,1,1,2) [2024-12-19 17:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057138', 'tblTempUsageDetail_20' ) start [2024-12-19 17:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057138', 'tblTempUsageDetail_20' ) end [2024-12-19 17:54:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:54:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:54:28] Production.INFO: ==10610== Releasing lock... [2024-12-19 17:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:54:28] Production.INFO: 98.5 MB #Memory Used# [2024-12-19 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:55:05 [end_date_ymd] => 2024-12-19 17:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:55:18] Production.INFO: count ==9321 [2024-12-19 17:55:23] Production.ERROR: pbx CDR StartTime 2024-12-19 14:55:05 - End Time 2024-12-19 17:55:05 [2024-12-19 17:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057143', 'tblTempUsageDetail_20' ) start [2024-12-19 17:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057143', 'tblTempUsageDetail_20' ) end [2024-12-19 17:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057143', 'tblTempVendorCDR_20' ) start [2024-12-19 17:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057143', 'tblTempVendorCDR_20' ) end [2024-12-19 17:55:23] Production.INFO: ProcessCDR(1,14057143,1,1,2) [2024-12-19 17:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057143', 'tblTempUsageDetail_20' ) start [2024-12-19 17:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057143', 'tblTempUsageDetail_20' ) end [2024-12-19 17:55:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:55:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:55:28] Production.INFO: ==10691== Releasing lock... [2024-12-19 17:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:55:28] Production.INFO: 98.25 MB #Memory Used# [2024-12-19 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:56:04 [end_date_ymd] => 2024-12-19 17:56:04 [RateCDR] => 1 ) [2024-12-19 17:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:56:04' and `end` < '2024-12-19 17:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:56:18] Production.INFO: count ==9291 [2024-12-19 17:56:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:56:04 - End Time 2024-12-19 17:56:04 [2024-12-19 17:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057148', 'tblTempUsageDetail_20' ) start [2024-12-19 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057148', 'tblTempUsageDetail_20' ) end [2024-12-19 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057148', 'tblTempVendorCDR_20' ) start [2024-12-19 17:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057148', 'tblTempVendorCDR_20' ) end [2024-12-19 17:56:23] Production.INFO: ProcessCDR(1,14057148,1,1,2) [2024-12-19 17:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057148', 'tblTempUsageDetail_20' ) start [2024-12-19 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057148', 'tblTempUsageDetail_20' ) end [2024-12-19 17:56:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:56:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:56:28] Production.INFO: ==10775== Releasing lock... [2024-12-19 17:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:56:28] Production.INFO: 98 MB #Memory Used# [2024-12-19 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:57:05 [end_date_ymd] => 2024-12-19 17:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 14:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 17:57:18] Production.INFO: count ==9277 [2024-12-19 17:57:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:57:05 - End Time 2024-12-19 17:57:05 [2024-12-19 17:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057153', 'tblTempUsageDetail_20' ) start [2024-12-19 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057153', 'tblTempUsageDetail_20' ) end [2024-12-19 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057153', 'tblTempVendorCDR_20' ) start [2024-12-19 17:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057153', 'tblTempVendorCDR_20' ) end [2024-12-19 17:57:23] Production.INFO: ProcessCDR(1,14057153,1,1,2) [2024-12-19 17:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057153', 'tblTempUsageDetail_20' ) start [2024-12-19 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057153', 'tblTempUsageDetail_20' ) end [2024-12-19 17:57:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:57:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:57:26] Production.INFO: ==10858== Releasing lock... [2024-12-19 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:57:26] Production.INFO: 98 MB #Memory Used# [2024-12-19 17:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:58:04 [end_date_ymd] => 2024-12-19 17:58:04 [RateCDR] => 1 ) [2024-12-19 17:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:58:04' and `end` < '2024-12-19 17:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:58:17] Production.INFO: count ==9264 [2024-12-19 17:58:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:58:04 - End Time 2024-12-19 17:58:04 [2024-12-19 17:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057158', 'tblTempUsageDetail_20' ) start [2024-12-19 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057158', 'tblTempUsageDetail_20' ) end [2024-12-19 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057158', 'tblTempVendorCDR_20' ) start [2024-12-19 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057158', 'tblTempVendorCDR_20' ) end [2024-12-19 17:58:22] Production.INFO: ProcessCDR(1,14057158,1,1,2) [2024-12-19 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057158', 'tblTempUsageDetail_20' ) start [2024-12-19 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057158', 'tblTempUsageDetail_20' ) end [2024-12-19 17:58:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:58:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:58:27] Production.INFO: ==10941== Releasing lock... [2024-12-19 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:58:27] Production.INFO: 98 MB #Memory Used# [2024-12-19 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 14:59:04 [end_date_ymd] => 2024-12-19 17:59:04 [RateCDR] => 1 ) [2024-12-19 17:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 14:59:04' and `end` < '2024-12-19 17:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 17:59:17] Production.INFO: count ==9258 [2024-12-19 17:59:22] Production.ERROR: pbx CDR StartTime 2024-12-19 14:59:04 - End Time 2024-12-19 17:59:04 [2024-12-19 17:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057163', 'tblTempUsageDetail_20' ) start [2024-12-19 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057163', 'tblTempUsageDetail_20' ) end [2024-12-19 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057163', 'tblTempVendorCDR_20' ) start [2024-12-19 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057163', 'tblTempVendorCDR_20' ) end [2024-12-19 17:59:22] Production.INFO: ProcessCDR(1,14057163,1,1,2) [2024-12-19 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 17:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057163', 'tblTempUsageDetail_20' ) start [2024-12-19 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057163', 'tblTempUsageDetail_20' ) end [2024-12-19 17:59:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 17:59:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 17:59:27] Production.INFO: ==11024== Releasing lock... [2024-12-19 17:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 17:59:27] Production.INFO: 97.75 MB #Memory Used# [2024-12-19 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:00:06 [end_date_ymd] => 2024-12-19 18:00:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:00:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:00:19] Production.INFO: count ==9265 [2024-12-19 18:00:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:00:06 - End Time 2024-12-19 18:00:06 [2024-12-19 18:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057168', 'tblTempUsageDetail_20' ) start [2024-12-19 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057168', 'tblTempUsageDetail_20' ) end [2024-12-19 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057168', 'tblTempVendorCDR_20' ) start [2024-12-19 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057168', 'tblTempVendorCDR_20' ) end [2024-12-19 18:00:24] Production.INFO: ProcessCDR(1,14057168,1,1,2) [2024-12-19 18:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057168', 'tblTempUsageDetail_20' ) start [2024-12-19 18:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057168', 'tblTempUsageDetail_20' ) end [2024-12-19 18:00:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:00:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:00:29] Production.INFO: ==11113== Releasing lock... [2024-12-19 18:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:00:29] Production.INFO: 98 MB #Memory Used# [2024-12-19 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:01:05 [end_date_ymd] => 2024-12-19 18:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:01:18] Production.INFO: count ==9322 [2024-12-19 18:01:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:01:05 - End Time 2024-12-19 18:01:05 [2024-12-19 18:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057174', 'tblTempUsageDetail_20' ) start [2024-12-19 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057174', 'tblTempUsageDetail_20' ) end [2024-12-19 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057174', 'tblTempVendorCDR_20' ) start [2024-12-19 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057174', 'tblTempVendorCDR_20' ) end [2024-12-19 18:01:23] Production.INFO: ProcessCDR(1,14057174,1,1,2) [2024-12-19 18:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057174', 'tblTempUsageDetail_20' ) start [2024-12-19 18:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057174', 'tblTempUsageDetail_20' ) end [2024-12-19 18:01:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:01:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:01:28] Production.INFO: ==11211== Releasing lock... [2024-12-19 18:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:01:28] Production.INFO: 98.25 MB #Memory Used# [2024-12-19 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:02:05 [end_date_ymd] => 2024-12-19 18:02:05 [RateCDR] => 1 ) [2024-12-19 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:02:18] Production.INFO: count ==9319 [2024-12-19 18:02:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:02:05 - End Time 2024-12-19 18:02:05 [2024-12-19 18:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057179', 'tblTempUsageDetail_20' ) start [2024-12-19 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057179', 'tblTempUsageDetail_20' ) end [2024-12-19 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057179', 'tblTempVendorCDR_20' ) start [2024-12-19 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057179', 'tblTempVendorCDR_20' ) end [2024-12-19 18:02:24] Production.INFO: ProcessCDR(1,14057179,1,1,2) [2024-12-19 18:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057179', 'tblTempUsageDetail_20' ) start [2024-12-19 18:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057179', 'tblTempUsageDetail_20' ) end [2024-12-19 18:02:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:02:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:02:28] Production.INFO: ==11297== Releasing lock... [2024-12-19 18:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:02:28] Production.INFO: 98.25 MB #Memory Used# [2024-12-19 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:03:04 [end_date_ymd] => 2024-12-19 18:03:04 [RateCDR] => 1 ) [2024-12-19 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:03:04' and `end` < '2024-12-19 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:03:17] Production.INFO: count ==9312 [2024-12-19 18:03:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:03:04 - End Time 2024-12-19 18:03:04 [2024-12-19 18:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057184', 'tblTempUsageDetail_20' ) start [2024-12-19 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057184', 'tblTempUsageDetail_20' ) end [2024-12-19 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057184', 'tblTempVendorCDR_20' ) start [2024-12-19 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057184', 'tblTempVendorCDR_20' ) end [2024-12-19 18:03:22] Production.INFO: ProcessCDR(1,14057184,1,1,2) [2024-12-19 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057184', 'tblTempUsageDetail_20' ) start [2024-12-19 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057184', 'tblTempUsageDetail_20' ) end [2024-12-19 18:03:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:03:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:03:27] Production.INFO: ==11387== Releasing lock... [2024-12-19 18:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:03:27] Production.INFO: 98.25 MB #Memory Used# [2024-12-19 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:04:05 [end_date_ymd] => 2024-12-19 18:04:05 [RateCDR] => 1 ) [2024-12-19 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:04:05' and `end` < '2024-12-19 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:04:18] Production.INFO: count ==9293 [2024-12-19 18:04:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:04:05 - End Time 2024-12-19 18:04:05 [2024-12-19 18:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057189', 'tblTempUsageDetail_20' ) start [2024-12-19 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057189', 'tblTempUsageDetail_20' ) end [2024-12-19 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057189', 'tblTempVendorCDR_20' ) start [2024-12-19 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057189', 'tblTempVendorCDR_20' ) end [2024-12-19 18:04:23] Production.INFO: ProcessCDR(1,14057189,1,1,2) [2024-12-19 18:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057189', 'tblTempUsageDetail_20' ) start [2024-12-19 18:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057189', 'tblTempUsageDetail_20' ) end [2024-12-19 18:04:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:04:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:04:28] Production.INFO: ==11470== Releasing lock... [2024-12-19 18:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:04:28] Production.INFO: 98 MB #Memory Used# [2024-12-19 18:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:05:04 [end_date_ymd] => 2024-12-19 18:05:04 [RateCDR] => 1 ) [2024-12-19 18:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:05:04' and `end` < '2024-12-19 18:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:05:18] Production.INFO: count ==9272 [2024-12-19 18:05:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:05:04 - End Time 2024-12-19 18:05:04 [2024-12-19 18:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057194', 'tblTempUsageDetail_20' ) start [2024-12-19 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057194', 'tblTempUsageDetail_20' ) end [2024-12-19 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057194', 'tblTempVendorCDR_20' ) start [2024-12-19 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057194', 'tblTempVendorCDR_20' ) end [2024-12-19 18:05:23] Production.INFO: ProcessCDR(1,14057194,1,1,2) [2024-12-19 18:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057194', 'tblTempUsageDetail_20' ) start [2024-12-19 18:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057194', 'tblTempUsageDetail_20' ) end [2024-12-19 18:05:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:05:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:05:28] Production.INFO: ==11562== Releasing lock... [2024-12-19 18:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:05:28] Production.INFO: 98 MB #Memory Used# [2024-12-19 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:06:05 [end_date_ymd] => 2024-12-19 18:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:06:18] Production.INFO: count ==9235 [2024-12-19 18:06:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:06:05 - End Time 2024-12-19 18:06:05 [2024-12-19 18:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057199', 'tblTempUsageDetail_20' ) start [2024-12-19 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057199', 'tblTempUsageDetail_20' ) end [2024-12-19 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057199', 'tblTempVendorCDR_20' ) start [2024-12-19 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057199', 'tblTempVendorCDR_20' ) end [2024-12-19 18:06:23] Production.INFO: ProcessCDR(1,14057199,1,1,2) [2024-12-19 18:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057199', 'tblTempUsageDetail_20' ) start [2024-12-19 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057199', 'tblTempUsageDetail_20' ) end [2024-12-19 18:06:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:06:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:06:28] Production.INFO: ==11650== Releasing lock... [2024-12-19 18:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:06:28] Production.INFO: 97.75 MB #Memory Used# [2024-12-19 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:07:04 [end_date_ymd] => 2024-12-19 18:07:04 [RateCDR] => 1 ) [2024-12-19 18:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:07:04' and `end` < '2024-12-19 18:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:07:17] Production.INFO: count ==9207 [2024-12-19 18:07:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:07:04 - End Time 2024-12-19 18:07:04 [2024-12-19 18:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057204', 'tblTempUsageDetail_20' ) start [2024-12-19 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057204', 'tblTempUsageDetail_20' ) end [2024-12-19 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057204', 'tblTempVendorCDR_20' ) start [2024-12-19 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057204', 'tblTempVendorCDR_20' ) end [2024-12-19 18:07:22] Production.INFO: ProcessCDR(1,14057204,1,1,2) [2024-12-19 18:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057204', 'tblTempUsageDetail_20' ) start [2024-12-19 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057204', 'tblTempUsageDetail_20' ) end [2024-12-19 18:07:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:07:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:07:27] Production.INFO: ==11777== Releasing lock... [2024-12-19 18:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:07:27] Production.INFO: 97.5 MB #Memory Used# [2024-12-19 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:08:05 [end_date_ymd] => 2024-12-19 18:08:05 [RateCDR] => 1 ) [2024-12-19 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:08:05' and `end` < '2024-12-19 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:08:17] Production.INFO: count ==9188 [2024-12-19 18:08:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:08:05 - End Time 2024-12-19 18:08:05 [2024-12-19 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057209', 'tblTempUsageDetail_20' ) start [2024-12-19 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057209', 'tblTempUsageDetail_20' ) end [2024-12-19 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057209', 'tblTempVendorCDR_20' ) start [2024-12-19 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057209', 'tblTempVendorCDR_20' ) end [2024-12-19 18:08:23] Production.INFO: ProcessCDR(1,14057209,1,1,2) [2024-12-19 18:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057209', 'tblTempUsageDetail_20' ) start [2024-12-19 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057209', 'tblTempUsageDetail_20' ) end [2024-12-19 18:08:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:08:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:08:28] Production.INFO: ==11868== Releasing lock... [2024-12-19 18:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:08:28] Production.INFO: 97.25 MB #Memory Used# [2024-12-19 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:09:05 [end_date_ymd] => 2024-12-19 18:09:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:09:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:09:18] Production.INFO: count ==9167 [2024-12-19 18:09:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:09:05 - End Time 2024-12-19 18:09:05 [2024-12-19 18:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057214', 'tblTempUsageDetail_20' ) start [2024-12-19 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057214', 'tblTempUsageDetail_20' ) end [2024-12-19 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057214', 'tblTempVendorCDR_20' ) start [2024-12-19 18:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057214', 'tblTempVendorCDR_20' ) end [2024-12-19 18:09:23] Production.INFO: ProcessCDR(1,14057214,1,1,2) [2024-12-19 18:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057214', 'tblTempUsageDetail_20' ) start [2024-12-19 18:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057214', 'tblTempUsageDetail_20' ) end [2024-12-19 18:09:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:09:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:09:28] Production.INFO: ==11957== Releasing lock... [2024-12-19 18:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:09:28] Production.INFO: 97.25 MB #Memory Used# [2024-12-19 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:10:05 [end_date_ymd] => 2024-12-19 18:10:05 [RateCDR] => 1 ) [2024-12-19 18: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` >= '2024-12-19 15:10:05' and `end` < '2024-12-19 18: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 ,'') [2024-12-19 18:10:18] Production.INFO: count ==9144 [2024-12-19 18:10:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:10:05 - End Time 2024-12-19 18:10:05 [2024-12-19 18:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057219', 'tblTempUsageDetail_20' ) start [2024-12-19 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057219', 'tblTempUsageDetail_20' ) end [2024-12-19 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057219', 'tblTempVendorCDR_20' ) start [2024-12-19 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057219', 'tblTempVendorCDR_20' ) end [2024-12-19 18:10:24] Production.INFO: ProcessCDR(1,14057219,1,1,2) [2024-12-19 18:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057219', 'tblTempUsageDetail_20' ) start [2024-12-19 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057219', 'tblTempUsageDetail_20' ) end [2024-12-19 18:10:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:10:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:10:28] Production.INFO: ==12043== Releasing lock... [2024-12-19 18:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:10:28] Production.INFO: 97 MB #Memory Used# [2024-12-19 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:11:05 [end_date_ymd] => 2024-12-19 18:11:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:11:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:11:19] Production.INFO: count ==9139 [2024-12-19 18:11:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:11:05 - End Time 2024-12-19 18:11:05 [2024-12-19 18:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057225', 'tblTempUsageDetail_20' ) start [2024-12-19 18:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057225', 'tblTempUsageDetail_20' ) end [2024-12-19 18:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057225', 'tblTempVendorCDR_20' ) start [2024-12-19 18:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057225', 'tblTempVendorCDR_20' ) end [2024-12-19 18:11:24] Production.INFO: ProcessCDR(1,14057225,1,1,2) [2024-12-19 18:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057225', 'tblTempUsageDetail_20' ) start [2024-12-19 18:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057225', 'tblTempUsageDetail_20' ) end [2024-12-19 18:11:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:11:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:11:28] Production.INFO: ==12145== Releasing lock... [2024-12-19 18:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:11:28] Production.INFO: 97 MB #Memory Used# [2024-12-19 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:12:05 [end_date_ymd] => 2024-12-19 18:12:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:12:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:12:18] Production.INFO: count ==9115 [2024-12-19 18:12:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:12:05 - End Time 2024-12-19 18:12:05 [2024-12-19 18:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057230', 'tblTempUsageDetail_20' ) start [2024-12-19 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057230', 'tblTempUsageDetail_20' ) end [2024-12-19 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057230', 'tblTempVendorCDR_20' ) start [2024-12-19 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057230', 'tblTempVendorCDR_20' ) end [2024-12-19 18:12:22] Production.INFO: ProcessCDR(1,14057230,1,1,2) [2024-12-19 18:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057230', 'tblTempUsageDetail_20' ) start [2024-12-19 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057230', 'tblTempUsageDetail_20' ) end [2024-12-19 18:12:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:12:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:12:27] Production.INFO: ==12232== Releasing lock... [2024-12-19 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:12:27] Production.INFO: 96.75 MB #Memory Used# [2024-12-19 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:13:05 [end_date_ymd] => 2024-12-19 18:13:05 [RateCDR] => 1 ) [2024-12-19 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:13:05' and `end` < '2024-12-19 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:13:18] Production.INFO: count ==9104 [2024-12-19 18:13:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:13:05 - End Time 2024-12-19 18:13:05 [2024-12-19 18:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057235', 'tblTempUsageDetail_20' ) start [2024-12-19 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057235', 'tblTempUsageDetail_20' ) end [2024-12-19 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057235', 'tblTempVendorCDR_20' ) start [2024-12-19 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057235', 'tblTempVendorCDR_20' ) end [2024-12-19 18:13:22] Production.INFO: ProcessCDR(1,14057235,1,1,2) [2024-12-19 18:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057235', 'tblTempUsageDetail_20' ) start [2024-12-19 18:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057235', 'tblTempUsageDetail_20' ) end [2024-12-19 18:13:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:13:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:13:27] Production.INFO: ==12319== Releasing lock... [2024-12-19 18:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:13:27] Production.INFO: 96.75 MB #Memory Used# [2024-12-19 18:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:14:04 [end_date_ymd] => 2024-12-19 18:14:04 [RateCDR] => 1 ) [2024-12-19 18:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:14:04' and `end` < '2024-12-19 18:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:14:18] Production.INFO: count ==9092 [2024-12-19 18:14:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:14:04 - End Time 2024-12-19 18:14:04 [2024-12-19 18:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057240', 'tblTempUsageDetail_20' ) start [2024-12-19 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057240', 'tblTempUsageDetail_20' ) end [2024-12-19 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057240', 'tblTempVendorCDR_20' ) start [2024-12-19 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057240', 'tblTempVendorCDR_20' ) end [2024-12-19 18:14:23] Production.INFO: ProcessCDR(1,14057240,1,1,2) [2024-12-19 18:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057240', 'tblTempUsageDetail_20' ) start [2024-12-19 18:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057240', 'tblTempUsageDetail_20' ) end [2024-12-19 18:14:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:14:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:14:28] Production.INFO: ==12403== Releasing lock... [2024-12-19 18:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:14:28] Production.INFO: 96.5 MB #Memory Used# [2024-12-19 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:15:04 [end_date_ymd] => 2024-12-19 18:15:04 [RateCDR] => 1 ) [2024-12-19 18:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:15:04' and `end` < '2024-12-19 18:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:15:21] Production.INFO: count ==9091 [2024-12-19 18:15:26] Production.ERROR: pbx CDR StartTime 2024-12-19 15:15:04 - End Time 2024-12-19 18:15:04 [2024-12-19 18:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057245', 'tblTempUsageDetail_20' ) start [2024-12-19 18:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057245', 'tblTempUsageDetail_20' ) end [2024-12-19 18:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057245', 'tblTempVendorCDR_20' ) start [2024-12-19 18:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057245', 'tblTempVendorCDR_20' ) end [2024-12-19 18:15:26] Production.INFO: ProcessCDR(1,14057245,1,1,2) [2024-12-19 18:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057245', 'tblTempUsageDetail_20' ) start [2024-12-19 18:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057245', 'tblTempUsageDetail_20' ) end [2024-12-19 18:15:30] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:15:31] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:15:31] Production.INFO: ==12493== Releasing lock... [2024-12-19 18:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:15:31] Production.INFO: 96.5 MB #Memory Used# [2024-12-19 18:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:16:04 [end_date_ymd] => 2024-12-19 18:16:04 [RateCDR] => 1 ) [2024-12-19 18:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:16:04' and `end` < '2024-12-19 18:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:16:18] Production.INFO: count ==9078 [2024-12-19 18:16:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:16:04 - End Time 2024-12-19 18:16:04 [2024-12-19 18:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057250', 'tblTempUsageDetail_20' ) start [2024-12-19 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057250', 'tblTempUsageDetail_20' ) end [2024-12-19 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057250', 'tblTempVendorCDR_20' ) start [2024-12-19 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057250', 'tblTempVendorCDR_20' ) end [2024-12-19 18:16:23] Production.INFO: ProcessCDR(1,14057250,1,1,2) [2024-12-19 18:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057250', 'tblTempUsageDetail_20' ) start [2024-12-19 18:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057250', 'tblTempUsageDetail_20' ) end [2024-12-19 18:16:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:16:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:16:28] Production.INFO: ==12587== Releasing lock... [2024-12-19 18:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:16:28] Production.INFO: 96.5 MB #Memory Used# [2024-12-19 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:17:05 [end_date_ymd] => 2024-12-19 18:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:17:18] Production.INFO: count ==9049 [2024-12-19 18:17:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:17:05 - End Time 2024-12-19 18:17:05 [2024-12-19 18:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057255', 'tblTempUsageDetail_20' ) start [2024-12-19 18:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057255', 'tblTempUsageDetail_20' ) end [2024-12-19 18:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057255', 'tblTempVendorCDR_20' ) start [2024-12-19 18:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057255', 'tblTempVendorCDR_20' ) end [2024-12-19 18:17:23] Production.INFO: ProcessCDR(1,14057255,1,1,2) [2024-12-19 18:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057255', 'tblTempUsageDetail_20' ) start [2024-12-19 18:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057255', 'tblTempUsageDetail_20' ) end [2024-12-19 18:17:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:17:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:17:28] Production.INFO: ==12672== Releasing lock... [2024-12-19 18:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:17:28] Production.INFO: 96.25 MB #Memory Used# [2024-12-19 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:18:04 [end_date_ymd] => 2024-12-19 18:18:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:18:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:18:18] Production.INFO: count ==9024 [2024-12-19 18:18:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:18:04 - End Time 2024-12-19 18:18:04 [2024-12-19 18:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057260', 'tblTempUsageDetail_20' ) start [2024-12-19 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057260', 'tblTempUsageDetail_20' ) end [2024-12-19 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057260', 'tblTempVendorCDR_20' ) start [2024-12-19 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057260', 'tblTempVendorCDR_20' ) end [2024-12-19 18:18:23] Production.INFO: ProcessCDR(1,14057260,1,1,2) [2024-12-19 18:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057260', 'tblTempUsageDetail_20' ) start [2024-12-19 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057260', 'tblTempUsageDetail_20' ) end [2024-12-19 18:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:18:26] Production.INFO: ==12762== Releasing lock... [2024-12-19 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:18:26] Production.INFO: 96 MB #Memory Used# [2024-12-19 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:19:05 [end_date_ymd] => 2024-12-19 18:19:05 [RateCDR] => 1 ) [2024-12-19 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:19:05' and `end` < '2024-12-19 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:19:18] Production.INFO: count ==9016 [2024-12-19 18:19:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:19:05 - End Time 2024-12-19 18:19:05 [2024-12-19 18:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057265', 'tblTempUsageDetail_20' ) start [2024-12-19 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057265', 'tblTempUsageDetail_20' ) end [2024-12-19 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057265', 'tblTempVendorCDR_20' ) start [2024-12-19 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057265', 'tblTempVendorCDR_20' ) end [2024-12-19 18:19:23] Production.INFO: ProcessCDR(1,14057265,1,1,2) [2024-12-19 18:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057265', 'tblTempUsageDetail_20' ) start [2024-12-19 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057265', 'tblTempUsageDetail_20' ) end [2024-12-19 18:19:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:19:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:19:26] Production.INFO: ==12849== Releasing lock... [2024-12-19 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:19:26] Production.INFO: 96 MB #Memory Used# [2024-12-19 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:20:05 [end_date_ymd] => 2024-12-19 18:20:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:20:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:20:19] Production.INFO: count ==8986 [2024-12-19 18:20:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:20:05 - End Time 2024-12-19 18:20:05 [2024-12-19 18:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057271', 'tblTempUsageDetail_20' ) start [2024-12-19 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057271', 'tblTempUsageDetail_20' ) end [2024-12-19 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057271', 'tblTempVendorCDR_20' ) start [2024-12-19 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057271', 'tblTempVendorCDR_20' ) end [2024-12-19 18:20:24] Production.INFO: ProcessCDR(1,14057271,1,1,2) [2024-12-19 18:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057271', 'tblTempUsageDetail_20' ) start [2024-12-19 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057271', 'tblTempUsageDetail_20' ) end [2024-12-19 18:20:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:20:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:20:27] Production.INFO: ==12929== Releasing lock... [2024-12-19 18:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:20:27] Production.INFO: 95.75 MB #Memory Used# [2024-12-19 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:21:05 [end_date_ymd] => 2024-12-19 18:21:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:21:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:21:19] Production.INFO: count ==9050 [2024-12-19 18:21:24] Production.ERROR: pbx CDR StartTime 2024-12-19 15:21:05 - End Time 2024-12-19 18:21:05 [2024-12-19 18:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057276', 'tblTempUsageDetail_20' ) start [2024-12-19 18:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057276', 'tblTempUsageDetail_20' ) end [2024-12-19 18:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057276', 'tblTempVendorCDR_20' ) start [2024-12-19 18:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057276', 'tblTempVendorCDR_20' ) end [2024-12-19 18:21:24] Production.INFO: ProcessCDR(1,14057276,1,1,2) [2024-12-19 18:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057276', 'tblTempUsageDetail_20' ) start [2024-12-19 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057276', 'tblTempUsageDetail_20' ) end [2024-12-19 18:21:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:21:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:21:27] Production.INFO: ==13018== Releasing lock... [2024-12-19 18:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:21:27] Production.INFO: 96.25 MB #Memory Used# [2024-12-19 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:22:05 [end_date_ymd] => 2024-12-19 18:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:22:19] Production.INFO: count ==9015 [2024-12-19 18:22:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:22:05 - End Time 2024-12-19 18:22:05 [2024-12-19 18:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057281', 'tblTempUsageDetail_20' ) start [2024-12-19 18:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057281', 'tblTempUsageDetail_20' ) end [2024-12-19 18:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057281', 'tblTempVendorCDR_20' ) start [2024-12-19 18:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057281', 'tblTempVendorCDR_20' ) end [2024-12-19 18:22:24] Production.INFO: ProcessCDR(1,14057281,1,1,2) [2024-12-19 18:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057281', 'tblTempUsageDetail_20' ) start [2024-12-19 18:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057281', 'tblTempUsageDetail_20' ) end [2024-12-19 18:22:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:22:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:22:28] Production.INFO: ==13101== Releasing lock... [2024-12-19 18:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:22:28] Production.INFO: 96 MB #Memory Used# [2024-12-19 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:23:05 [end_date_ymd] => 2024-12-19 18:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:23:18] Production.INFO: count ==9009 [2024-12-19 18:23:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:23:05 - End Time 2024-12-19 18:23:05 [2024-12-19 18:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057286', 'tblTempUsageDetail_20' ) start [2024-12-19 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057286', 'tblTempUsageDetail_20' ) end [2024-12-19 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057286', 'tblTempVendorCDR_20' ) start [2024-12-19 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057286', 'tblTempVendorCDR_20' ) end [2024-12-19 18:23:23] Production.INFO: ProcessCDR(1,14057286,1,1,2) [2024-12-19 18:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057286', 'tblTempUsageDetail_20' ) start [2024-12-19 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057286', 'tblTempUsageDetail_20' ) end [2024-12-19 18:23:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:23:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:23:26] Production.INFO: ==13220== Releasing lock... [2024-12-19 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:23:26] Production.INFO: 96 MB #Memory Used# [2024-12-19 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:24:05 [end_date_ymd] => 2024-12-19 18:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:24:18] Production.INFO: count ==9005 [2024-12-19 18:24:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:24:05 - End Time 2024-12-19 18:24:05 [2024-12-19 18:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057291', 'tblTempUsageDetail_20' ) start [2024-12-19 18:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057291', 'tblTempUsageDetail_20' ) end [2024-12-19 18:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057291', 'tblTempVendorCDR_20' ) start [2024-12-19 18:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057291', 'tblTempVendorCDR_20' ) end [2024-12-19 18:24:23] Production.INFO: ProcessCDR(1,14057291,1,1,2) [2024-12-19 18:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057291', 'tblTempUsageDetail_20' ) start [2024-12-19 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057291', 'tblTempUsageDetail_20' ) end [2024-12-19 18:24:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:24:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:24:26] Production.INFO: ==13300== Releasing lock... [2024-12-19 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:24:26] Production.INFO: 96 MB #Memory Used# [2024-12-19 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:25:04 [end_date_ymd] => 2024-12-19 18:25:04 [RateCDR] => 1 ) [2024-12-19 18:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:25:04' and `end` < '2024-12-19 18:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:25:17] Production.INFO: count ==8995 [2024-12-19 18:25:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:25:04 - End Time 2024-12-19 18:25:04 [2024-12-19 18:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057296', 'tblTempUsageDetail_20' ) start [2024-12-19 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057296', 'tblTempUsageDetail_20' ) end [2024-12-19 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057296', 'tblTempVendorCDR_20' ) start [2024-12-19 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057296', 'tblTempVendorCDR_20' ) end [2024-12-19 18:25:22] Production.INFO: ProcessCDR(1,14057296,1,1,2) [2024-12-19 18:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057296', 'tblTempUsageDetail_20' ) start [2024-12-19 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057296', 'tblTempUsageDetail_20' ) end [2024-12-19 18:25:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:25:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:25:25] Production.INFO: ==13378== Releasing lock... [2024-12-19 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:25:25] Production.INFO: 95.75 MB #Memory Used# [2024-12-19 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:26:05 [end_date_ymd] => 2024-12-19 18:26:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:26:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:26:18] Production.INFO: count ==8992 [2024-12-19 18:26:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:26:05 - End Time 2024-12-19 18:26:05 [2024-12-19 18:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057301', 'tblTempUsageDetail_20' ) start [2024-12-19 18:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057301', 'tblTempUsageDetail_20' ) end [2024-12-19 18:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057301', 'tblTempVendorCDR_20' ) start [2024-12-19 18:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057301', 'tblTempVendorCDR_20' ) end [2024-12-19 18:26:23] Production.INFO: ProcessCDR(1,14057301,1,1,2) [2024-12-19 18:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057301', 'tblTempUsageDetail_20' ) start [2024-12-19 18:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057301', 'tblTempUsageDetail_20' ) end [2024-12-19 18:26:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:26:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:26:28] Production.INFO: ==13453== Releasing lock... [2024-12-19 18:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:26:28] Production.INFO: 95.75 MB #Memory Used# [2024-12-19 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:27:04 [end_date_ymd] => 2024-12-19 18:27:04 [RateCDR] => 1 ) [2024-12-19 18:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:27:04' and `end` < '2024-12-19 18:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:27:17] Production.INFO: count ==8967 [2024-12-19 18:27:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:27:04 - End Time 2024-12-19 18:27:04 [2024-12-19 18:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057306', 'tblTempUsageDetail_20' ) start [2024-12-19 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057306', 'tblTempUsageDetail_20' ) end [2024-12-19 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057306', 'tblTempVendorCDR_20' ) start [2024-12-19 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057306', 'tblTempVendorCDR_20' ) end [2024-12-19 18:27:22] Production.INFO: ProcessCDR(1,14057306,1,1,2) [2024-12-19 18:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057306', 'tblTempUsageDetail_20' ) start [2024-12-19 18:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057306', 'tblTempUsageDetail_20' ) end [2024-12-19 18:27:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:27:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:27:26] Production.INFO: ==13530== Releasing lock... [2024-12-19 18:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:27:26] Production.INFO: 95.75 MB #Memory Used# [2024-12-19 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:28:05 [end_date_ymd] => 2024-12-19 18:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:28:18] Production.INFO: count ==8944 [2024-12-19 18:28:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:28:05 - End Time 2024-12-19 18:28:05 [2024-12-19 18:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057311', 'tblTempUsageDetail_20' ) start [2024-12-19 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057311', 'tblTempUsageDetail_20' ) end [2024-12-19 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057311', 'tblTempVendorCDR_20' ) start [2024-12-19 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057311', 'tblTempVendorCDR_20' ) end [2024-12-19 18:28:22] Production.INFO: ProcessCDR(1,14057311,1,1,2) [2024-12-19 18:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057311', 'tblTempUsageDetail_20' ) start [2024-12-19 18:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057311', 'tblTempUsageDetail_20' ) end [2024-12-19 18:28:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:28:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:28:27] Production.INFO: ==13609== Releasing lock... [2024-12-19 18:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:28:27] Production.INFO: 95.5 MB #Memory Used# [2024-12-19 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:29:05 [end_date_ymd] => 2024-12-19 18:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:29:18] Production.INFO: count ==8908 [2024-12-19 18:29:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:29:05 - End Time 2024-12-19 18:29:05 [2024-12-19 18:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057316', 'tblTempUsageDetail_20' ) start [2024-12-19 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057316', 'tblTempUsageDetail_20' ) end [2024-12-19 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057316', 'tblTempVendorCDR_20' ) start [2024-12-19 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057316', 'tblTempVendorCDR_20' ) end [2024-12-19 18:29:23] Production.INFO: ProcessCDR(1,14057316,1,1,2) [2024-12-19 18:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057316', 'tblTempUsageDetail_20' ) start [2024-12-19 18:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057316', 'tblTempUsageDetail_20' ) end [2024-12-19 18:29:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:29:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:29:27] Production.INFO: ==13685== Releasing lock... [2024-12-19 18:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:29:27] Production.INFO: 95.25 MB #Memory Used# [2024-12-19 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:30:05 [end_date_ymd] => 2024-12-19 18:30:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:30:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:30:18] Production.INFO: count ==8877 [2024-12-19 18:30:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:30:05 - End Time 2024-12-19 18:30:05 [2024-12-19 18:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057322', 'tblTempUsageDetail_20' ) start [2024-12-19 18:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057322', 'tblTempUsageDetail_20' ) end [2024-12-19 18:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057322', 'tblTempVendorCDR_20' ) start [2024-12-19 18:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057322', 'tblTempVendorCDR_20' ) end [2024-12-19 18:30:23] Production.INFO: ProcessCDR(1,14057322,1,1,2) [2024-12-19 18:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057322', 'tblTempUsageDetail_20' ) start [2024-12-19 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057322', 'tblTempUsageDetail_20' ) end [2024-12-19 18:30:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:30:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:30:26] Production.INFO: ==13768== Releasing lock... [2024-12-19 18:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:30:26] Production.INFO: 95 MB #Memory Used# [2024-12-19 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:31:05 [end_date_ymd] => 2024-12-19 18:31:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:31:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:31:18] Production.INFO: count ==8876 [2024-12-19 18:31:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:31:05 - End Time 2024-12-19 18:31:05 [2024-12-19 18:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057327', 'tblTempUsageDetail_20' ) start [2024-12-19 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057327', 'tblTempUsageDetail_20' ) end [2024-12-19 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057327', 'tblTempVendorCDR_20' ) start [2024-12-19 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057327', 'tblTempVendorCDR_20' ) end [2024-12-19 18:31:23] Production.INFO: ProcessCDR(1,14057327,1,1,2) [2024-12-19 18:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057327', 'tblTempUsageDetail_20' ) start [2024-12-19 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057327', 'tblTempUsageDetail_20' ) end [2024-12-19 18:31:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:31:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:31:26] Production.INFO: ==13843== Releasing lock... [2024-12-19 18:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:31:26] Production.INFO: 95 MB #Memory Used# [2024-12-19 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:32:05 [end_date_ymd] => 2024-12-19 18:32:05 [RateCDR] => 1 ) [2024-12-19 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:32:05' and `end` < '2024-12-19 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:32:17] Production.INFO: count ==8830 [2024-12-19 18:32:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:32:05 - End Time 2024-12-19 18:32:05 [2024-12-19 18:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057332', 'tblTempUsageDetail_20' ) start [2024-12-19 18:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057332', 'tblTempUsageDetail_20' ) end [2024-12-19 18:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057332', 'tblTempVendorCDR_20' ) start [2024-12-19 18:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057332', 'tblTempVendorCDR_20' ) end [2024-12-19 18:32:22] Production.INFO: ProcessCDR(1,14057332,1,1,2) [2024-12-19 18:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057332', 'tblTempUsageDetail_20' ) start [2024-12-19 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057332', 'tblTempUsageDetail_20' ) end [2024-12-19 18:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:32:25] Production.INFO: ==13918== Releasing lock... [2024-12-19 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:32:25] Production.INFO: 94.5 MB #Memory Used# [2024-12-19 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:33:05 [end_date_ymd] => 2024-12-19 18:33:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:33:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:33:18] Production.INFO: count ==8795 [2024-12-19 18:33:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:33:05 - End Time 2024-12-19 18:33:05 [2024-12-19 18:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057337', 'tblTempUsageDetail_20' ) start [2024-12-19 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057337', 'tblTempUsageDetail_20' ) end [2024-12-19 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057337', 'tblTempVendorCDR_20' ) start [2024-12-19 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057337', 'tblTempVendorCDR_20' ) end [2024-12-19 18:33:22] Production.INFO: ProcessCDR(1,14057337,1,1,2) [2024-12-19 18:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057337', 'tblTempUsageDetail_20' ) start [2024-12-19 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057337', 'tblTempUsageDetail_20' ) end [2024-12-19 18:33:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:33:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:33:26] Production.INFO: ==13994== Releasing lock... [2024-12-19 18:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:33:26] Production.INFO: 94.25 MB #Memory Used# [2024-12-19 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:34:04 [end_date_ymd] => 2024-12-19 18:34:04 [RateCDR] => 1 ) [2024-12-19 18:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:34:04' and `end` < '2024-12-19 18:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:34:17] Production.INFO: count ==8773 [2024-12-19 18:34:21] Production.ERROR: pbx CDR StartTime 2024-12-19 15:34:04 - End Time 2024-12-19 18:34:04 [2024-12-19 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057342', 'tblTempUsageDetail_20' ) start [2024-12-19 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057342', 'tblTempUsageDetail_20' ) end [2024-12-19 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057342', 'tblTempVendorCDR_20' ) start [2024-12-19 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057342', 'tblTempVendorCDR_20' ) end [2024-12-19 18:34:22] Production.INFO: ProcessCDR(1,14057342,1,1,2) [2024-12-19 18:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057342', 'tblTempUsageDetail_20' ) start [2024-12-19 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057342', 'tblTempUsageDetail_20' ) end [2024-12-19 18:34:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:34:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:34:26] Production.INFO: ==14073== Releasing lock... [2024-12-19 18:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:34:26] Production.INFO: 94.25 MB #Memory Used# [2024-12-19 18:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:35:04 [end_date_ymd] => 2024-12-19 18:35:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:35:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:35:18] Production.INFO: count ==8750 [2024-12-19 18:35:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:35:04 - End Time 2024-12-19 18:35:04 [2024-12-19 18:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057347', 'tblTempUsageDetail_20' ) start [2024-12-19 18:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057347', 'tblTempUsageDetail_20' ) end [2024-12-19 18:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057347', 'tblTempVendorCDR_20' ) start [2024-12-19 18:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057347', 'tblTempVendorCDR_20' ) end [2024-12-19 18:35:23] Production.INFO: ProcessCDR(1,14057347,1,1,2) [2024-12-19 18:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057347', 'tblTempUsageDetail_20' ) start [2024-12-19 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057347', 'tblTempUsageDetail_20' ) end [2024-12-19 18:35:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:35:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:35:27] Production.INFO: ==14143== Releasing lock... [2024-12-19 18:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:35:27] Production.INFO: 94 MB #Memory Used# [2024-12-19 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:36:05 [end_date_ymd] => 2024-12-19 18:36:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:36:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:36:18] Production.INFO: count ==8734 [2024-12-19 18:36:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:36:05 - End Time 2024-12-19 18:36:05 [2024-12-19 18:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057352', 'tblTempUsageDetail_20' ) start [2024-12-19 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057352', 'tblTempUsageDetail_20' ) end [2024-12-19 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057352', 'tblTempVendorCDR_20' ) start [2024-12-19 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057352', 'tblTempVendorCDR_20' ) end [2024-12-19 18:36:22] Production.INFO: ProcessCDR(1,14057352,1,1,2) [2024-12-19 18:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057352', 'tblTempUsageDetail_20' ) start [2024-12-19 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057352', 'tblTempUsageDetail_20' ) end [2024-12-19 18:36:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:36:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:36:26] Production.INFO: ==14222== Releasing lock... [2024-12-19 18:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:36:26] Production.INFO: 94 MB #Memory Used# [2024-12-19 18:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:37:04 [end_date_ymd] => 2024-12-19 18:37:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:37:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:37:17] Production.INFO: count ==8650 [2024-12-19 18:37:21] Production.ERROR: pbx CDR StartTime 2024-12-19 15:37:04 - End Time 2024-12-19 18:37:04 [2024-12-19 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057357', 'tblTempUsageDetail_20' ) start [2024-12-19 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057357', 'tblTempUsageDetail_20' ) end [2024-12-19 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057357', 'tblTempVendorCDR_20' ) start [2024-12-19 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057357', 'tblTempVendorCDR_20' ) end [2024-12-19 18:37:21] Production.INFO: ProcessCDR(1,14057357,1,1,2) [2024-12-19 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057357', 'tblTempUsageDetail_20' ) start [2024-12-19 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057357', 'tblTempUsageDetail_20' ) end [2024-12-19 18:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:37:25] Production.INFO: ==14296== Releasing lock... [2024-12-19 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:37:25] Production.INFO: 93.25 MB #Memory Used# [2024-12-19 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:38:05 [end_date_ymd] => 2024-12-19 18:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:38:18] Production.INFO: count ==8564 [2024-12-19 18:38:23] Production.ERROR: pbx CDR StartTime 2024-12-19 15:38:05 - End Time 2024-12-19 18:38:05 [2024-12-19 18:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057362', 'tblTempUsageDetail_20' ) start [2024-12-19 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057362', 'tblTempUsageDetail_20' ) end [2024-12-19 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057362', 'tblTempVendorCDR_20' ) start [2024-12-19 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057362', 'tblTempVendorCDR_20' ) end [2024-12-19 18:38:23] Production.INFO: ProcessCDR(1,14057362,1,1,2) [2024-12-19 18:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057362', 'tblTempUsageDetail_20' ) start [2024-12-19 18:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057362', 'tblTempUsageDetail_20' ) end [2024-12-19 18:38:28] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:38:28] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:38:28] Production.INFO: ==14369== Releasing lock... [2024-12-19 18:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:38:28] Production.INFO: 92.5 MB #Memory Used# [2024-12-19 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:39:06 [end_date_ymd] => 2024-12-19 18:39:06 [RateCDR] => 1 ) [2024-12-19 18: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` >= '2024-12-19 15:39:06' and `end` < '2024-12-19 18: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 ,'') [2024-12-19 18:39:19] Production.INFO: count ==8487 [2024-12-19 18:39:24] Production.ERROR: pbx CDR StartTime 2024-12-19 15:39:06 - End Time 2024-12-19 18:39:06 [2024-12-19 18:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057367', 'tblTempUsageDetail_20' ) start [2024-12-19 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057367', 'tblTempUsageDetail_20' ) end [2024-12-19 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057367', 'tblTempVendorCDR_20' ) start [2024-12-19 18:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057367', 'tblTempVendorCDR_20' ) end [2024-12-19 18:39:24] Production.INFO: ProcessCDR(1,14057367,1,1,2) [2024-12-19 18:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057367', 'tblTempUsageDetail_20' ) start [2024-12-19 18:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057367', 'tblTempUsageDetail_20' ) end [2024-12-19 18:39:29] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:39:29] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:39:29] Production.INFO: ==14480== Releasing lock... [2024-12-19 18:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:39:29] Production.INFO: 92 MB #Memory Used# [2024-12-19 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:40:05 [end_date_ymd] => 2024-12-19 18:40:05 [RateCDR] => 1 ) [2024-12-19 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:40:05' and `end` < '2024-12-19 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:40:18] Production.INFO: count ==8421 [2024-12-19 18:40:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:40:05 - End Time 2024-12-19 18:40:05 [2024-12-19 18:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057373', 'tblTempUsageDetail_20' ) start [2024-12-19 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057373', 'tblTempUsageDetail_20' ) end [2024-12-19 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057373', 'tblTempVendorCDR_20' ) start [2024-12-19 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057373', 'tblTempVendorCDR_20' ) end [2024-12-19 18:40:22] Production.INFO: ProcessCDR(1,14057373,1,1,2) [2024-12-19 18:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057373', 'tblTempUsageDetail_20' ) start [2024-12-19 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057373', 'tblTempUsageDetail_20' ) end [2024-12-19 18:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:40:27] Production.INFO: ==14557== Releasing lock... [2024-12-19 18:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:40:27] Production.INFO: 91.5 MB #Memory Used# [2024-12-19 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:41:05 [end_date_ymd] => 2024-12-19 18:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:41:17] Production.INFO: count ==8336 [2024-12-19 18:41:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:41:05 - End Time 2024-12-19 18:41:05 [2024-12-19 18:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057378', 'tblTempUsageDetail_20' ) start [2024-12-19 18:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057378', 'tblTempUsageDetail_20' ) end [2024-12-19 18:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057378', 'tblTempVendorCDR_20' ) start [2024-12-19 18:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057378', 'tblTempVendorCDR_20' ) end [2024-12-19 18:41:22] Production.INFO: ProcessCDR(1,14057378,1,1,2) [2024-12-19 18:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057378', 'tblTempUsageDetail_20' ) start [2024-12-19 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057378', 'tblTempUsageDetail_20' ) end [2024-12-19 18:41:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:41:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:41:25] Production.INFO: ==14633== Releasing lock... [2024-12-19 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:41:25] Production.INFO: 91 MB #Memory Used# [2024-12-19 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:42:05 [end_date_ymd] => 2024-12-19 18:42:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:42:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:42:18] Production.INFO: count ==8224 [2024-12-19 18:42:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:42:05 - End Time 2024-12-19 18:42:05 [2024-12-19 18:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057383', 'tblTempUsageDetail_20' ) start [2024-12-19 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057383', 'tblTempUsageDetail_20' ) end [2024-12-19 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057383', 'tblTempVendorCDR_20' ) start [2024-12-19 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057383', 'tblTempVendorCDR_20' ) end [2024-12-19 18:42:22] Production.INFO: ProcessCDR(1,14057383,1,1,2) [2024-12-19 18:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057383', 'tblTempUsageDetail_20' ) start [2024-12-19 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057383', 'tblTempUsageDetail_20' ) end [2024-12-19 18:42:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:42:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:42:25] Production.INFO: ==14706== Releasing lock... [2024-12-19 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:42:25] Production.INFO: 90 MB #Memory Used# [2024-12-19 18:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:43:04 [end_date_ymd] => 2024-12-19 18:43:04 [RateCDR] => 1 ) [2024-12-19 18: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` >= '2024-12-19 15:43:04' and `end` < '2024-12-19 18: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 ,'') [2024-12-19 18:43:17] Production.INFO: count ==8076 [2024-12-19 18:43:21] Production.ERROR: pbx CDR StartTime 2024-12-19 15:43:04 - End Time 2024-12-19 18:43:04 [2024-12-19 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057388', 'tblTempUsageDetail_20' ) start [2024-12-19 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057388', 'tblTempUsageDetail_20' ) end [2024-12-19 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057388', 'tblTempVendorCDR_20' ) start [2024-12-19 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057388', 'tblTempVendorCDR_20' ) end [2024-12-19 18:43:21] Production.INFO: ProcessCDR(1,14057388,1,1,2) [2024-12-19 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057388', 'tblTempUsageDetail_20' ) start [2024-12-19 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057388', 'tblTempUsageDetail_20' ) end [2024-12-19 18:43:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:43:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:43:26] Production.INFO: ==14779== Releasing lock... [2024-12-19 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:43:26] Production.INFO: 88.75 MB #Memory Used# [2024-12-19 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:44:05 [end_date_ymd] => 2024-12-19 18:44:05 [RateCDR] => 1 ) [2024-12-19 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:44:05' and `end` < '2024-12-19 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:44:18] Production.INFO: count ==7933 [2024-12-19 18:44:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:44:05 - End Time 2024-12-19 18:44:05 [2024-12-19 18:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057393', 'tblTempUsageDetail_20' ) start [2024-12-19 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057393', 'tblTempUsageDetail_20' ) end [2024-12-19 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057393', 'tblTempVendorCDR_20' ) start [2024-12-19 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057393', 'tblTempVendorCDR_20' ) end [2024-12-19 18:44:22] Production.INFO: ProcessCDR(1,14057393,1,1,2) [2024-12-19 18:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057393', 'tblTempUsageDetail_20' ) start [2024-12-19 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057393', 'tblTempUsageDetail_20' ) end [2024-12-19 18:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:44:26] Production.INFO: ==14849== Releasing lock... [2024-12-19 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:44:26] Production.INFO: 87.75 MB #Memory Used# [2024-12-19 18:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:45:04 [end_date_ymd] => 2024-12-19 18:45:04 [RateCDR] => 1 ) [2024-12-19 18: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` >= '2024-12-19 15:45:04' and `end` < '2024-12-19 18: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 ,'') [2024-12-19 18:45:17] Production.INFO: count ==7794 [2024-12-19 18:45:21] Production.ERROR: pbx CDR StartTime 2024-12-19 15:45:04 - End Time 2024-12-19 18:45:04 [2024-12-19 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057398', 'tblTempUsageDetail_20' ) start [2024-12-19 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057398', 'tblTempUsageDetail_20' ) end [2024-12-19 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057398', 'tblTempVendorCDR_20' ) start [2024-12-19 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057398', 'tblTempVendorCDR_20' ) end [2024-12-19 18:45:21] Production.INFO: ProcessCDR(1,14057398,1,1,2) [2024-12-19 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057398', 'tblTempUsageDetail_20' ) start [2024-12-19 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057398', 'tblTempUsageDetail_20' ) end [2024-12-19 18:45:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:45:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:45:26] Production.INFO: ==14923== Releasing lock... [2024-12-19 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:45:26] Production.INFO: 87 MB #Memory Used# [2024-12-19 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:46:05 [end_date_ymd] => 2024-12-19 18:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:46:18] Production.INFO: count ==7663 [2024-12-19 18:46:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:46:05 - End Time 2024-12-19 18:46:05 [2024-12-19 18:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057403', 'tblTempUsageDetail_20' ) start [2024-12-19 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057403', 'tblTempUsageDetail_20' ) end [2024-12-19 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057403', 'tblTempVendorCDR_20' ) start [2024-12-19 18:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057403', 'tblTempVendorCDR_20' ) end [2024-12-19 18:46:22] Production.INFO: ProcessCDR(1,14057403,1,1,2) [2024-12-19 18:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057403', 'tblTempUsageDetail_20' ) start [2024-12-19 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057403', 'tblTempUsageDetail_20' ) end [2024-12-19 18:46:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:46:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:46:25] Production.INFO: ==14998== Releasing lock... [2024-12-19 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:46:25] Production.INFO: 85.75 MB #Memory Used# [2024-12-19 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:47:05 [end_date_ymd] => 2024-12-19 18:47:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:47:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:47:17] Production.INFO: count ==7525 [2024-12-19 18:47:21] Production.ERROR: pbx CDR StartTime 2024-12-19 15:47:05 - End Time 2024-12-19 18:47:05 [2024-12-19 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057408', 'tblTempUsageDetail_20' ) start [2024-12-19 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057408', 'tblTempUsageDetail_20' ) end [2024-12-19 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057408', 'tblTempVendorCDR_20' ) start [2024-12-19 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057408', 'tblTempVendorCDR_20' ) end [2024-12-19 18:47:21] Production.INFO: ProcessCDR(1,14057408,1,1,2) [2024-12-19 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057408', 'tblTempUsageDetail_20' ) start [2024-12-19 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057408', 'tblTempUsageDetail_20' ) end [2024-12-19 18:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:47:24] Production.INFO: ==15069== Releasing lock... [2024-12-19 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:47:24] Production.INFO: 84.75 MB #Memory Used# [2024-12-19 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:48:05 [end_date_ymd] => 2024-12-19 18:48:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:48:19] Production.INFO: count ==7373 [2024-12-19 18:48:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:48:05 - End Time 2024-12-19 18:48:05 [2024-12-19 18:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057413', 'tblTempUsageDetail_20' ) start [2024-12-19 18:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057413', 'tblTempUsageDetail_20' ) end [2024-12-19 18:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057413', 'tblTempVendorCDR_20' ) start [2024-12-19 18:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057413', 'tblTempVendorCDR_20' ) end [2024-12-19 18:48:23] Production.INFO: ProcessCDR(1,14057413,1,1,2) [2024-12-19 18:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057413', 'tblTempUsageDetail_20' ) start [2024-12-19 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057413', 'tblTempUsageDetail_20' ) end [2024-12-19 18:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:48:26] Production.INFO: ==15146== Releasing lock... [2024-12-19 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:48:26] Production.INFO: 83.5 MB #Memory Used# [2024-12-19 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:49:04 [end_date_ymd] => 2024-12-19 18:49:04 [RateCDR] => 1 ) [2024-12-19 18: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` >= '2024-12-19 15:49:04' and `end` < '2024-12-19 18: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 ,'') [2024-12-19 18:49:17] Production.INFO: count ==7221 [2024-12-19 18:49:20] Production.ERROR: pbx CDR StartTime 2024-12-19 15:49:04 - End Time 2024-12-19 18:49:04 [2024-12-19 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057418', 'tblTempUsageDetail_20' ) start [2024-12-19 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057418', 'tblTempUsageDetail_20' ) end [2024-12-19 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057418', 'tblTempVendorCDR_20' ) start [2024-12-19 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057418', 'tblTempVendorCDR_20' ) end [2024-12-19 18:49:21] Production.INFO: ProcessCDR(1,14057418,1,1,2) [2024-12-19 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057418', 'tblTempUsageDetail_20' ) start [2024-12-19 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057418', 'tblTempUsageDetail_20' ) end [2024-12-19 18:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:49:24] Production.INFO: ==15222== Releasing lock... [2024-12-19 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:49:24] Production.INFO: 82.5 MB #Memory Used# [2024-12-19 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:50:05 [end_date_ymd] => 2024-12-19 18:50:05 [RateCDR] => 1 ) [2024-12-19 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:50:05' and `end` < '2024-12-19 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:50:18] Production.INFO: count ==7083 [2024-12-19 18:50:22] Production.ERROR: pbx CDR StartTime 2024-12-19 15:50:05 - End Time 2024-12-19 18:50:05 [2024-12-19 18:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057424', 'tblTempUsageDetail_20' ) start [2024-12-19 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057424', 'tblTempUsageDetail_20' ) end [2024-12-19 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057424', 'tblTempVendorCDR_20' ) start [2024-12-19 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057424', 'tblTempVendorCDR_20' ) end [2024-12-19 18:50:22] Production.INFO: ProcessCDR(1,14057424,1,1,2) [2024-12-19 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057424', 'tblTempUsageDetail_20' ) start [2024-12-19 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057424', 'tblTempUsageDetail_20' ) end [2024-12-19 18:50:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:50:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:50:26] Production.INFO: ==15296== Releasing lock... [2024-12-19 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:50:26] Production.INFO: 81.5 MB #Memory Used# [2024-12-19 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:51:05 [end_date_ymd] => 2024-12-19 18:51:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:51:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:51:18] Production.INFO: count ==7007 [2024-12-19 18:51:21] Production.ERROR: pbx CDR StartTime 2024-12-19 15:51:05 - End Time 2024-12-19 18:51:05 [2024-12-19 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057429', 'tblTempUsageDetail_20' ) start [2024-12-19 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057429', 'tblTempUsageDetail_20' ) end [2024-12-19 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057429', 'tblTempVendorCDR_20' ) start [2024-12-19 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057429', 'tblTempVendorCDR_20' ) end [2024-12-19 18:51:21] Production.INFO: ProcessCDR(1,14057429,1,1,2) [2024-12-19 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057429', 'tblTempUsageDetail_20' ) start [2024-12-19 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057429', 'tblTempUsageDetail_20' ) end [2024-12-19 18:51:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:51:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:51:25] Production.INFO: ==15372== Releasing lock... [2024-12-19 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:51:25] Production.INFO: 80.25 MB #Memory Used# [2024-12-19 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:52:05 [end_date_ymd] => 2024-12-19 18:52:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:52:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:52:18] Production.INFO: count ==7082 [2024-12-19 18:52:21] Production.ERROR: pbx CDR StartTime 2024-12-19 15:52:05 - End Time 2024-12-19 18:52:05 [2024-12-19 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057434', 'tblTempUsageDetail_20' ) start [2024-12-19 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057434', 'tblTempUsageDetail_20' ) end [2024-12-19 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057434', 'tblTempVendorCDR_20' ) start [2024-12-19 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057434', 'tblTempVendorCDR_20' ) end [2024-12-19 18:52:21] Production.INFO: ProcessCDR(1,14057434,1,1,2) [2024-12-19 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057434', 'tblTempUsageDetail_20' ) start [2024-12-19 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057434', 'tblTempUsageDetail_20' ) end [2024-12-19 18:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:52:26] Production.INFO: ==15444== Releasing lock... [2024-12-19 18:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:52:26] Production.INFO: 81.5 MB #Memory Used# [2024-12-19 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:53:04 [end_date_ymd] => 2024-12-19 18:53:04 [RateCDR] => 1 ) [2024-12-19 18:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:53:04' and `end` < '2024-12-19 18:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:53:17] Production.INFO: count ==7077 [2024-12-19 18:53:20] Production.ERROR: pbx CDR StartTime 2024-12-19 15:53:04 - End Time 2024-12-19 18:53:04 [2024-12-19 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057439', 'tblTempUsageDetail_20' ) start [2024-12-19 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057439', 'tblTempUsageDetail_20' ) end [2024-12-19 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057439', 'tblTempVendorCDR_20' ) start [2024-12-19 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057439', 'tblTempVendorCDR_20' ) end [2024-12-19 18:53:21] Production.INFO: ProcessCDR(1,14057439,1,1,2) [2024-12-19 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057439', 'tblTempUsageDetail_20' ) start [2024-12-19 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057439', 'tblTempUsageDetail_20' ) end [2024-12-19 18:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:53:25] Production.INFO: ==15516== Releasing lock... [2024-12-19 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:53:25] Production.INFO: 81.25 MB #Memory Used# [2024-12-19 18:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:54:04 [end_date_ymd] => 2024-12-19 18:54:04 [RateCDR] => 1 ) [2024-12-19 18: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` >= '2024-12-19 15:54:04' and `end` < '2024-12-19 18: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 ,'') [2024-12-19 18:54:18] Production.INFO: count ==7068 [2024-12-19 18:54:21] Production.ERROR: pbx CDR StartTime 2024-12-19 15:54:04 - End Time 2024-12-19 18:54:04 [2024-12-19 18:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057444', 'tblTempUsageDetail_20' ) start [2024-12-19 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057444', 'tblTempUsageDetail_20' ) end [2024-12-19 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057444', 'tblTempVendorCDR_20' ) start [2024-12-19 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057444', 'tblTempVendorCDR_20' ) end [2024-12-19 18:54:21] Production.INFO: ProcessCDR(1,14057444,1,1,2) [2024-12-19 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057444', 'tblTempUsageDetail_20' ) start [2024-12-19 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057444', 'tblTempUsageDetail_20' ) end [2024-12-19 18:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:54:24] Production.INFO: ==15594== Releasing lock... [2024-12-19 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:54:24] Production.INFO: 80.75 MB #Memory Used# [2024-12-19 18:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:55:04 [end_date_ymd] => 2024-12-19 18:55:04 [RateCDR] => 1 ) [2024-12-19 18:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 15:55:04' and `end` < '2024-12-19 18:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 18:55:18] Production.INFO: count ==6923 [2024-12-19 18:55:21] Production.ERROR: pbx CDR StartTime 2024-12-19 15:55:04 - End Time 2024-12-19 18:55:04 [2024-12-19 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057449', 'tblTempUsageDetail_20' ) start [2024-12-19 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057449', 'tblTempUsageDetail_20' ) end [2024-12-19 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057449', 'tblTempVendorCDR_20' ) start [2024-12-19 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057449', 'tblTempVendorCDR_20' ) end [2024-12-19 18:55:21] Production.INFO: ProcessCDR(1,14057449,1,1,2) [2024-12-19 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057449', 'tblTempUsageDetail_20' ) start [2024-12-19 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057449', 'tblTempUsageDetail_20' ) end [2024-12-19 18:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:55:24] Production.INFO: ==15702== Releasing lock... [2024-12-19 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:55:24] Production.INFO: 79.75 MB #Memory Used# [2024-12-19 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:56:05 [end_date_ymd] => 2024-12-19 18:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:56:18] Production.INFO: count ==6731 [2024-12-19 18:56:21] Production.ERROR: pbx CDR StartTime 2024-12-19 15:56:05 - End Time 2024-12-19 18:56:05 [2024-12-19 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057454', 'tblTempUsageDetail_20' ) start [2024-12-19 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057454', 'tblTempUsageDetail_20' ) end [2024-12-19 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057454', 'tblTempVendorCDR_20' ) start [2024-12-19 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057454', 'tblTempVendorCDR_20' ) end [2024-12-19 18:56:21] Production.INFO: ProcessCDR(1,14057454,1,1,2) [2024-12-19 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057454', 'tblTempUsageDetail_20' ) start [2024-12-19 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057454', 'tblTempUsageDetail_20' ) end [2024-12-19 18:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:56:24] Production.INFO: ==15778== Releasing lock... [2024-12-19 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:56:24] Production.INFO: 78.25 MB #Memory Used# [2024-12-19 18:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:57:04 [end_date_ymd] => 2024-12-19 18:57:04 [RateCDR] => 1 ) [2024-12-19 18: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` >= '2024-12-19 15:57:04' and `end` < '2024-12-19 18: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 ,'') [2024-12-19 18:57:17] Production.INFO: count ==6543 [2024-12-19 18:57:20] Production.ERROR: pbx CDR StartTime 2024-12-19 15:57:04 - End Time 2024-12-19 18:57:04 [2024-12-19 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057459', 'tblTempUsageDetail_20' ) start [2024-12-19 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057459', 'tblTempUsageDetail_20' ) end [2024-12-19 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057459', 'tblTempVendorCDR_20' ) start [2024-12-19 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057459', 'tblTempVendorCDR_20' ) end [2024-12-19 18:57:20] Production.INFO: ProcessCDR(1,14057459,1,1,2) [2024-12-19 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057459', 'tblTempUsageDetail_20' ) start [2024-12-19 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057459', 'tblTempUsageDetail_20' ) end [2024-12-19 18:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:57:23] Production.INFO: ==15850== Releasing lock... [2024-12-19 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:57:23] Production.INFO: 77 MB #Memory Used# [2024-12-19 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:58:04 [end_date_ymd] => 2024-12-19 18:58:04 [RateCDR] => 1 ) [2024-12-19 18: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` >= '2024-12-19 15:58:04' and `end` < '2024-12-19 18: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 ,'') [2024-12-19 18:58:17] Production.INFO: count ==6350 [2024-12-19 18:58:20] Production.ERROR: pbx CDR StartTime 2024-12-19 15:58:04 - End Time 2024-12-19 18:58:04 [2024-12-19 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057464', 'tblTempUsageDetail_20' ) start [2024-12-19 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057464', 'tblTempUsageDetail_20' ) end [2024-12-19 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057464', 'tblTempVendorCDR_20' ) start [2024-12-19 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057464', 'tblTempVendorCDR_20' ) end [2024-12-19 18:58:20] Production.INFO: ProcessCDR(1,14057464,1,1,2) [2024-12-19 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057464', 'tblTempUsageDetail_20' ) start [2024-12-19 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057464', 'tblTempUsageDetail_20' ) end [2024-12-19 18:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:58:23] Production.INFO: ==15922== Releasing lock... [2024-12-19 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:58:23] Production.INFO: 75.5 MB #Memory Used# [2024-12-19 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 15:59:05 [end_date_ymd] => 2024-12-19 18:59:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 15:59:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 18:59:18] Production.INFO: count ==6161 [2024-12-19 18:59:21] Production.ERROR: pbx CDR StartTime 2024-12-19 15:59:05 - End Time 2024-12-19 18:59:05 [2024-12-19 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057469', 'tblTempUsageDetail_20' ) start [2024-12-19 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057469', 'tblTempUsageDetail_20' ) end [2024-12-19 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057469', 'tblTempVendorCDR_20' ) start [2024-12-19 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057469', 'tblTempVendorCDR_20' ) end [2024-12-19 18:59:21] Production.INFO: ProcessCDR(1,14057469,1,1,2) [2024-12-19 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057469', 'tblTempUsageDetail_20' ) start [2024-12-19 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057469', 'tblTempUsageDetail_20' ) end [2024-12-19 18:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 18:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 18:59:24] Production.INFO: ==15996== Releasing lock... [2024-12-19 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 18:59:24] Production.INFO: 74 MB #Memory Used# [2024-12-19 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:00:05 [end_date_ymd] => 2024-12-19 19:00:05 [RateCDR] => 1 ) [2024-12-19 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:00:05' and `end` < '2024-12-19 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:00:20] Production.INFO: count ==6059 [2024-12-19 19:00:23] Production.ERROR: pbx CDR StartTime 2024-12-19 16:00:05 - End Time 2024-12-19 19:00:05 [2024-12-19 19:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057475', 'tblTempUsageDetail_20' ) start [2024-12-19 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057475', 'tblTempUsageDetail_20' ) end [2024-12-19 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057475', 'tblTempVendorCDR_20' ) start [2024-12-19 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057475', 'tblTempVendorCDR_20' ) end [2024-12-19 19:00:23] Production.INFO: ProcessCDR(1,14057475,1,1,2) [2024-12-19 19:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057475', 'tblTempUsageDetail_20' ) start [2024-12-19 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057475', 'tblTempUsageDetail_20' ) end [2024-12-19 19:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:00:26] Production.INFO: ==16073== Releasing lock... [2024-12-19 19:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:00:26] Production.INFO: 73.25 MB #Memory Used# [2024-12-19 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:01:05 [end_date_ymd] => 2024-12-19 19:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:01:18] Production.INFO: count ==5992 [2024-12-19 19:01:21] Production.ERROR: pbx CDR StartTime 2024-12-19 16:01:05 - End Time 2024-12-19 19:01:05 [2024-12-19 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057480', 'tblTempUsageDetail_20' ) start [2024-12-19 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057480', 'tblTempUsageDetail_20' ) end [2024-12-19 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057480', 'tblTempVendorCDR_20' ) start [2024-12-19 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057480', 'tblTempVendorCDR_20' ) end [2024-12-19 19:01:21] Production.INFO: ProcessCDR(1,14057480,1,1,2) [2024-12-19 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057480', 'tblTempUsageDetail_20' ) start [2024-12-19 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057480', 'tblTempUsageDetail_20' ) end [2024-12-19 19:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:01:24] Production.INFO: ==16220== Releasing lock... [2024-12-19 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:01:24] Production.INFO: 72.75 MB #Memory Used# [2024-12-19 19:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:02:04 [end_date_ymd] => 2024-12-19 19:02:04 [RateCDR] => 1 ) [2024-12-19 19:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:02:04' and `end` < '2024-12-19 19:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:02:17] Production.INFO: count ==5958 [2024-12-19 19:02:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:02:04 - End Time 2024-12-19 19:02:04 [2024-12-19 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057485', 'tblTempUsageDetail_20' ) start [2024-12-19 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057485', 'tblTempUsageDetail_20' ) end [2024-12-19 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057485', 'tblTempVendorCDR_20' ) start [2024-12-19 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057485', 'tblTempVendorCDR_20' ) end [2024-12-19 19:02:19] Production.INFO: ProcessCDR(1,14057485,1,1,2) [2024-12-19 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057485', 'tblTempUsageDetail_20' ) start [2024-12-19 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057485', 'tblTempUsageDetail_20' ) end [2024-12-19 19:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:02:24] Production.INFO: ==16331== Releasing lock... [2024-12-19 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:02:24] Production.INFO: 72.5 MB #Memory Used# [2024-12-19 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:03:05 [end_date_ymd] => 2024-12-19 19:03:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:03:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:03:18] Production.INFO: count ==5958 [2024-12-19 19:03:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:03:05 - End Time 2024-12-19 19:03:05 [2024-12-19 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057490', 'tblTempUsageDetail_20' ) start [2024-12-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057490', 'tblTempUsageDetail_20' ) end [2024-12-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057490', 'tblTempVendorCDR_20' ) start [2024-12-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057490', 'tblTempVendorCDR_20' ) end [2024-12-19 19:03:20] Production.INFO: ProcessCDR(1,14057490,1,1,2) [2024-12-19 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057490', 'tblTempUsageDetail_20' ) start [2024-12-19 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057490', 'tblTempUsageDetail_20' ) end [2024-12-19 19:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:03:23] Production.INFO: ==16406== Releasing lock... [2024-12-19 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:03:23] Production.INFO: 72.5 MB #Memory Used# [2024-12-19 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:04:04 [end_date_ymd] => 2024-12-19 19:04:04 [RateCDR] => 1 ) [2024-12-19 19:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:04:04' and `end` < '2024-12-19 19:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:04:17] Production.INFO: count ==5972 [2024-12-19 19:04:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:04:04 - End Time 2024-12-19 19:04:04 [2024-12-19 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057495', 'tblTempUsageDetail_20' ) start [2024-12-19 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057495', 'tblTempUsageDetail_20' ) end [2024-12-19 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057495', 'tblTempVendorCDR_20' ) start [2024-12-19 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057495', 'tblTempVendorCDR_20' ) end [2024-12-19 19:04:20] Production.INFO: ProcessCDR(1,14057495,1,1,2) [2024-12-19 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057495', 'tblTempUsageDetail_20' ) start [2024-12-19 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057495', 'tblTempUsageDetail_20' ) end [2024-12-19 19:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:04:24] Production.INFO: ==16479== Releasing lock... [2024-12-19 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:04:24] Production.INFO: 72.5 MB #Memory Used# [2024-12-19 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:05:05 [end_date_ymd] => 2024-12-19 19:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:05:17] Production.INFO: count ==5980 [2024-12-19 19:05:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:05:05 - End Time 2024-12-19 19:05:05 [2024-12-19 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057500', 'tblTempUsageDetail_20' ) start [2024-12-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057500', 'tblTempUsageDetail_20' ) end [2024-12-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057500', 'tblTempVendorCDR_20' ) start [2024-12-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057500', 'tblTempVendorCDR_20' ) end [2024-12-19 19:05:20] Production.INFO: ProcessCDR(1,14057500,1,1,2) [2024-12-19 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057500', 'tblTempUsageDetail_20' ) start [2024-12-19 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057500', 'tblTempUsageDetail_20' ) end [2024-12-19 19:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:05:25] Production.INFO: ==16632== Releasing lock... [2024-12-19 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:05:25] Production.INFO: 72.75 MB #Memory Used# [2024-12-19 19:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:06:04 [end_date_ymd] => 2024-12-19 19:06:04 [RateCDR] => 1 ) [2024-12-19 19: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` >= '2024-12-19 16:06:04' and `end` < '2024-12-19 19: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 ,'') [2024-12-19 19:06:18] Production.INFO: count ==5999 [2024-12-19 19:06:21] Production.ERROR: pbx CDR StartTime 2024-12-19 16:06:04 - End Time 2024-12-19 19:06:04 [2024-12-19 19:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057505', 'tblTempUsageDetail_20' ) start [2024-12-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057505', 'tblTempUsageDetail_20' ) end [2024-12-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057505', 'tblTempVendorCDR_20' ) start [2024-12-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057505', 'tblTempVendorCDR_20' ) end [2024-12-19 19:06:21] Production.INFO: ProcessCDR(1,14057505,1,1,2) [2024-12-19 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057505', 'tblTempUsageDetail_20' ) start [2024-12-19 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057505', 'tblTempUsageDetail_20' ) end [2024-12-19 19:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:06:25] Production.INFO: ==16705== Releasing lock... [2024-12-19 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:06:25] Production.INFO: 72.75 MB #Memory Used# [2024-12-19 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:07:05 [end_date_ymd] => 2024-12-19 19:07:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:07:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:07:21] Production.INFO: count ==5998 [2024-12-19 19:07:23] Production.ERROR: pbx CDR StartTime 2024-12-19 16:07:05 - End Time 2024-12-19 19:07:05 [2024-12-19 19:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057510', 'tblTempUsageDetail_20' ) start [2024-12-19 19:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057510', 'tblTempUsageDetail_20' ) end [2024-12-19 19:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057510', 'tblTempVendorCDR_20' ) start [2024-12-19 19:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057510', 'tblTempVendorCDR_20' ) end [2024-12-19 19:07:24] Production.INFO: ProcessCDR(1,14057510,1,1,2) [2024-12-19 19:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057510', 'tblTempUsageDetail_20' ) start [2024-12-19 19:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057510', 'tblTempUsageDetail_20' ) end [2024-12-19 19:07:27] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:07:27] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:07:27] Production.INFO: ==16776== Releasing lock... [2024-12-19 19:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:07:27] Production.INFO: 72.75 MB #Memory Used# [2024-12-19 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:08:05 [end_date_ymd] => 2024-12-19 19:08:05 [RateCDR] => 1 ) [2024-12-19 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:08:05' and `end` < '2024-12-19 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:08:18] Production.INFO: count ==5975 [2024-12-19 19:08:21] Production.ERROR: pbx CDR StartTime 2024-12-19 16:08:05 - End Time 2024-12-19 19:08:05 [2024-12-19 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057515', 'tblTempUsageDetail_20' ) start [2024-12-19 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057515', 'tblTempUsageDetail_20' ) end [2024-12-19 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057515', 'tblTempVendorCDR_20' ) start [2024-12-19 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057515', 'tblTempVendorCDR_20' ) end [2024-12-19 19:08:21] Production.INFO: ProcessCDR(1,14057515,1,1,2) [2024-12-19 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057515', 'tblTempUsageDetail_20' ) start [2024-12-19 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057515', 'tblTempUsageDetail_20' ) end [2024-12-19 19:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:08:24] Production.INFO: ==16930== Releasing lock... [2024-12-19 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:08:24] Production.INFO: 72.5 MB #Memory Used# [2024-12-19 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:09:04 [end_date_ymd] => 2024-12-19 19:09:04 [RateCDR] => 1 ) [2024-12-19 19:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:09:04' and `end` < '2024-12-19 19:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:09:17] Production.INFO: count ==5889 [2024-12-19 19:09:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:09:04 - End Time 2024-12-19 19:09:04 [2024-12-19 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057520', 'tblTempUsageDetail_20' ) start [2024-12-19 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057520', 'tblTempUsageDetail_20' ) end [2024-12-19 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057520', 'tblTempVendorCDR_20' ) start [2024-12-19 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057520', 'tblTempVendorCDR_20' ) end [2024-12-19 19:09:20] Production.INFO: ProcessCDR(1,14057520,1,1,2) [2024-12-19 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057520', 'tblTempUsageDetail_20' ) start [2024-12-19 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057520', 'tblTempUsageDetail_20' ) end [2024-12-19 19:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:09:24] Production.INFO: ==17003== Releasing lock... [2024-12-19 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:09:24] Production.INFO: 72 MB #Memory Used# [2024-12-19 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:10:06 [end_date_ymd] => 2024-12-19 19:10:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:10:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:10:18] Production.INFO: count ==5826 [2024-12-19 19:10:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:10:06 - End Time 2024-12-19 19:10:06 [2024-12-19 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057526', 'tblTempUsageDetail_20' ) start [2024-12-19 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057526', 'tblTempUsageDetail_20' ) end [2024-12-19 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057526', 'tblTempVendorCDR_20' ) start [2024-12-19 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057526', 'tblTempVendorCDR_20' ) end [2024-12-19 19:10:21] Production.INFO: ProcessCDR(1,14057526,1,1,2) [2024-12-19 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057526', 'tblTempUsageDetail_20' ) start [2024-12-19 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057526', 'tblTempUsageDetail_20' ) end [2024-12-19 19:10:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:10:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:10:25] Production.INFO: ==17115== Releasing lock... [2024-12-19 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:10:25] Production.INFO: 71.5 MB #Memory Used# [2024-12-19 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:11:05 [end_date_ymd] => 2024-12-19 19:11:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:11:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:11:20] Production.INFO: count ==5839 [2024-12-19 19:11:22] Production.ERROR: pbx CDR StartTime 2024-12-19 16:11:05 - End Time 2024-12-19 19:11:05 [2024-12-19 19:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057531', 'tblTempUsageDetail_20' ) start [2024-12-19 19:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057531', 'tblTempUsageDetail_20' ) end [2024-12-19 19:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057531', 'tblTempVendorCDR_20' ) start [2024-12-19 19:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057531', 'tblTempVendorCDR_20' ) end [2024-12-19 19:11:22] Production.INFO: ProcessCDR(1,14057531,1,1,2) [2024-12-19 19:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057531', 'tblTempUsageDetail_20' ) start [2024-12-19 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057531', 'tblTempUsageDetail_20' ) end [2024-12-19 19:11:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:11:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:11:25] Production.INFO: ==17190== Releasing lock... [2024-12-19 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:11:25] Production.INFO: 71.5 MB #Memory Used# [2024-12-19 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:12:05 [end_date_ymd] => 2024-12-19 19:12:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:12:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:12:17] Production.INFO: count ==5806 [2024-12-19 19:12:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:12:05 - End Time 2024-12-19 19:12:05 [2024-12-19 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057536', 'tblTempUsageDetail_20' ) start [2024-12-19 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057536', 'tblTempUsageDetail_20' ) end [2024-12-19 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057536', 'tblTempVendorCDR_20' ) start [2024-12-19 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057536', 'tblTempVendorCDR_20' ) end [2024-12-19 19:12:20] Production.INFO: ProcessCDR(1,14057536,1,1,2) [2024-12-19 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057536', 'tblTempUsageDetail_20' ) start [2024-12-19 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057536', 'tblTempUsageDetail_20' ) end [2024-12-19 19:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:12:23] Production.INFO: ==17341== Releasing lock... [2024-12-19 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:12:23] Production.INFO: 71.25 MB #Memory Used# [2024-12-19 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:13:04 [end_date_ymd] => 2024-12-19 19:13:04 [RateCDR] => 1 ) [2024-12-19 19:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:13:04' and `end` < '2024-12-19 19:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:13:17] Production.INFO: count ==5758 [2024-12-19 19:13:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:13:04 - End Time 2024-12-19 19:13:04 [2024-12-19 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057541', 'tblTempUsageDetail_20' ) start [2024-12-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057541', 'tblTempUsageDetail_20' ) end [2024-12-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057541', 'tblTempVendorCDR_20' ) start [2024-12-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057541', 'tblTempVendorCDR_20' ) end [2024-12-19 19:13:19] Production.INFO: ProcessCDR(1,14057541,1,1,2) [2024-12-19 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057541', 'tblTempUsageDetail_20' ) start [2024-12-19 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057541', 'tblTempUsageDetail_20' ) end [2024-12-19 19:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:13:23] Production.INFO: ==17413== Releasing lock... [2024-12-19 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:13:23] Production.INFO: 71 MB #Memory Used# [2024-12-19 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:14:05 [end_date_ymd] => 2024-12-19 19:14:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:14:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:14:18] Production.INFO: count ==5724 [2024-12-19 19:14:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:14:05 - End Time 2024-12-19 19:14:05 [2024-12-19 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057546', 'tblTempUsageDetail_20' ) start [2024-12-19 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057546', 'tblTempUsageDetail_20' ) end [2024-12-19 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057546', 'tblTempVendorCDR_20' ) start [2024-12-19 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057546', 'tblTempVendorCDR_20' ) end [2024-12-19 19:14:20] Production.INFO: ProcessCDR(1,14057546,1,1,2) [2024-12-19 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057546', 'tblTempUsageDetail_20' ) start [2024-12-19 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057546', 'tblTempUsageDetail_20' ) end [2024-12-19 19:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:14:24] Production.INFO: ==17488== Releasing lock... [2024-12-19 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:14:24] Production.INFO: 70.75 MB #Memory Used# [2024-12-19 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:15:04 [end_date_ymd] => 2024-12-19 19:15:04 [RateCDR] => 1 ) [2024-12-19 19:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:15:04' and `end` < '2024-12-19 19:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:15:17] Production.INFO: count ==5670 [2024-12-19 19:15:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:15:04 - End Time 2024-12-19 19:15:04 [2024-12-19 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057551', 'tblTempUsageDetail_20' ) start [2024-12-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057551', 'tblTempUsageDetail_20' ) end [2024-12-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057551', 'tblTempVendorCDR_20' ) start [2024-12-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057551', 'tblTempVendorCDR_20' ) end [2024-12-19 19:15:19] Production.INFO: ProcessCDR(1,14057551,1,1,2) [2024-12-19 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057551', 'tblTempUsageDetail_20' ) start [2024-12-19 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057551', 'tblTempUsageDetail_20' ) end [2024-12-19 19:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:15:22] Production.INFO: ==17645== Releasing lock... [2024-12-19 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:15:22] Production.INFO: 70.25 MB #Memory Used# [2024-12-19 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:16:05 [end_date_ymd] => 2024-12-19 19:16:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:16:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:16:18] Production.INFO: count ==5656 [2024-12-19 19:16:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:16:05 - End Time 2024-12-19 19:16:05 [2024-12-19 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057556', 'tblTempUsageDetail_20' ) start [2024-12-19 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057556', 'tblTempUsageDetail_20' ) end [2024-12-19 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057556', 'tblTempVendorCDR_20' ) start [2024-12-19 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057556', 'tblTempVendorCDR_20' ) end [2024-12-19 19:16:20] Production.INFO: ProcessCDR(1,14057556,1,1,2) [2024-12-19 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057556', 'tblTempUsageDetail_20' ) start [2024-12-19 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057556', 'tblTempUsageDetail_20' ) end [2024-12-19 19:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:16:23] Production.INFO: ==17725== Releasing lock... [2024-12-19 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:16:23] Production.INFO: 70.25 MB #Memory Used# [2024-12-19 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:17:05 [end_date_ymd] => 2024-12-19 19:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:17:18] Production.INFO: count ==5660 [2024-12-19 19:17:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:17:05 - End Time 2024-12-19 19:17:05 [2024-12-19 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057561', 'tblTempUsageDetail_20' ) start [2024-12-19 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057561', 'tblTempUsageDetail_20' ) end [2024-12-19 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057561', 'tblTempVendorCDR_20' ) start [2024-12-19 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057561', 'tblTempVendorCDR_20' ) end [2024-12-19 19:17:20] Production.INFO: ProcessCDR(1,14057561,1,1,2) [2024-12-19 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057561', 'tblTempUsageDetail_20' ) start [2024-12-19 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057561', 'tblTempUsageDetail_20' ) end [2024-12-19 19:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:17:23] Production.INFO: ==17803== Releasing lock... [2024-12-19 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:17:23] Production.INFO: 70.25 MB #Memory Used# [2024-12-19 19:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:18:04 [end_date_ymd] => 2024-12-19 19:18:04 [RateCDR] => 1 ) [2024-12-19 19: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` >= '2024-12-19 16:18:04' and `end` < '2024-12-19 19: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 ,'') [2024-12-19 19:18:17] Production.INFO: count ==5664 [2024-12-19 19:18:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:18:04 - End Time 2024-12-19 19:18:04 [2024-12-19 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057566', 'tblTempUsageDetail_20' ) start [2024-12-19 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057566', 'tblTempUsageDetail_20' ) end [2024-12-19 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057566', 'tblTempVendorCDR_20' ) start [2024-12-19 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057566', 'tblTempVendorCDR_20' ) end [2024-12-19 19:18:20] Production.INFO: ProcessCDR(1,14057566,1,1,2) [2024-12-19 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057566', 'tblTempUsageDetail_20' ) start [2024-12-19 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057566', 'tblTempUsageDetail_20' ) end [2024-12-19 19:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:18:24] Production.INFO: ==17884== Releasing lock... [2024-12-19 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:18:24] Production.INFO: 70.25 MB #Memory Used# [2024-12-19 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:19:05 [end_date_ymd] => 2024-12-19 19:19:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:19:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:19:18] Production.INFO: count ==5667 [2024-12-19 19:19:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:19:05 - End Time 2024-12-19 19:19:05 [2024-12-19 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057571', 'tblTempUsageDetail_20' ) start [2024-12-19 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057571', 'tblTempUsageDetail_20' ) end [2024-12-19 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057571', 'tblTempVendorCDR_20' ) start [2024-12-19 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057571', 'tblTempVendorCDR_20' ) end [2024-12-19 19:19:20] Production.INFO: ProcessCDR(1,14057571,1,1,2) [2024-12-19 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057571', 'tblTempUsageDetail_20' ) start [2024-12-19 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057571', 'tblTempUsageDetail_20' ) end [2024-12-19 19:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:19:23] Production.INFO: ==17965== Releasing lock... [2024-12-19 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:19:23] Production.INFO: 70.25 MB #Memory Used# [2024-12-19 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:20:05 [end_date_ymd] => 2024-12-19 19:20:05 [RateCDR] => 1 ) [2024-12-19 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:20:05' and `end` < '2024-12-19 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:20:18] Production.INFO: count ==5685 [2024-12-19 19:20:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:20:05 - End Time 2024-12-19 19:20:05 [2024-12-19 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057577', 'tblTempUsageDetail_20' ) start [2024-12-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057577', 'tblTempUsageDetail_20' ) end [2024-12-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057577', 'tblTempVendorCDR_20' ) start [2024-12-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057577', 'tblTempVendorCDR_20' ) end [2024-12-19 19:20:20] Production.INFO: ProcessCDR(1,14057577,1,1,2) [2024-12-19 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057577', 'tblTempUsageDetail_20' ) start [2024-12-19 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057577', 'tblTempUsageDetail_20' ) end [2024-12-19 19:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:20:24] Production.INFO: ==18054== Releasing lock... [2024-12-19 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:20:24] Production.INFO: 70.5 MB #Memory Used# [2024-12-19 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:21:05 [end_date_ymd] => 2024-12-19 19:21:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:21:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:21:19] Production.INFO: count ==5696 [2024-12-19 19:21:21] Production.ERROR: pbx CDR StartTime 2024-12-19 16:21:05 - End Time 2024-12-19 19:21:05 [2024-12-19 19:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057582', 'tblTempUsageDetail_20' ) start [2024-12-19 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057582', 'tblTempUsageDetail_20' ) end [2024-12-19 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057582', 'tblTempVendorCDR_20' ) start [2024-12-19 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057582', 'tblTempVendorCDR_20' ) end [2024-12-19 19:21:21] Production.INFO: ProcessCDR(1,14057582,1,1,2) [2024-12-19 19:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057582', 'tblTempUsageDetail_20' ) start [2024-12-19 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057582', 'tblTempUsageDetail_20' ) end [2024-12-19 19:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:21:24] Production.INFO: ==18139== Releasing lock... [2024-12-19 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:21:24] Production.INFO: 70.5 MB #Memory Used# [2024-12-19 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:22:05 [end_date_ymd] => 2024-12-19 19:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:22:19] Production.INFO: count ==5616 [2024-12-19 19:22:21] Production.ERROR: pbx CDR StartTime 2024-12-19 16:22:05 - End Time 2024-12-19 19:22:05 [2024-12-19 19:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057587', 'tblTempUsageDetail_20' ) start [2024-12-19 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057587', 'tblTempUsageDetail_20' ) end [2024-12-19 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057587', 'tblTempVendorCDR_20' ) start [2024-12-19 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057587', 'tblTempVendorCDR_20' ) end [2024-12-19 19:22:21] Production.INFO: ProcessCDR(1,14057587,1,1,2) [2024-12-19 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057587', 'tblTempUsageDetail_20' ) start [2024-12-19 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057587', 'tblTempUsageDetail_20' ) end [2024-12-19 19:22:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:22:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:22:26] Production.INFO: ==18229== Releasing lock... [2024-12-19 19:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:22:26] Production.INFO: 70 MB #Memory Used# [2024-12-19 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:23:05 [end_date_ymd] => 2024-12-19 19:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:23:17] Production.INFO: count ==5528 [2024-12-19 19:23:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:23:05 - End Time 2024-12-19 19:23:05 [2024-12-19 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057592', 'tblTempUsageDetail_20' ) start [2024-12-19 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057592', 'tblTempUsageDetail_20' ) end [2024-12-19 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057592', 'tblTempVendorCDR_20' ) start [2024-12-19 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057592', 'tblTempVendorCDR_20' ) end [2024-12-19 19:23:20] Production.INFO: ProcessCDR(1,14057592,1,1,2) [2024-12-19 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057592', 'tblTempUsageDetail_20' ) start [2024-12-19 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057592', 'tblTempUsageDetail_20' ) end [2024-12-19 19:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:23:23] Production.INFO: ==18321== Releasing lock... [2024-12-19 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:23:23] Production.INFO: 69.25 MB #Memory Used# [2024-12-19 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:24:05 [end_date_ymd] => 2024-12-19 19:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:24:18] Production.INFO: count ==5449 [2024-12-19 19:24:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:24:05 - End Time 2024-12-19 19:24:05 [2024-12-19 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057597', 'tblTempUsageDetail_20' ) start [2024-12-19 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057597', 'tblTempUsageDetail_20' ) end [2024-12-19 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057597', 'tblTempVendorCDR_20' ) start [2024-12-19 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057597', 'tblTempVendorCDR_20' ) end [2024-12-19 19:24:20] Production.INFO: ProcessCDR(1,14057597,1,1,2) [2024-12-19 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057597', 'tblTempUsageDetail_20' ) start [2024-12-19 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057597', 'tblTempUsageDetail_20' ) end [2024-12-19 19:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:24:25] Production.INFO: ==18406== Releasing lock... [2024-12-19 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:24:25] Production.INFO: 68.75 MB #Memory Used# [2024-12-19 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:25:04 [end_date_ymd] => 2024-12-19 19:25:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:25:04' and `end` < '2024-12-19 19:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:25:17] Production.INFO: count ==5347 [2024-12-19 19:25:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:25:04 - End Time 2024-12-19 19:25:04 [2024-12-19 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057602', 'tblTempUsageDetail_20' ) start [2024-12-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057602', 'tblTempUsageDetail_20' ) end [2024-12-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057602', 'tblTempVendorCDR_20' ) start [2024-12-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057602', 'tblTempVendorCDR_20' ) end [2024-12-19 19:25:19] Production.INFO: ProcessCDR(1,14057602,1,1,2) [2024-12-19 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057602', 'tblTempUsageDetail_20' ) start [2024-12-19 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057602', 'tblTempUsageDetail_20' ) end [2024-12-19 19:25:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:25:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:25:24] Production.INFO: ==18496== Releasing lock... [2024-12-19 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:25:24] Production.INFO: 68 MB #Memory Used# [2024-12-19 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:26:05 [end_date_ymd] => 2024-12-19 19:26:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:26:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:26:18] Production.INFO: count ==5241 [2024-12-19 19:26:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:26:05 - End Time 2024-12-19 19:26:05 [2024-12-19 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057607', 'tblTempUsageDetail_20' ) start [2024-12-19 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057607', 'tblTempUsageDetail_20' ) end [2024-12-19 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057607', 'tblTempVendorCDR_20' ) start [2024-12-19 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057607', 'tblTempVendorCDR_20' ) end [2024-12-19 19:26:20] Production.INFO: ProcessCDR(1,14057607,1,1,2) [2024-12-19 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057607', 'tblTempUsageDetail_20' ) start [2024-12-19 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057607', 'tblTempUsageDetail_20' ) end [2024-12-19 19:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:26:25] Production.INFO: ==18623== Releasing lock... [2024-12-19 19:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:26:25] Production.INFO: 67.25 MB #Memory Used# [2024-12-19 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:27:04 [end_date_ymd] => 2024-12-19 19:27:04 [RateCDR] => 1 ) [2024-12-19 19:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:27:04' and `end` < '2024-12-19 19:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:27:17] Production.INFO: count ==5128 [2024-12-19 19:27:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:27:04 - End Time 2024-12-19 19:27:04 [2024-12-19 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057612', 'tblTempUsageDetail_20' ) start [2024-12-19 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057612', 'tblTempUsageDetail_20' ) end [2024-12-19 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057612', 'tblTempVendorCDR_20' ) start [2024-12-19 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057612', 'tblTempVendorCDR_20' ) end [2024-12-19 19:27:19] Production.INFO: ProcessCDR(1,14057612,1,1,2) [2024-12-19 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057612', 'tblTempUsageDetail_20' ) start [2024-12-19 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057612', 'tblTempUsageDetail_20' ) end [2024-12-19 19:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:27:22] Production.INFO: ==18715== Releasing lock... [2024-12-19 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:27:22] Production.INFO: 66.25 MB #Memory Used# [2024-12-19 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:28:05 [end_date_ymd] => 2024-12-19 19:28:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:28:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:28:18] Production.INFO: count ==5061 [2024-12-19 19:28:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:28:05 - End Time 2024-12-19 19:28:05 [2024-12-19 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057617', 'tblTempUsageDetail_20' ) start [2024-12-19 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057617', 'tblTempUsageDetail_20' ) end [2024-12-19 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057617', 'tblTempVendorCDR_20' ) start [2024-12-19 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057617', 'tblTempVendorCDR_20' ) end [2024-12-19 19:28:20] Production.INFO: ProcessCDR(1,14057617,1,1,2) [2024-12-19 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057617', 'tblTempUsageDetail_20' ) start [2024-12-19 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057617', 'tblTempUsageDetail_20' ) end [2024-12-19 19:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:28:24] Production.INFO: ==18804== Releasing lock... [2024-12-19 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:28:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-19 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:29:04 [end_date_ymd] => 2024-12-19 19:29:04 [RateCDR] => 1 ) [2024-12-19 19:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:29:04' and `end` < '2024-12-19 19:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:29:17] Production.INFO: count ==4850 [2024-12-19 19:29:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:29:04 - End Time 2024-12-19 19:29:04 [2024-12-19 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057622', 'tblTempUsageDetail_20' ) start [2024-12-19 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057622', 'tblTempUsageDetail_20' ) end [2024-12-19 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057622', 'tblTempVendorCDR_20' ) start [2024-12-19 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057622', 'tblTempVendorCDR_20' ) end [2024-12-19 19:29:19] Production.INFO: ProcessCDR(1,14057622,1,1,2) [2024-12-19 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057622', 'tblTempUsageDetail_20' ) start [2024-12-19 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057622', 'tblTempUsageDetail_20' ) end [2024-12-19 19:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:29:23] Production.INFO: ==18893== Releasing lock... [2024-12-19 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:29:23] Production.INFO: 64.25 MB #Memory Used# [2024-12-19 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:30:06 [end_date_ymd] => 2024-12-19 19:30:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:30:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:30:18] Production.INFO: count ==4767 [2024-12-19 19:30:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:30:06 - End Time 2024-12-19 19:30:06 [2024-12-19 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057628', 'tblTempUsageDetail_20' ) start [2024-12-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057628', 'tblTempUsageDetail_20' ) end [2024-12-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057628', 'tblTempVendorCDR_20' ) start [2024-12-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057628', 'tblTempVendorCDR_20' ) end [2024-12-19 19:30:20] Production.INFO: ProcessCDR(1,14057628,1,1,2) [2024-12-19 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057628', 'tblTempUsageDetail_20' ) start [2024-12-19 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057628', 'tblTempUsageDetail_20' ) end [2024-12-19 19:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:30:25] Production.INFO: ==18984== Releasing lock... [2024-12-19 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:30:25] Production.INFO: 63.5 MB #Memory Used# [2024-12-19 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:31:05 [end_date_ymd] => 2024-12-19 19:31:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:31:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:31:17] Production.INFO: count ==4668 [2024-12-19 19:31:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:31:05 - End Time 2024-12-19 19:31:05 [2024-12-19 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057633', 'tblTempUsageDetail_20' ) start [2024-12-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057633', 'tblTempUsageDetail_20' ) end [2024-12-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057633', 'tblTempVendorCDR_20' ) start [2024-12-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057633', 'tblTempVendorCDR_20' ) end [2024-12-19 19:31:19] Production.INFO: ProcessCDR(1,14057633,1,1,2) [2024-12-19 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057633', 'tblTempUsageDetail_20' ) start [2024-12-19 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057633', 'tblTempUsageDetail_20' ) end [2024-12-19 19:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:31:24] Production.INFO: ==19074== Releasing lock... [2024-12-19 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:31:24] Production.INFO: 62.75 MB #Memory Used# [2024-12-19 19:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:32:04 [end_date_ymd] => 2024-12-19 19:32:04 [RateCDR] => 1 ) [2024-12-19 19:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:32:04' and `end` < '2024-12-19 19:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:32:17] Production.INFO: count ==4637 [2024-12-19 19:32:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:32:04 - End Time 2024-12-19 19:32:04 [2024-12-19 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057638', 'tblTempUsageDetail_20' ) start [2024-12-19 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057638', 'tblTempUsageDetail_20' ) end [2024-12-19 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057638', 'tblTempVendorCDR_20' ) start [2024-12-19 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057638', 'tblTempVendorCDR_20' ) end [2024-12-19 19:32:19] Production.INFO: ProcessCDR(1,14057638,1,1,2) [2024-12-19 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057638', 'tblTempUsageDetail_20' ) start [2024-12-19 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057638', 'tblTempUsageDetail_20' ) end [2024-12-19 19:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:32:22] Production.INFO: ==19159== Releasing lock... [2024-12-19 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:32:22] Production.INFO: 62.5 MB #Memory Used# [2024-12-19 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:33:05 [end_date_ymd] => 2024-12-19 19:33:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:33:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:33:18] Production.INFO: count ==4596 [2024-12-19 19:33:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:33:05 - End Time 2024-12-19 19:33:05 [2024-12-19 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057643', 'tblTempUsageDetail_20' ) start [2024-12-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057643', 'tblTempUsageDetail_20' ) end [2024-12-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057643', 'tblTempVendorCDR_20' ) start [2024-12-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057643', 'tblTempVendorCDR_20' ) end [2024-12-19 19:33:19] Production.INFO: ProcessCDR(1,14057643,1,1,2) [2024-12-19 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057643', 'tblTempUsageDetail_20' ) start [2024-12-19 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057643', 'tblTempUsageDetail_20' ) end [2024-12-19 19:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:33:23] Production.INFO: ==19256== Releasing lock... [2024-12-19 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:33:23] Production.INFO: 62.25 MB #Memory Used# [2024-12-19 19:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:34:04 [end_date_ymd] => 2024-12-19 19:34:04 [RateCDR] => 1 ) [2024-12-19 19:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:34:04' and `end` < '2024-12-19 19:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:34:19] Production.INFO: count ==4522 [2024-12-19 19:34:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:34:04 - End Time 2024-12-19 19:34:04 [2024-12-19 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057648', 'tblTempUsageDetail_20' ) start [2024-12-19 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057648', 'tblTempUsageDetail_20' ) end [2024-12-19 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057648', 'tblTempVendorCDR_20' ) start [2024-12-19 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057648', 'tblTempVendorCDR_20' ) end [2024-12-19 19:34:21] Production.INFO: ProcessCDR(1,14057648,1,1,2) [2024-12-19 19:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057648', 'tblTempUsageDetail_20' ) start [2024-12-19 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057648', 'tblTempUsageDetail_20' ) end [2024-12-19 19:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:34:24] Production.INFO: ==19343== Releasing lock... [2024-12-19 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:34:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:35:05 [end_date_ymd] => 2024-12-19 19:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:35:17] Production.INFO: count ==4510 [2024-12-19 19:35:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:35:05 - End Time 2024-12-19 19:35:05 [2024-12-19 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057653', 'tblTempUsageDetail_20' ) start [2024-12-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057653', 'tblTempUsageDetail_20' ) end [2024-12-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057653', 'tblTempVendorCDR_20' ) start [2024-12-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057653', 'tblTempVendorCDR_20' ) end [2024-12-19 19:35:19] Production.INFO: ProcessCDR(1,14057653,1,1,2) [2024-12-19 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057653', 'tblTempUsageDetail_20' ) start [2024-12-19 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057653', 'tblTempUsageDetail_20' ) end [2024-12-19 19:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:35:22] Production.INFO: ==19431== Releasing lock... [2024-12-19 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:35:22] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:36:05 [end_date_ymd] => 2024-12-19 19:36:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:36:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:36:21] Production.INFO: count ==4510 [2024-12-19 19:36:22] Production.ERROR: pbx CDR StartTime 2024-12-19 16:36:05 - End Time 2024-12-19 19:36:05 [2024-12-19 19:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057658', 'tblTempUsageDetail_20' ) start [2024-12-19 19:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057658', 'tblTempUsageDetail_20' ) end [2024-12-19 19:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057658', 'tblTempVendorCDR_20' ) start [2024-12-19 19:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057658', 'tblTempVendorCDR_20' ) end [2024-12-19 19:36:23] Production.INFO: ProcessCDR(1,14057658,1,1,2) [2024-12-19 19:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057658', 'tblTempUsageDetail_20' ) start [2024-12-19 19:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057658', 'tblTempUsageDetail_20' ) end [2024-12-19 19:36:26] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:36:26] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:36:26] Production.INFO: ==19519== Releasing lock... [2024-12-19 19:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:36:26] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:37:04 [end_date_ymd] => 2024-12-19 19:37:04 [RateCDR] => 1 ) [2024-12-19 19: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` >= '2024-12-19 16:37:04' and `end` < '2024-12-19 19: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 ,'') [2024-12-19 19:37:17] Production.INFO: count ==4517 [2024-12-19 19:37:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:37:04 - End Time 2024-12-19 19:37:04 [2024-12-19 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057663', 'tblTempUsageDetail_20' ) start [2024-12-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057663', 'tblTempUsageDetail_20' ) end [2024-12-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057663', 'tblTempVendorCDR_20' ) start [2024-12-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057663', 'tblTempVendorCDR_20' ) end [2024-12-19 19:37:19] Production.INFO: ProcessCDR(1,14057663,1,1,2) [2024-12-19 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057663', 'tblTempUsageDetail_20' ) start [2024-12-19 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057663', 'tblTempUsageDetail_20' ) end [2024-12-19 19:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:37:24] Production.INFO: ==19607== Releasing lock... [2024-12-19 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:37:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:38:05 [end_date_ymd] => 2024-12-19 19:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:38:20] Production.INFO: count ==4518 [2024-12-19 19:38:22] Production.ERROR: pbx CDR StartTime 2024-12-19 16:38:05 - End Time 2024-12-19 19:38:05 [2024-12-19 19:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057668', 'tblTempUsageDetail_20' ) start [2024-12-19 19:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057668', 'tblTempUsageDetail_20' ) end [2024-12-19 19:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057668', 'tblTempVendorCDR_20' ) start [2024-12-19 19:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057668', 'tblTempVendorCDR_20' ) end [2024-12-19 19:38:22] Production.INFO: ProcessCDR(1,14057668,1,1,2) [2024-12-19 19:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057668', 'tblTempUsageDetail_20' ) start [2024-12-19 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057668', 'tblTempUsageDetail_20' ) end [2024-12-19 19:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:38:25] Production.INFO: ==19699== Releasing lock... [2024-12-19 19:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:38:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:39:04 [end_date_ymd] => 2024-12-19 19:39:04 [RateCDR] => 1 ) [2024-12-19 19:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:39:04' and `end` < '2024-12-19 19:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:39:17] Production.INFO: count ==4521 [2024-12-19 19:39:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:39:04 - End Time 2024-12-19 19:39:04 [2024-12-19 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057673', 'tblTempUsageDetail_20' ) start [2024-12-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057673', 'tblTempUsageDetail_20' ) end [2024-12-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057673', 'tblTempVendorCDR_20' ) start [2024-12-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057673', 'tblTempVendorCDR_20' ) end [2024-12-19 19:39:19] Production.INFO: ProcessCDR(1,14057673,1,1,2) [2024-12-19 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057673', 'tblTempUsageDetail_20' ) start [2024-12-19 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057673', 'tblTempUsageDetail_20' ) end [2024-12-19 19:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:39:22] Production.INFO: ==19784== Releasing lock... [2024-12-19 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:39:22] Production.INFO: 61.75 MB #Memory Used# [2024-12-19 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:40:05 [end_date_ymd] => 2024-12-19 19:40:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:40:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:40:17] Production.INFO: count ==4466 [2024-12-19 19:40:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:40:05 - End Time 2024-12-19 19:40:05 [2024-12-19 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057678', 'tblTempUsageDetail_20' ) start [2024-12-19 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057678', 'tblTempUsageDetail_20' ) end [2024-12-19 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057678', 'tblTempVendorCDR_20' ) start [2024-12-19 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057678', 'tblTempVendorCDR_20' ) end [2024-12-19 19:40:19] Production.INFO: ProcessCDR(1,14057678,1,1,2) [2024-12-19 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057678', 'tblTempUsageDetail_20' ) start [2024-12-19 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057678', 'tblTempUsageDetail_20' ) end [2024-12-19 19:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:40:22] Production.INFO: ==19875== Releasing lock... [2024-12-19 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:40:22] Production.INFO: 61.25 MB #Memory Used# [2024-12-19 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:41:05 [end_date_ymd] => 2024-12-19 19:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:41:17] Production.INFO: count ==4295 [2024-12-19 19:41:19] Production.ERROR: pbx CDR StartTime 2024-12-19 16:41:05 - End Time 2024-12-19 19:41:05 [2024-12-19 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057684', 'tblTempUsageDetail_20' ) start [2024-12-19 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057684', 'tblTempUsageDetail_20' ) end [2024-12-19 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057684', 'tblTempVendorCDR_20' ) start [2024-12-19 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057684', 'tblTempVendorCDR_20' ) end [2024-12-19 19:41:19] Production.INFO: ProcessCDR(1,14057684,1,1,2) [2024-12-19 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057684', 'tblTempUsageDetail_20' ) start [2024-12-19 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057684', 'tblTempUsageDetail_20' ) end [2024-12-19 19:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:41:22] Production.INFO: ==19966== Releasing lock... [2024-12-19 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:41:22] Production.INFO: 60 MB #Memory Used# [2024-12-19 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:42:04 [end_date_ymd] => 2024-12-19 19:42:04 [RateCDR] => 1 ) [2024-12-19 19:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:42:04' and `end` < '2024-12-19 19:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:42:16] Production.INFO: count ==4062 [2024-12-19 19:42:18] Production.ERROR: pbx CDR StartTime 2024-12-19 16:42:04 - End Time 2024-12-19 19:42:04 [2024-12-19 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057689', 'tblTempUsageDetail_20' ) start [2024-12-19 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057689', 'tblTempUsageDetail_20' ) end [2024-12-19 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057689', 'tblTempVendorCDR_20' ) start [2024-12-19 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057689', 'tblTempVendorCDR_20' ) end [2024-12-19 19:42:18] Production.INFO: ProcessCDR(1,14057689,1,1,2) [2024-12-19 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057689', 'tblTempUsageDetail_20' ) start [2024-12-19 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057689', 'tblTempUsageDetail_20' ) end [2024-12-19 19:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:42:22] Production.INFO: ==20094== Releasing lock... [2024-12-19 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:42:22] Production.INFO: 58.25 MB #Memory Used# [2024-12-19 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:43:05 [end_date_ymd] => 2024-12-19 19:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:43:18] Production.INFO: count ==3879 [2024-12-19 19:43:20] Production.ERROR: pbx CDR StartTime 2024-12-19 16:43:05 - End Time 2024-12-19 19:43:05 [2024-12-19 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057694', 'tblTempUsageDetail_20' ) start [2024-12-19 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057694', 'tblTempUsageDetail_20' ) end [2024-12-19 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057694', 'tblTempVendorCDR_20' ) start [2024-12-19 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057694', 'tblTempVendorCDR_20' ) end [2024-12-19 19:43:20] Production.INFO: ProcessCDR(1,14057694,1,1,2) [2024-12-19 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057694', 'tblTempUsageDetail_20' ) start [2024-12-19 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057694', 'tblTempUsageDetail_20' ) end [2024-12-19 19:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:43:25] Production.INFO: ==20173== Releasing lock... [2024-12-19 19:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:43:25] Production.INFO: 57.25 MB #Memory Used# [2024-12-19 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:44:05 [end_date_ymd] => 2024-12-19 19:44:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:44:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:44:17] Production.INFO: count ==3737 [2024-12-19 19:44:18] Production.ERROR: pbx CDR StartTime 2024-12-19 16:44:05 - End Time 2024-12-19 19:44:05 [2024-12-19 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057699', 'tblTempUsageDetail_20' ) start [2024-12-19 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057699', 'tblTempUsageDetail_20' ) end [2024-12-19 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057699', 'tblTempVendorCDR_20' ) start [2024-12-19 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057699', 'tblTempVendorCDR_20' ) end [2024-12-19 19:44:18] Production.INFO: ProcessCDR(1,14057699,1,1,2) [2024-12-19 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057699', 'tblTempUsageDetail_20' ) start [2024-12-19 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057699', 'tblTempUsageDetail_20' ) end [2024-12-19 19:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:44:23] Production.INFO: ==20258== Releasing lock... [2024-12-19 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:44:23] Production.INFO: 56 MB #Memory Used# [2024-12-19 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:45:04 [end_date_ymd] => 2024-12-19 19:45:04 [RateCDR] => 1 ) [2024-12-19 19: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` >= '2024-12-19 16:45:04' and `end` < '2024-12-19 19: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 ,'') [2024-12-19 19:45:17] Production.INFO: count ==3596 [2024-12-19 19:45:18] Production.ERROR: pbx CDR StartTime 2024-12-19 16:45:04 - End Time 2024-12-19 19:45:04 [2024-12-19 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057704', 'tblTempUsageDetail_20' ) start [2024-12-19 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057704', 'tblTempUsageDetail_20' ) end [2024-12-19 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057704', 'tblTempVendorCDR_20' ) start [2024-12-19 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057704', 'tblTempVendorCDR_20' ) end [2024-12-19 19:45:18] Production.INFO: ProcessCDR(1,14057704,1,1,2) [2024-12-19 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057704', 'tblTempUsageDetail_20' ) start [2024-12-19 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057704', 'tblTempUsageDetail_20' ) end [2024-12-19 19:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:45:21] Production.INFO: ==20339== Releasing lock... [2024-12-19 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:45:21] Production.INFO: 55.25 MB #Memory Used# [2024-12-19 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:46:05 [end_date_ymd] => 2024-12-19 19:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:46:17] Production.INFO: count ==3459 [2024-12-19 19:46:18] Production.ERROR: pbx CDR StartTime 2024-12-19 16:46:05 - End Time 2024-12-19 19:46:05 [2024-12-19 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057709', 'tblTempUsageDetail_20' ) start [2024-12-19 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057709', 'tblTempUsageDetail_20' ) end [2024-12-19 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057709', 'tblTempVendorCDR_20' ) start [2024-12-19 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057709', 'tblTempVendorCDR_20' ) end [2024-12-19 19:46:18] Production.INFO: ProcessCDR(1,14057709,1,1,2) [2024-12-19 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057709', 'tblTempUsageDetail_20' ) start [2024-12-19 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057709', 'tblTempUsageDetail_20' ) end [2024-12-19 19:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:46:22] Production.INFO: ==20420== Releasing lock... [2024-12-19 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:46:22] Production.INFO: 54.25 MB #Memory Used# [2024-12-19 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:47:04 [end_date_ymd] => 2024-12-19 19:47:04 [RateCDR] => 1 ) [2024-12-19 19: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` >= '2024-12-19 16:47:04' and `end` < '2024-12-19 19: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 ,'') [2024-12-19 19:47:16] Production.INFO: count ==3369 [2024-12-19 19:47:17] Production.ERROR: pbx CDR StartTime 2024-12-19 16:47:04 - End Time 2024-12-19 19:47:04 [2024-12-19 19:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057714', 'tblTempUsageDetail_20' ) start [2024-12-19 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057714', 'tblTempUsageDetail_20' ) end [2024-12-19 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057714', 'tblTempVendorCDR_20' ) start [2024-12-19 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057714', 'tblTempVendorCDR_20' ) end [2024-12-19 19:47:17] Production.INFO: ProcessCDR(1,14057714,1,1,2) [2024-12-19 19:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057714', 'tblTempUsageDetail_20' ) start [2024-12-19 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057714', 'tblTempUsageDetail_20' ) end [2024-12-19 19:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:47:22] Production.INFO: ==20504== Releasing lock... [2024-12-19 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:47:22] Production.INFO: 53.5 MB #Memory Used# [2024-12-19 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:48:05 [end_date_ymd] => 2024-12-19 19:48:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:48:17] Production.INFO: count ==3269 [2024-12-19 19:48:18] Production.ERROR: pbx CDR StartTime 2024-12-19 16:48:05 - End Time 2024-12-19 19:48:05 [2024-12-19 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057719', 'tblTempUsageDetail_20' ) start [2024-12-19 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057719', 'tblTempUsageDetail_20' ) end [2024-12-19 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057719', 'tblTempVendorCDR_20' ) start [2024-12-19 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057719', 'tblTempVendorCDR_20' ) end [2024-12-19 19:48:18] Production.INFO: ProcessCDR(1,14057719,1,1,2) [2024-12-19 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057719', 'tblTempUsageDetail_20' ) start [2024-12-19 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057719', 'tblTempUsageDetail_20' ) end [2024-12-19 19:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:48:23] Production.INFO: ==20583== Releasing lock... [2024-12-19 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:48:23] Production.INFO: 52.5 MB #Memory Used# [2024-12-19 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:49:04 [end_date_ymd] => 2024-12-19 19:49:04 [RateCDR] => 1 ) [2024-12-19 19:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:49:04' and `end` < '2024-12-19 19:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:49:16] Production.INFO: count ==3199 [2024-12-19 19:49:17] Production.ERROR: pbx CDR StartTime 2024-12-19 16:49:04 - End Time 2024-12-19 19:49:04 [2024-12-19 19:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057724', 'tblTempUsageDetail_20' ) start [2024-12-19 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057724', 'tblTempUsageDetail_20' ) end [2024-12-19 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057724', 'tblTempVendorCDR_20' ) start [2024-12-19 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057724', 'tblTempVendorCDR_20' ) end [2024-12-19 19:49:17] Production.INFO: ProcessCDR(1,14057724,1,1,2) [2024-12-19 19:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057724', 'tblTempUsageDetail_20' ) start [2024-12-19 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057724', 'tblTempUsageDetail_20' ) end [2024-12-19 19:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:49:22] Production.INFO: ==20670== Releasing lock... [2024-12-19 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:49:22] Production.INFO: 52 MB #Memory Used# [2024-12-19 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:50:05 [end_date_ymd] => 2024-12-19 19:50:05 [RateCDR] => 1 ) [2024-12-19 19: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` >= '2024-12-19 16:50:05' and `end` < '2024-12-19 19: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 ,'') [2024-12-19 19:50:17] Production.INFO: count ==3169 [2024-12-19 19:50:18] Production.ERROR: pbx CDR StartTime 2024-12-19 16:50:05 - End Time 2024-12-19 19:50:05 [2024-12-19 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057730', 'tblTempUsageDetail_20' ) start [2024-12-19 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057730', 'tblTempUsageDetail_20' ) end [2024-12-19 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057730', 'tblTempVendorCDR_20' ) start [2024-12-19 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057730', 'tblTempVendorCDR_20' ) end [2024-12-19 19:50:18] Production.INFO: ProcessCDR(1,14057730,1,1,2) [2024-12-19 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057730', 'tblTempUsageDetail_20' ) start [2024-12-19 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057730', 'tblTempUsageDetail_20' ) end [2024-12-19 19:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:50:23] Production.INFO: ==20751== Releasing lock... [2024-12-19 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:50:23] Production.INFO: 51.75 MB #Memory Used# [2024-12-19 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:51:05 [end_date_ymd] => 2024-12-19 19:51:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:51:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:51:17] Production.INFO: count ==2987 [2024-12-19 19:51:18] Production.ERROR: pbx CDR StartTime 2024-12-19 16:51:05 - End Time 2024-12-19 19:51:05 [2024-12-19 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057735', 'tblTempUsageDetail_20' ) start [2024-12-19 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057735', 'tblTempUsageDetail_20' ) end [2024-12-19 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057735', 'tblTempVendorCDR_20' ) start [2024-12-19 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057735', 'tblTempVendorCDR_20' ) end [2024-12-19 19:51:18] Production.INFO: ProcessCDR(1,14057735,1,1,2) [2024-12-19 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057735', 'tblTempUsageDetail_20' ) start [2024-12-19 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057735', 'tblTempUsageDetail_20' ) end [2024-12-19 19:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:51:21] Production.INFO: ==20830== Releasing lock... [2024-12-19 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:51:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-19 19:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:52:04 [end_date_ymd] => 2024-12-19 19:52:04 [RateCDR] => 1 ) [2024-12-19 19:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:52:04' and `end` < '2024-12-19 19:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:52:17] Production.INFO: count ==2864 [2024-12-19 19:52:17] Production.ERROR: pbx CDR StartTime 2024-12-19 16:52:04 - End Time 2024-12-19 19:52:04 [2024-12-19 19:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057740', 'tblTempUsageDetail_20' ) start [2024-12-19 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057740', 'tblTempUsageDetail_20' ) end [2024-12-19 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057740', 'tblTempVendorCDR_20' ) start [2024-12-19 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057740', 'tblTempVendorCDR_20' ) end [2024-12-19 19:52:18] Production.INFO: ProcessCDR(1,14057740,1,1,2) [2024-12-19 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057740', 'tblTempUsageDetail_20' ) start [2024-12-19 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057740', 'tblTempUsageDetail_20' ) end [2024-12-19 19:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:52:21] Production.INFO: ==20904== Releasing lock... [2024-12-19 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:52:21] Production.INFO: 49.25 MB #Memory Used# [2024-12-19 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:53:05 [end_date_ymd] => 2024-12-19 19:53:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:53:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:53:17] Production.INFO: count ==2835 [2024-12-19 19:53:18] Production.ERROR: pbx CDR StartTime 2024-12-19 16:53:05 - End Time 2024-12-19 19:53:05 [2024-12-19 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057745', 'tblTempUsageDetail_20' ) start [2024-12-19 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057745', 'tblTempUsageDetail_20' ) end [2024-12-19 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057745', 'tblTempVendorCDR_20' ) start [2024-12-19 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057745', 'tblTempVendorCDR_20' ) end [2024-12-19 19:53:18] Production.INFO: ProcessCDR(1,14057745,1,1,2) [2024-12-19 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057745', 'tblTempUsageDetail_20' ) start [2024-12-19 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057745', 'tblTempUsageDetail_20' ) end [2024-12-19 19:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:53:21] Production.INFO: ==20982== Releasing lock... [2024-12-19 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:53:21] Production.INFO: 49.25 MB #Memory Used# [2024-12-19 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:54:05 [end_date_ymd] => 2024-12-19 19:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:54:17] Production.INFO: count ==2808 [2024-12-19 19:54:18] Production.ERROR: pbx CDR StartTime 2024-12-19 16:54:05 - End Time 2024-12-19 19:54:05 [2024-12-19 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057750', 'tblTempUsageDetail_20' ) start [2024-12-19 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057750', 'tblTempUsageDetail_20' ) end [2024-12-19 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057750', 'tblTempVendorCDR_20' ) start [2024-12-19 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057750', 'tblTempVendorCDR_20' ) end [2024-12-19 19:54:18] Production.INFO: ProcessCDR(1,14057750,1,1,2) [2024-12-19 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057750', 'tblTempUsageDetail_20' ) start [2024-12-19 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057750', 'tblTempUsageDetail_20' ) end [2024-12-19 19:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:54:22] Production.INFO: ==21052== Releasing lock... [2024-12-19 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:54:22] Production.INFO: 49 MB #Memory Used# [2024-12-19 19:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:55:04 [end_date_ymd] => 2024-12-19 19:55:04 [RateCDR] => 1 ) [2024-12-19 19:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:55:04' and `end` < '2024-12-19 19:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:55:17] Production.INFO: count ==2724 [2024-12-19 19:55:17] Production.ERROR: pbx CDR StartTime 2024-12-19 16:55:04 - End Time 2024-12-19 19:55:04 [2024-12-19 19:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057755', 'tblTempUsageDetail_20' ) start [2024-12-19 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057755', 'tblTempUsageDetail_20' ) end [2024-12-19 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057755', 'tblTempVendorCDR_20' ) start [2024-12-19 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057755', 'tblTempVendorCDR_20' ) end [2024-12-19 19:55:17] Production.INFO: ProcessCDR(1,14057755,1,1,2) [2024-12-19 19:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057755', 'tblTempUsageDetail_20' ) start [2024-12-19 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057755', 'tblTempUsageDetail_20' ) end [2024-12-19 19:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:55:22] Production.INFO: ==21126== Releasing lock... [2024-12-19 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:55:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-19 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:56:05 [end_date_ymd] => 2024-12-19 19:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 16:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 19:56:17] Production.INFO: count ==2659 [2024-12-19 19:56:18] Production.ERROR: pbx CDR StartTime 2024-12-19 16:56:05 - End Time 2024-12-19 19:56:05 [2024-12-19 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057760', 'tblTempUsageDetail_20' ) start [2024-12-19 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057760', 'tblTempUsageDetail_20' ) end [2024-12-19 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057760', 'tblTempVendorCDR_20' ) start [2024-12-19 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057760', 'tblTempVendorCDR_20' ) end [2024-12-19 19:56:18] Production.INFO: ProcessCDR(1,14057760,1,1,2) [2024-12-19 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057760', 'tblTempUsageDetail_20' ) start [2024-12-19 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057760', 'tblTempUsageDetail_20' ) end [2024-12-19 19:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:56:21] Production.INFO: ==21202== Releasing lock... [2024-12-19 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:56:21] Production.INFO: 48 MB #Memory Used# [2024-12-19 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:57:04 [end_date_ymd] => 2024-12-19 19:57:04 [RateCDR] => 1 ) [2024-12-19 19:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:57:04' and `end` < '2024-12-19 19:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:57:17] Production.INFO: count ==2614 [2024-12-19 19:57:17] Production.ERROR: pbx CDR StartTime 2024-12-19 16:57:04 - End Time 2024-12-19 19:57:04 [2024-12-19 19:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057765', 'tblTempUsageDetail_20' ) start [2024-12-19 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057765', 'tblTempUsageDetail_20' ) end [2024-12-19 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057765', 'tblTempVendorCDR_20' ) start [2024-12-19 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057765', 'tblTempVendorCDR_20' ) end [2024-12-19 19:57:17] Production.INFO: ProcessCDR(1,14057765,1,1,2) [2024-12-19 19:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057765', 'tblTempUsageDetail_20' ) start [2024-12-19 19:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057765', 'tblTempUsageDetail_20' ) end [2024-12-19 19:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:57:20] Production.INFO: ==21313== Releasing lock... [2024-12-19 19:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:57:20] Production.INFO: 47.75 MB #Memory Used# [2024-12-19 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:58:04 [end_date_ymd] => 2024-12-19 19:58:04 [RateCDR] => 1 ) [2024-12-19 19: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` >= '2024-12-19 16:58:04' and `end` < '2024-12-19 19: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 ,'') [2024-12-19 19:58:17] Production.INFO: count ==2589 [2024-12-19 19:58:18] Production.ERROR: pbx CDR StartTime 2024-12-19 16:58:04 - End Time 2024-12-19 19:58:04 [2024-12-19 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057770', 'tblTempUsageDetail_20' ) start [2024-12-19 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057770', 'tblTempUsageDetail_20' ) end [2024-12-19 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057770', 'tblTempVendorCDR_20' ) start [2024-12-19 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057770', 'tblTempVendorCDR_20' ) end [2024-12-19 19:58:18] Production.INFO: ProcessCDR(1,14057770,1,1,2) [2024-12-19 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057770', 'tblTempUsageDetail_20' ) start [2024-12-19 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057770', 'tblTempUsageDetail_20' ) end [2024-12-19 19:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:58:22] Production.INFO: ==21389== Releasing lock... [2024-12-19 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:58:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-19 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 16:59:05 [end_date_ymd] => 2024-12-19 19:59:05 [RateCDR] => 1 ) [2024-12-19 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 16:59:05' and `end` < '2024-12-19 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 19:59:17] Production.INFO: count ==2564 [2024-12-19 19:59:17] Production.ERROR: pbx CDR StartTime 2024-12-19 16:59:05 - End Time 2024-12-19 19:59:05 [2024-12-19 19:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057775', 'tblTempUsageDetail_20' ) start [2024-12-19 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057775', 'tblTempUsageDetail_20' ) end [2024-12-19 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057775', 'tblTempVendorCDR_20' ) start [2024-12-19 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057775', 'tblTempVendorCDR_20' ) end [2024-12-19 19:59:18] Production.INFO: ProcessCDR(1,14057775,1,1,2) [2024-12-19 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 19:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057775', 'tblTempUsageDetail_20' ) start [2024-12-19 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057775', 'tblTempUsageDetail_20' ) end [2024-12-19 19:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 19:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 19:59:21] Production.INFO: ==21465== Releasing lock... [2024-12-19 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 19:59:21] Production.INFO: 47.25 MB #Memory Used# [2024-12-19 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:00:05 [end_date_ymd] => 2024-12-19 20:00:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:00:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:00:17] Production.INFO: count ==2486 [2024-12-19 20:00:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:00:05 - End Time 2024-12-19 20:00:05 [2024-12-19 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057781', 'tblTempUsageDetail_20' ) start [2024-12-19 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057781', 'tblTempUsageDetail_20' ) end [2024-12-19 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057781', 'tblTempVendorCDR_20' ) start [2024-12-19 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057781', 'tblTempVendorCDR_20' ) end [2024-12-19 20:00:18] Production.INFO: ProcessCDR(1,14057781,1,1,2) [2024-12-19 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057781', 'tblTempUsageDetail_20' ) start [2024-12-19 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057781', 'tblTempUsageDetail_20' ) end [2024-12-19 20:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:00:21] Production.INFO: ==21538== Releasing lock... [2024-12-19 20:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:00:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-19 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:01:05 [end_date_ymd] => 2024-12-19 20:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:01:17] Production.INFO: count ==2386 [2024-12-19 20:01:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:01:05 - End Time 2024-12-19 20:01:05 [2024-12-19 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057786', 'tblTempUsageDetail_20' ) start [2024-12-19 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057786', 'tblTempUsageDetail_20' ) end [2024-12-19 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057786', 'tblTempVendorCDR_20' ) start [2024-12-19 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057786', 'tblTempVendorCDR_20' ) end [2024-12-19 20:01:18] Production.INFO: ProcessCDR(1,14057786,1,1,2) [2024-12-19 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057786', 'tblTempUsageDetail_20' ) start [2024-12-19 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057786', 'tblTempUsageDetail_20' ) end [2024-12-19 20:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:01:21] Production.INFO: ==21670== Releasing lock... [2024-12-19 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:01:21] Production.INFO: 46 MB #Memory Used# [2024-12-19 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:02:04 [end_date_ymd] => 2024-12-19 20:02:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:02:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:02:16] Production.INFO: count ==2318 [2024-12-19 20:02:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:02:04 - End Time 2024-12-19 20:02:04 [2024-12-19 20:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057789', 'tblTempUsageDetail_20' ) start [2024-12-19 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057789', 'tblTempUsageDetail_20' ) end [2024-12-19 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057789', 'tblTempVendorCDR_20' ) start [2024-12-19 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057789', 'tblTempVendorCDR_20' ) end [2024-12-19 20:02:17] Production.INFO: ProcessCDR(1,14057789,1,1,2) [2024-12-19 20:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057789', 'tblTempUsageDetail_20' ) start [2024-12-19 20:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057789', 'tblTempUsageDetail_20' ) end [2024-12-19 20:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:02:20] Production.INFO: ==21739== Releasing lock... [2024-12-19 20:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:02:20] Production.INFO: 45.5 MB #Memory Used# [2024-12-19 20:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:03:04 [end_date_ymd] => 2024-12-19 20:03:04 [RateCDR] => 1 ) [2024-12-19 20:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:03:04' and `end` < '2024-12-19 20:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:03:17] Production.INFO: count ==2253 [2024-12-19 20:03:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:03:04 - End Time 2024-12-19 20:03:04 [2024-12-19 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057796', 'tblTempUsageDetail_20' ) start [2024-12-19 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057796', 'tblTempUsageDetail_20' ) end [2024-12-19 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057796', 'tblTempVendorCDR_20' ) start [2024-12-19 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057796', 'tblTempVendorCDR_20' ) end [2024-12-19 20:03:18] Production.INFO: ProcessCDR(1,14057796,1,1,2) [2024-12-19 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057796', 'tblTempUsageDetail_20' ) start [2024-12-19 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057796', 'tblTempUsageDetail_20' ) end [2024-12-19 20:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:03:21] Production.INFO: ==21811== Releasing lock... [2024-12-19 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:03:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-19 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:04:05 [end_date_ymd] => 2024-12-19 20:04:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:04:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:04:17] Production.INFO: count ==2187 [2024-12-19 20:04:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:04:05 - End Time 2024-12-19 20:04:05 [2024-12-19 20:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057801', 'tblTempUsageDetail_20' ) start [2024-12-19 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057801', 'tblTempUsageDetail_20' ) end [2024-12-19 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057801', 'tblTempVendorCDR_20' ) start [2024-12-19 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057801', 'tblTempVendorCDR_20' ) end [2024-12-19 20:04:17] Production.INFO: ProcessCDR(1,14057801,1,1,2) [2024-12-19 20:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057801', 'tblTempUsageDetail_20' ) start [2024-12-19 20:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057801', 'tblTempUsageDetail_20' ) end [2024-12-19 20:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:04:20] Production.INFO: ==21889== Releasing lock... [2024-12-19 20:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:04:20] Production.INFO: 44.5 MB #Memory Used# [2024-12-19 20:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:05:04 [end_date_ymd] => 2024-12-19 20:05:04 [RateCDR] => 1 ) [2024-12-19 20:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:05:04' and `end` < '2024-12-19 20:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:05:16] Production.INFO: count ==2138 [2024-12-19 20:05:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:05:04 - End Time 2024-12-19 20:05:04 [2024-12-19 20:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057806', 'tblTempUsageDetail_20' ) start [2024-12-19 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057806', 'tblTempUsageDetail_20' ) end [2024-12-19 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057806', 'tblTempVendorCDR_20' ) start [2024-12-19 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057806', 'tblTempVendorCDR_20' ) end [2024-12-19 20:05:17] Production.INFO: ProcessCDR(1,14057806,1,1,2) [2024-12-19 20:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057806', 'tblTempUsageDetail_20' ) start [2024-12-19 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057806', 'tblTempUsageDetail_20' ) end [2024-12-19 20:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:05:21] Production.INFO: ==21962== Releasing lock... [2024-12-19 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:05:21] Production.INFO: 44 MB #Memory Used# [2024-12-19 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:06:05 [end_date_ymd] => 2024-12-19 20:06:05 [RateCDR] => 1 ) [2024-12-19 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:06:05' and `end` < '2024-12-19 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:06:17] Production.INFO: count ==2113 [2024-12-19 20:06:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:06:05 - End Time 2024-12-19 20:06:05 [2024-12-19 20:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057811', 'tblTempUsageDetail_20' ) start [2024-12-19 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057811', 'tblTempUsageDetail_20' ) end [2024-12-19 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057811', 'tblTempVendorCDR_20' ) start [2024-12-19 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057811', 'tblTempVendorCDR_20' ) end [2024-12-19 20:06:17] Production.INFO: ProcessCDR(1,14057811,1,1,2) [2024-12-19 20:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057811', 'tblTempUsageDetail_20' ) start [2024-12-19 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057811', 'tblTempUsageDetail_20' ) end [2024-12-19 20:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:06:21] Production.INFO: ==22037== Releasing lock... [2024-12-19 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:06:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-19 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:07:04 [end_date_ymd] => 2024-12-19 20:07:04 [RateCDR] => 1 ) [2024-12-19 20: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` >= '2024-12-19 17:07:04' and `end` < '2024-12-19 20: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 ,'') [2024-12-19 20:07:17] Production.INFO: count ==2103 [2024-12-19 20:07:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:07:04 - End Time 2024-12-19 20:07:04 [2024-12-19 20:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057816', 'tblTempUsageDetail_20' ) start [2024-12-19 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057816', 'tblTempUsageDetail_20' ) end [2024-12-19 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057816', 'tblTempVendorCDR_20' ) start [2024-12-19 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057816', 'tblTempVendorCDR_20' ) end [2024-12-19 20:07:17] Production.INFO: ProcessCDR(1,14057816,1,1,2) [2024-12-19 20:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057816', 'tblTempUsageDetail_20' ) start [2024-12-19 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057816', 'tblTempUsageDetail_20' ) end [2024-12-19 20:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:07:20] Production.INFO: ==22108== Releasing lock... [2024-12-19 20:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:07:20] Production.INFO: 44 MB #Memory Used# [2024-12-19 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:08:05 [end_date_ymd] => 2024-12-19 20:08:05 [RateCDR] => 1 ) [2024-12-19 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:08:05' and `end` < '2024-12-19 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:08:17] Production.INFO: count ==2103 [2024-12-19 20:08:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:08:05 - End Time 2024-12-19 20:08:05 [2024-12-19 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057821', 'tblTempUsageDetail_20' ) start [2024-12-19 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057821', 'tblTempUsageDetail_20' ) end [2024-12-19 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057821', 'tblTempVendorCDR_20' ) start [2024-12-19 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057821', 'tblTempVendorCDR_20' ) end [2024-12-19 20:08:18] Production.INFO: ProcessCDR(1,14057821,1,1,2) [2024-12-19 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057821', 'tblTempUsageDetail_20' ) start [2024-12-19 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057821', 'tblTempUsageDetail_20' ) end [2024-12-19 20:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:08:22] Production.INFO: ==22182== Releasing lock... [2024-12-19 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:08:22] Production.INFO: 44 MB #Memory Used# [2024-12-19 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:09:05 [end_date_ymd] => 2024-12-19 20:09:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:09:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:09:19] Production.INFO: count ==2081 [2024-12-19 20:09:19] Production.ERROR: pbx CDR StartTime 2024-12-19 17:09:05 - End Time 2024-12-19 20:09:05 [2024-12-19 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057826', 'tblTempUsageDetail_20' ) start [2024-12-19 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057826', 'tblTempUsageDetail_20' ) end [2024-12-19 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057826', 'tblTempVendorCDR_20' ) start [2024-12-19 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057826', 'tblTempVendorCDR_20' ) end [2024-12-19 20:09:19] Production.INFO: ProcessCDR(1,14057826,1,1,2) [2024-12-19 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057826', 'tblTempUsageDetail_20' ) start [2024-12-19 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057826', 'tblTempUsageDetail_20' ) end [2024-12-19 20:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:09:22] Production.INFO: ==22262== Releasing lock... [2024-12-19 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:09:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-19 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:10:05 [end_date_ymd] => 2024-12-19 20:10:05 [RateCDR] => 1 ) [2024-12-19 20: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` >= '2024-12-19 17:10:05' and `end` < '2024-12-19 20: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 ,'') [2024-12-19 20:10:17] Production.INFO: count ==2077 [2024-12-19 20:10:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:10:05 - End Time 2024-12-19 20:10:05 [2024-12-19 20:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057831', 'tblTempUsageDetail_20' ) start [2024-12-19 20:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057831', 'tblTempUsageDetail_20' ) end [2024-12-19 20:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057831', 'tblTempVendorCDR_20' ) start [2024-12-19 20:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057831', 'tblTempVendorCDR_20' ) end [2024-12-19 20:10:17] Production.INFO: ProcessCDR(1,14057831,1,1,2) [2024-12-19 20:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057831', 'tblTempUsageDetail_20' ) start [2024-12-19 20:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057831', 'tblTempUsageDetail_20' ) end [2024-12-19 20:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:10:20] Production.INFO: ==22349== Releasing lock... [2024-12-19 20:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:10:20] Production.INFO: 43.75 MB #Memory Used# [2024-12-19 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:11:05 [end_date_ymd] => 2024-12-19 20:11:05 [RateCDR] => 1 ) [2024-12-19 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:11:05' and `end` < '2024-12-19 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:11:18] Production.INFO: count ==2023 [2024-12-19 20:11:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:11:05 - End Time 2024-12-19 20:11:05 [2024-12-19 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057837', 'tblTempUsageDetail_20' ) start [2024-12-19 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057837', 'tblTempUsageDetail_20' ) end [2024-12-19 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057837', 'tblTempVendorCDR_20' ) start [2024-12-19 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057837', 'tblTempVendorCDR_20' ) end [2024-12-19 20:11:18] Production.INFO: ProcessCDR(1,14057837,1,1,2) [2024-12-19 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057837', 'tblTempUsageDetail_20' ) start [2024-12-19 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057837', 'tblTempUsageDetail_20' ) end [2024-12-19 20:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:11:21] Production.INFO: ==22432== Releasing lock... [2024-12-19 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:11:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-19 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:12:05 [end_date_ymd] => 2024-12-19 20:12:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:12:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:12:17] Production.INFO: count ==2019 [2024-12-19 20:12:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:12:05 - End Time 2024-12-19 20:12:05 [2024-12-19 20:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057842', 'tblTempUsageDetail_20' ) start [2024-12-19 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057842', 'tblTempUsageDetail_20' ) end [2024-12-19 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057842', 'tblTempVendorCDR_20' ) start [2024-12-19 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057842', 'tblTempVendorCDR_20' ) end [2024-12-19 20:12:17] Production.INFO: ProcessCDR(1,14057842,1,1,2) [2024-12-19 20:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057842', 'tblTempUsageDetail_20' ) start [2024-12-19 20:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057842', 'tblTempUsageDetail_20' ) end [2024-12-19 20:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:12:20] Production.INFO: ==22517== Releasing lock... [2024-12-19 20:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:12:20] Production.INFO: 43.75 MB #Memory Used# [2024-12-19 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:13:04 [end_date_ymd] => 2024-12-19 20:13:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:13:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:13:17] Production.INFO: count ==2023 [2024-12-19 20:13:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:13:04 - End Time 2024-12-19 20:13:04 [2024-12-19 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057847', 'tblTempUsageDetail_20' ) start [2024-12-19 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057847', 'tblTempUsageDetail_20' ) end [2024-12-19 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057847', 'tblTempVendorCDR_20' ) start [2024-12-19 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057847', 'tblTempVendorCDR_20' ) end [2024-12-19 20:13:17] Production.INFO: ProcessCDR(1,14057847,1,1,2) [2024-12-19 20:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057847', 'tblTempUsageDetail_20' ) start [2024-12-19 20:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057847', 'tblTempUsageDetail_20' ) end [2024-12-19 20:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:13:20] Production.INFO: ==22643== Releasing lock... [2024-12-19 20:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:13:20] Production.INFO: 43.75 MB #Memory Used# [2024-12-19 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:14:05 [end_date_ymd] => 2024-12-19 20:14:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:14:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:14:17] Production.INFO: count ==2012 [2024-12-19 20:14:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:14:05 - End Time 2024-12-19 20:14:05 [2024-12-19 20:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057852', 'tblTempUsageDetail_20' ) start [2024-12-19 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057852', 'tblTempUsageDetail_20' ) end [2024-12-19 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057852', 'tblTempVendorCDR_20' ) start [2024-12-19 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057852', 'tblTempVendorCDR_20' ) end [2024-12-19 20:14:17] Production.INFO: ProcessCDR(1,14057852,1,1,2) [2024-12-19 20:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057852', 'tblTempUsageDetail_20' ) start [2024-12-19 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057852', 'tblTempUsageDetail_20' ) end [2024-12-19 20:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:14:22] Production.INFO: ==22725== Releasing lock... [2024-12-19 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:14:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-19 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:15:04 [end_date_ymd] => 2024-12-19 20:15:04 [RateCDR] => 1 ) [2024-12-19 20:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:15:04' and `end` < '2024-12-19 20:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:15:16] Production.INFO: count ==2012 [2024-12-19 20:15:16] Production.ERROR: pbx CDR StartTime 2024-12-19 17:15:04 - End Time 2024-12-19 20:15:04 [2024-12-19 20:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057857', 'tblTempUsageDetail_20' ) start [2024-12-19 20:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057857', 'tblTempUsageDetail_20' ) end [2024-12-19 20:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057857', 'tblTempVendorCDR_20' ) start [2024-12-19 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057857', 'tblTempVendorCDR_20' ) end [2024-12-19 20:15:17] Production.INFO: ProcessCDR(1,14057857,1,1,2) [2024-12-19 20:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057857', 'tblTempUsageDetail_20' ) start [2024-12-19 20:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057857', 'tblTempUsageDetail_20' ) end [2024-12-19 20:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:15:19] Production.INFO: ==22807== Releasing lock... [2024-12-19 20:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:15:19] Production.INFO: 43.25 MB #Memory Used# [2024-12-19 20:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:16:04 [end_date_ymd] => 2024-12-19 20:16:04 [RateCDR] => 1 ) [2024-12-19 20: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` >= '2024-12-19 17:16:04' and `end` < '2024-12-19 20: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 ,'') [2024-12-19 20:16:16] Production.INFO: count ==2002 [2024-12-19 20:16:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:16:04 - End Time 2024-12-19 20:16:04 [2024-12-19 20:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057862', 'tblTempUsageDetail_20' ) start [2024-12-19 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057862', 'tblTempUsageDetail_20' ) end [2024-12-19 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057862', 'tblTempVendorCDR_20' ) start [2024-12-19 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057862', 'tblTempVendorCDR_20' ) end [2024-12-19 20:16:17] Production.INFO: ProcessCDR(1,14057862,1,1,2) [2024-12-19 20:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057862', 'tblTempUsageDetail_20' ) start [2024-12-19 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057862', 'tblTempUsageDetail_20' ) end [2024-12-19 20:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:16:21] Production.INFO: ==22892== Releasing lock... [2024-12-19 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:16:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-19 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:17:05 [end_date_ymd] => 2024-12-19 20:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:17:17] Production.INFO: count ==1986 [2024-12-19 20:17:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:17:05 - End Time 2024-12-19 20:17:05 [2024-12-19 20:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057867', 'tblTempUsageDetail_20' ) start [2024-12-19 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057867', 'tblTempUsageDetail_20' ) end [2024-12-19 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057867', 'tblTempVendorCDR_20' ) start [2024-12-19 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057867', 'tblTempVendorCDR_20' ) end [2024-12-19 20:17:17] Production.INFO: ProcessCDR(1,14057867,1,1,2) [2024-12-19 20:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057867', 'tblTempUsageDetail_20' ) start [2024-12-19 20:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057867', 'tblTempUsageDetail_20' ) end [2024-12-19 20:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:17:21] Production.INFO: ==22984== Releasing lock... [2024-12-19 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:17:21] Production.INFO: 43 MB #Memory Used# [2024-12-19 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:18:05 [end_date_ymd] => 2024-12-19 20:18:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:18:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:18:17] Production.INFO: count ==1979 [2024-12-19 20:18:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:18:05 - End Time 2024-12-19 20:18:05 [2024-12-19 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057872', 'tblTempUsageDetail_20' ) start [2024-12-19 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057872', 'tblTempUsageDetail_20' ) end [2024-12-19 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057872', 'tblTempVendorCDR_20' ) start [2024-12-19 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057872', 'tblTempVendorCDR_20' ) end [2024-12-19 20:18:18] Production.INFO: ProcessCDR(1,14057872,1,1,2) [2024-12-19 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057872', 'tblTempUsageDetail_20' ) start [2024-12-19 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057872', 'tblTempUsageDetail_20' ) end [2024-12-19 20:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:18:22] Production.INFO: ==23069== Releasing lock... [2024-12-19 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:18:22] Production.INFO: 43 MB #Memory Used# [2024-12-19 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:19:05 [end_date_ymd] => 2024-12-19 20:19:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:19:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:19:17] Production.INFO: count ==1981 [2024-12-19 20:19:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:19:05 - End Time 2024-12-19 20:19:05 [2024-12-19 20:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057877', 'tblTempUsageDetail_20' ) start [2024-12-19 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057877', 'tblTempUsageDetail_20' ) end [2024-12-19 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057877', 'tblTempVendorCDR_20' ) start [2024-12-19 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057877', 'tblTempVendorCDR_20' ) end [2024-12-19 20:19:17] Production.INFO: ProcessCDR(1,14057877,1,1,2) [2024-12-19 20:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057877', 'tblTempUsageDetail_20' ) start [2024-12-19 20:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057877', 'tblTempUsageDetail_20' ) end [2024-12-19 20:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:19:20] Production.INFO: ==23156== Releasing lock... [2024-12-19 20:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:19:20] Production.INFO: 43.25 MB #Memory Used# [2024-12-19 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:20:05 [end_date_ymd] => 2024-12-19 20:20:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:20:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:20:17] Production.INFO: count ==1977 [2024-12-19 20:20:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:20:05 - End Time 2024-12-19 20:20:05 [2024-12-19 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057883', 'tblTempUsageDetail_20' ) start [2024-12-19 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057883', 'tblTempUsageDetail_20' ) end [2024-12-19 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057883', 'tblTempVendorCDR_20' ) start [2024-12-19 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057883', 'tblTempVendorCDR_20' ) end [2024-12-19 20:20:18] Production.INFO: ProcessCDR(1,14057883,1,1,2) [2024-12-19 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057883', 'tblTempUsageDetail_20' ) start [2024-12-19 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057883', 'tblTempUsageDetail_20' ) end [2024-12-19 20:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:20:21] Production.INFO: ==23245== Releasing lock... [2024-12-19 20:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:20:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-19 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:21:04 [end_date_ymd] => 2024-12-19 20:21:04 [RateCDR] => 1 ) [2024-12-19 20: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` >= '2024-12-19 17:21:04' and `end` < '2024-12-19 20: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 ,'') [2024-12-19 20:21:16] Production.INFO: count ==1920 [2024-12-19 20:21:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:21:04 - End Time 2024-12-19 20:21:04 [2024-12-19 20:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057888', 'tblTempUsageDetail_20' ) start [2024-12-19 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057888', 'tblTempUsageDetail_20' ) end [2024-12-19 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057888', 'tblTempVendorCDR_20' ) start [2024-12-19 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057888', 'tblTempVendorCDR_20' ) end [2024-12-19 20:21:17] Production.INFO: ProcessCDR(1,14057888,1,1,2) [2024-12-19 20:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057888', 'tblTempUsageDetail_20' ) start [2024-12-19 20:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057888', 'tblTempUsageDetail_20' ) end [2024-12-19 20:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:21:20] Production.INFO: ==23331== Releasing lock... [2024-12-19 20:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:21:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-19 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:22:05 [end_date_ymd] => 2024-12-19 20:22:05 [RateCDR] => 1 ) [2024-12-19 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:22:05' and `end` < '2024-12-19 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:22:17] Production.INFO: count ==1917 [2024-12-19 20:22:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:22:05 - End Time 2024-12-19 20:22:05 [2024-12-19 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057893', 'tblTempUsageDetail_20' ) start [2024-12-19 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057893', 'tblTempUsageDetail_20' ) end [2024-12-19 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057893', 'tblTempVendorCDR_20' ) start [2024-12-19 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057893', 'tblTempVendorCDR_20' ) end [2024-12-19 20:22:18] Production.INFO: ProcessCDR(1,14057893,1,1,2) [2024-12-19 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057893', 'tblTempUsageDetail_20' ) start [2024-12-19 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057893', 'tblTempUsageDetail_20' ) end [2024-12-19 20:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:22:21] Production.INFO: ==23418== Releasing lock... [2024-12-19 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:22:21] Production.INFO: 43 MB #Memory Used# [2024-12-19 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:23:05 [end_date_ymd] => 2024-12-19 20:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:23:18] Production.INFO: count ==1914 [2024-12-19 20:23:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:23:05 - End Time 2024-12-19 20:23:05 [2024-12-19 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057898', 'tblTempUsageDetail_20' ) start [2024-12-19 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057898', 'tblTempUsageDetail_20' ) end [2024-12-19 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057898', 'tblTempVendorCDR_20' ) start [2024-12-19 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057898', 'tblTempVendorCDR_20' ) end [2024-12-19 20:23:18] Production.INFO: ProcessCDR(1,14057898,1,1,2) [2024-12-19 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057898', 'tblTempUsageDetail_20' ) start [2024-12-19 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057898', 'tblTempUsageDetail_20' ) end [2024-12-19 20:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:23:21] Production.INFO: ==23517== Releasing lock... [2024-12-19 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:23:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-19 20:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:24:04 [end_date_ymd] => 2024-12-19 20:24:04 [RateCDR] => 1 ) [2024-12-19 20: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` >= '2024-12-19 17:24:04' and `end` < '2024-12-19 20: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 ,'') [2024-12-19 20:24:16] Production.INFO: count ==1899 [2024-12-19 20:24:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:24:04 - End Time 2024-12-19 20:24:04 [2024-12-19 20:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057903', 'tblTempUsageDetail_20' ) start [2024-12-19 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057903', 'tblTempUsageDetail_20' ) end [2024-12-19 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057903', 'tblTempVendorCDR_20' ) start [2024-12-19 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057903', 'tblTempVendorCDR_20' ) end [2024-12-19 20:24:17] Production.INFO: ProcessCDR(1,14057903,1,1,2) [2024-12-19 20:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057903', 'tblTempUsageDetail_20' ) start [2024-12-19 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057903', 'tblTempUsageDetail_20' ) end [2024-12-19 20:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:24:21] Production.INFO: ==23600== Releasing lock... [2024-12-19 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:24:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-19 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:25:05 [end_date_ymd] => 2024-12-19 20:25:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:25:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:25:17] Production.INFO: count ==1876 [2024-12-19 20:25:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:25:05 - End Time 2024-12-19 20:25:05 [2024-12-19 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057908', 'tblTempUsageDetail_20' ) start [2024-12-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057908', 'tblTempUsageDetail_20' ) end [2024-12-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057908', 'tblTempVendorCDR_20' ) start [2024-12-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057908', 'tblTempVendorCDR_20' ) end [2024-12-19 20:25:18] Production.INFO: ProcessCDR(1,14057908,1,1,2) [2024-12-19 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057908', 'tblTempUsageDetail_20' ) start [2024-12-19 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057908', 'tblTempUsageDetail_20' ) end [2024-12-19 20:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:25:21] Production.INFO: ==23687== Releasing lock... [2024-12-19 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:25:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-19 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:26:04 [end_date_ymd] => 2024-12-19 20:26:04 [RateCDR] => 1 ) [2024-12-19 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:26:04' and `end` < '2024-12-19 20:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:26:17] Production.INFO: count ==1873 [2024-12-19 20:26:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:26:04 - End Time 2024-12-19 20:26:04 [2024-12-19 20:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057913', 'tblTempUsageDetail_20' ) start [2024-12-19 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057913', 'tblTempUsageDetail_20' ) end [2024-12-19 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057913', 'tblTempVendorCDR_20' ) start [2024-12-19 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057913', 'tblTempVendorCDR_20' ) end [2024-12-19 20:26:18] Production.INFO: ProcessCDR(1,14057913,1,1,2) [2024-12-19 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057913', 'tblTempUsageDetail_20' ) start [2024-12-19 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057913', 'tblTempUsageDetail_20' ) end [2024-12-19 20:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:26:21] Production.INFO: ==23768== Releasing lock... [2024-12-19 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:26:21] Production.INFO: 42 MB #Memory Used# [2024-12-19 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:27:05 [end_date_ymd] => 2024-12-19 20:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:27:17] Production.INFO: count ==1858 [2024-12-19 20:27:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:27:05 - End Time 2024-12-19 20:27:05 [2024-12-19 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057918', 'tblTempUsageDetail_20' ) start [2024-12-19 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057918', 'tblTempUsageDetail_20' ) end [2024-12-19 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057918', 'tblTempVendorCDR_20' ) start [2024-12-19 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057918', 'tblTempVendorCDR_20' ) end [2024-12-19 20:27:18] Production.INFO: ProcessCDR(1,14057918,1,1,2) [2024-12-19 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057918', 'tblTempUsageDetail_20' ) start [2024-12-19 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057918', 'tblTempUsageDetail_20' ) end [2024-12-19 20:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:27:21] Production.INFO: ==23854== Releasing lock... [2024-12-19 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:27:21] Production.INFO: 42 MB #Memory Used# [2024-12-19 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:28:04 [end_date_ymd] => 2024-12-19 20:28:04 [RateCDR] => 1 ) [2024-12-19 20:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:28:04' and `end` < '2024-12-19 20:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:28:16] Production.INFO: count ==1856 [2024-12-19 20:28:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:28:04 - End Time 2024-12-19 20:28:04 [2024-12-19 20:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057923', 'tblTempUsageDetail_20' ) start [2024-12-19 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057923', 'tblTempUsageDetail_20' ) end [2024-12-19 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057923', 'tblTempVendorCDR_20' ) start [2024-12-19 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057923', 'tblTempVendorCDR_20' ) end [2024-12-19 20:28:17] Production.INFO: ProcessCDR(1,14057923,1,1,2) [2024-12-19 20:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057923', 'tblTempUsageDetail_20' ) start [2024-12-19 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057923', 'tblTempUsageDetail_20' ) end [2024-12-19 20:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:28:20] Production.INFO: ==23936== Releasing lock... [2024-12-19 20:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:28:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-19 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:29:05 [end_date_ymd] => 2024-12-19 20:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:29:17] Production.INFO: count ==1853 [2024-12-19 20:29:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:29:05 - End Time 2024-12-19 20:29:05 [2024-12-19 20:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057928', 'tblTempUsageDetail_20' ) start [2024-12-19 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057928', 'tblTempUsageDetail_20' ) end [2024-12-19 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057928', 'tblTempVendorCDR_20' ) start [2024-12-19 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057928', 'tblTempVendorCDR_20' ) end [2024-12-19 20:29:17] Production.INFO: ProcessCDR(1,14057928,1,1,2) [2024-12-19 20:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057928', 'tblTempUsageDetail_20' ) start [2024-12-19 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057928', 'tblTempUsageDetail_20' ) end [2024-12-19 20:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:29:22] Production.INFO: ==24058== Releasing lock... [2024-12-19 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:29:22] Production.INFO: 42 MB #Memory Used# [2024-12-19 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:30:06 [end_date_ymd] => 2024-12-19 20:30:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:30:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:30:18] Production.INFO: count ==1841 [2024-12-19 20:30:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:30:06 - End Time 2024-12-19 20:30:06 [2024-12-19 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057934', 'tblTempUsageDetail_20' ) start [2024-12-19 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057934', 'tblTempUsageDetail_20' ) end [2024-12-19 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057934', 'tblTempVendorCDR_20' ) start [2024-12-19 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057934', 'tblTempVendorCDR_20' ) end [2024-12-19 20:30:18] Production.INFO: ProcessCDR(1,14057934,1,1,2) [2024-12-19 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057934', 'tblTempUsageDetail_20' ) start [2024-12-19 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057934', 'tblTempUsageDetail_20' ) end [2024-12-19 20:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:30:23] Production.INFO: ==24145== Releasing lock... [2024-12-19 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:30:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-19 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:31:05 [end_date_ymd] => 2024-12-19 20:31:05 [RateCDR] => 1 ) [2024-12-19 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:31:05' and `end` < '2024-12-19 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:31:17] Production.INFO: count ==1792 [2024-12-19 20:31:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:31:05 - End Time 2024-12-19 20:31:05 [2024-12-19 20:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057939', 'tblTempUsageDetail_20' ) start [2024-12-19 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057939', 'tblTempUsageDetail_20' ) end [2024-12-19 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057939', 'tblTempVendorCDR_20' ) start [2024-12-19 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057939', 'tblTempVendorCDR_20' ) end [2024-12-19 20:31:17] Production.INFO: ProcessCDR(1,14057939,1,1,2) [2024-12-19 20:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057939', 'tblTempUsageDetail_20' ) start [2024-12-19 20:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057939', 'tblTempUsageDetail_20' ) end [2024-12-19 20:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:31:20] Production.INFO: ==24230== Releasing lock... [2024-12-19 20:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:31:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-19 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:32:05 [end_date_ymd] => 2024-12-19 20:32:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:32:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:32:18] Production.INFO: count ==1784 [2024-12-19 20:32:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:32:05 - End Time 2024-12-19 20:32:05 [2024-12-19 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057944', 'tblTempUsageDetail_20' ) start [2024-12-19 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057944', 'tblTempUsageDetail_20' ) end [2024-12-19 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057944', 'tblTempVendorCDR_20' ) start [2024-12-19 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057944', 'tblTempVendorCDR_20' ) end [2024-12-19 20:32:18] Production.INFO: ProcessCDR(1,14057944,1,1,2) [2024-12-19 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057944', 'tblTempUsageDetail_20' ) start [2024-12-19 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057944', 'tblTempUsageDetail_20' ) end [2024-12-19 20:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:32:21] Production.INFO: ==24310== Releasing lock... [2024-12-19 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:32:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-19 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:33:05 [end_date_ymd] => 2024-12-19 20:33:05 [RateCDR] => 1 ) [2024-12-19 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:33:05' and `end` < '2024-12-19 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:33:17] Production.INFO: count ==1780 [2024-12-19 20:33:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:33:05 - End Time 2024-12-19 20:33:05 [2024-12-19 20:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057949', 'tblTempUsageDetail_20' ) start [2024-12-19 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057949', 'tblTempUsageDetail_20' ) end [2024-12-19 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057949', 'tblTempVendorCDR_20' ) start [2024-12-19 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057949', 'tblTempVendorCDR_20' ) end [2024-12-19 20:33:17] Production.INFO: ProcessCDR(1,14057949,1,1,2) [2024-12-19 20:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057949', 'tblTempUsageDetail_20' ) start [2024-12-19 20:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057949', 'tblTempUsageDetail_20' ) end [2024-12-19 20:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:33:20] Production.INFO: ==24392== Releasing lock... [2024-12-19 20:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:33:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-19 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:34:05 [end_date_ymd] => 2024-12-19 20:34:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:34:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:34:17] Production.INFO: count ==1773 [2024-12-19 20:34:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:34:05 - End Time 2024-12-19 20:34:05 [2024-12-19 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057954', 'tblTempUsageDetail_20' ) start [2024-12-19 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057954', 'tblTempUsageDetail_20' ) end [2024-12-19 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057954', 'tblTempVendorCDR_20' ) start [2024-12-19 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057954', 'tblTempVendorCDR_20' ) end [2024-12-19 20:34:18] Production.INFO: ProcessCDR(1,14057954,1,1,2) [2024-12-19 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057954', 'tblTempUsageDetail_20' ) start [2024-12-19 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057954', 'tblTempUsageDetail_20' ) end [2024-12-19 20:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:34:21] Production.INFO: ==24478== Releasing lock... [2024-12-19 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:34:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-19 20:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:35:04 [end_date_ymd] => 2024-12-19 20:35:04 [RateCDR] => 1 ) [2024-12-19 20:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:35:04' and `end` < '2024-12-19 20:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:35:17] Production.INFO: count ==1768 [2024-12-19 20:35:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:35:04 - End Time 2024-12-19 20:35:04 [2024-12-19 20:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057959', 'tblTempUsageDetail_20' ) start [2024-12-19 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057959', 'tblTempUsageDetail_20' ) end [2024-12-19 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057959', 'tblTempVendorCDR_20' ) start [2024-12-19 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057959', 'tblTempVendorCDR_20' ) end [2024-12-19 20:35:17] Production.INFO: ProcessCDR(1,14057959,1,1,2) [2024-12-19 20:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057959', 'tblTempUsageDetail_20' ) start [2024-12-19 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057959', 'tblTempUsageDetail_20' ) end [2024-12-19 20:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:35:21] Production.INFO: ==24564== Releasing lock... [2024-12-19 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:35:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-19 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:36:05 [end_date_ymd] => 2024-12-19 20:36:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:36:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:36:17] Production.INFO: count ==1762 [2024-12-19 20:36:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:36:05 - End Time 2024-12-19 20:36:05 [2024-12-19 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057964', 'tblTempUsageDetail_20' ) start [2024-12-19 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057964', 'tblTempUsageDetail_20' ) end [2024-12-19 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057964', 'tblTempVendorCDR_20' ) start [2024-12-19 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057964', 'tblTempVendorCDR_20' ) end [2024-12-19 20:36:18] Production.INFO: ProcessCDR(1,14057964,1,1,2) [2024-12-19 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057964', 'tblTempUsageDetail_20' ) start [2024-12-19 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057964', 'tblTempUsageDetail_20' ) end [2024-12-19 20:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:36:21] Production.INFO: ==24655== Releasing lock... [2024-12-19 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:36:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-19 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:37:04 [end_date_ymd] => 2024-12-19 20:37:04 [RateCDR] => 1 ) [2024-12-19 20: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` >= '2024-12-19 17:37:04' and `end` < '2024-12-19 20: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 ,'') [2024-12-19 20:37:16] Production.INFO: count ==1758 [2024-12-19 20:37:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:37:04 - End Time 2024-12-19 20:37:04 [2024-12-19 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057969', 'tblTempUsageDetail_20' ) start [2024-12-19 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057969', 'tblTempUsageDetail_20' ) end [2024-12-19 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057969', 'tblTempVendorCDR_20' ) start [2024-12-19 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057969', 'tblTempVendorCDR_20' ) end [2024-12-19 20:37:17] Production.INFO: ProcessCDR(1,14057969,1,1,2) [2024-12-19 20:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057969', 'tblTempUsageDetail_20' ) start [2024-12-19 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057969', 'tblTempUsageDetail_20' ) end [2024-12-19 20:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:37:21] Production.INFO: ==24738== Releasing lock... [2024-12-19 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:37:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-19 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:38:05 [end_date_ymd] => 2024-12-19 20:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:38:17] Production.INFO: count ==1759 [2024-12-19 20:38:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:38:05 - End Time 2024-12-19 20:38:05 [2024-12-19 20:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057974', 'tblTempUsageDetail_20' ) start [2024-12-19 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057974', 'tblTempUsageDetail_20' ) end [2024-12-19 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057974', 'tblTempVendorCDR_20' ) start [2024-12-19 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057974', 'tblTempVendorCDR_20' ) end [2024-12-19 20:38:17] Production.INFO: ProcessCDR(1,14057974,1,1,2) [2024-12-19 20:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057974', 'tblTempUsageDetail_20' ) start [2024-12-19 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057974', 'tblTempUsageDetail_20' ) end [2024-12-19 20:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:38:21] Production.INFO: ==24821== Releasing lock... [2024-12-19 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:38:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-19 20:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:39:04 [end_date_ymd] => 2024-12-19 20:39:04 [RateCDR] => 1 ) [2024-12-19 20: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` >= '2024-12-19 17:39:04' and `end` < '2024-12-19 20: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 ,'') [2024-12-19 20:39:16] Production.INFO: count ==1741 [2024-12-19 20:39:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:39:04 - End Time 2024-12-19 20:39:04 [2024-12-19 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057979', 'tblTempUsageDetail_20' ) start [2024-12-19 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057979', 'tblTempUsageDetail_20' ) end [2024-12-19 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057979', 'tblTempVendorCDR_20' ) start [2024-12-19 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057979', 'tblTempVendorCDR_20' ) end [2024-12-19 20:39:17] Production.INFO: ProcessCDR(1,14057979,1,1,2) [2024-12-19 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057979', 'tblTempUsageDetail_20' ) start [2024-12-19 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057979', 'tblTempUsageDetail_20' ) end [2024-12-19 20:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:39:20] Production.INFO: ==24903== Releasing lock... [2024-12-19 20:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:39:20] Production.INFO: 41 MB #Memory Used# [2024-12-19 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:40:06 [end_date_ymd] => 2024-12-19 20:40:06 [RateCDR] => 1 ) [2024-12-19 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:40:06' and `end` < '2024-12-19 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:40:18] Production.INFO: count ==1733 [2024-12-19 20:40:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:40:06 - End Time 2024-12-19 20:40:06 [2024-12-19 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057985', 'tblTempUsageDetail_20' ) start [2024-12-19 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057985', 'tblTempUsageDetail_20' ) end [2024-12-19 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057985', 'tblTempVendorCDR_20' ) start [2024-12-19 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057985', 'tblTempVendorCDR_20' ) end [2024-12-19 20:40:18] Production.INFO: ProcessCDR(1,14057985,1,1,2) [2024-12-19 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057985', 'tblTempUsageDetail_20' ) start [2024-12-19 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057985', 'tblTempUsageDetail_20' ) end [2024-12-19 20:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:40:21] Production.INFO: ==24989== Releasing lock... [2024-12-19 20:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:40:21] Production.INFO: 41 MB #Memory Used# [2024-12-19 20:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:41:04 [end_date_ymd] => 2024-12-19 20:41:04 [RateCDR] => 1 ) [2024-12-19 20:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:41:04' and `end` < '2024-12-19 20:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:41:16] Production.INFO: count ==1738 [2024-12-19 20:41:16] Production.ERROR: pbx CDR StartTime 2024-12-19 17:41:04 - End Time 2024-12-19 20:41:04 [2024-12-19 20:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057990', 'tblTempUsageDetail_20' ) start [2024-12-19 20:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057990', 'tblTempUsageDetail_20' ) end [2024-12-19 20:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057990', 'tblTempVendorCDR_20' ) start [2024-12-19 20:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057990', 'tblTempVendorCDR_20' ) end [2024-12-19 20:41:16] Production.INFO: ProcessCDR(1,14057990,1,1,2) [2024-12-19 20:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057990', 'tblTempUsageDetail_20' ) start [2024-12-19 20:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057990', 'tblTempUsageDetail_20' ) end [2024-12-19 20:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:41:20] Production.INFO: ==25073== Releasing lock... [2024-12-19 20:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:41:20] Production.INFO: 41 MB #Memory Used# [2024-12-19 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:42:05 [end_date_ymd] => 2024-12-19 20:42:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:42:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:42:17] Production.INFO: count ==1736 [2024-12-19 20:42:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:42:05 - End Time 2024-12-19 20:42:05 [2024-12-19 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057995', 'tblTempUsageDetail_20' ) start [2024-12-19 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14057995', 'tblTempUsageDetail_20' ) end [2024-12-19 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057995', 'tblTempVendorCDR_20' ) start [2024-12-19 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14057995', 'tblTempVendorCDR_20' ) end [2024-12-19 20:42:18] Production.INFO: ProcessCDR(1,14057995,1,1,2) [2024-12-19 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14057995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14057995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14057995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14057995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057995', 'tblTempUsageDetail_20' ) start [2024-12-19 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14057995', 'tblTempUsageDetail_20' ) end [2024-12-19 20:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:42:22] Production.INFO: ==25156== Releasing lock... [2024-12-19 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:42:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-19 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:43:05 [end_date_ymd] => 2024-12-19 20:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:43:17] Production.INFO: count ==1733 [2024-12-19 20:43:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:43:05 - End Time 2024-12-19 20:43:05 [2024-12-19 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058000', 'tblTempUsageDetail_20' ) start [2024-12-19 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058000', 'tblTempUsageDetail_20' ) end [2024-12-19 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058000', 'tblTempVendorCDR_20' ) start [2024-12-19 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058000', 'tblTempVendorCDR_20' ) end [2024-12-19 20:43:18] Production.INFO: ProcessCDR(1,14058000,1,1,2) [2024-12-19 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058000', 'tblTempUsageDetail_20' ) start [2024-12-19 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058000', 'tblTempUsageDetail_20' ) end [2024-12-19 20:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:43:21] Production.INFO: ==25241== Releasing lock... [2024-12-19 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:43:21] Production.INFO: 41 MB #Memory Used# [2024-12-19 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:44:04 [end_date_ymd] => 2024-12-19 20:44:04 [RateCDR] => 1 ) [2024-12-19 20:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:44:04' and `end` < '2024-12-19 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:44:16] Production.INFO: count ==1734 [2024-12-19 20:44:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:44:04 - End Time 2024-12-19 20:44:04 [2024-12-19 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058005', 'tblTempUsageDetail_20' ) start [2024-12-19 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058005', 'tblTempUsageDetail_20' ) end [2024-12-19 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058005', 'tblTempVendorCDR_20' ) start [2024-12-19 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058005', 'tblTempVendorCDR_20' ) end [2024-12-19 20:44:17] Production.INFO: ProcessCDR(1,14058005,1,1,2) [2024-12-19 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058005', 'tblTempUsageDetail_20' ) start [2024-12-19 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058005', 'tblTempUsageDetail_20' ) end [2024-12-19 20:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:44:20] Production.INFO: ==25363== Releasing lock... [2024-12-19 20:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:44:20] Production.INFO: 41 MB #Memory Used# [2024-12-19 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:45:05 [end_date_ymd] => 2024-12-19 20:45:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:45:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:45:17] Production.INFO: count ==1733 [2024-12-19 20:45:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:45:05 - End Time 2024-12-19 20:45:05 [2024-12-19 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058010', 'tblTempUsageDetail_20' ) start [2024-12-19 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058010', 'tblTempUsageDetail_20' ) end [2024-12-19 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058010', 'tblTempVendorCDR_20' ) start [2024-12-19 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058010', 'tblTempVendorCDR_20' ) end [2024-12-19 20:45:18] Production.INFO: ProcessCDR(1,14058010,1,1,2) [2024-12-19 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058010', 'tblTempUsageDetail_20' ) start [2024-12-19 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058010', 'tblTempUsageDetail_20' ) end [2024-12-19 20:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:45:21] Production.INFO: ==25450== Releasing lock... [2024-12-19 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:45:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-19 20:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:46:04 [end_date_ymd] => 2024-12-19 20:46:04 [RateCDR] => 1 ) [2024-12-19 20:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:46:04' and `end` < '2024-12-19 20:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:46:16] Production.INFO: count ==1726 [2024-12-19 20:46:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:46:04 - End Time 2024-12-19 20:46:04 [2024-12-19 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058015', 'tblTempUsageDetail_20' ) start [2024-12-19 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058015', 'tblTempUsageDetail_20' ) end [2024-12-19 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058015', 'tblTempVendorCDR_20' ) start [2024-12-19 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058015', 'tblTempVendorCDR_20' ) end [2024-12-19 20:46:17] Production.INFO: ProcessCDR(1,14058015,1,1,2) [2024-12-19 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058015', 'tblTempUsageDetail_20' ) start [2024-12-19 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058015', 'tblTempUsageDetail_20' ) end [2024-12-19 20:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:46:21] Production.INFO: ==25533== Releasing lock... [2024-12-19 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:46:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-19 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:47:05 [end_date_ymd] => 2024-12-19 20:47:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:47:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:47:17] Production.INFO: count ==1710 [2024-12-19 20:47:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:47:05 - End Time 2024-12-19 20:47:05 [2024-12-19 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058020', 'tblTempUsageDetail_20' ) start [2024-12-19 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058020', 'tblTempUsageDetail_20' ) end [2024-12-19 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058020', 'tblTempVendorCDR_20' ) start [2024-12-19 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058020', 'tblTempVendorCDR_20' ) end [2024-12-19 20:47:17] Production.INFO: ProcessCDR(1,14058020,1,1,2) [2024-12-19 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058020', 'tblTempUsageDetail_20' ) start [2024-12-19 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058020', 'tblTempUsageDetail_20' ) end [2024-12-19 20:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:47:21] Production.INFO: ==25614== Releasing lock... [2024-12-19 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:47:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-19 20:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:48:04 [end_date_ymd] => 2024-12-19 20:48:04 [RateCDR] => 1 ) [2024-12-19 20: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` >= '2024-12-19 17:48:04' and `end` < '2024-12-19 20: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 ,'') [2024-12-19 20:48:17] Production.INFO: count ==1708 [2024-12-19 20:48:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:48:04 - End Time 2024-12-19 20:48:04 [2024-12-19 20:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058025', 'tblTempUsageDetail_20' ) start [2024-12-19 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058025', 'tblTempUsageDetail_20' ) end [2024-12-19 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058025', 'tblTempVendorCDR_20' ) start [2024-12-19 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058025', 'tblTempVendorCDR_20' ) end [2024-12-19 20:48:17] Production.INFO: ProcessCDR(1,14058025,1,1,2) [2024-12-19 20:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058025', 'tblTempUsageDetail_20' ) start [2024-12-19 20:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058025', 'tblTempUsageDetail_20' ) end [2024-12-19 20:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:48:20] Production.INFO: ==25698== Releasing lock... [2024-12-19 20:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:48:20] Production.INFO: 40.75 MB #Memory Used# [2024-12-19 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:49:04 [end_date_ymd] => 2024-12-19 20:49:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:49:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:49:16] Production.INFO: count ==1704 [2024-12-19 20:49:16] Production.ERROR: pbx CDR StartTime 2024-12-19 17:49:04 - End Time 2024-12-19 20:49:04 [2024-12-19 20:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058030', 'tblTempUsageDetail_20' ) start [2024-12-19 20:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058030', 'tblTempUsageDetail_20' ) end [2024-12-19 20:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058030', 'tblTempVendorCDR_20' ) start [2024-12-19 20:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058030', 'tblTempVendorCDR_20' ) end [2024-12-19 20:49:16] Production.INFO: ProcessCDR(1,14058030,1,1,2) [2024-12-19 20:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058030', 'tblTempUsageDetail_20' ) start [2024-12-19 20:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058030', 'tblTempUsageDetail_20' ) end [2024-12-19 20:49:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:49:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:49:19] Production.INFO: ==25782== Releasing lock... [2024-12-19 20:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:49:19] Production.INFO: 40.5 MB #Memory Used# [2024-12-19 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:50:06 [end_date_ymd] => 2024-12-19 20:50:06 [RateCDR] => 1 ) [2024-12-19 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:50:06' and `end` < '2024-12-19 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:50:17] Production.INFO: count ==1702 [2024-12-19 20:50:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:50:06 - End Time 2024-12-19 20:50:06 [2024-12-19 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058036', 'tblTempUsageDetail_20' ) start [2024-12-19 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058036', 'tblTempUsageDetail_20' ) end [2024-12-19 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058036', 'tblTempVendorCDR_20' ) start [2024-12-19 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058036', 'tblTempVendorCDR_20' ) end [2024-12-19 20:50:18] Production.INFO: ProcessCDR(1,14058036,1,1,2) [2024-12-19 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058036', 'tblTempUsageDetail_20' ) start [2024-12-19 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058036', 'tblTempUsageDetail_20' ) end [2024-12-19 20:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:50:22] Production.INFO: ==25869== Releasing lock... [2024-12-19 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:50:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-19 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:51:04 [end_date_ymd] => 2024-12-19 20:51:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:51:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:51:16] Production.INFO: count ==1678 [2024-12-19 20:51:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:51:04 - End Time 2024-12-19 20:51:04 [2024-12-19 20:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058041', 'tblTempUsageDetail_20' ) start [2024-12-19 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058041', 'tblTempUsageDetail_20' ) end [2024-12-19 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058041', 'tblTempVendorCDR_20' ) start [2024-12-19 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058041', 'tblTempVendorCDR_20' ) end [2024-12-19 20:51:17] Production.INFO: ProcessCDR(1,14058041,1,1,2) [2024-12-19 20:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058041', 'tblTempUsageDetail_20' ) start [2024-12-19 20:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058041', 'tblTempUsageDetail_20' ) end [2024-12-19 20:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:51:20] Production.INFO: ==25953== Releasing lock... [2024-12-19 20:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:51:20] Production.INFO: 41 MB #Memory Used# [2024-12-19 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:52:04 [end_date_ymd] => 2024-12-19 20:52:04 [RateCDR] => 1 ) [2024-12-19 20: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` >= '2024-12-19 17:52:04' and `end` < '2024-12-19 20: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 ,'') [2024-12-19 20:52:16] Production.INFO: count ==1673 [2024-12-19 20:52:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:52:04 - End Time 2024-12-19 20:52:04 [2024-12-19 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058046', 'tblTempUsageDetail_20' ) start [2024-12-19 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058046', 'tblTempUsageDetail_20' ) end [2024-12-19 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058046', 'tblTempVendorCDR_20' ) start [2024-12-19 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058046', 'tblTempVendorCDR_20' ) end [2024-12-19 20:52:17] Production.INFO: ProcessCDR(1,14058046,1,1,2) [2024-12-19 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058046', 'tblTempUsageDetail_20' ) start [2024-12-19 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058046', 'tblTempUsageDetail_20' ) end [2024-12-19 20:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:52:20] Production.INFO: ==26038== Releasing lock... [2024-12-19 20:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:52:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-19 20:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:53:04 [end_date_ymd] => 2024-12-19 20:53:04 [RateCDR] => 1 ) [2024-12-19 20:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:53:04' and `end` < '2024-12-19 20:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:53:16] Production.INFO: count ==1672 [2024-12-19 20:53:16] Production.ERROR: pbx CDR StartTime 2024-12-19 17:53:04 - End Time 2024-12-19 20:53:04 [2024-12-19 20:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058051', 'tblTempUsageDetail_20' ) start [2024-12-19 20:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058051', 'tblTempUsageDetail_20' ) end [2024-12-19 20:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058051', 'tblTempVendorCDR_20' ) start [2024-12-19 20:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058051', 'tblTempVendorCDR_20' ) end [2024-12-19 20:53:16] Production.INFO: ProcessCDR(1,14058051,1,1,2) [2024-12-19 20:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058051', 'tblTempUsageDetail_20' ) start [2024-12-19 20:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058051', 'tblTempUsageDetail_20' ) end [2024-12-19 20:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:53:19] Production.INFO: ==26120== Releasing lock... [2024-12-19 20:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:53:19] Production.INFO: 40.25 MB #Memory Used# [2024-12-19 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:54:04 [end_date_ymd] => 2024-12-19 20:54:04 [RateCDR] => 1 ) [2024-12-19 20: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` >= '2024-12-19 17:54:04' and `end` < '2024-12-19 20: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 ,'') [2024-12-19 20:54:17] Production.INFO: count ==1670 [2024-12-19 20:54:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:54:04 - End Time 2024-12-19 20:54:04 [2024-12-19 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058056', 'tblTempUsageDetail_20' ) start [2024-12-19 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058056', 'tblTempUsageDetail_20' ) end [2024-12-19 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058056', 'tblTempVendorCDR_20' ) start [2024-12-19 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058056', 'tblTempVendorCDR_20' ) end [2024-12-19 20:54:18] Production.INFO: ProcessCDR(1,14058056,1,1,2) [2024-12-19 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058056', 'tblTempUsageDetail_20' ) start [2024-12-19 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058056', 'tblTempUsageDetail_20' ) end [2024-12-19 20:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:54:21] Production.INFO: ==26204== Releasing lock... [2024-12-19 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:54:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-19 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:55:05 [end_date_ymd] => 2024-12-19 20:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:55:17] Production.INFO: count ==1666 [2024-12-19 20:55:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:55:05 - End Time 2024-12-19 20:55:05 [2024-12-19 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058061', 'tblTempUsageDetail_20' ) start [2024-12-19 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058061', 'tblTempUsageDetail_20' ) end [2024-12-19 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058061', 'tblTempVendorCDR_20' ) start [2024-12-19 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058061', 'tblTempVendorCDR_20' ) end [2024-12-19 20:55:18] Production.INFO: ProcessCDR(1,14058061,1,1,2) [2024-12-19 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058061', 'tblTempUsageDetail_20' ) start [2024-12-19 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058061', 'tblTempUsageDetail_20' ) end [2024-12-19 20:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:55:21] Production.INFO: ==26286== Releasing lock... [2024-12-19 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:55:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-19 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:56:05 [end_date_ymd] => 2024-12-19 20:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:56:16] Production.INFO: count ==1662 [2024-12-19 20:56:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:56:05 - End Time 2024-12-19 20:56:05 [2024-12-19 20:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058066', 'tblTempUsageDetail_20' ) start [2024-12-19 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058066', 'tblTempUsageDetail_20' ) end [2024-12-19 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058066', 'tblTempVendorCDR_20' ) start [2024-12-19 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058066', 'tblTempVendorCDR_20' ) end [2024-12-19 20:56:17] Production.INFO: ProcessCDR(1,14058066,1,1,2) [2024-12-19 20:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058066', 'tblTempUsageDetail_20' ) start [2024-12-19 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058066', 'tblTempUsageDetail_20' ) end [2024-12-19 20:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:56:21] Production.INFO: ==26369== Releasing lock... [2024-12-19 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:56:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-19 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:57:05 [end_date_ymd] => 2024-12-19 20:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:57:17] Production.INFO: count ==1660 [2024-12-19 20:57:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:57:05 - End Time 2024-12-19 20:57:05 [2024-12-19 20:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058071', 'tblTempUsageDetail_20' ) start [2024-12-19 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058071', 'tblTempUsageDetail_20' ) end [2024-12-19 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058071', 'tblTempVendorCDR_20' ) start [2024-12-19 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058071', 'tblTempVendorCDR_20' ) end [2024-12-19 20:57:17] Production.INFO: ProcessCDR(1,14058071,1,1,2) [2024-12-19 20:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058071', 'tblTempUsageDetail_20' ) start [2024-12-19 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058071', 'tblTempUsageDetail_20' ) end [2024-12-19 20:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:57:22] Production.INFO: ==26459== Releasing lock... [2024-12-19 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:57:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-19 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:58:05 [end_date_ymd] => 2024-12-19 20:58:05 [RateCDR] => 1 ) [2024-12-19 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 17:58:05' and `end` < '2024-12-19 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 20:58:17] Production.INFO: count ==1654 [2024-12-19 20:58:17] Production.ERROR: pbx CDR StartTime 2024-12-19 17:58:05 - End Time 2024-12-19 20:58:05 [2024-12-19 20:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058076', 'tblTempUsageDetail_20' ) start [2024-12-19 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058076', 'tblTempUsageDetail_20' ) end [2024-12-19 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058076', 'tblTempVendorCDR_20' ) start [2024-12-19 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058076', 'tblTempVendorCDR_20' ) end [2024-12-19 20:58:17] Production.INFO: ProcessCDR(1,14058076,1,1,2) [2024-12-19 20:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058076', 'tblTempUsageDetail_20' ) start [2024-12-19 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058076', 'tblTempUsageDetail_20' ) end [2024-12-19 20:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:58:21] Production.INFO: ==26539== Releasing lock... [2024-12-19 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:58:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-19 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 17:59:05 [end_date_ymd] => 2024-12-19 20:59:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 17:59:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 20:59:18] Production.INFO: count ==1637 [2024-12-19 20:59:18] Production.ERROR: pbx CDR StartTime 2024-12-19 17:59:05 - End Time 2024-12-19 20:59:05 [2024-12-19 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058081', 'tblTempUsageDetail_20' ) start [2024-12-19 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058081', 'tblTempUsageDetail_20' ) end [2024-12-19 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058081', 'tblTempVendorCDR_20' ) start [2024-12-19 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058081', 'tblTempVendorCDR_20' ) end [2024-12-19 20:59:18] Production.INFO: ProcessCDR(1,14058081,1,1,2) [2024-12-19 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058081', 'tblTempUsageDetail_20' ) start [2024-12-19 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058081', 'tblTempUsageDetail_20' ) end [2024-12-19 20:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 20:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 20:59:21] Production.INFO: ==26622== Releasing lock... [2024-12-19 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 20:59:21] Production.INFO: 40 MB #Memory Used# [2024-12-19 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:00:05 [end_date_ymd] => 2024-12-19 21:00:05 [RateCDR] => 1 ) [2024-12-19 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:00:05' and `end` < '2024-12-19 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:00:17] Production.INFO: count ==1626 [2024-12-19 21:00:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:00:05 - End Time 2024-12-19 21:00:05 [2024-12-19 21:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058086', 'tblTempUsageDetail_20' ) start [2024-12-19 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058086', 'tblTempUsageDetail_20' ) end [2024-12-19 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058086', 'tblTempVendorCDR_20' ) start [2024-12-19 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058086', 'tblTempVendorCDR_20' ) end [2024-12-19 21:00:17] Production.INFO: ProcessCDR(1,14058086,1,1,2) [2024-12-19 21:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058086', 'tblTempUsageDetail_20' ) start [2024-12-19 21:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058086', 'tblTempUsageDetail_20' ) end [2024-12-19 21:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:00:21] Production.INFO: ==26749== Releasing lock... [2024-12-19 21:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:00:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-19 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:01:05 [end_date_ymd] => 2024-12-19 21:01:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:01:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:01:17] Production.INFO: count ==1599 [2024-12-19 21:01:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:01:05 - End Time 2024-12-19 21:01:05 [2024-12-19 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058092', 'tblTempUsageDetail_20' ) start [2024-12-19 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058092', 'tblTempUsageDetail_20' ) end [2024-12-19 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058092', 'tblTempVendorCDR_20' ) start [2024-12-19 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058092', 'tblTempVendorCDR_20' ) end [2024-12-19 21:01:17] Production.INFO: ProcessCDR(1,14058092,1,1,2) [2024-12-19 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058092', 'tblTempUsageDetail_20' ) start [2024-12-19 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058092', 'tblTempUsageDetail_20' ) end [2024-12-19 21:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:01:21] Production.INFO: ==26845== Releasing lock... [2024-12-19 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:01:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-19 21:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:02:04 [end_date_ymd] => 2024-12-19 21:02:04 [RateCDR] => 1 ) [2024-12-19 21: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` >= '2024-12-19 18:02:04' and `end` < '2024-12-19 21: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 ,'') [2024-12-19 21:02:16] Production.INFO: count ==1586 [2024-12-19 21:02:16] Production.ERROR: pbx CDR StartTime 2024-12-19 18:02:04 - End Time 2024-12-19 21:02:04 [2024-12-19 21:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058097', 'tblTempUsageDetail_20' ) start [2024-12-19 21:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058097', 'tblTempUsageDetail_20' ) end [2024-12-19 21:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058097', 'tblTempVendorCDR_20' ) start [2024-12-19 21:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058097', 'tblTempVendorCDR_20' ) end [2024-12-19 21:02:16] Production.INFO: ProcessCDR(1,14058097,1,1,2) [2024-12-19 21:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058097', 'tblTempUsageDetail_20' ) start [2024-12-19 21:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058097', 'tblTempUsageDetail_20' ) end [2024-12-19 21:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:02:20] Production.INFO: ==26931== Releasing lock... [2024-12-19 21:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:02:20] Production.INFO: 40 MB #Memory Used# [2024-12-19 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:03:05 [end_date_ymd] => 2024-12-19 21:03:05 [RateCDR] => 1 ) [2024-12-19 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:03:05' and `end` < '2024-12-19 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:03:17] Production.INFO: count ==1582 [2024-12-19 21:03:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:03:05 - End Time 2024-12-19 21:03:05 [2024-12-19 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058102', 'tblTempUsageDetail_20' ) start [2024-12-19 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058102', 'tblTempUsageDetail_20' ) end [2024-12-19 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058102', 'tblTempVendorCDR_20' ) start [2024-12-19 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058102', 'tblTempVendorCDR_20' ) end [2024-12-19 21:03:17] Production.INFO: ProcessCDR(1,14058102,1,1,2) [2024-12-19 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058102', 'tblTempUsageDetail_20' ) start [2024-12-19 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058102', 'tblTempUsageDetail_20' ) end [2024-12-19 21:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:03:20] Production.INFO: ==27017== Releasing lock... [2024-12-19 21:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:03:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-19 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:04:05 [end_date_ymd] => 2024-12-19 21:04:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:04:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:04:17] Production.INFO: count ==1578 [2024-12-19 21:04:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:04:05 - End Time 2024-12-19 21:04:05 [2024-12-19 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058104', 'tblTempUsageDetail_20' ) start [2024-12-19 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058104', 'tblTempUsageDetail_20' ) end [2024-12-19 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058104', 'tblTempVendorCDR_20' ) start [2024-12-19 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058104', 'tblTempVendorCDR_20' ) end [2024-12-19 21:04:18] Production.INFO: ProcessCDR(1,14058104,1,1,2) [2024-12-19 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058104', 'tblTempUsageDetail_20' ) start [2024-12-19 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058104', 'tblTempUsageDetail_20' ) end [2024-12-19 21:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:04:22] Production.INFO: ==27097== Releasing lock... [2024-12-19 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:04:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-19 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:05:05 [end_date_ymd] => 2024-12-19 21:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:05:17] Production.INFO: count ==1569 [2024-12-19 21:05:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:05:05 - End Time 2024-12-19 21:05:05 [2024-12-19 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058112', 'tblTempUsageDetail_20' ) start [2024-12-19 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058112', 'tblTempUsageDetail_20' ) end [2024-12-19 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058112', 'tblTempVendorCDR_20' ) start [2024-12-19 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058112', 'tblTempVendorCDR_20' ) end [2024-12-19 21:05:17] Production.INFO: ProcessCDR(1,14058112,1,1,2) [2024-12-19 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058112', 'tblTempUsageDetail_20' ) start [2024-12-19 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058112', 'tblTempUsageDetail_20' ) end [2024-12-19 21:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:05:20] Production.INFO: ==27184== Releasing lock... [2024-12-19 21:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:05:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-19 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:06:05 [end_date_ymd] => 2024-12-19 21:06:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:06:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:06:17] Production.INFO: count ==1564 [2024-12-19 21:06:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:06:05 - End Time 2024-12-19 21:06:05 [2024-12-19 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058117', 'tblTempUsageDetail_20' ) start [2024-12-19 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058117', 'tblTempUsageDetail_20' ) end [2024-12-19 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058117', 'tblTempVendorCDR_20' ) start [2024-12-19 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058117', 'tblTempVendorCDR_20' ) end [2024-12-19 21:06:17] Production.INFO: ProcessCDR(1,14058117,1,1,2) [2024-12-19 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058117', 'tblTempUsageDetail_20' ) start [2024-12-19 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058117', 'tblTempUsageDetail_20' ) end [2024-12-19 21:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:06:21] Production.INFO: ==27275== Releasing lock... [2024-12-19 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:06:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-19 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:07:05 [end_date_ymd] => 2024-12-19 21:07:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:07:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:07:17] Production.INFO: count ==1565 [2024-12-19 21:07:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:07:05 - End Time 2024-12-19 21:07:05 [2024-12-19 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058122', 'tblTempUsageDetail_20' ) start [2024-12-19 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058122', 'tblTempUsageDetail_20' ) end [2024-12-19 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058122', 'tblTempVendorCDR_20' ) start [2024-12-19 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058122', 'tblTempVendorCDR_20' ) end [2024-12-19 21:07:17] Production.INFO: ProcessCDR(1,14058122,1,1,2) [2024-12-19 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058122', 'tblTempUsageDetail_20' ) start [2024-12-19 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058122', 'tblTempUsageDetail_20' ) end [2024-12-19 21:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:07:21] Production.INFO: ==27356== Releasing lock... [2024-12-19 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:07:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-19 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:08:05 [end_date_ymd] => 2024-12-19 21:08:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:08:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:08:17] Production.INFO: count ==1560 [2024-12-19 21:08:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:08:05 - End Time 2024-12-19 21:08:05 [2024-12-19 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058127', 'tblTempUsageDetail_20' ) start [2024-12-19 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058127', 'tblTempUsageDetail_20' ) end [2024-12-19 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058127', 'tblTempVendorCDR_20' ) start [2024-12-19 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058127', 'tblTempVendorCDR_20' ) end [2024-12-19 21:08:18] Production.INFO: ProcessCDR(1,14058127,1,1,2) [2024-12-19 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058127', 'tblTempUsageDetail_20' ) start [2024-12-19 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058127', 'tblTempUsageDetail_20' ) end [2024-12-19 21:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:08:21] Production.INFO: ==27438== Releasing lock... [2024-12-19 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:08:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-19 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:09:05 [end_date_ymd] => 2024-12-19 21:09:05 [RateCDR] => 1 ) [2024-12-19 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:09:05' and `end` < '2024-12-19 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:09:17] Production.INFO: count ==1557 [2024-12-19 21:09:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:09:05 - End Time 2024-12-19 21:09:05 [2024-12-19 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058132', 'tblTempUsageDetail_20' ) start [2024-12-19 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058132', 'tblTempUsageDetail_20' ) end [2024-12-19 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058132', 'tblTempVendorCDR_20' ) start [2024-12-19 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058132', 'tblTempVendorCDR_20' ) end [2024-12-19 21:09:18] Production.INFO: ProcessCDR(1,14058132,1,1,2) [2024-12-19 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058132', 'tblTempUsageDetail_20' ) start [2024-12-19 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058132', 'tblTempUsageDetail_20' ) end [2024-12-19 21:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:09:21] Production.INFO: ==27525== Releasing lock... [2024-12-19 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:09:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-19 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:10:06 [end_date_ymd] => 2024-12-19 21:10:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:10:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:10:18] Production.INFO: count ==1559 [2024-12-19 21:10:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:10:06 - End Time 2024-12-19 21:10:06 [2024-12-19 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058138', 'tblTempUsageDetail_20' ) start [2024-12-19 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058138', 'tblTempUsageDetail_20' ) end [2024-12-19 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058138', 'tblTempVendorCDR_20' ) start [2024-12-19 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058138', 'tblTempVendorCDR_20' ) end [2024-12-19 21:10:18] Production.INFO: ProcessCDR(1,14058138,1,1,2) [2024-12-19 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058138', 'tblTempUsageDetail_20' ) start [2024-12-19 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058138', 'tblTempUsageDetail_20' ) end [2024-12-19 21:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:10:21] Production.INFO: ==27606== Releasing lock... [2024-12-19 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:10:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-19 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:11:04 [end_date_ymd] => 2024-12-19 21:11:04 [RateCDR] => 1 ) [2024-12-19 21:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:11:04' and `end` < '2024-12-19 21:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:11:16] Production.INFO: count ==1565 [2024-12-19 21:11:16] Production.ERROR: pbx CDR StartTime 2024-12-19 18:11:04 - End Time 2024-12-19 21:11:04 [2024-12-19 21:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058143', 'tblTempUsageDetail_20' ) start [2024-12-19 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058143', 'tblTempUsageDetail_20' ) end [2024-12-19 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058143', 'tblTempVendorCDR_20' ) start [2024-12-19 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058143', 'tblTempVendorCDR_20' ) end [2024-12-19 21:11:16] Production.INFO: ProcessCDR(1,14058143,1,1,2) [2024-12-19 21:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058143', 'tblTempUsageDetail_20' ) start [2024-12-19 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058143', 'tblTempUsageDetail_20' ) end [2024-12-19 21:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:11:20] Production.INFO: ==27694== Releasing lock... [2024-12-19 21:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:11:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-19 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:12:05 [end_date_ymd] => 2024-12-19 21:12:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:12:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:12:17] Production.INFO: count ==1551 [2024-12-19 21:12:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:12:05 - End Time 2024-12-19 21:12:05 [2024-12-19 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058148', 'tblTempUsageDetail_20' ) start [2024-12-19 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058148', 'tblTempUsageDetail_20' ) end [2024-12-19 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058148', 'tblTempVendorCDR_20' ) start [2024-12-19 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058148', 'tblTempVendorCDR_20' ) end [2024-12-19 21:12:18] Production.INFO: ProcessCDR(1,14058148,1,1,2) [2024-12-19 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058148', 'tblTempUsageDetail_20' ) start [2024-12-19 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058148', 'tblTempUsageDetail_20' ) end [2024-12-19 21:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:12:21] Production.INFO: ==27786== Releasing lock... [2024-12-19 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:12:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-19 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:13:04 [end_date_ymd] => 2024-12-19 21:13:04 [RateCDR] => 1 ) [2024-12-19 21: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` >= '2024-12-19 18:13:04' and `end` < '2024-12-19 21: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 ,'') [2024-12-19 21:13:17] Production.INFO: count ==1539 [2024-12-19 21:13:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:13:04 - End Time 2024-12-19 21:13:04 [2024-12-19 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058153', 'tblTempUsageDetail_20' ) start [2024-12-19 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058153', 'tblTempUsageDetail_20' ) end [2024-12-19 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058153', 'tblTempVendorCDR_20' ) start [2024-12-19 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058153', 'tblTempVendorCDR_20' ) end [2024-12-19 21:13:17] Production.INFO: ProcessCDR(1,14058153,1,1,2) [2024-12-19 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058153', 'tblTempUsageDetail_20' ) start [2024-12-19 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058153', 'tblTempUsageDetail_20' ) end [2024-12-19 21:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:13:20] Production.INFO: ==27876== Releasing lock... [2024-12-19 21:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:13:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-19 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:14:05 [end_date_ymd] => 2024-12-19 21:14:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:14:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:14:17] Production.INFO: count ==1523 [2024-12-19 21:14:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:14:05 - End Time 2024-12-19 21:14:05 [2024-12-19 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058158', 'tblTempUsageDetail_20' ) start [2024-12-19 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058158', 'tblTempUsageDetail_20' ) end [2024-12-19 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058158', 'tblTempVendorCDR_20' ) start [2024-12-19 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058158', 'tblTempVendorCDR_20' ) end [2024-12-19 21:14:17] Production.INFO: ProcessCDR(1,14058158,1,1,2) [2024-12-19 21:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058158', 'tblTempUsageDetail_20' ) start [2024-12-19 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058158', 'tblTempUsageDetail_20' ) end [2024-12-19 21:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:14:20] Production.INFO: ==27979== Releasing lock... [2024-12-19 21:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:14:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-19 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:15:04 [end_date_ymd] => 2024-12-19 21:15:04 [RateCDR] => 1 ) [2024-12-19 21:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:15:04' and `end` < '2024-12-19 21:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:15:16] Production.INFO: count ==1507 [2024-12-19 21:15:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:15:04 - End Time 2024-12-19 21:15:04 [2024-12-19 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058163', 'tblTempUsageDetail_20' ) start [2024-12-19 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058163', 'tblTempUsageDetail_20' ) end [2024-12-19 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058163', 'tblTempVendorCDR_20' ) start [2024-12-19 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058163', 'tblTempVendorCDR_20' ) end [2024-12-19 21:15:17] Production.INFO: ProcessCDR(1,14058163,1,1,2) [2024-12-19 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058163', 'tblTempUsageDetail_20' ) start [2024-12-19 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058163', 'tblTempUsageDetail_20' ) end [2024-12-19 21:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:15:20] Production.INFO: ==28068== Releasing lock... [2024-12-19 21:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:15:20] Production.INFO: 39 MB #Memory Used# [2024-12-19 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:16:05 [end_date_ymd] => 2024-12-19 21:16:05 [RateCDR] => 1 ) [2024-12-19 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:16:05' and `end` < '2024-12-19 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:16:17] Production.INFO: count ==1505 [2024-12-19 21:16:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:16:05 - End Time 2024-12-19 21:16:05 [2024-12-19 21:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058168', 'tblTempUsageDetail_20' ) start [2024-12-19 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058168', 'tblTempUsageDetail_20' ) end [2024-12-19 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058168', 'tblTempVendorCDR_20' ) start [2024-12-19 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058168', 'tblTempVendorCDR_20' ) end [2024-12-19 21:16:17] Production.INFO: ProcessCDR(1,14058168,1,1,2) [2024-12-19 21:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058168', 'tblTempUsageDetail_20' ) start [2024-12-19 21:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058168', 'tblTempUsageDetail_20' ) end [2024-12-19 21:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:16:20] Production.INFO: ==28192== Releasing lock... [2024-12-19 21:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:16:20] Production.INFO: 39 MB #Memory Used# [2024-12-19 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:17:04 [end_date_ymd] => 2024-12-19 21:17:04 [RateCDR] => 1 ) [2024-12-19 21:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:17:04' and `end` < '2024-12-19 21:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:17:17] Production.INFO: count ==1506 [2024-12-19 21:17:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:17:04 - End Time 2024-12-19 21:17:04 [2024-12-19 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058173', 'tblTempUsageDetail_20' ) start [2024-12-19 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058173', 'tblTempUsageDetail_20' ) end [2024-12-19 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058173', 'tblTempVendorCDR_20' ) start [2024-12-19 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058173', 'tblTempVendorCDR_20' ) end [2024-12-19 21:17:17] Production.INFO: ProcessCDR(1,14058173,1,1,2) [2024-12-19 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058173', 'tblTempUsageDetail_20' ) start [2024-12-19 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058173', 'tblTempUsageDetail_20' ) end [2024-12-19 21:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:17:20] Production.INFO: ==28277== Releasing lock... [2024-12-19 21:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:17:20] Production.INFO: 39 MB #Memory Used# [2024-12-19 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:18:05 [end_date_ymd] => 2024-12-19 21:18:05 [RateCDR] => 1 ) [2024-12-19 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:18:05' and `end` < '2024-12-19 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:18:17] Production.INFO: count ==1501 [2024-12-19 21:18:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:18:05 - End Time 2024-12-19 21:18:05 [2024-12-19 21:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058178', 'tblTempUsageDetail_20' ) start [2024-12-19 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058178', 'tblTempUsageDetail_20' ) end [2024-12-19 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058178', 'tblTempVendorCDR_20' ) start [2024-12-19 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058178', 'tblTempVendorCDR_20' ) end [2024-12-19 21:18:17] Production.INFO: ProcessCDR(1,14058178,1,1,2) [2024-12-19 21:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058178', 'tblTempUsageDetail_20' ) start [2024-12-19 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058178', 'tblTempUsageDetail_20' ) end [2024-12-19 21:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:18:20] Production.INFO: ==28363== Releasing lock... [2024-12-19 21:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:18:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-19 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:19:05 [end_date_ymd] => 2024-12-19 21:19:05 [RateCDR] => 1 ) [2024-12-19 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:19:05' and `end` < '2024-12-19 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:19:18] Production.INFO: count ==1499 [2024-12-19 21:19:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:19:05 - End Time 2024-12-19 21:19:05 [2024-12-19 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058183', 'tblTempUsageDetail_20' ) start [2024-12-19 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058183', 'tblTempUsageDetail_20' ) end [2024-12-19 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058183', 'tblTempVendorCDR_20' ) start [2024-12-19 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058183', 'tblTempVendorCDR_20' ) end [2024-12-19 21:19:18] Production.INFO: ProcessCDR(1,14058183,1,1,2) [2024-12-19 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058183', 'tblTempUsageDetail_20' ) start [2024-12-19 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058183', 'tblTempUsageDetail_20' ) end [2024-12-19 21:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:19:21] Production.INFO: ==28443== Releasing lock... [2024-12-19 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:19:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-19 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:20:06 [end_date_ymd] => 2024-12-19 21:20:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:20:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:20:18] Production.INFO: count ==1498 [2024-12-19 21:20:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:20:06 - End Time 2024-12-19 21:20:06 [2024-12-19 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058189', 'tblTempUsageDetail_20' ) start [2024-12-19 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058189', 'tblTempUsageDetail_20' ) end [2024-12-19 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058189', 'tblTempVendorCDR_20' ) start [2024-12-19 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058189', 'tblTempVendorCDR_20' ) end [2024-12-19 21:20:18] Production.INFO: ProcessCDR(1,14058189,1,1,2) [2024-12-19 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058189', 'tblTempUsageDetail_20' ) start [2024-12-19 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058189', 'tblTempUsageDetail_20' ) end [2024-12-19 21:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:20:22] Production.INFO: ==28528== Releasing lock... [2024-12-19 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:20:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-19 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:21:05 [end_date_ymd] => 2024-12-19 21:21:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:21:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:21:16] Production.INFO: count ==1419 [2024-12-19 21:21:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:21:05 - End Time 2024-12-19 21:21:05 [2024-12-19 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058194', 'tblTempUsageDetail_20' ) start [2024-12-19 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058194', 'tblTempUsageDetail_20' ) end [2024-12-19 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058194', 'tblTempVendorCDR_20' ) start [2024-12-19 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058194', 'tblTempVendorCDR_20' ) end [2024-12-19 21:21:17] Production.INFO: ProcessCDR(1,14058194,1,1,2) [2024-12-19 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058194', 'tblTempUsageDetail_20' ) start [2024-12-19 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058194', 'tblTempUsageDetail_20' ) end [2024-12-19 21:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:21:20] Production.INFO: ==28612== Releasing lock... [2024-12-19 21:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:21:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-19 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:22:05 [end_date_ymd] => 2024-12-19 21:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:22:18] Production.INFO: count ==1415 [2024-12-19 21:22:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:22:05 - End Time 2024-12-19 21:22:05 [2024-12-19 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058199', 'tblTempUsageDetail_20' ) start [2024-12-19 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058199', 'tblTempUsageDetail_20' ) end [2024-12-19 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058199', 'tblTempVendorCDR_20' ) start [2024-12-19 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058199', 'tblTempVendorCDR_20' ) end [2024-12-19 21:22:18] Production.INFO: ProcessCDR(1,14058199,1,1,2) [2024-12-19 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058199', 'tblTempUsageDetail_20' ) start [2024-12-19 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058199', 'tblTempUsageDetail_20' ) end [2024-12-19 21:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:22:21] Production.INFO: ==28697== Releasing lock... [2024-12-19 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:22:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-19 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:23:04 [end_date_ymd] => 2024-12-19 21:23:04 [RateCDR] => 1 ) [2024-12-19 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:23:04' and `end` < '2024-12-19 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:23:17] Production.INFO: count ==1404 [2024-12-19 21:23:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:23:04 - End Time 2024-12-19 21:23:04 [2024-12-19 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058204', 'tblTempUsageDetail_20' ) start [2024-12-19 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058204', 'tblTempUsageDetail_20' ) end [2024-12-19 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058204', 'tblTempVendorCDR_20' ) start [2024-12-19 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058204', 'tblTempVendorCDR_20' ) end [2024-12-19 21:23:17] Production.INFO: ProcessCDR(1,14058204,1,1,2) [2024-12-19 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058204', 'tblTempUsageDetail_20' ) start [2024-12-19 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058204', 'tblTempUsageDetail_20' ) end [2024-12-19 21:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:23:20] Production.INFO: ==28781== Releasing lock... [2024-12-19 21:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:23:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:24:05 [end_date_ymd] => 2024-12-19 21:24:05 [RateCDR] => 1 ) [2024-12-19 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:24:05' and `end` < '2024-12-19 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:24:18] Production.INFO: count ==1403 [2024-12-19 21:24:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:24:05 - End Time 2024-12-19 21:24:05 [2024-12-19 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058209', 'tblTempUsageDetail_20' ) start [2024-12-19 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058209', 'tblTempUsageDetail_20' ) end [2024-12-19 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058209', 'tblTempVendorCDR_20' ) start [2024-12-19 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058209', 'tblTempVendorCDR_20' ) end [2024-12-19 21:24:18] Production.INFO: ProcessCDR(1,14058209,1,1,2) [2024-12-19 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058209', 'tblTempUsageDetail_20' ) start [2024-12-19 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058209', 'tblTempUsageDetail_20' ) end [2024-12-19 21:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:24:21] Production.INFO: ==28862== Releasing lock... [2024-12-19 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:24:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:25:04 [end_date_ymd] => 2024-12-19 21:25:04 [RateCDR] => 1 ) [2024-12-19 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:25:04' and `end` < '2024-12-19 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:25:16] Production.INFO: count ==1406 [2024-12-19 21:25:16] Production.ERROR: pbx CDR StartTime 2024-12-19 18:25:04 - End Time 2024-12-19 21:25:04 [2024-12-19 21:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058214', 'tblTempUsageDetail_20' ) start [2024-12-19 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058214', 'tblTempUsageDetail_20' ) end [2024-12-19 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058214', 'tblTempVendorCDR_20' ) start [2024-12-19 21:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058214', 'tblTempVendorCDR_20' ) end [2024-12-19 21:25:16] Production.INFO: ProcessCDR(1,14058214,1,1,2) [2024-12-19 21:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058214', 'tblTempUsageDetail_20' ) start [2024-12-19 21:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058214', 'tblTempUsageDetail_20' ) end [2024-12-19 21:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:25:19] Production.INFO: ==28945== Releasing lock... [2024-12-19 21:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:25:19] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 21:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:26:04 [end_date_ymd] => 2024-12-19 21:26:04 [RateCDR] => 1 ) [2024-12-19 21:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:26:04' and `end` < '2024-12-19 21:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:26:16] Production.INFO: count ==1402 [2024-12-19 21:26:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:26:04 - End Time 2024-12-19 21:26:04 [2024-12-19 21:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058219', 'tblTempUsageDetail_20' ) start [2024-12-19 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058219', 'tblTempUsageDetail_20' ) end [2024-12-19 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058219', 'tblTempVendorCDR_20' ) start [2024-12-19 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058219', 'tblTempVendorCDR_20' ) end [2024-12-19 21:26:17] Production.INFO: ProcessCDR(1,14058219,1,1,2) [2024-12-19 21:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058219', 'tblTempUsageDetail_20' ) start [2024-12-19 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058219', 'tblTempUsageDetail_20' ) end [2024-12-19 21:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:26:20] Production.INFO: ==29040== Releasing lock... [2024-12-19 21:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:26:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:27:05 [end_date_ymd] => 2024-12-19 21:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:27:17] Production.INFO: count ==1401 [2024-12-19 21:27:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:27:05 - End Time 2024-12-19 21:27:05 [2024-12-19 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058224', 'tblTempUsageDetail_20' ) start [2024-12-19 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058224', 'tblTempUsageDetail_20' ) end [2024-12-19 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058224', 'tblTempVendorCDR_20' ) start [2024-12-19 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058224', 'tblTempVendorCDR_20' ) end [2024-12-19 21:27:17] Production.INFO: ProcessCDR(1,14058224,1,1,2) [2024-12-19 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058224', 'tblTempUsageDetail_20' ) start [2024-12-19 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058224', 'tblTempUsageDetail_20' ) end [2024-12-19 21:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:27:20] Production.INFO: ==29124== Releasing lock... [2024-12-19 21:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:27:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:28:04 [end_date_ymd] => 2024-12-19 21:28:04 [RateCDR] => 1 ) [2024-12-19 21:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:28:04' and `end` < '2024-12-19 21:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:28:16] Production.INFO: count ==1401 [2024-12-19 21:28:16] Production.ERROR: pbx CDR StartTime 2024-12-19 18:28:04 - End Time 2024-12-19 21:28:04 [2024-12-19 21:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058229', 'tblTempUsageDetail_20' ) start [2024-12-19 21:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058229', 'tblTempUsageDetail_20' ) end [2024-12-19 21:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058229', 'tblTempVendorCDR_20' ) start [2024-12-19 21:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058229', 'tblTempVendorCDR_20' ) end [2024-12-19 21:28:16] Production.INFO: ProcessCDR(1,14058229,1,1,2) [2024-12-19 21:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058229', 'tblTempUsageDetail_20' ) start [2024-12-19 21:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058229', 'tblTempUsageDetail_20' ) end [2024-12-19 21:28:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:28:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:28:19] Production.INFO: ==29207== Releasing lock... [2024-12-19 21:28:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:28:19] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:29:05 [end_date_ymd] => 2024-12-19 21:29:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:29:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:29:17] Production.INFO: count ==1401 [2024-12-19 21:29:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:29:05 - End Time 2024-12-19 21:29:05 [2024-12-19 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058234', 'tblTempUsageDetail_20' ) start [2024-12-19 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058234', 'tblTempUsageDetail_20' ) end [2024-12-19 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058234', 'tblTempVendorCDR_20' ) start [2024-12-19 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058234', 'tblTempVendorCDR_20' ) end [2024-12-19 21:29:17] Production.INFO: ProcessCDR(1,14058234,1,1,2) [2024-12-19 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058234', 'tblTempUsageDetail_20' ) start [2024-12-19 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058234', 'tblTempUsageDetail_20' ) end [2024-12-19 21:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:29:20] Production.INFO: ==29293== Releasing lock... [2024-12-19 21:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:29:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:30:06 [end_date_ymd] => 2024-12-19 21:30:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:30:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:30:18] Production.INFO: count ==1392 [2024-12-19 21:30:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:30:06 - End Time 2024-12-19 21:30:06 [2024-12-19 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058240', 'tblTempUsageDetail_20' ) start [2024-12-19 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058240', 'tblTempUsageDetail_20' ) end [2024-12-19 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058240', 'tblTempVendorCDR_20' ) start [2024-12-19 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058240', 'tblTempVendorCDR_20' ) end [2024-12-19 21:30:18] Production.INFO: ProcessCDR(1,14058240,1,1,2) [2024-12-19 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058240', 'tblTempUsageDetail_20' ) start [2024-12-19 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058240', 'tblTempUsageDetail_20' ) end [2024-12-19 21:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:30:23] Production.INFO: ==29378== Releasing lock... [2024-12-19 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:30:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:31:05 [end_date_ymd] => 2024-12-19 21:31:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:31:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:31:17] Production.INFO: count ==1384 [2024-12-19 21:31:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:31:05 - End Time 2024-12-19 21:31:05 [2024-12-19 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058245', 'tblTempUsageDetail_20' ) start [2024-12-19 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058245', 'tblTempUsageDetail_20' ) end [2024-12-19 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058245', 'tblTempVendorCDR_20' ) start [2024-12-19 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058245', 'tblTempVendorCDR_20' ) end [2024-12-19 21:31:17] Production.INFO: ProcessCDR(1,14058245,1,1,2) [2024-12-19 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058245', 'tblTempUsageDetail_20' ) start [2024-12-19 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058245', 'tblTempUsageDetail_20' ) end [2024-12-19 21:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:31:20] Production.INFO: ==29512== Releasing lock... [2024-12-19 21:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:31:20] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:32:05 [end_date_ymd] => 2024-12-19 21:32:05 [RateCDR] => 1 ) [2024-12-19 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:32:05' and `end` < '2024-12-19 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:32:17] Production.INFO: count ==1388 [2024-12-19 21:32:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:32:05 - End Time 2024-12-19 21:32:05 [2024-12-19 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058250', 'tblTempUsageDetail_20' ) start [2024-12-19 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058250', 'tblTempUsageDetail_20' ) end [2024-12-19 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058250', 'tblTempVendorCDR_20' ) start [2024-12-19 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058250', 'tblTempVendorCDR_20' ) end [2024-12-19 21:32:17] Production.INFO: ProcessCDR(1,14058250,1,1,2) [2024-12-19 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058250', 'tblTempUsageDetail_20' ) start [2024-12-19 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058250', 'tblTempUsageDetail_20' ) end [2024-12-19 21:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:32:21] Production.INFO: ==29604== Releasing lock... [2024-12-19 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:32:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:33:05 [end_date_ymd] => 2024-12-19 21:33:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:33:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:33:17] Production.INFO: count ==1386 [2024-12-19 21:33:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:33:05 - End Time 2024-12-19 21:33:05 [2024-12-19 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058255', 'tblTempUsageDetail_20' ) start [2024-12-19 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058255', 'tblTempUsageDetail_20' ) end [2024-12-19 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058255', 'tblTempVendorCDR_20' ) start [2024-12-19 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058255', 'tblTempVendorCDR_20' ) end [2024-12-19 21:33:17] Production.INFO: ProcessCDR(1,14058255,1,1,2) [2024-12-19 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058255', 'tblTempUsageDetail_20' ) start [2024-12-19 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058255', 'tblTempUsageDetail_20' ) end [2024-12-19 21:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:33:20] Production.INFO: ==29694== Releasing lock... [2024-12-19 21:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:33:20] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:34:05 [end_date_ymd] => 2024-12-19 21:34:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:34:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:34:17] Production.INFO: count ==1389 [2024-12-19 21:34:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:34:05 - End Time 2024-12-19 21:34:05 [2024-12-19 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058260', 'tblTempUsageDetail_20' ) start [2024-12-19 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058260', 'tblTempUsageDetail_20' ) end [2024-12-19 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058260', 'tblTempVendorCDR_20' ) start [2024-12-19 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058260', 'tblTempVendorCDR_20' ) end [2024-12-19 21:34:17] Production.INFO: ProcessCDR(1,14058260,1,1,2) [2024-12-19 21:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058260', 'tblTempUsageDetail_20' ) start [2024-12-19 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058260', 'tblTempUsageDetail_20' ) end [2024-12-19 21:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:34:22] Production.INFO: ==29785== Releasing lock... [2024-12-19 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:34:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-19 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:35:04 [end_date_ymd] => 2024-12-19 21:35:04 [RateCDR] => 1 ) [2024-12-19 21:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:35:04' and `end` < '2024-12-19 21:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:35:16] Production.INFO: count ==1384 [2024-12-19 21:35:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:35:04 - End Time 2024-12-19 21:35:04 [2024-12-19 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058265', 'tblTempUsageDetail_20' ) start [2024-12-19 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058265', 'tblTempUsageDetail_20' ) end [2024-12-19 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058265', 'tblTempVendorCDR_20' ) start [2024-12-19 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058265', 'tblTempVendorCDR_20' ) end [2024-12-19 21:35:17] Production.INFO: ProcessCDR(1,14058265,1,1,2) [2024-12-19 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058265', 'tblTempUsageDetail_20' ) start [2024-12-19 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058265', 'tblTempUsageDetail_20' ) end [2024-12-19 21:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:35:20] Production.INFO: ==29873== Releasing lock... [2024-12-19 21:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:35:20] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:36:05 [end_date_ymd] => 2024-12-19 21:36:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:36:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:36:18] Production.INFO: count ==1378 [2024-12-19 21:36:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:36:05 - End Time 2024-12-19 21:36:05 [2024-12-19 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058270', 'tblTempUsageDetail_20' ) start [2024-12-19 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058270', 'tblTempUsageDetail_20' ) end [2024-12-19 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058270', 'tblTempVendorCDR_20' ) start [2024-12-19 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058270', 'tblTempVendorCDR_20' ) end [2024-12-19 21:36:18] Production.INFO: ProcessCDR(1,14058270,1,1,2) [2024-12-19 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058270', 'tblTempUsageDetail_20' ) start [2024-12-19 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058270', 'tblTempUsageDetail_20' ) end [2024-12-19 21:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:36:23] Production.INFO: ==29969== Releasing lock... [2024-12-19 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:36:23] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:37:05 [end_date_ymd] => 2024-12-19 21:37:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:37:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:37:18] Production.INFO: count ==1377 [2024-12-19 21:37:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:37:05 - End Time 2024-12-19 21:37:05 [2024-12-19 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058275', 'tblTempUsageDetail_20' ) start [2024-12-19 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058275', 'tblTempUsageDetail_20' ) end [2024-12-19 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058275', 'tblTempVendorCDR_20' ) start [2024-12-19 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058275', 'tblTempVendorCDR_20' ) end [2024-12-19 21:37:18] Production.INFO: ProcessCDR(1,14058275,1,1,2) [2024-12-19 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058275', 'tblTempUsageDetail_20' ) start [2024-12-19 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058275', 'tblTempUsageDetail_20' ) end [2024-12-19 21:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:37:21] Production.INFO: ==30060== Releasing lock... [2024-12-19 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:37:21] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:38:05 [end_date_ymd] => 2024-12-19 21:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:38:17] Production.INFO: count ==1375 [2024-12-19 21:38:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:38:05 - End Time 2024-12-19 21:38:05 [2024-12-19 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058280', 'tblTempUsageDetail_20' ) start [2024-12-19 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058280', 'tblTempUsageDetail_20' ) end [2024-12-19 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058280', 'tblTempVendorCDR_20' ) start [2024-12-19 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058280', 'tblTempVendorCDR_20' ) end [2024-12-19 21:38:17] Production.INFO: ProcessCDR(1,14058280,1,1,2) [2024-12-19 21:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058280', 'tblTempUsageDetail_20' ) start [2024-12-19 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058280', 'tblTempUsageDetail_20' ) end [2024-12-19 21:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:38:21] Production.INFO: ==30149== Releasing lock... [2024-12-19 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:38:21] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:39:05 [end_date_ymd] => 2024-12-19 21:39:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:39:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:39:17] Production.INFO: count ==1371 [2024-12-19 21:39:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:39:05 - End Time 2024-12-19 21:39:05 [2024-12-19 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058285', 'tblTempUsageDetail_20' ) start [2024-12-19 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058285', 'tblTempUsageDetail_20' ) end [2024-12-19 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058285', 'tblTempVendorCDR_20' ) start [2024-12-19 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058285', 'tblTempVendorCDR_20' ) end [2024-12-19 21:39:17] Production.INFO: ProcessCDR(1,14058285,1,1,2) [2024-12-19 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058285', 'tblTempUsageDetail_20' ) start [2024-12-19 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058285', 'tblTempUsageDetail_20' ) end [2024-12-19 21:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:39:20] Production.INFO: ==30241== Releasing lock... [2024-12-19 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:39:20] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:40:05 [end_date_ymd] => 2024-12-19 21:40:05 [RateCDR] => 1 ) [2024-12-19 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:40:05' and `end` < '2024-12-19 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:40:17] Production.INFO: count ==1370 [2024-12-19 21:40:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:40:05 - End Time 2024-12-19 21:40:05 [2024-12-19 21:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058291', 'tblTempUsageDetail_20' ) start [2024-12-19 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058291', 'tblTempUsageDetail_20' ) end [2024-12-19 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058291', 'tblTempVendorCDR_20' ) start [2024-12-19 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058291', 'tblTempVendorCDR_20' ) end [2024-12-19 21:40:17] Production.INFO: ProcessCDR(1,14058291,1,1,2) [2024-12-19 21:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058291', 'tblTempUsageDetail_20' ) start [2024-12-19 21:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058291', 'tblTempUsageDetail_20' ) end [2024-12-19 21:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:40:20] Production.INFO: ==30337== Releasing lock... [2024-12-19 21:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:40:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-19 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:41:05 [end_date_ymd] => 2024-12-19 21:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:41:17] Production.INFO: count ==1388 [2024-12-19 21:41:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:41:05 - End Time 2024-12-19 21:41:05 [2024-12-19 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058296', 'tblTempUsageDetail_20' ) start [2024-12-19 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058296', 'tblTempUsageDetail_20' ) end [2024-12-19 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058296', 'tblTempVendorCDR_20' ) start [2024-12-19 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058296', 'tblTempVendorCDR_20' ) end [2024-12-19 21:41:17] Production.INFO: ProcessCDR(1,14058296,1,1,2) [2024-12-19 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058296', 'tblTempUsageDetail_20' ) start [2024-12-19 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058296', 'tblTempUsageDetail_20' ) end [2024-12-19 21:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:41:20] Production.INFO: ==30434== Releasing lock... [2024-12-19 21:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:41:20] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:42:04 [end_date_ymd] => 2024-12-19 21:42:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:42:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:42:16] Production.INFO: count ==1388 [2024-12-19 21:42:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:42:04 - End Time 2024-12-19 21:42:04 [2024-12-19 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058301', 'tblTempUsageDetail_20' ) start [2024-12-19 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058301', 'tblTempUsageDetail_20' ) end [2024-12-19 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058301', 'tblTempVendorCDR_20' ) start [2024-12-19 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058301', 'tblTempVendorCDR_20' ) end [2024-12-19 21:42:17] Production.INFO: ProcessCDR(1,14058301,1,1,2) [2024-12-19 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058301', 'tblTempUsageDetail_20' ) start [2024-12-19 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058301', 'tblTempUsageDetail_20' ) end [2024-12-19 21:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:42:20] Production.INFO: ==30524== Releasing lock... [2024-12-19 21:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:42:20] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:43:05 [end_date_ymd] => 2024-12-19 21:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:43:18] Production.INFO: count ==1391 [2024-12-19 21:43:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:43:05 - End Time 2024-12-19 21:43:05 [2024-12-19 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058306', 'tblTempUsageDetail_20' ) start [2024-12-19 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058306', 'tblTempUsageDetail_20' ) end [2024-12-19 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058306', 'tblTempVendorCDR_20' ) start [2024-12-19 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058306', 'tblTempVendorCDR_20' ) end [2024-12-19 21:43:18] Production.INFO: ProcessCDR(1,14058306,1,1,2) [2024-12-19 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058306', 'tblTempUsageDetail_20' ) start [2024-12-19 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058306', 'tblTempUsageDetail_20' ) end [2024-12-19 21:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:43:21] Production.INFO: ==30613== Releasing lock... [2024-12-19 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:43:21] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:44:05 [end_date_ymd] => 2024-12-19 21:44:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:44:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:44:17] Production.INFO: count ==1385 [2024-12-19 21:44:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:44:05 - End Time 2024-12-19 21:44:05 [2024-12-19 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058311', 'tblTempUsageDetail_20' ) start [2024-12-19 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058311', 'tblTempUsageDetail_20' ) end [2024-12-19 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058311', 'tblTempVendorCDR_20' ) start [2024-12-19 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058311', 'tblTempVendorCDR_20' ) end [2024-12-19 21:44:17] Production.INFO: ProcessCDR(1,14058311,1,1,2) [2024-12-19 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058311', 'tblTempUsageDetail_20' ) start [2024-12-19 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058311', 'tblTempUsageDetail_20' ) end [2024-12-19 21:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:44:22] Production.INFO: ==30709== Releasing lock... [2024-12-19 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:44:22] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:45:04 [end_date_ymd] => 2024-12-19 21:45:04 [RateCDR] => 1 ) [2024-12-19 21: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` >= '2024-12-19 18:45:04' and `end` < '2024-12-19 21: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 ,'') [2024-12-19 21:45:16] Production.INFO: count ==1378 [2024-12-19 21:45:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:45:04 - End Time 2024-12-19 21:45:04 [2024-12-19 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058316', 'tblTempUsageDetail_20' ) start [2024-12-19 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058316', 'tblTempUsageDetail_20' ) end [2024-12-19 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058316', 'tblTempVendorCDR_20' ) start [2024-12-19 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058316', 'tblTempVendorCDR_20' ) end [2024-12-19 21:45:17] Production.INFO: ProcessCDR(1,14058316,1,1,2) [2024-12-19 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058316', 'tblTempUsageDetail_20' ) start [2024-12-19 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058316', 'tblTempUsageDetail_20' ) end [2024-12-19 21:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:45:20] Production.INFO: ==30794== Releasing lock... [2024-12-19 21:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:45:20] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:46:05 [end_date_ymd] => 2024-12-19 21:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:46:18] Production.INFO: count ==1374 [2024-12-19 21:46:18] Production.ERROR: pbx CDR StartTime 2024-12-19 18:46:05 - End Time 2024-12-19 21:46:05 [2024-12-19 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058321', 'tblTempUsageDetail_20' ) start [2024-12-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058321', 'tblTempUsageDetail_20' ) end [2024-12-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058321', 'tblTempVendorCDR_20' ) start [2024-12-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058321', 'tblTempVendorCDR_20' ) end [2024-12-19 21:46:18] Production.INFO: ProcessCDR(1,14058321,1,1,2) [2024-12-19 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058321', 'tblTempUsageDetail_20' ) start [2024-12-19 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058321', 'tblTempUsageDetail_20' ) end [2024-12-19 21:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:46:21] Production.INFO: ==30889== Releasing lock... [2024-12-19 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:46:21] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:47:05 [end_date_ymd] => 2024-12-19 21:47:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:47:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:47:17] Production.INFO: count ==1374 [2024-12-19 21:47:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:47:05 - End Time 2024-12-19 21:47:05 [2024-12-19 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058326', 'tblTempUsageDetail_20' ) start [2024-12-19 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058326', 'tblTempUsageDetail_20' ) end [2024-12-19 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058326', 'tblTempVendorCDR_20' ) start [2024-12-19 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058326', 'tblTempVendorCDR_20' ) end [2024-12-19 21:47:17] Production.INFO: ProcessCDR(1,14058326,1,1,2) [2024-12-19 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058326', 'tblTempUsageDetail_20' ) start [2024-12-19 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058326', 'tblTempUsageDetail_20' ) end [2024-12-19 21:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:47:20] Production.INFO: ==31021== Releasing lock... [2024-12-19 21:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:47:20] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:48:05 [end_date_ymd] => 2024-12-19 21:48:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:48:17] Production.INFO: count ==1373 [2024-12-19 21:48:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:48:05 - End Time 2024-12-19 21:48:05 [2024-12-19 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058331', 'tblTempUsageDetail_20' ) start [2024-12-19 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058331', 'tblTempUsageDetail_20' ) end [2024-12-19 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058331', 'tblTempVendorCDR_20' ) start [2024-12-19 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058331', 'tblTempVendorCDR_20' ) end [2024-12-19 21:48:17] Production.INFO: ProcessCDR(1,14058331,1,1,2) [2024-12-19 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058331', 'tblTempUsageDetail_20' ) start [2024-12-19 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058331', 'tblTempUsageDetail_20' ) end [2024-12-19 21:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:48:20] Production.INFO: ==31107== Releasing lock... [2024-12-19 21:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:48:20] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:49:04 [end_date_ymd] => 2024-12-19 21:49:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:49:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:49:17] Production.INFO: count ==1373 [2024-12-19 21:49:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:49:04 - End Time 2024-12-19 21:49:04 [2024-12-19 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058336', 'tblTempUsageDetail_20' ) start [2024-12-19 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058336', 'tblTempUsageDetail_20' ) end [2024-12-19 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058336', 'tblTempVendorCDR_20' ) start [2024-12-19 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058336', 'tblTempVendorCDR_20' ) end [2024-12-19 21:49:17] Production.INFO: ProcessCDR(1,14058336,1,1,2) [2024-12-19 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058336', 'tblTempUsageDetail_20' ) start [2024-12-19 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058336', 'tblTempUsageDetail_20' ) end [2024-12-19 21:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:49:20] Production.INFO: ==31202== Releasing lock... [2024-12-19 21:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:49:20] Production.INFO: 38 MB #Memory Used# [2024-12-19 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:50:05 [end_date_ymd] => 2024-12-19 21:50:05 [RateCDR] => 1 ) [2024-12-19 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 18:50:05' and `end` < '2024-12-19 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 21:50:17] Production.INFO: count ==1372 [2024-12-19 21:50:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:50:05 - End Time 2024-12-19 21:50:05 [2024-12-19 21:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058342', 'tblTempUsageDetail_20' ) start [2024-12-19 21:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058342', 'tblTempUsageDetail_20' ) end [2024-12-19 21:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058342', 'tblTempVendorCDR_20' ) start [2024-12-19 21:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058342', 'tblTempVendorCDR_20' ) end [2024-12-19 21:50:17] Production.INFO: ProcessCDR(1,14058342,1,1,2) [2024-12-19 21:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058342', 'tblTempUsageDetail_20' ) start [2024-12-19 21:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058342', 'tblTempUsageDetail_20' ) end [2024-12-19 21:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:50:20] Production.INFO: ==31296== Releasing lock... [2024-12-19 21:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:50:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-19 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:51:05 [end_date_ymd] => 2024-12-19 21:51:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:51:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:51:17] Production.INFO: count ==1247 [2024-12-19 21:51:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:51:05 - End Time 2024-12-19 21:51:05 [2024-12-19 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058347', 'tblTempUsageDetail_20' ) start [2024-12-19 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058347', 'tblTempUsageDetail_20' ) end [2024-12-19 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058347', 'tblTempVendorCDR_20' ) start [2024-12-19 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058347', 'tblTempVendorCDR_20' ) end [2024-12-19 21:51:17] Production.INFO: ProcessCDR(1,14058347,1,1,2) [2024-12-19 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058347', 'tblTempUsageDetail_20' ) start [2024-12-19 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058347', 'tblTempUsageDetail_20' ) end [2024-12-19 21:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:51:20] Production.INFO: ==31395== Releasing lock... [2024-12-19 21:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:51:20] Production.INFO: 37 MB #Memory Used# [2024-12-19 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:52:05 [end_date_ymd] => 2024-12-19 21:52:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:52:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:52:16] Production.INFO: count ==1233 [2024-12-19 21:52:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:52:05 - End Time 2024-12-19 21:52:05 [2024-12-19 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058352', 'tblTempUsageDetail_20' ) start [2024-12-19 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058352', 'tblTempUsageDetail_20' ) end [2024-12-19 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058352', 'tblTempVendorCDR_20' ) start [2024-12-19 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058352', 'tblTempVendorCDR_20' ) end [2024-12-19 21:52:17] Production.INFO: ProcessCDR(1,14058352,1,1,2) [2024-12-19 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058352', 'tblTempUsageDetail_20' ) start [2024-12-19 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058352', 'tblTempUsageDetail_20' ) end [2024-12-19 21:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:52:20] Production.INFO: ==31485== Releasing lock... [2024-12-19 21:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:52:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-19 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:53:05 [end_date_ymd] => 2024-12-19 21:53:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:53:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:53:17] Production.INFO: count ==1230 [2024-12-19 21:53:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:53:05 - End Time 2024-12-19 21:53:05 [2024-12-19 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058357', 'tblTempUsageDetail_20' ) start [2024-12-19 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058357', 'tblTempUsageDetail_20' ) end [2024-12-19 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058357', 'tblTempVendorCDR_20' ) start [2024-12-19 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058357', 'tblTempVendorCDR_20' ) end [2024-12-19 21:53:17] Production.INFO: ProcessCDR(1,14058357,1,1,2) [2024-12-19 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058357', 'tblTempUsageDetail_20' ) start [2024-12-19 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058357', 'tblTempUsageDetail_20' ) end [2024-12-19 21:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:53:20] Production.INFO: ==31578== Releasing lock... [2024-12-19 21:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:53:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-19 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:54:04 [end_date_ymd] => 2024-12-19 21:54:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:54:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:54:16] Production.INFO: count ==1220 [2024-12-19 21:54:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:54:04 - End Time 2024-12-19 21:54:04 [2024-12-19 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058362', 'tblTempUsageDetail_20' ) start [2024-12-19 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058362', 'tblTempUsageDetail_20' ) end [2024-12-19 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058362', 'tblTempVendorCDR_20' ) start [2024-12-19 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058362', 'tblTempVendorCDR_20' ) end [2024-12-19 21:54:17] Production.INFO: ProcessCDR(1,14058362,1,1,2) [2024-12-19 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058362', 'tblTempUsageDetail_20' ) start [2024-12-19 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058362', 'tblTempUsageDetail_20' ) end [2024-12-19 21:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:54:21] Production.INFO: ==31660== Releasing lock... [2024-12-19 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:54:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-19 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:55:05 [end_date_ymd] => 2024-12-19 21:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:55:17] Production.INFO: count ==1218 [2024-12-19 21:55:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:55:05 - End Time 2024-12-19 21:55:05 [2024-12-19 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058367', 'tblTempUsageDetail_20' ) start [2024-12-19 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058367', 'tblTempUsageDetail_20' ) end [2024-12-19 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058367', 'tblTempVendorCDR_20' ) start [2024-12-19 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058367', 'tblTempVendorCDR_20' ) end [2024-12-19 21:55:17] Production.INFO: ProcessCDR(1,14058367,1,1,2) [2024-12-19 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058367', 'tblTempUsageDetail_20' ) start [2024-12-19 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058367', 'tblTempUsageDetail_20' ) end [2024-12-19 21:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:55:20] Production.INFO: ==31741== Releasing lock... [2024-12-19 21:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:55:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-19 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:56:05 [end_date_ymd] => 2024-12-19 21:56:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:56:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:56:17] Production.INFO: count ==1202 [2024-12-19 21:56:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:56:05 - End Time 2024-12-19 21:56:05 [2024-12-19 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058372', 'tblTempUsageDetail_20' ) start [2024-12-19 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058372', 'tblTempUsageDetail_20' ) end [2024-12-19 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058372', 'tblTempVendorCDR_20' ) start [2024-12-19 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058372', 'tblTempVendorCDR_20' ) end [2024-12-19 21:56:17] Production.INFO: ProcessCDR(1,14058372,1,1,2) [2024-12-19 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058372', 'tblTempUsageDetail_20' ) start [2024-12-19 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058372', 'tblTempUsageDetail_20' ) end [2024-12-19 21:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:56:20] Production.INFO: ==31832== Releasing lock... [2024-12-19 21:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:56:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-19 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:57:05 [end_date_ymd] => 2024-12-19 21:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:57:17] Production.INFO: count ==1200 [2024-12-19 21:57:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:57:05 - End Time 2024-12-19 21:57:05 [2024-12-19 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058377', 'tblTempUsageDetail_20' ) start [2024-12-19 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058377', 'tblTempUsageDetail_20' ) end [2024-12-19 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058377', 'tblTempVendorCDR_20' ) start [2024-12-19 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058377', 'tblTempVendorCDR_20' ) end [2024-12-19 21:57:17] Production.INFO: ProcessCDR(1,14058377,1,1,2) [2024-12-19 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058377', 'tblTempUsageDetail_20' ) start [2024-12-19 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058377', 'tblTempUsageDetail_20' ) end [2024-12-19 21:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:57:20] Production.INFO: ==31911== Releasing lock... [2024-12-19 21:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:57:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-19 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:58:05 [end_date_ymd] => 2024-12-19 21:58:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 18:58:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 21:58:17] Production.INFO: count ==1199 [2024-12-19 21:58:17] Production.ERROR: pbx CDR StartTime 2024-12-19 18:58:05 - End Time 2024-12-19 21:58:05 [2024-12-19 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058382', 'tblTempUsageDetail_20' ) start [2024-12-19 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058382', 'tblTempUsageDetail_20' ) end [2024-12-19 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058382', 'tblTempVendorCDR_20' ) start [2024-12-19 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058382', 'tblTempVendorCDR_20' ) end [2024-12-19 21:58:17] Production.INFO: ProcessCDR(1,14058382,1,1,2) [2024-12-19 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058382', 'tblTempUsageDetail_20' ) start [2024-12-19 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058382', 'tblTempUsageDetail_20' ) end [2024-12-19 21:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:58:20] Production.INFO: ==31985== Releasing lock... [2024-12-19 21:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:58:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-19 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 18:59:04 [end_date_ymd] => 2024-12-19 21:59:04 [RateCDR] => 1 ) [2024-12-19 21: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` >= '2024-12-19 18:59:04' and `end` < '2024-12-19 21: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 ,'') [2024-12-19 21:59:16] Production.INFO: count ==1200 [2024-12-19 21:59:16] Production.ERROR: pbx CDR StartTime 2024-12-19 18:59:04 - End Time 2024-12-19 21:59:04 [2024-12-19 21:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 21:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058387', 'tblTempUsageDetail_20' ) start [2024-12-19 21:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058387', 'tblTempUsageDetail_20' ) end [2024-12-19 21:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058387', 'tblTempVendorCDR_20' ) start [2024-12-19 21:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058387', 'tblTempVendorCDR_20' ) end [2024-12-19 21:59:16] Production.INFO: ProcessCDR(1,14058387,1,1,2) [2024-12-19 21:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 21:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058387', 'tblTempUsageDetail_20' ) start [2024-12-19 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058387', 'tblTempUsageDetail_20' ) end [2024-12-19 21:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 21:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 21:59:20] Production.INFO: ==32056== Releasing lock... [2024-12-19 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 21:59:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-19 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:00:06 [end_date_ymd] => 2024-12-19 22:00:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:00:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:00:17] Production.INFO: count ==1184 [2024-12-19 22:00:18] Production.ERROR: pbx CDR StartTime 2024-12-19 19:00:06 - End Time 2024-12-19 22:00:06 [2024-12-19 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058392', 'tblTempUsageDetail_20' ) start [2024-12-19 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058392', 'tblTempUsageDetail_20' ) end [2024-12-19 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058392', 'tblTempVendorCDR_20' ) start [2024-12-19 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058392', 'tblTempVendorCDR_20' ) end [2024-12-19 22:00:18] Production.INFO: ProcessCDR(1,14058392,1,1,2) [2024-12-19 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058392', 'tblTempUsageDetail_20' ) start [2024-12-19 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058392', 'tblTempUsageDetail_20' ) end [2024-12-19 22:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:00:21] Production.INFO: ==32137== Releasing lock... [2024-12-19 22:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:00:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-19 22:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:01:04 [end_date_ymd] => 2024-12-19 22:01:04 [RateCDR] => 1 ) [2024-12-19 22: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` >= '2024-12-19 19:01:04' and `end` < '2024-12-19 22: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 ,'') [2024-12-19 22:01:17] Production.INFO: count ==1131 [2024-12-19 22:01:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:01:04 - End Time 2024-12-19 22:01:04 [2024-12-19 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058398', 'tblTempUsageDetail_20' ) start [2024-12-19 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058398', 'tblTempUsageDetail_20' ) end [2024-12-19 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058398', 'tblTempVendorCDR_20' ) start [2024-12-19 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058398', 'tblTempVendorCDR_20' ) end [2024-12-19 22:01:17] Production.INFO: ProcessCDR(1,14058398,1,1,2) [2024-12-19 22:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058398', 'tblTempUsageDetail_20' ) start [2024-12-19 22:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058398', 'tblTempUsageDetail_20' ) end [2024-12-19 22:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:01:20] Production.INFO: ==32228== Releasing lock... [2024-12-19 22:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:01:20] Production.INFO: 36 MB #Memory Used# [2024-12-19 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:02:05 [end_date_ymd] => 2024-12-19 22:02:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:02:17] Production.INFO: count ==1130 [2024-12-19 22:02:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:02:05 - End Time 2024-12-19 22:02:05 [2024-12-19 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058403', 'tblTempUsageDetail_20' ) start [2024-12-19 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058403', 'tblTempUsageDetail_20' ) end [2024-12-19 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058403', 'tblTempVendorCDR_20' ) start [2024-12-19 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058403', 'tblTempVendorCDR_20' ) end [2024-12-19 22:02:17] Production.INFO: ProcessCDR(1,14058403,1,1,2) [2024-12-19 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058403', 'tblTempUsageDetail_20' ) start [2024-12-19 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058403', 'tblTempUsageDetail_20' ) end [2024-12-19 22:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:02:20] Production.INFO: ==32303== Releasing lock... [2024-12-19 22:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:02:20] Production.INFO: 36 MB #Memory Used# [2024-12-19 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:03:05 [end_date_ymd] => 2024-12-19 22:03:05 [RateCDR] => 1 ) [2024-12-19 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:03:05' and `end` < '2024-12-19 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:03:18] Production.INFO: count ==1130 [2024-12-19 22:03:18] Production.ERROR: pbx CDR StartTime 2024-12-19 19:03:05 - End Time 2024-12-19 22:03:05 [2024-12-19 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058408', 'tblTempUsageDetail_20' ) start [2024-12-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058408', 'tblTempUsageDetail_20' ) end [2024-12-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058408', 'tblTempVendorCDR_20' ) start [2024-12-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058408', 'tblTempVendorCDR_20' ) end [2024-12-19 22:03:18] Production.INFO: ProcessCDR(1,14058408,1,1,2) [2024-12-19 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058408', 'tblTempUsageDetail_20' ) start [2024-12-19 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058408', 'tblTempUsageDetail_20' ) end [2024-12-19 22:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:03:21] Production.INFO: ==32413== Releasing lock... [2024-12-19 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:03:21] Production.INFO: 36 MB #Memory Used# [2024-12-19 22:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:04:04 [end_date_ymd] => 2024-12-19 22:04:04 [RateCDR] => 1 ) [2024-12-19 22:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:04:04' and `end` < '2024-12-19 22:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:04:17] Production.INFO: count ==1109 [2024-12-19 22:04:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:04:04 - End Time 2024-12-19 22:04:04 [2024-12-19 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058413', 'tblTempUsageDetail_20' ) start [2024-12-19 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058413', 'tblTempUsageDetail_20' ) end [2024-12-19 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058413', 'tblTempVendorCDR_20' ) start [2024-12-19 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058413', 'tblTempVendorCDR_20' ) end [2024-12-19 22:04:17] Production.INFO: ProcessCDR(1,14058413,1,1,2) [2024-12-19 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058413', 'tblTempUsageDetail_20' ) start [2024-12-19 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058413', 'tblTempUsageDetail_20' ) end [2024-12-19 22:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:04:20] Production.INFO: ==32490== Releasing lock... [2024-12-19 22:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:04:20] Production.INFO: 36 MB #Memory Used# [2024-12-19 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:05:05 [end_date_ymd] => 2024-12-19 22:05:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:05:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:05:17] Production.INFO: count ==1094 [2024-12-19 22:05:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:05:05 - End Time 2024-12-19 22:05:05 [2024-12-19 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058418', 'tblTempUsageDetail_20' ) start [2024-12-19 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058418', 'tblTempUsageDetail_20' ) end [2024-12-19 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058418', 'tblTempVendorCDR_20' ) start [2024-12-19 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058418', 'tblTempVendorCDR_20' ) end [2024-12-19 22:05:17] Production.INFO: ProcessCDR(1,14058418,1,1,2) [2024-12-19 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058418', 'tblTempUsageDetail_20' ) start [2024-12-19 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058418', 'tblTempUsageDetail_20' ) end [2024-12-19 22:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:05:20] Production.INFO: ==32565== Releasing lock... [2024-12-19 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:05:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-19 22:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:06:04 [end_date_ymd] => 2024-12-19 22:06:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:06:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:06:16] Production.INFO: count ==1091 [2024-12-19 22:06:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:06:04 - End Time 2024-12-19 22:06:04 [2024-12-19 22:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058423', 'tblTempUsageDetail_20' ) start [2024-12-19 22:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058423', 'tblTempUsageDetail_20' ) end [2024-12-19 22:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058423', 'tblTempVendorCDR_20' ) start [2024-12-19 22:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058423', 'tblTempVendorCDR_20' ) end [2024-12-19 22:06:16] Production.INFO: ProcessCDR(1,14058423,1,1,2) [2024-12-19 22:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058423', 'tblTempUsageDetail_20' ) start [2024-12-19 22:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058423', 'tblTempUsageDetail_20' ) end [2024-12-19 22:06:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:06:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:06:19] Production.INFO: ==32644== Releasing lock... [2024-12-19 22:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:06:19] Production.INFO: 35.75 MB #Memory Used# [2024-12-19 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:07:05 [end_date_ymd] => 2024-12-19 22:07:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:07:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:07:18] Production.INFO: count ==1091 [2024-12-19 22:07:18] Production.ERROR: pbx CDR StartTime 2024-12-19 19:07:05 - End Time 2024-12-19 22:07:05 [2024-12-19 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058428', 'tblTempUsageDetail_20' ) start [2024-12-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058428', 'tblTempUsageDetail_20' ) end [2024-12-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058428', 'tblTempVendorCDR_20' ) start [2024-12-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058428', 'tblTempVendorCDR_20' ) end [2024-12-19 22:07:18] Production.INFO: ProcessCDR(1,14058428,1,1,2) [2024-12-19 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058428', 'tblTempUsageDetail_20' ) start [2024-12-19 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058428', 'tblTempUsageDetail_20' ) end [2024-12-19 22:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:07:21] Production.INFO: ==32721== Releasing lock... [2024-12-19 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:07:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-19 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:08:04 [end_date_ymd] => 2024-12-19 22:08:04 [RateCDR] => 1 ) [2024-12-19 22:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:08:04' and `end` < '2024-12-19 22: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 ,'') [2024-12-19 22:08:16] Production.INFO: count ==1089 [2024-12-19 22:08:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:08:04 - End Time 2024-12-19 22:08:04 [2024-12-19 22:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058433', 'tblTempUsageDetail_20' ) start [2024-12-19 22:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058433', 'tblTempUsageDetail_20' ) end [2024-12-19 22:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058433', 'tblTempVendorCDR_20' ) start [2024-12-19 22:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058433', 'tblTempVendorCDR_20' ) end [2024-12-19 22:08:16] Production.INFO: ProcessCDR(1,14058433,1,1,2) [2024-12-19 22:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058433', 'tblTempUsageDetail_20' ) start [2024-12-19 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058433', 'tblTempUsageDetail_20' ) end [2024-12-19 22:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:08:20] Production.INFO: ==334== Releasing lock... [2024-12-19 22:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:08:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-19 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:09:05 [end_date_ymd] => 2024-12-19 22:09:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:09:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:09:17] Production.INFO: count ==1086 [2024-12-19 22:09:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:09:05 - End Time 2024-12-19 22:09:05 [2024-12-19 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058438', 'tblTempUsageDetail_20' ) start [2024-12-19 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058438', 'tblTempUsageDetail_20' ) end [2024-12-19 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058438', 'tblTempVendorCDR_20' ) start [2024-12-19 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058438', 'tblTempVendorCDR_20' ) end [2024-12-19 22:09:17] Production.INFO: ProcessCDR(1,14058438,1,1,2) [2024-12-19 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058438', 'tblTempUsageDetail_20' ) start [2024-12-19 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058438', 'tblTempUsageDetail_20' ) end [2024-12-19 22:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:09:20] Production.INFO: ==420== Releasing lock... [2024-12-19 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:09:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-19 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:10:05 [end_date_ymd] => 2024-12-19 22:10:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:10:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:10:17] Production.INFO: count ==1086 [2024-12-19 22:10:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:10:05 - End Time 2024-12-19 22:10:05 [2024-12-19 22:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058444', 'tblTempUsageDetail_20' ) start [2024-12-19 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058444', 'tblTempUsageDetail_20' ) end [2024-12-19 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058444', 'tblTempVendorCDR_20' ) start [2024-12-19 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058444', 'tblTempVendorCDR_20' ) end [2024-12-19 22:10:17] Production.INFO: ProcessCDR(1,14058444,1,1,2) [2024-12-19 22:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058444', 'tblTempUsageDetail_20' ) start [2024-12-19 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058444', 'tblTempUsageDetail_20' ) end [2024-12-19 22:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:10:22] Production.INFO: ==497== Releasing lock... [2024-12-19 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:10:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-19 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:11:05 [end_date_ymd] => 2024-12-19 22:11:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:11:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:11:17] Production.INFO: count ==1042 [2024-12-19 22:11:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:11:05 - End Time 2024-12-19 22:11:05 [2024-12-19 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058449', 'tblTempUsageDetail_20' ) start [2024-12-19 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058449', 'tblTempUsageDetail_20' ) end [2024-12-19 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058449', 'tblTempVendorCDR_20' ) start [2024-12-19 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058449', 'tblTempVendorCDR_20' ) end [2024-12-19 22:11:17] Production.INFO: ProcessCDR(1,14058449,1,1,2) [2024-12-19 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058449', 'tblTempUsageDetail_20' ) start [2024-12-19 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058449', 'tblTempUsageDetail_20' ) end [2024-12-19 22:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:11:20] Production.INFO: ==570== Releasing lock... [2024-12-19 22:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:11:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-19 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:12:05 [end_date_ymd] => 2024-12-19 22:12:05 [RateCDR] => 1 ) [2024-12-19 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:12:05' and `end` < '2024-12-19 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:12:17] Production.INFO: count ==1042 [2024-12-19 22:12:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:12:05 - End Time 2024-12-19 22:12:05 [2024-12-19 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058454', 'tblTempUsageDetail_20' ) start [2024-12-19 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058454', 'tblTempUsageDetail_20' ) end [2024-12-19 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058454', 'tblTempVendorCDR_20' ) start [2024-12-19 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058454', 'tblTempVendorCDR_20' ) end [2024-12-19 22:12:17] Production.INFO: ProcessCDR(1,14058454,1,1,2) [2024-12-19 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058454', 'tblTempUsageDetail_20' ) start [2024-12-19 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058454', 'tblTempUsageDetail_20' ) end [2024-12-19 22:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:12:21] Production.INFO: ==651== Releasing lock... [2024-12-19 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:12:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-19 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:13:04 [end_date_ymd] => 2024-12-19 22:13:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:13:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:13:17] Production.INFO: count ==1042 [2024-12-19 22:13:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:13:04 - End Time 2024-12-19 22:13:04 [2024-12-19 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058459', 'tblTempUsageDetail_20' ) start [2024-12-19 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058459', 'tblTempUsageDetail_20' ) end [2024-12-19 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058459', 'tblTempVendorCDR_20' ) start [2024-12-19 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058459', 'tblTempVendorCDR_20' ) end [2024-12-19 22:13:17] Production.INFO: ProcessCDR(1,14058459,1,1,2) [2024-12-19 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058459', 'tblTempUsageDetail_20' ) start [2024-12-19 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058459', 'tblTempUsageDetail_20' ) end [2024-12-19 22:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:13:20] Production.INFO: ==754== Releasing lock... [2024-12-19 22:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:13:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-19 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:14:05 [end_date_ymd] => 2024-12-19 22:14:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:14:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:14:17] Production.INFO: count ==1044 [2024-12-19 22:14:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:14:05 - End Time 2024-12-19 22:14:05 [2024-12-19 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058464', 'tblTempUsageDetail_20' ) start [2024-12-19 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058464', 'tblTempUsageDetail_20' ) end [2024-12-19 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058464', 'tblTempVendorCDR_20' ) start [2024-12-19 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058464', 'tblTempVendorCDR_20' ) end [2024-12-19 22:14:17] Production.INFO: ProcessCDR(1,14058464,1,1,2) [2024-12-19 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058464', 'tblTempUsageDetail_20' ) start [2024-12-19 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058464', 'tblTempUsageDetail_20' ) end [2024-12-19 22:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:14:21] Production.INFO: ==824== Releasing lock... [2024-12-19 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:14:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-19 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:15:05 [end_date_ymd] => 2024-12-19 22:15:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:15:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:15:17] Production.INFO: count ==1042 [2024-12-19 22:15:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:15:05 - End Time 2024-12-19 22:15:05 [2024-12-19 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058469', 'tblTempUsageDetail_20' ) start [2024-12-19 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058469', 'tblTempUsageDetail_20' ) end [2024-12-19 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058469', 'tblTempVendorCDR_20' ) start [2024-12-19 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058469', 'tblTempVendorCDR_20' ) end [2024-12-19 22:15:17] Production.INFO: ProcessCDR(1,14058469,1,1,2) [2024-12-19 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058469', 'tblTempUsageDetail_20' ) start [2024-12-19 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058469', 'tblTempUsageDetail_20' ) end [2024-12-19 22:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:15:20] Production.INFO: ==898== Releasing lock... [2024-12-19 22:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:15:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-19 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:16:05 [end_date_ymd] => 2024-12-19 22:16:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:16:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:16:17] Production.INFO: count ==1037 [2024-12-19 22:16:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:16:05 - End Time 2024-12-19 22:16:05 [2024-12-19 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058474', 'tblTempUsageDetail_20' ) start [2024-12-19 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058474', 'tblTempUsageDetail_20' ) end [2024-12-19 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058474', 'tblTempVendorCDR_20' ) start [2024-12-19 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058474', 'tblTempVendorCDR_20' ) end [2024-12-19 22:16:17] Production.INFO: ProcessCDR(1,14058474,1,1,2) [2024-12-19 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058474', 'tblTempUsageDetail_20' ) start [2024-12-19 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058474', 'tblTempUsageDetail_20' ) end [2024-12-19 22:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:16:20] Production.INFO: ==971== Releasing lock... [2024-12-19 22:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:16:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-19 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:17:05 [end_date_ymd] => 2024-12-19 22:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:17:17] Production.INFO: count ==1034 [2024-12-19 22:17:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:17:05 - End Time 2024-12-19 22:17:05 [2024-12-19 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058479', 'tblTempUsageDetail_20' ) start [2024-12-19 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058479', 'tblTempUsageDetail_20' ) end [2024-12-19 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058479', 'tblTempVendorCDR_20' ) start [2024-12-19 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058479', 'tblTempVendorCDR_20' ) end [2024-12-19 22:17:17] Production.INFO: ProcessCDR(1,14058479,1,1,2) [2024-12-19 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058479', 'tblTempUsageDetail_20' ) start [2024-12-19 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058479', 'tblTempUsageDetail_20' ) end [2024-12-19 22:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:17:20] Production.INFO: ==1040== Releasing lock... [2024-12-19 22:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:17:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-19 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:18:05 [end_date_ymd] => 2024-12-19 22:18:05 [RateCDR] => 1 ) [2024-12-19 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:18:05' and `end` < '2024-12-19 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:18:16] Production.INFO: count ==1027 [2024-12-19 22:18:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:18:05 - End Time 2024-12-19 22:18:05 [2024-12-19 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058484', 'tblTempUsageDetail_20' ) start [2024-12-19 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058484', 'tblTempUsageDetail_20' ) end [2024-12-19 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058484', 'tblTempVendorCDR_20' ) start [2024-12-19 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058484', 'tblTempVendorCDR_20' ) end [2024-12-19 22:18:17] Production.INFO: ProcessCDR(1,14058484,1,1,2) [2024-12-19 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058484', 'tblTempUsageDetail_20' ) start [2024-12-19 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058484', 'tblTempUsageDetail_20' ) end [2024-12-19 22:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:18:20] Production.INFO: ==1115== Releasing lock... [2024-12-19 22:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:18:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-19 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:19:05 [end_date_ymd] => 2024-12-19 22:19:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:19:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:19:17] Production.INFO: count ==1025 [2024-12-19 22:19:18] Production.ERROR: pbx CDR StartTime 2024-12-19 19:19:05 - End Time 2024-12-19 22:19:05 [2024-12-19 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058489', 'tblTempUsageDetail_20' ) start [2024-12-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058489', 'tblTempUsageDetail_20' ) end [2024-12-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058489', 'tblTempVendorCDR_20' ) start [2024-12-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058489', 'tblTempVendorCDR_20' ) end [2024-12-19 22:19:18] Production.INFO: ProcessCDR(1,14058489,1,1,2) [2024-12-19 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058489', 'tblTempUsageDetail_20' ) start [2024-12-19 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058489', 'tblTempUsageDetail_20' ) end [2024-12-19 22:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:19:21] Production.INFO: ==1231== Releasing lock... [2024-12-19 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:19:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-19 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:20:05 [end_date_ymd] => 2024-12-19 22:20:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:20:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:20:17] Production.INFO: count ==1015 [2024-12-19 22:20:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:20:05 - End Time 2024-12-19 22:20:05 [2024-12-19 22:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058495', 'tblTempUsageDetail_20' ) start [2024-12-19 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058495', 'tblTempUsageDetail_20' ) end [2024-12-19 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058495', 'tblTempVendorCDR_20' ) start [2024-12-19 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058495', 'tblTempVendorCDR_20' ) end [2024-12-19 22:20:17] Production.INFO: ProcessCDR(1,14058495,1,1,2) [2024-12-19 22:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058495', 'tblTempUsageDetail_20' ) start [2024-12-19 22:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058495', 'tblTempUsageDetail_20' ) end [2024-12-19 22:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:20:20] Production.INFO: ==1319== Releasing lock... [2024-12-19 22:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:20:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-19 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:21:04 [end_date_ymd] => 2024-12-19 22:21:04 [RateCDR] => 1 ) [2024-12-19 22: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` >= '2024-12-19 19:21:04' and `end` < '2024-12-19 22: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 ,'') [2024-12-19 22:21:17] Production.INFO: count ==988 [2024-12-19 22:21:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:21:04 - End Time 2024-12-19 22:21:04 [2024-12-19 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058500', 'tblTempUsageDetail_20' ) start [2024-12-19 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058500', 'tblTempUsageDetail_20' ) end [2024-12-19 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058500', 'tblTempVendorCDR_20' ) start [2024-12-19 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058500', 'tblTempVendorCDR_20' ) end [2024-12-19 22:21:17] Production.INFO: ProcessCDR(1,14058500,1,1,2) [2024-12-19 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058500', 'tblTempUsageDetail_20' ) start [2024-12-19 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058500', 'tblTempUsageDetail_20' ) end [2024-12-19 22:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:21:20] Production.INFO: ==1400== Releasing lock... [2024-12-19 22:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:21:20] Production.INFO: 35 MB #Memory Used# [2024-12-19 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:22:05 [end_date_ymd] => 2024-12-19 22:22:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:22:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:22:17] Production.INFO: count ==987 [2024-12-19 22:22:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:22:05 - End Time 2024-12-19 22:22:05 [2024-12-19 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058505', 'tblTempUsageDetail_20' ) start [2024-12-19 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058505', 'tblTempUsageDetail_20' ) end [2024-12-19 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058505', 'tblTempVendorCDR_20' ) start [2024-12-19 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058505', 'tblTempVendorCDR_20' ) end [2024-12-19 22:22:17] Production.INFO: ProcessCDR(1,14058505,1,1,2) [2024-12-19 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058505', 'tblTempUsageDetail_20' ) start [2024-12-19 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058505', 'tblTempUsageDetail_20' ) end [2024-12-19 22:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:22:20] Production.INFO: ==1473== Releasing lock... [2024-12-19 22:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:22:20] Production.INFO: 35 MB #Memory Used# [2024-12-19 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:23:05 [end_date_ymd] => 2024-12-19 22:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:23:17] Production.INFO: count ==986 [2024-12-19 22:23:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:23:05 - End Time 2024-12-19 22:23:05 [2024-12-19 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058510', 'tblTempUsageDetail_20' ) start [2024-12-19 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058510', 'tblTempUsageDetail_20' ) end [2024-12-19 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058510', 'tblTempVendorCDR_20' ) start [2024-12-19 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058510', 'tblTempVendorCDR_20' ) end [2024-12-19 22:23:17] Production.INFO: ProcessCDR(1,14058510,1,1,2) [2024-12-19 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058510', 'tblTempUsageDetail_20' ) start [2024-12-19 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058510', 'tblTempUsageDetail_20' ) end [2024-12-19 22:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:23:20] Production.INFO: ==1583== Releasing lock... [2024-12-19 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:23:20] Production.INFO: 35 MB #Memory Used# [2024-12-19 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:24:05 [end_date_ymd] => 2024-12-19 22:24:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:24:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:24:18] Production.INFO: count ==982 [2024-12-19 22:24:18] Production.ERROR: pbx CDR StartTime 2024-12-19 19:24:05 - End Time 2024-12-19 22:24:05 [2024-12-19 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058515', 'tblTempUsageDetail_20' ) start [2024-12-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058515', 'tblTempUsageDetail_20' ) end [2024-12-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058515', 'tblTempVendorCDR_20' ) start [2024-12-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058515', 'tblTempVendorCDR_20' ) end [2024-12-19 22:24:18] Production.INFO: ProcessCDR(1,14058515,1,1,2) [2024-12-19 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058515', 'tblTempUsageDetail_20' ) start [2024-12-19 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058515', 'tblTempUsageDetail_20' ) end [2024-12-19 22:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:24:21] Production.INFO: ==1657== Releasing lock... [2024-12-19 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:24:21] Production.INFO: 35 MB #Memory Used# [2024-12-19 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:25:04 [end_date_ymd] => 2024-12-19 22:25:04 [RateCDR] => 1 ) [2024-12-19 22:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:25:04' and `end` < '2024-12-19 22:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:25:16] Production.INFO: count ==981 [2024-12-19 22:25:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:25:04 - End Time 2024-12-19 22:25:04 [2024-12-19 22:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058520', 'tblTempUsageDetail_20' ) start [2024-12-19 22:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058520', 'tblTempUsageDetail_20' ) end [2024-12-19 22:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058520', 'tblTempVendorCDR_20' ) start [2024-12-19 22:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058520', 'tblTempVendorCDR_20' ) end [2024-12-19 22:25:16] Production.INFO: ProcessCDR(1,14058520,1,1,2) [2024-12-19 22:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058520', 'tblTempUsageDetail_20' ) start [2024-12-19 22:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058520', 'tblTempUsageDetail_20' ) end [2024-12-19 22:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:25:19] Production.INFO: ==1726== Releasing lock... [2024-12-19 22:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:25:19] Production.INFO: 35 MB #Memory Used# [2024-12-19 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:26:05 [end_date_ymd] => 2024-12-19 22:26:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:26:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:26:18] Production.INFO: count ==978 [2024-12-19 22:26:18] Production.ERROR: pbx CDR StartTime 2024-12-19 19:26:05 - End Time 2024-12-19 22:26:05 [2024-12-19 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058525', 'tblTempUsageDetail_20' ) start [2024-12-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058525', 'tblTempUsageDetail_20' ) end [2024-12-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058525', 'tblTempVendorCDR_20' ) start [2024-12-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058525', 'tblTempVendorCDR_20' ) end [2024-12-19 22:26:18] Production.INFO: ProcessCDR(1,14058525,1,1,2) [2024-12-19 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058525', 'tblTempUsageDetail_20' ) start [2024-12-19 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058525', 'tblTempUsageDetail_20' ) end [2024-12-19 22:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:26:21] Production.INFO: ==1799== Releasing lock... [2024-12-19 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:26:21] Production.INFO: 35 MB #Memory Used# [2024-12-19 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:27:05 [end_date_ymd] => 2024-12-19 22:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:27:17] Production.INFO: count ==978 [2024-12-19 22:27:18] Production.ERROR: pbx CDR StartTime 2024-12-19 19:27:05 - End Time 2024-12-19 22:27:05 [2024-12-19 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058530', 'tblTempUsageDetail_20' ) start [2024-12-19 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058530', 'tblTempUsageDetail_20' ) end [2024-12-19 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058530', 'tblTempVendorCDR_20' ) start [2024-12-19 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058530', 'tblTempVendorCDR_20' ) end [2024-12-19 22:27:18] Production.INFO: ProcessCDR(1,14058530,1,1,2) [2024-12-19 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058530', 'tblTempUsageDetail_20' ) start [2024-12-19 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058530', 'tblTempUsageDetail_20' ) end [2024-12-19 22:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:27:21] Production.INFO: ==1875== Releasing lock... [2024-12-19 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:27:21] Production.INFO: 35 MB #Memory Used# [2024-12-19 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:28:04 [end_date_ymd] => 2024-12-19 22:28:04 [RateCDR] => 1 ) [2024-12-19 22:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:28:04' and `end` < '2024-12-19 22:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:28:16] Production.INFO: count ==976 [2024-12-19 22:28:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:28:04 - End Time 2024-12-19 22:28:04 [2024-12-19 22:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058535', 'tblTempUsageDetail_20' ) start [2024-12-19 22:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058535', 'tblTempUsageDetail_20' ) end [2024-12-19 22:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058535', 'tblTempVendorCDR_20' ) start [2024-12-19 22:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058535', 'tblTempVendorCDR_20' ) end [2024-12-19 22:28:16] Production.INFO: ProcessCDR(1,14058535,1,1,2) [2024-12-19 22:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058535', 'tblTempUsageDetail_20' ) start [2024-12-19 22:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058535', 'tblTempUsageDetail_20' ) end [2024-12-19 22:28:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:28:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:28:19] Production.INFO: ==1944== Releasing lock... [2024-12-19 22:28:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:28:19] Production.INFO: 35 MB #Memory Used# [2024-12-19 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:29:04 [end_date_ymd] => 2024-12-19 22:29:04 [RateCDR] => 1 ) [2024-12-19 22:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:29:04' and `end` < '2024-12-19 22:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:29:16] Production.INFO: count ==972 [2024-12-19 22:29:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:29:04 - End Time 2024-12-19 22:29:04 [2024-12-19 22:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058540', 'tblTempUsageDetail_20' ) start [2024-12-19 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058540', 'tblTempUsageDetail_20' ) end [2024-12-19 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058540', 'tblTempVendorCDR_20' ) start [2024-12-19 22:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058540', 'tblTempVendorCDR_20' ) end [2024-12-19 22:29:16] Production.INFO: ProcessCDR(1,14058540,1,1,2) [2024-12-19 22:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058540', 'tblTempUsageDetail_20' ) start [2024-12-19 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058540', 'tblTempUsageDetail_20' ) end [2024-12-19 22:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:29:20] Production.INFO: ==2021== Releasing lock... [2024-12-19 22:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:29:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-19 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:30:06 [end_date_ymd] => 2024-12-19 22:30:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:30:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:30:18] Production.INFO: count ==967 [2024-12-19 22:30:18] Production.ERROR: pbx CDR StartTime 2024-12-19 19:30:06 - End Time 2024-12-19 22:30:06 [2024-12-19 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058545', 'tblTempUsageDetail_20' ) start [2024-12-19 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058545', 'tblTempUsageDetail_20' ) end [2024-12-19 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058545', 'tblTempVendorCDR_20' ) start [2024-12-19 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058545', 'tblTempVendorCDR_20' ) end [2024-12-19 22:30:18] Production.INFO: ProcessCDR(1,14058545,1,1,2) [2024-12-19 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058545', 'tblTempUsageDetail_20' ) start [2024-12-19 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058545', 'tblTempUsageDetail_20' ) end [2024-12-19 22:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:30:21] Production.INFO: ==2095== Releasing lock... [2024-12-19 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:30:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-19 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:31:04 [end_date_ymd] => 2024-12-19 22:31:04 [RateCDR] => 1 ) [2024-12-19 22:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:31:04' and `end` < '2024-12-19 22:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:31:16] Production.INFO: count ==924 [2024-12-19 22:31:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:31:04 - End Time 2024-12-19 22:31:04 [2024-12-19 22:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058551', 'tblTempUsageDetail_20' ) start [2024-12-19 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058551', 'tblTempUsageDetail_20' ) end [2024-12-19 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058551', 'tblTempVendorCDR_20' ) start [2024-12-19 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058551', 'tblTempVendorCDR_20' ) end [2024-12-19 22:31:16] Production.INFO: ProcessCDR(1,14058551,1,1,2) [2024-12-19 22:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058551', 'tblTempUsageDetail_20' ) start [2024-12-19 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058551', 'tblTempUsageDetail_20' ) end [2024-12-19 22:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:31:20] Production.INFO: ==2169== Releasing lock... [2024-12-19 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:31:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-19 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:32:05 [end_date_ymd] => 2024-12-19 22:32:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:32:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:32:17] Production.INFO: count ==921 [2024-12-19 22:32:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:32:05 - End Time 2024-12-19 22:32:05 [2024-12-19 22:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058556', 'tblTempUsageDetail_20' ) start [2024-12-19 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058556', 'tblTempUsageDetail_20' ) end [2024-12-19 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058556', 'tblTempVendorCDR_20' ) start [2024-12-19 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058556', 'tblTempVendorCDR_20' ) end [2024-12-19 22:32:17] Production.INFO: ProcessCDR(1,14058556,1,1,2) [2024-12-19 22:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058556', 'tblTempUsageDetail_20' ) start [2024-12-19 22:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058556', 'tblTempUsageDetail_20' ) end [2024-12-19 22:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:32:20] Production.INFO: ==2244== Releasing lock... [2024-12-19 22:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:32:20] Production.INFO: 34 MB #Memory Used# [2024-12-19 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:33:05 [end_date_ymd] => 2024-12-19 22:33:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:33:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:33:16] Production.INFO: count ==921 [2024-12-19 22:33:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:33:05 - End Time 2024-12-19 22:33:05 [2024-12-19 22:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058561', 'tblTempUsageDetail_20' ) start [2024-12-19 22:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058561', 'tblTempUsageDetail_20' ) end [2024-12-19 22:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058561', 'tblTempVendorCDR_20' ) start [2024-12-19 22:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058561', 'tblTempVendorCDR_20' ) end [2024-12-19 22:33:16] Production.INFO: ProcessCDR(1,14058561,1,1,2) [2024-12-19 22:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058561', 'tblTempUsageDetail_20' ) start [2024-12-19 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058561', 'tblTempUsageDetail_20' ) end [2024-12-19 22:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:33:20] Production.INFO: ==2316== Releasing lock... [2024-12-19 22:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:33:20] Production.INFO: 34 MB #Memory Used# [2024-12-19 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:34:05 [end_date_ymd] => 2024-12-19 22:34:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:34:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:34:17] Production.INFO: count ==921 [2024-12-19 22:34:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:34:05 - End Time 2024-12-19 22:34:05 [2024-12-19 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058566', 'tblTempUsageDetail_20' ) start [2024-12-19 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058566', 'tblTempUsageDetail_20' ) end [2024-12-19 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058566', 'tblTempVendorCDR_20' ) start [2024-12-19 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058566', 'tblTempVendorCDR_20' ) end [2024-12-19 22:34:17] Production.INFO: ProcessCDR(1,14058566,1,1,2) [2024-12-19 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058566', 'tblTempUsageDetail_20' ) start [2024-12-19 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058566', 'tblTempUsageDetail_20' ) end [2024-12-19 22:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:34:20] Production.INFO: ==2426== Releasing lock... [2024-12-19 22:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:34:20] Production.INFO: 34 MB #Memory Used# [2024-12-19 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:35:05 [end_date_ymd] => 2024-12-19 22:35:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:35:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:35:17] Production.INFO: count ==916 [2024-12-19 22:35:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:35:05 - End Time 2024-12-19 22:35:05 [2024-12-19 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058571', 'tblTempUsageDetail_20' ) start [2024-12-19 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058571', 'tblTempUsageDetail_20' ) end [2024-12-19 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058571', 'tblTempVendorCDR_20' ) start [2024-12-19 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058571', 'tblTempVendorCDR_20' ) end [2024-12-19 22:35:17] Production.INFO: ProcessCDR(1,14058571,1,1,2) [2024-12-19 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058571', 'tblTempUsageDetail_20' ) start [2024-12-19 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058571', 'tblTempUsageDetail_20' ) end [2024-12-19 22:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:35:20] Production.INFO: ==2498== Releasing lock... [2024-12-19 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:35:20] Production.INFO: 34 MB #Memory Used# [2024-12-19 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:36:05 [end_date_ymd] => 2024-12-19 22:36:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:36:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:36:17] Production.INFO: count ==914 [2024-12-19 22:36:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:36:05 - End Time 2024-12-19 22:36:05 [2024-12-19 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058576', 'tblTempUsageDetail_20' ) start [2024-12-19 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058576', 'tblTempUsageDetail_20' ) end [2024-12-19 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058576', 'tblTempVendorCDR_20' ) start [2024-12-19 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058576', 'tblTempVendorCDR_20' ) end [2024-12-19 22:36:17] Production.INFO: ProcessCDR(1,14058576,1,1,2) [2024-12-19 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058576', 'tblTempUsageDetail_20' ) start [2024-12-19 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058576', 'tblTempUsageDetail_20' ) end [2024-12-19 22:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:36:20] Production.INFO: ==2571== Releasing lock... [2024-12-19 22:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:36:20] Production.INFO: 34 MB #Memory Used# [2024-12-19 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:37:04 [end_date_ymd] => 2024-12-19 22:37:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:37:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:37:16] Production.INFO: count ==910 [2024-12-19 22:37:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:37:04 - End Time 2024-12-19 22:37:04 [2024-12-19 22:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058581', 'tblTempUsageDetail_20' ) start [2024-12-19 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058581', 'tblTempUsageDetail_20' ) end [2024-12-19 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058581', 'tblTempVendorCDR_20' ) start [2024-12-19 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058581', 'tblTempVendorCDR_20' ) end [2024-12-19 22:37:16] Production.INFO: ProcessCDR(1,14058581,1,1,2) [2024-12-19 22:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058581', 'tblTempUsageDetail_20' ) start [2024-12-19 22:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058581', 'tblTempUsageDetail_20' ) end [2024-12-19 22:37:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:37:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:37:19] Production.INFO: ==2650== Releasing lock... [2024-12-19 22:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:37:19] Production.INFO: 34 MB #Memory Used# [2024-12-19 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:38:04 [end_date_ymd] => 2024-12-19 22:38:04 [RateCDR] => 1 ) [2024-12-19 22: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` >= '2024-12-19 19:38:04' and `end` < '2024-12-19 22: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 ,'') [2024-12-19 22:38:16] Production.INFO: count ==908 [2024-12-19 22:38:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:38:04 - End Time 2024-12-19 22:38:04 [2024-12-19 22:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058586', 'tblTempUsageDetail_20' ) start [2024-12-19 22:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058586', 'tblTempUsageDetail_20' ) end [2024-12-19 22:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058586', 'tblTempVendorCDR_20' ) start [2024-12-19 22:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058586', 'tblTempVendorCDR_20' ) end [2024-12-19 22:38:16] Production.INFO: ProcessCDR(1,14058586,1,1,2) [2024-12-19 22:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058586', 'tblTempUsageDetail_20' ) start [2024-12-19 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058586', 'tblTempUsageDetail_20' ) end [2024-12-19 22:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:38:20] Production.INFO: ==2723== Releasing lock... [2024-12-19 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:38:20] Production.INFO: 34 MB #Memory Used# [2024-12-19 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:39:05 [end_date_ymd] => 2024-12-19 22:39:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:39:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:39:17] Production.INFO: count ==907 [2024-12-19 22:39:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:39:05 - End Time 2024-12-19 22:39:05 [2024-12-19 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058591', 'tblTempUsageDetail_20' ) start [2024-12-19 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058591', 'tblTempUsageDetail_20' ) end [2024-12-19 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058591', 'tblTempVendorCDR_20' ) start [2024-12-19 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058591', 'tblTempVendorCDR_20' ) end [2024-12-19 22:39:18] Production.INFO: ProcessCDR(1,14058591,1,1,2) [2024-12-19 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058591', 'tblTempUsageDetail_20' ) start [2024-12-19 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058591', 'tblTempUsageDetail_20' ) end [2024-12-19 22:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:39:22] Production.INFO: ==2797== Releasing lock... [2024-12-19 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:39:22] Production.INFO: 34 MB #Memory Used# [2024-12-19 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:40:05 [end_date_ymd] => 2024-12-19 22:40:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:40:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:40:17] Production.INFO: count ==907 [2024-12-19 22:40:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:40:05 - End Time 2024-12-19 22:40:05 [2024-12-19 22:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058597', 'tblTempUsageDetail_20' ) start [2024-12-19 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058597', 'tblTempUsageDetail_20' ) end [2024-12-19 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058597', 'tblTempVendorCDR_20' ) start [2024-12-19 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058597', 'tblTempVendorCDR_20' ) end [2024-12-19 22:40:17] Production.INFO: ProcessCDR(1,14058597,1,1,2) [2024-12-19 22:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058597', 'tblTempUsageDetail_20' ) start [2024-12-19 22:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058597', 'tblTempUsageDetail_20' ) end [2024-12-19 22:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:40:20] Production.INFO: ==2869== Releasing lock... [2024-12-19 22:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:40:20] Production.INFO: 34 MB #Memory Used# [2024-12-19 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:41:05 [end_date_ymd] => 2024-12-19 22:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:41:17] Production.INFO: count ==870 [2024-12-19 22:41:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:41:05 - End Time 2024-12-19 22:41:05 [2024-12-19 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058602', 'tblTempUsageDetail_20' ) start [2024-12-19 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058602', 'tblTempUsageDetail_20' ) end [2024-12-19 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058602', 'tblTempVendorCDR_20' ) start [2024-12-19 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058602', 'tblTempVendorCDR_20' ) end [2024-12-19 22:41:17] Production.INFO: ProcessCDR(1,14058602,1,1,2) [2024-12-19 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058602', 'tblTempUsageDetail_20' ) start [2024-12-19 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058602', 'tblTempUsageDetail_20' ) end [2024-12-19 22:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:41:20] Production.INFO: ==2943== Releasing lock... [2024-12-19 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:41:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:42:04 [end_date_ymd] => 2024-12-19 22:42:04 [RateCDR] => 1 ) [2024-12-19 22: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` >= '2024-12-19 19:42:04' and `end` < '2024-12-19 22: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 ,'') [2024-12-19 22:42:16] Production.INFO: count ==869 [2024-12-19 22:42:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:42:04 - End Time 2024-12-19 22:42:04 [2024-12-19 22:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058607', 'tblTempUsageDetail_20' ) start [2024-12-19 22:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058607', 'tblTempUsageDetail_20' ) end [2024-12-19 22:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058607', 'tblTempVendorCDR_20' ) start [2024-12-19 22:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058607', 'tblTempVendorCDR_20' ) end [2024-12-19 22:42:16] Production.INFO: ProcessCDR(1,14058607,1,1,2) [2024-12-19 22:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:42:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058607', 'tblTempUsageDetail_20' ) start [2024-12-19 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058607', 'tblTempUsageDetail_20' ) end [2024-12-19 22:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:42:20] Production.INFO: ==3016== Releasing lock... [2024-12-19 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:42:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:43:05 [end_date_ymd] => 2024-12-19 22:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:43:17] Production.INFO: count ==868 [2024-12-19 22:43:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:43:05 - End Time 2024-12-19 22:43:05 [2024-12-19 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058612', 'tblTempUsageDetail_20' ) start [2024-12-19 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058612', 'tblTempUsageDetail_20' ) end [2024-12-19 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058612', 'tblTempVendorCDR_20' ) start [2024-12-19 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058612', 'tblTempVendorCDR_20' ) end [2024-12-19 22:43:17] Production.INFO: ProcessCDR(1,14058612,1,1,2) [2024-12-19 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058612', 'tblTempUsageDetail_20' ) start [2024-12-19 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058612', 'tblTempUsageDetail_20' ) end [2024-12-19 22:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:43:20] Production.INFO: ==3087== Releasing lock... [2024-12-19 22:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:43:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:44:04 [end_date_ymd] => 2024-12-19 22:44:04 [RateCDR] => 1 ) [2024-12-19 22:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:44:04' and `end` < '2024-12-19 22:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:44:16] Production.INFO: count ==869 [2024-12-19 22:44:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:44:04 - End Time 2024-12-19 22:44:04 [2024-12-19 22:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058617', 'tblTempUsageDetail_20' ) start [2024-12-19 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058617', 'tblTempUsageDetail_20' ) end [2024-12-19 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058617', 'tblTempVendorCDR_20' ) start [2024-12-19 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058617', 'tblTempVendorCDR_20' ) end [2024-12-19 22:44:16] Production.INFO: ProcessCDR(1,14058617,1,1,2) [2024-12-19 22:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058617', 'tblTempUsageDetail_20' ) start [2024-12-19 22:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058617', 'tblTempUsageDetail_20' ) end [2024-12-19 22:44:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:44:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:44:19] Production.INFO: ==3163== Releasing lock... [2024-12-19 22:44:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:44:19] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:45:05 [end_date_ymd] => 2024-12-19 22:45:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:45:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:45:17] Production.INFO: count ==870 [2024-12-19 22:45:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:45:05 - End Time 2024-12-19 22:45:05 [2024-12-19 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058622', 'tblTempUsageDetail_20' ) start [2024-12-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058622', 'tblTempUsageDetail_20' ) end [2024-12-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058622', 'tblTempVendorCDR_20' ) start [2024-12-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058622', 'tblTempVendorCDR_20' ) end [2024-12-19 22:45:17] Production.INFO: ProcessCDR(1,14058622,1,1,2) [2024-12-19 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058622', 'tblTempUsageDetail_20' ) start [2024-12-19 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058622', 'tblTempUsageDetail_20' ) end [2024-12-19 22:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:45:21] Production.INFO: ==3238== Releasing lock... [2024-12-19 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:45:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:46:04 [end_date_ymd] => 2024-12-19 22:46:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:46:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:46:16] Production.INFO: count ==870 [2024-12-19 22:46:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:46:04 - End Time 2024-12-19 22:46:04 [2024-12-19 22:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058627', 'tblTempUsageDetail_20' ) start [2024-12-19 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058627', 'tblTempUsageDetail_20' ) end [2024-12-19 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058627', 'tblTempVendorCDR_20' ) start [2024-12-19 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058627', 'tblTempVendorCDR_20' ) end [2024-12-19 22:46:16] Production.INFO: ProcessCDR(1,14058627,1,1,2) [2024-12-19 22:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:46:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058627', 'tblTempUsageDetail_20' ) start [2024-12-19 22:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058627', 'tblTempUsageDetail_20' ) end [2024-12-19 22:46:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:46:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:46:20] Production.INFO: ==3307== Releasing lock... [2024-12-19 22:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:46:20] Production.INFO: 34 MB #Memory Used# [2024-12-19 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:47:04 [end_date_ymd] => 2024-12-19 22:47:04 [RateCDR] => 1 ) [2024-12-19 22: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` >= '2024-12-19 19:47:04' and `end` < '2024-12-19 22: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 ,'') [2024-12-19 22:47:16] Production.INFO: count ==867 [2024-12-19 22:47:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:47:04 - End Time 2024-12-19 22:47:04 [2024-12-19 22:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058631', 'tblTempUsageDetail_20' ) start [2024-12-19 22:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058631', 'tblTempUsageDetail_20' ) end [2024-12-19 22:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058631', 'tblTempVendorCDR_20' ) start [2024-12-19 22:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058631', 'tblTempVendorCDR_20' ) end [2024-12-19 22:47:16] Production.INFO: ProcessCDR(1,14058631,1,1,2) [2024-12-19 22:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058631', 'tblTempUsageDetail_20' ) start [2024-12-19 22:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058631', 'tblTempUsageDetail_20' ) end [2024-12-19 22:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:47:19] Production.INFO: ==3382== Releasing lock... [2024-12-19 22:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:47:19] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:48:05 [end_date_ymd] => 2024-12-19 22:48:05 [RateCDR] => 1 ) [2024-12-19 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:48:17] Production.INFO: count ==863 [2024-12-19 22:48:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:48:05 - End Time 2024-12-19 22:48:05 [2024-12-19 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058637', 'tblTempUsageDetail_20' ) start [2024-12-19 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058637', 'tblTempUsageDetail_20' ) end [2024-12-19 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058637', 'tblTempVendorCDR_20' ) start [2024-12-19 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058637', 'tblTempVendorCDR_20' ) end [2024-12-19 22:48:17] Production.INFO: ProcessCDR(1,14058637,1,1,2) [2024-12-19 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058637', 'tblTempUsageDetail_20' ) start [2024-12-19 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058637', 'tblTempUsageDetail_20' ) end [2024-12-19 22:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:48:20] Production.INFO: ==3452== Releasing lock... [2024-12-19 22:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:48:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:49:04 [end_date_ymd] => 2024-12-19 22:49:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:49:04' and `end` < '2024-12-19 22:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:49:17] Production.INFO: count ==862 [2024-12-19 22:49:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:49:04 - End Time 2024-12-19 22:49:04 [2024-12-19 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058642', 'tblTempUsageDetail_20' ) start [2024-12-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058642', 'tblTempUsageDetail_20' ) end [2024-12-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058642', 'tblTempVendorCDR_20' ) start [2024-12-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058642', 'tblTempVendorCDR_20' ) end [2024-12-19 22:49:17] Production.INFO: ProcessCDR(1,14058642,1,1,2) [2024-12-19 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058642', 'tblTempUsageDetail_20' ) start [2024-12-19 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058642', 'tblTempUsageDetail_20' ) end [2024-12-19 22:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:49:20] Production.INFO: ==3526== Releasing lock... [2024-12-19 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:49:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:50:05 [end_date_ymd] => 2024-12-19 22:50:05 [RateCDR] => 1 ) [2024-12-19 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:50:05' and `end` < '2024-12-19 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:50:17] Production.INFO: count ==858 [2024-12-19 22:50:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:50:05 - End Time 2024-12-19 22:50:05 [2024-12-19 22:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058648', 'tblTempUsageDetail_20' ) start [2024-12-19 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058648', 'tblTempUsageDetail_20' ) end [2024-12-19 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058648', 'tblTempVendorCDR_20' ) start [2024-12-19 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058648', 'tblTempVendorCDR_20' ) end [2024-12-19 22:50:17] Production.INFO: ProcessCDR(1,14058648,1,1,2) [2024-12-19 22:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058648', 'tblTempUsageDetail_20' ) start [2024-12-19 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058648', 'tblTempUsageDetail_20' ) end [2024-12-19 22:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:50:21] Production.INFO: ==3641== Releasing lock... [2024-12-19 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:50:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-19 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:51:04 [end_date_ymd] => 2024-12-19 22:51:04 [RateCDR] => 1 ) [2024-12-19 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:51:04' and `end` < '2024-12-19 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:51:16] Production.INFO: count ==834 [2024-12-19 22:51:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:51:04 - End Time 2024-12-19 22:51:04 [2024-12-19 22:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058653', 'tblTempUsageDetail_20' ) start [2024-12-19 22:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058653', 'tblTempUsageDetail_20' ) end [2024-12-19 22:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058653', 'tblTempVendorCDR_20' ) start [2024-12-19 22:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058653', 'tblTempVendorCDR_20' ) end [2024-12-19 22:51:16] Production.INFO: ProcessCDR(1,14058653,1,1,2) [2024-12-19 22:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058653', 'tblTempUsageDetail_20' ) start [2024-12-19 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058653', 'tblTempUsageDetail_20' ) end [2024-12-19 22:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:51:20] Production.INFO: ==3713== Releasing lock... [2024-12-19 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:51:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-19 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:52:05 [end_date_ymd] => 2024-12-19 22:52:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:52:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:52:17] Production.INFO: count ==835 [2024-12-19 22:52:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:52:05 - End Time 2024-12-19 22:52:05 [2024-12-19 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058658', 'tblTempUsageDetail_20' ) start [2024-12-19 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058658', 'tblTempUsageDetail_20' ) end [2024-12-19 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058658', 'tblTempVendorCDR_20' ) start [2024-12-19 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058658', 'tblTempVendorCDR_20' ) end [2024-12-19 22:52:17] Production.INFO: ProcessCDR(1,14058658,1,1,2) [2024-12-19 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058658', 'tblTempUsageDetail_20' ) start [2024-12-19 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058658', 'tblTempUsageDetail_20' ) end [2024-12-19 22:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:52:22] Production.INFO: ==3789== Releasing lock... [2024-12-19 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:52:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-19 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:53:04 [end_date_ymd] => 2024-12-19 22:53:04 [RateCDR] => 1 ) [2024-12-19 22:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:53:04' and `end` < '2024-12-19 22:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:53:16] Production.INFO: count ==829 [2024-12-19 22:53:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:53:04 - End Time 2024-12-19 22:53:04 [2024-12-19 22:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058663', 'tblTempUsageDetail_20' ) start [2024-12-19 22:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058663', 'tblTempUsageDetail_20' ) end [2024-12-19 22:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058663', 'tblTempVendorCDR_20' ) start [2024-12-19 22:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058663', 'tblTempVendorCDR_20' ) end [2024-12-19 22:53:16] Production.INFO: ProcessCDR(1,14058663,1,1,2) [2024-12-19 22:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058663', 'tblTempUsageDetail_20' ) start [2024-12-19 22:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058663', 'tblTempUsageDetail_20' ) end [2024-12-19 22:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:53:19] Production.INFO: ==3865== Releasing lock... [2024-12-19 22:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:53:19] Production.INFO: 33.5 MB #Memory Used# [2024-12-19 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:54:05 [end_date_ymd] => 2024-12-19 22:54:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:54:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:54:18] Production.INFO: count ==828 [2024-12-19 22:54:18] Production.ERROR: pbx CDR StartTime 2024-12-19 19:54:05 - End Time 2024-12-19 22:54:05 [2024-12-19 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058668', 'tblTempUsageDetail_20' ) start [2024-12-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058668', 'tblTempUsageDetail_20' ) end [2024-12-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058668', 'tblTempVendorCDR_20' ) start [2024-12-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058668', 'tblTempVendorCDR_20' ) end [2024-12-19 22:54:18] Production.INFO: ProcessCDR(1,14058668,1,1,2) [2024-12-19 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058668', 'tblTempUsageDetail_20' ) start [2024-12-19 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058668', 'tblTempUsageDetail_20' ) end [2024-12-19 22:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:54:21] Production.INFO: ==3938== Releasing lock... [2024-12-19 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:54:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-19 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:55:05 [end_date_ymd] => 2024-12-19 22:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:55:17] Production.INFO: count ==827 [2024-12-19 22:55:17] Production.ERROR: pbx CDR StartTime 2024-12-19 19:55:05 - End Time 2024-12-19 22:55:05 [2024-12-19 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058673', 'tblTempUsageDetail_20' ) start [2024-12-19 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058673', 'tblTempUsageDetail_20' ) end [2024-12-19 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058673', 'tblTempVendorCDR_20' ) start [2024-12-19 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058673', 'tblTempVendorCDR_20' ) end [2024-12-19 22:55:17] Production.INFO: ProcessCDR(1,14058673,1,1,2) [2024-12-19 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058673', 'tblTempUsageDetail_20' ) start [2024-12-19 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058673', 'tblTempUsageDetail_20' ) end [2024-12-19 22:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:55:20] Production.INFO: ==4012== Releasing lock... [2024-12-19 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:55:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-19 22:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:56:04 [end_date_ymd] => 2024-12-19 22:56:04 [RateCDR] => 1 ) [2024-12-19 22:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 19:56:04' and `end` < '2024-12-19 22:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 22:56:16] Production.INFO: count ==827 [2024-12-19 22:56:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:56:04 - End Time 2024-12-19 22:56:04 [2024-12-19 22:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058678', 'tblTempUsageDetail_20' ) start [2024-12-19 22:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058678', 'tblTempUsageDetail_20' ) end [2024-12-19 22:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058678', 'tblTempVendorCDR_20' ) start [2024-12-19 22:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058678', 'tblTempVendorCDR_20' ) end [2024-12-19 22:56:16] Production.INFO: ProcessCDR(1,14058678,1,1,2) [2024-12-19 22:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058678', 'tblTempUsageDetail_20' ) start [2024-12-19 22:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058678', 'tblTempUsageDetail_20' ) end [2024-12-19 22:56:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:56:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:56:19] Production.INFO: ==4086== Releasing lock... [2024-12-19 22:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:56:19] Production.INFO: 33.5 MB #Memory Used# [2024-12-19 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:57:05 [end_date_ymd] => 2024-12-19 22:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:57:18] Production.INFO: count ==825 [2024-12-19 22:57:18] Production.ERROR: pbx CDR StartTime 2024-12-19 19:57:05 - End Time 2024-12-19 22:57:05 [2024-12-19 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058683', 'tblTempUsageDetail_20' ) start [2024-12-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058683', 'tblTempUsageDetail_20' ) end [2024-12-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058683', 'tblTempVendorCDR_20' ) start [2024-12-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058683', 'tblTempVendorCDR_20' ) end [2024-12-19 22:57:18] Production.INFO: ProcessCDR(1,14058683,1,1,2) [2024-12-19 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058683', 'tblTempUsageDetail_20' ) start [2024-12-19 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058683', 'tblTempUsageDetail_20' ) end [2024-12-19 22:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:57:21] Production.INFO: ==4159== Releasing lock... [2024-12-19 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:57:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-19 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:58:04 [end_date_ymd] => 2024-12-19 22:58:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 19:58:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 22:58:16] Production.INFO: count ==824 [2024-12-19 22:58:16] Production.ERROR: pbx CDR StartTime 2024-12-19 19:58:04 - End Time 2024-12-19 22:58:04 [2024-12-19 22:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058688', 'tblTempUsageDetail_20' ) start [2024-12-19 22:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058688', 'tblTempUsageDetail_20' ) end [2024-12-19 22:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058688', 'tblTempVendorCDR_20' ) start [2024-12-19 22:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058688', 'tblTempVendorCDR_20' ) end [2024-12-19 22:58:16] Production.INFO: ProcessCDR(1,14058688,1,1,2) [2024-12-19 22:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058688', 'tblTempUsageDetail_20' ) start [2024-12-19 22:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058688', 'tblTempUsageDetail_20' ) end [2024-12-19 22:58:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:58:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:58:19] Production.INFO: ==4231== Releasing lock... [2024-12-19 22:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:58:19] Production.INFO: 33.25 MB #Memory Used# [2024-12-19 22:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 19:59:04 [end_date_ymd] => 2024-12-19 22:59:04 [RateCDR] => 1 ) [2024-12-19 22: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` >= '2024-12-19 19:59:04' and `end` < '2024-12-19 22: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 ,'') [2024-12-19 22:59:17] Production.INFO: count ==824 [2024-12-19 22:59:18] Production.ERROR: pbx CDR StartTime 2024-12-19 19:59:04 - End Time 2024-12-19 22:59:04 [2024-12-19 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058693', 'tblTempUsageDetail_20' ) start [2024-12-19 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058693', 'tblTempUsageDetail_20' ) end [2024-12-19 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058693', 'tblTempVendorCDR_20' ) start [2024-12-19 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058693', 'tblTempVendorCDR_20' ) end [2024-12-19 22:59:18] Production.INFO: ProcessCDR(1,14058693,1,1,2) [2024-12-19 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058693', 'tblTempUsageDetail_20' ) start [2024-12-19 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058693', 'tblTempUsageDetail_20' ) end [2024-12-19 22:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 22:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 22:59:21] Production.INFO: ==4305== Releasing lock... [2024-12-19 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 22:59:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-19 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:00:06 [end_date_ymd] => 2024-12-19 23:00:06 [RateCDR] => 1 ) [2024-12-19 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:00:06' and `end` < '2024-12-19 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:00:18] Production.INFO: count ==822 [2024-12-19 23:00:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:00:06 - End Time 2024-12-19 23:00:06 [2024-12-19 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058699', 'tblTempUsageDetail_20' ) start [2024-12-19 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058699', 'tblTempUsageDetail_20' ) end [2024-12-19 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058699', 'tblTempVendorCDR_20' ) start [2024-12-19 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058699', 'tblTempVendorCDR_20' ) end [2024-12-19 23:00:18] Production.INFO: ProcessCDR(1,14058699,1,1,2) [2024-12-19 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058699', 'tblTempUsageDetail_20' ) start [2024-12-19 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058699', 'tblTempUsageDetail_20' ) end [2024-12-19 23:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:00:21] Production.INFO: ==4376== Releasing lock... [2024-12-19 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:00:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-19 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:01:04 [end_date_ymd] => 2024-12-19 23:01:04 [RateCDR] => 1 ) [2024-12-19 23:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:01:04' and `end` < '2024-12-19 23:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:01:17] Production.INFO: count ==795 [2024-12-19 23:01:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:01:04 - End Time 2024-12-19 23:01:04 [2024-12-19 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058704', 'tblTempUsageDetail_20' ) start [2024-12-19 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058704', 'tblTempUsageDetail_20' ) end [2024-12-19 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058704', 'tblTempVendorCDR_20' ) start [2024-12-19 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058704', 'tblTempVendorCDR_20' ) end [2024-12-19 23:01:17] Production.INFO: ProcessCDR(1,14058704,1,1,2) [2024-12-19 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058704', 'tblTempUsageDetail_20' ) start [2024-12-19 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058704', 'tblTempUsageDetail_20' ) end [2024-12-19 23:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:01:20] Production.INFO: ==4544== Releasing lock... [2024-12-19 23:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:01:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-19 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:02:05 [end_date_ymd] => 2024-12-19 23:02:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:02:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:02:18] Production.INFO: count ==796 [2024-12-19 23:02:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:02:05 - End Time 2024-12-19 23:02:05 [2024-12-19 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058709', 'tblTempUsageDetail_20' ) start [2024-12-19 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058709', 'tblTempUsageDetail_20' ) end [2024-12-19 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058709', 'tblTempVendorCDR_20' ) start [2024-12-19 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058709', 'tblTempVendorCDR_20' ) end [2024-12-19 23:02:18] Production.INFO: ProcessCDR(1,14058709,1,1,2) [2024-12-19 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058709', 'tblTempUsageDetail_20' ) start [2024-12-19 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058709', 'tblTempUsageDetail_20' ) end [2024-12-19 23:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:02:23] Production.INFO: ==4625== Releasing lock... [2024-12-19 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:02:23] Production.INFO: 33.25 MB #Memory Used# [2024-12-19 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:03:04 [end_date_ymd] => 2024-12-19 23:03:04 [RateCDR] => 1 ) [2024-12-19 23:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:03:04' and `end` < '2024-12-19 23:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:03:18] Production.INFO: count ==790 [2024-12-19 23:03:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:03:04 - End Time 2024-12-19 23:03:04 [2024-12-19 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058714', 'tblTempUsageDetail_20' ) start [2024-12-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058714', 'tblTempUsageDetail_20' ) end [2024-12-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058714', 'tblTempVendorCDR_20' ) start [2024-12-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058714', 'tblTempVendorCDR_20' ) end [2024-12-19 23:03:18] Production.INFO: ProcessCDR(1,14058714,1,1,2) [2024-12-19 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058714', 'tblTempUsageDetail_20' ) start [2024-12-19 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058714', 'tblTempUsageDetail_20' ) end [2024-12-19 23:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:03:21] Production.INFO: ==4698== Releasing lock... [2024-12-19 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:03:21] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:04:05 [end_date_ymd] => 2024-12-19 23:04:05 [RateCDR] => 1 ) [2024-12-19 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:04:05' and `end` < '2024-12-19 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:04:17] Production.INFO: count ==790 [2024-12-19 23:04:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:04:05 - End Time 2024-12-19 23:04:05 [2024-12-19 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058719', 'tblTempUsageDetail_20' ) start [2024-12-19 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058719', 'tblTempUsageDetail_20' ) end [2024-12-19 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058719', 'tblTempVendorCDR_20' ) start [2024-12-19 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058719', 'tblTempVendorCDR_20' ) end [2024-12-19 23:04:18] Production.INFO: ProcessCDR(1,14058719,1,1,2) [2024-12-19 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058719', 'tblTempUsageDetail_20' ) start [2024-12-19 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058719', 'tblTempUsageDetail_20' ) end [2024-12-19 23:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:04:21] Production.INFO: ==4771== Releasing lock... [2024-12-19 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:04:21] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:05:04 [end_date_ymd] => 2024-12-19 23:05:04 [RateCDR] => 1 ) [2024-12-19 23:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:05:04' and `end` < '2024-12-19 23:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:05:16] Production.INFO: count ==780 [2024-12-19 23:05:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:05:04 - End Time 2024-12-19 23:05:04 [2024-12-19 23:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058724', 'tblTempUsageDetail_20' ) start [2024-12-19 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058724', 'tblTempUsageDetail_20' ) end [2024-12-19 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058724', 'tblTempVendorCDR_20' ) start [2024-12-19 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058724', 'tblTempVendorCDR_20' ) end [2024-12-19 23:05:16] Production.INFO: ProcessCDR(1,14058724,1,1,2) [2024-12-19 23:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058724', 'tblTempUsageDetail_20' ) start [2024-12-19 23:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058724', 'tblTempUsageDetail_20' ) end [2024-12-19 23:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:05:19] Production.INFO: ==4921== Releasing lock... [2024-12-19 23:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:05:19] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:06:05 [end_date_ymd] => 2024-12-19 23:06:05 [RateCDR] => 1 ) [2024-12-19 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:06:05' and `end` < '2024-12-19 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:06:17] Production.INFO: count ==778 [2024-12-19 23:06:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:06:05 - End Time 2024-12-19 23:06:05 [2024-12-19 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058729', 'tblTempUsageDetail_20' ) start [2024-12-19 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058729', 'tblTempUsageDetail_20' ) end [2024-12-19 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058729', 'tblTempVendorCDR_20' ) start [2024-12-19 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058729', 'tblTempVendorCDR_20' ) end [2024-12-19 23:06:17] Production.INFO: ProcessCDR(1,14058729,1,1,2) [2024-12-19 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058729', 'tblTempUsageDetail_20' ) start [2024-12-19 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058729', 'tblTempUsageDetail_20' ) end [2024-12-19 23:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:06:20] Production.INFO: ==5032== Releasing lock... [2024-12-19 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:06:20] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:07:04 [end_date_ymd] => 2024-12-19 23:07:04 [RateCDR] => 1 ) [2024-12-19 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:07:04' and `end` < '2024-12-19 23:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:07:16] Production.INFO: count ==777 [2024-12-19 23:07:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:07:04 - End Time 2024-12-19 23:07:04 [2024-12-19 23:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058734', 'tblTempUsageDetail_20' ) start [2024-12-19 23:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058734', 'tblTempUsageDetail_20' ) end [2024-12-19 23:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058734', 'tblTempVendorCDR_20' ) start [2024-12-19 23:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058734', 'tblTempVendorCDR_20' ) end [2024-12-19 23:07:16] Production.INFO: ProcessCDR(1,14058734,1,1,2) [2024-12-19 23:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058734', 'tblTempUsageDetail_20' ) start [2024-12-19 23:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058734', 'tblTempUsageDetail_20' ) end [2024-12-19 23:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:07:19] Production.INFO: ==5104== Releasing lock... [2024-12-19 23:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:07:19] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:08:05 [end_date_ymd] => 2024-12-19 23:08:05 [RateCDR] => 1 ) [2024-12-19 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:08:05' and `end` < '2024-12-19 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:08:17] Production.INFO: count ==770 [2024-12-19 23:08:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:08:05 - End Time 2024-12-19 23:08:05 [2024-12-19 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058739', 'tblTempUsageDetail_20' ) start [2024-12-19 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058739', 'tblTempUsageDetail_20' ) end [2024-12-19 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058739', 'tblTempVendorCDR_20' ) start [2024-12-19 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058739', 'tblTempVendorCDR_20' ) end [2024-12-19 23:08:17] Production.INFO: ProcessCDR(1,14058739,1,1,2) [2024-12-19 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058739', 'tblTempUsageDetail_20' ) start [2024-12-19 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058739', 'tblTempUsageDetail_20' ) end [2024-12-19 23:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:08:20] Production.INFO: ==5261== Releasing lock... [2024-12-19 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:08:20] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:09:04 [end_date_ymd] => 2024-12-19 23:09:04 [RateCDR] => 1 ) [2024-12-19 23:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:09:04' and `end` < '2024-12-19 23:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:09:16] Production.INFO: count ==767 [2024-12-19 23:09:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:09:04 - End Time 2024-12-19 23:09:04 [2024-12-19 23:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058744', 'tblTempUsageDetail_20' ) start [2024-12-19 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058744', 'tblTempUsageDetail_20' ) end [2024-12-19 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058744', 'tblTempVendorCDR_20' ) start [2024-12-19 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058744', 'tblTempVendorCDR_20' ) end [2024-12-19 23:09:16] Production.INFO: ProcessCDR(1,14058744,1,1,2) [2024-12-19 23:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058744', 'tblTempUsageDetail_20' ) start [2024-12-19 23:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058744', 'tblTempUsageDetail_20' ) end [2024-12-19 23:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:09:19] Production.INFO: ==5337== Releasing lock... [2024-12-19 23:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:09:19] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:10:05 [end_date_ymd] => 2024-12-19 23:10:05 [RateCDR] => 1 ) [2024-12-19 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:10:05' and `end` < '2024-12-19 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:10:17] Production.INFO: count ==768 [2024-12-19 23:10:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:10:05 - End Time 2024-12-19 23:10:05 [2024-12-19 23:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058750', 'tblTempUsageDetail_20' ) start [2024-12-19 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058750', 'tblTempUsageDetail_20' ) end [2024-12-19 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058750', 'tblTempVendorCDR_20' ) start [2024-12-19 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058750', 'tblTempVendorCDR_20' ) end [2024-12-19 23:10:17] Production.INFO: ProcessCDR(1,14058750,1,1,2) [2024-12-19 23:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058750', 'tblTempUsageDetail_20' ) start [2024-12-19 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058750', 'tblTempUsageDetail_20' ) end [2024-12-19 23:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:10:21] Production.INFO: ==5413== Releasing lock... [2024-12-19 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:10:21] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:11:05 [end_date_ymd] => 2024-12-19 23:11:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:11:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:11:17] Production.INFO: count ==760 [2024-12-19 23:11:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:11:05 - End Time 2024-12-19 23:11:05 [2024-12-19 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058755', 'tblTempUsageDetail_20' ) start [2024-12-19 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058755', 'tblTempUsageDetail_20' ) end [2024-12-19 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058755', 'tblTempVendorCDR_20' ) start [2024-12-19 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058755', 'tblTempVendorCDR_20' ) end [2024-12-19 23:11:17] Production.INFO: ProcessCDR(1,14058755,1,1,2) [2024-12-19 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058755', 'tblTempUsageDetail_20' ) start [2024-12-19 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058755', 'tblTempUsageDetail_20' ) end [2024-12-19 23:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:11:20] Production.INFO: ==5488== Releasing lock... [2024-12-19 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:11:20] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:12:05 [end_date_ymd] => 2024-12-19 23:12:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:12:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:12:17] Production.INFO: count ==755 [2024-12-19 23:12:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:12:05 - End Time 2024-12-19 23:12:05 [2024-12-19 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058760', 'tblTempUsageDetail_20' ) start [2024-12-19 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058760', 'tblTempUsageDetail_20' ) end [2024-12-19 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058760', 'tblTempVendorCDR_20' ) start [2024-12-19 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058760', 'tblTempVendorCDR_20' ) end [2024-12-19 23:12:17] Production.INFO: ProcessCDR(1,14058760,1,1,2) [2024-12-19 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058760', 'tblTempUsageDetail_20' ) start [2024-12-19 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058760', 'tblTempUsageDetail_20' ) end [2024-12-19 23:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:12:20] Production.INFO: ==5636== Releasing lock... [2024-12-19 23:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:12:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:13:05 [end_date_ymd] => 2024-12-19 23:13:05 [RateCDR] => 1 ) [2024-12-19 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:13:05' and `end` < '2024-12-19 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:13:17] Production.INFO: count ==757 [2024-12-19 23:13:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:13:05 - End Time 2024-12-19 23:13:05 [2024-12-19 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058765', 'tblTempUsageDetail_20' ) start [2024-12-19 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058765', 'tblTempUsageDetail_20' ) end [2024-12-19 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058765', 'tblTempVendorCDR_20' ) start [2024-12-19 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058765', 'tblTempVendorCDR_20' ) end [2024-12-19 23:13:17] Production.INFO: ProcessCDR(1,14058765,1,1,2) [2024-12-19 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058765', 'tblTempUsageDetail_20' ) start [2024-12-19 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058765', 'tblTempUsageDetail_20' ) end [2024-12-19 23:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:13:20] Production.INFO: ==5710== Releasing lock... [2024-12-19 23:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:13:20] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:14:05 [end_date_ymd] => 2024-12-19 23:14:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:14:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:14:18] Production.INFO: count ==754 [2024-12-19 23:14:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:14:05 - End Time 2024-12-19 23:14:05 [2024-12-19 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058770', 'tblTempUsageDetail_20' ) start [2024-12-19 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058770', 'tblTempUsageDetail_20' ) end [2024-12-19 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058770', 'tblTempVendorCDR_20' ) start [2024-12-19 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058770', 'tblTempVendorCDR_20' ) end [2024-12-19 23:14:18] Production.INFO: ProcessCDR(1,14058770,1,1,2) [2024-12-19 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058770', 'tblTempUsageDetail_20' ) start [2024-12-19 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058770', 'tblTempUsageDetail_20' ) end [2024-12-19 23:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:14:21] Production.INFO: ==5781== Releasing lock... [2024-12-19 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:14:21] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:15:04 [end_date_ymd] => 2024-12-19 23:15:04 [RateCDR] => 1 ) [2024-12-19 23:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:15:04' and `end` < '2024-12-19 23:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:15:16] Production.INFO: count ==753 [2024-12-19 23:15:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:15:04 - End Time 2024-12-19 23:15:04 [2024-12-19 23:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058775', 'tblTempUsageDetail_20' ) start [2024-12-19 23:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058775', 'tblTempUsageDetail_20' ) end [2024-12-19 23:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058775', 'tblTempVendorCDR_20' ) start [2024-12-19 23:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058775', 'tblTempVendorCDR_20' ) end [2024-12-19 23:15:16] Production.INFO: ProcessCDR(1,14058775,1,1,2) [2024-12-19 23:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058775', 'tblTempUsageDetail_20' ) start [2024-12-19 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058775', 'tblTempUsageDetail_20' ) end [2024-12-19 23:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:15:20] Production.INFO: ==5931== Releasing lock... [2024-12-19 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:15:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:16:04 [end_date_ymd] => 2024-12-19 23:16:04 [RateCDR] => 1 ) [2024-12-19 23:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:16:04' and `end` < '2024-12-19 23:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:16:17] Production.INFO: count ==751 [2024-12-19 23:16:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:16:04 - End Time 2024-12-19 23:16:04 [2024-12-19 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058780', 'tblTempUsageDetail_20' ) start [2024-12-19 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058780', 'tblTempUsageDetail_20' ) end [2024-12-19 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058780', 'tblTempVendorCDR_20' ) start [2024-12-19 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058780', 'tblTempVendorCDR_20' ) end [2024-12-19 23:16:17] Production.INFO: ProcessCDR(1,14058780,1,1,2) [2024-12-19 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058780', 'tblTempUsageDetail_20' ) start [2024-12-19 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058780', 'tblTempUsageDetail_20' ) end [2024-12-19 23:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:16:20] Production.INFO: ==6002== Releasing lock... [2024-12-19 23:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:16:20] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:17:05 [end_date_ymd] => 2024-12-19 23:17:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:17:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:17:17] Production.INFO: count ==747 [2024-12-19 23:17:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:17:05 - End Time 2024-12-19 23:17:05 [2024-12-19 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058785', 'tblTempUsageDetail_20' ) start [2024-12-19 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058785', 'tblTempUsageDetail_20' ) end [2024-12-19 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058785', 'tblTempVendorCDR_20' ) start [2024-12-19 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058785', 'tblTempVendorCDR_20' ) end [2024-12-19 23:17:17] Production.INFO: ProcessCDR(1,14058785,1,1,2) [2024-12-19 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058785', 'tblTempUsageDetail_20' ) start [2024-12-19 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058785', 'tblTempUsageDetail_20' ) end [2024-12-19 23:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:17:20] Production.INFO: ==6075== Releasing lock... [2024-12-19 23:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:17:20] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:18:05 [end_date_ymd] => 2024-12-19 23:18:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:18:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:18:17] Production.INFO: count ==745 [2024-12-19 23:18:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:18:05 - End Time 2024-12-19 23:18:05 [2024-12-19 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058790', 'tblTempUsageDetail_20' ) start [2024-12-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058790', 'tblTempUsageDetail_20' ) end [2024-12-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058790', 'tblTempVendorCDR_20' ) start [2024-12-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058790', 'tblTempVendorCDR_20' ) end [2024-12-19 23:18:17] Production.INFO: ProcessCDR(1,14058790,1,1,2) [2024-12-19 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058790', 'tblTempUsageDetail_20' ) start [2024-12-19 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058790', 'tblTempUsageDetail_20' ) end [2024-12-19 23:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:18:20] Production.INFO: ==6149== Releasing lock... [2024-12-19 23:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:18:20] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:19:05 [end_date_ymd] => 2024-12-19 23:19:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:19:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:19:16] Production.INFO: count ==745 [2024-12-19 23:19:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:19:05 - End Time 2024-12-19 23:19:05 [2024-12-19 23:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058795', 'tblTempUsageDetail_20' ) start [2024-12-19 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058795', 'tblTempUsageDetail_20' ) end [2024-12-19 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058795', 'tblTempVendorCDR_20' ) start [2024-12-19 23:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058795', 'tblTempVendorCDR_20' ) end [2024-12-19 23:19:16] Production.INFO: ProcessCDR(1,14058795,1,1,2) [2024-12-19 23:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058795', 'tblTempUsageDetail_20' ) start [2024-12-19 23:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058795', 'tblTempUsageDetail_20' ) end [2024-12-19 23:19:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:19:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:19:19] Production.INFO: ==6222== Releasing lock... [2024-12-19 23:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:19:19] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:20:06 [end_date_ymd] => 2024-12-19 23:20:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:20:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:20:17] Production.INFO: count ==745 [2024-12-19 23:20:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:20:06 - End Time 2024-12-19 23:20:06 [2024-12-19 23:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058801', 'tblTempUsageDetail_20' ) start [2024-12-19 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058801', 'tblTempUsageDetail_20' ) end [2024-12-19 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058801', 'tblTempVendorCDR_20' ) start [2024-12-19 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058801', 'tblTempVendorCDR_20' ) end [2024-12-19 23:20:18] Production.INFO: ProcessCDR(1,14058801,1,1,2) [2024-12-19 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058801', 'tblTempUsageDetail_20' ) start [2024-12-19 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058801', 'tblTempUsageDetail_20' ) end [2024-12-19 23:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:20:21] Production.INFO: ==6295== Releasing lock... [2024-12-19 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:20:21] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:21:04 [end_date_ymd] => 2024-12-19 23:21:04 [RateCDR] => 1 ) [2024-12-19 23:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:21:04' and `end` < '2024-12-19 23:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:21:17] Production.INFO: count ==728 [2024-12-19 23:21:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:21:04 - End Time 2024-12-19 23:21:04 [2024-12-19 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058806', 'tblTempUsageDetail_20' ) start [2024-12-19 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058806', 'tblTempUsageDetail_20' ) end [2024-12-19 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058806', 'tblTempVendorCDR_20' ) start [2024-12-19 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058806', 'tblTempVendorCDR_20' ) end [2024-12-19 23:21:17] Production.INFO: ProcessCDR(1,14058806,1,1,2) [2024-12-19 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058806', 'tblTempUsageDetail_20' ) start [2024-12-19 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058806', 'tblTempUsageDetail_20' ) end [2024-12-19 23:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:21:21] Production.INFO: ==6408== Releasing lock... [2024-12-19 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:21:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:22:04 [end_date_ymd] => 2024-12-19 23:22:04 [RateCDR] => 1 ) [2024-12-19 23: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` >= '2024-12-19 20:22:04' and `end` < '2024-12-19 23: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 ,'') [2024-12-19 23:22:16] Production.INFO: count ==728 [2024-12-19 23:22:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:22:04 - End Time 2024-12-19 23:22:04 [2024-12-19 23:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058811', 'tblTempUsageDetail_20' ) start [2024-12-19 23:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058811', 'tblTempUsageDetail_20' ) end [2024-12-19 23:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058811', 'tblTempVendorCDR_20' ) start [2024-12-19 23:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058811', 'tblTempVendorCDR_20' ) end [2024-12-19 23:22:16] Production.INFO: ProcessCDR(1,14058811,1,1,2) [2024-12-19 23:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:22:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058811', 'tblTempUsageDetail_20' ) start [2024-12-19 23:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058811', 'tblTempUsageDetail_20' ) end [2024-12-19 23:22:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:22:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:22:20] Production.INFO: ==6488== Releasing lock... [2024-12-19 23:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:22:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:23:05 [end_date_ymd] => 2024-12-19 23:23:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:23:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:23:17] Production.INFO: count ==728 [2024-12-19 23:23:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:23:05 - End Time 2024-12-19 23:23:05 [2024-12-19 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058816', 'tblTempUsageDetail_20' ) start [2024-12-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058816', 'tblTempUsageDetail_20' ) end [2024-12-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058816', 'tblTempVendorCDR_20' ) start [2024-12-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058816', 'tblTempVendorCDR_20' ) end [2024-12-19 23:23:17] Production.INFO: ProcessCDR(1,14058816,1,1,2) [2024-12-19 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058816', 'tblTempUsageDetail_20' ) start [2024-12-19 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058816', 'tblTempUsageDetail_20' ) end [2024-12-19 23:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:23:21] Production.INFO: ==6563== Releasing lock... [2024-12-19 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:23:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:24:05 [end_date_ymd] => 2024-12-19 23:24:05 [RateCDR] => 1 ) [2024-12-19 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:24:05' and `end` < '2024-12-19 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:24:18] Production.INFO: count ==730 [2024-12-19 23:24:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:24:05 - End Time 2024-12-19 23:24:05 [2024-12-19 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058821', 'tblTempUsageDetail_20' ) start [2024-12-19 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058821', 'tblTempUsageDetail_20' ) end [2024-12-19 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058821', 'tblTempVendorCDR_20' ) start [2024-12-19 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058821', 'tblTempVendorCDR_20' ) end [2024-12-19 23:24:18] Production.INFO: ProcessCDR(1,14058821,1,1,2) [2024-12-19 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058821', 'tblTempUsageDetail_20' ) start [2024-12-19 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058821', 'tblTempUsageDetail_20' ) end [2024-12-19 23:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:24:21] Production.INFO: ==6636== Releasing lock... [2024-12-19 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:24:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:25:05 [end_date_ymd] => 2024-12-19 23:25:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:25:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:25:17] Production.INFO: count ==730 [2024-12-19 23:25:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:25:05 - End Time 2024-12-19 23:25:05 [2024-12-19 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058826', 'tblTempUsageDetail_20' ) start [2024-12-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058826', 'tblTempUsageDetail_20' ) end [2024-12-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058826', 'tblTempVendorCDR_20' ) start [2024-12-19 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058826', 'tblTempVendorCDR_20' ) end [2024-12-19 23:25:17] Production.INFO: ProcessCDR(1,14058826,1,1,2) [2024-12-19 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058826', 'tblTempUsageDetail_20' ) start [2024-12-19 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058826', 'tblTempUsageDetail_20' ) end [2024-12-19 23:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:25:20] Production.INFO: ==6710== Releasing lock... [2024-12-19 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:25:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:26:04 [end_date_ymd] => 2024-12-19 23:26:04 [RateCDR] => 1 ) [2024-12-19 23:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:26:04' and `end` < '2024-12-19 23:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:26:18] Production.INFO: count ==733 [2024-12-19 23:26:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:26:04 - End Time 2024-12-19 23:26:04 [2024-12-19 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058831', 'tblTempUsageDetail_20' ) start [2024-12-19 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058831', 'tblTempUsageDetail_20' ) end [2024-12-19 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058831', 'tblTempVendorCDR_20' ) start [2024-12-19 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058831', 'tblTempVendorCDR_20' ) end [2024-12-19 23:26:18] Production.INFO: ProcessCDR(1,14058831,1,1,2) [2024-12-19 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058831', 'tblTempUsageDetail_20' ) start [2024-12-19 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058831', 'tblTempUsageDetail_20' ) end [2024-12-19 23:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:26:21] Production.INFO: ==6780== Releasing lock... [2024-12-19 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:26:21] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:27:05 [end_date_ymd] => 2024-12-19 23:27:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:27:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:27:17] Production.INFO: count ==742 [2024-12-19 23:27:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:27:05 - End Time 2024-12-19 23:27:05 [2024-12-19 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058836', 'tblTempUsageDetail_20' ) start [2024-12-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058836', 'tblTempUsageDetail_20' ) end [2024-12-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058836', 'tblTempVendorCDR_20' ) start [2024-12-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058836', 'tblTempVendorCDR_20' ) end [2024-12-19 23:27:17] Production.INFO: ProcessCDR(1,14058836,1,1,2) [2024-12-19 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058836', 'tblTempUsageDetail_20' ) start [2024-12-19 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058836', 'tblTempUsageDetail_20' ) end [2024-12-19 23:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:27:20] Production.INFO: ==6853== Releasing lock... [2024-12-19 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:27:20] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:28:04 [end_date_ymd] => 2024-12-19 23:28:04 [RateCDR] => 1 ) [2024-12-19 23:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:28:04' and `end` < '2024-12-19 23:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:28:16] Production.INFO: count ==746 [2024-12-19 23:28:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:28:04 - End Time 2024-12-19 23:28:04 [2024-12-19 23:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058841', 'tblTempUsageDetail_20' ) start [2024-12-19 23:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058841', 'tblTempUsageDetail_20' ) end [2024-12-19 23:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058841', 'tblTempVendorCDR_20' ) start [2024-12-19 23:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058841', 'tblTempVendorCDR_20' ) end [2024-12-19 23:28:16] Production.INFO: ProcessCDR(1,14058841,1,1,2) [2024-12-19 23:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058841', 'tblTempUsageDetail_20' ) start [2024-12-19 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058841', 'tblTempUsageDetail_20' ) end [2024-12-19 23:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:28:21] Production.INFO: ==6925== Releasing lock... [2024-12-19 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:28:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:29:04 [end_date_ymd] => 2024-12-19 23:29:04 [RateCDR] => 1 ) [2024-12-19 23: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` >= '2024-12-19 20:29:04' and `end` < '2024-12-19 23: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 ,'') [2024-12-19 23:29:17] Production.INFO: count ==748 [2024-12-19 23:29:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:29:04 - End Time 2024-12-19 23:29:04 [2024-12-19 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058846', 'tblTempUsageDetail_20' ) start [2024-12-19 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058846', 'tblTempUsageDetail_20' ) end [2024-12-19 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058846', 'tblTempVendorCDR_20' ) start [2024-12-19 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058846', 'tblTempVendorCDR_20' ) end [2024-12-19 23:29:17] Production.INFO: ProcessCDR(1,14058846,1,1,2) [2024-12-19 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058846', 'tblTempUsageDetail_20' ) start [2024-12-19 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058846', 'tblTempUsageDetail_20' ) end [2024-12-19 23:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:29:20] Production.INFO: ==6999== Releasing lock... [2024-12-19 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:29:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:30:06 [end_date_ymd] => 2024-12-19 23:30:06 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:30:06' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:30:18] Production.INFO: count ==749 [2024-12-19 23:30:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:30:06 - End Time 2024-12-19 23:30:06 [2024-12-19 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058852', 'tblTempUsageDetail_20' ) start [2024-12-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058852', 'tblTempUsageDetail_20' ) end [2024-12-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058852', 'tblTempVendorCDR_20' ) start [2024-12-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058852', 'tblTempVendorCDR_20' ) end [2024-12-19 23:30:18] Production.INFO: ProcessCDR(1,14058852,1,1,2) [2024-12-19 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058852', 'tblTempUsageDetail_20' ) start [2024-12-19 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058852', 'tblTempUsageDetail_20' ) end [2024-12-19 23:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:30:21] Production.INFO: ==7079== Releasing lock... [2024-12-19 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:30:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:31:04 [end_date_ymd] => 2024-12-19 23:31:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:31:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:31:16] Production.INFO: count ==743 [2024-12-19 23:31:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:31:04 - End Time 2024-12-19 23:31:04 [2024-12-19 23:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058857', 'tblTempUsageDetail_20' ) start [2024-12-19 23:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058857', 'tblTempUsageDetail_20' ) end [2024-12-19 23:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058857', 'tblTempVendorCDR_20' ) start [2024-12-19 23:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058857', 'tblTempVendorCDR_20' ) end [2024-12-19 23:31:16] Production.INFO: ProcessCDR(1,14058857,1,1,2) [2024-12-19 23:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058857', 'tblTempUsageDetail_20' ) start [2024-12-19 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058857', 'tblTempUsageDetail_20' ) end [2024-12-19 23:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:31:20] Production.INFO: ==7152== Releasing lock... [2024-12-19 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:31:20] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:32:05 [end_date_ymd] => 2024-12-19 23:32:05 [RateCDR] => 1 ) [2024-12-19 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:32:05' and `end` < '2024-12-19 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:32:17] Production.INFO: count ==743 [2024-12-19 23:32:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:32:05 - End Time 2024-12-19 23:32:05 [2024-12-19 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058862', 'tblTempUsageDetail_20' ) start [2024-12-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058862', 'tblTempUsageDetail_20' ) end [2024-12-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058862', 'tblTempVendorCDR_20' ) start [2024-12-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058862', 'tblTempVendorCDR_20' ) end [2024-12-19 23:32:17] Production.INFO: ProcessCDR(1,14058862,1,1,2) [2024-12-19 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058862', 'tblTempUsageDetail_20' ) start [2024-12-19 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058862', 'tblTempUsageDetail_20' ) end [2024-12-19 23:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:32:20] Production.INFO: ==7226== Releasing lock... [2024-12-19 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:32:20] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:33:04 [end_date_ymd] => 2024-12-19 23:33:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:33:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:33:16] Production.INFO: count ==743 [2024-12-19 23:33:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:33:04 - End Time 2024-12-19 23:33:04 [2024-12-19 23:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058867', 'tblTempUsageDetail_20' ) start [2024-12-19 23:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058867', 'tblTempUsageDetail_20' ) end [2024-12-19 23:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058867', 'tblTempVendorCDR_20' ) start [2024-12-19 23:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058867', 'tblTempVendorCDR_20' ) end [2024-12-19 23:33:16] Production.INFO: ProcessCDR(1,14058867,1,1,2) [2024-12-19 23:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058867', 'tblTempUsageDetail_20' ) start [2024-12-19 23:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058867', 'tblTempUsageDetail_20' ) end [2024-12-19 23:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:33:19] Production.INFO: ==7301== Releasing lock... [2024-12-19 23:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:33:19] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:34:05 [end_date_ymd] => 2024-12-19 23:34:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:34:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:34:18] Production.INFO: count ==737 [2024-12-19 23:34:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:34:05 - End Time 2024-12-19 23:34:05 [2024-12-19 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058872', 'tblTempUsageDetail_20' ) start [2024-12-19 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058872', 'tblTempUsageDetail_20' ) end [2024-12-19 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058872', 'tblTempVendorCDR_20' ) start [2024-12-19 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058872', 'tblTempVendorCDR_20' ) end [2024-12-19 23:34:18] Production.INFO: ProcessCDR(1,14058872,1,1,2) [2024-12-19 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058872', 'tblTempUsageDetail_20' ) start [2024-12-19 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058872', 'tblTempUsageDetail_20' ) end [2024-12-19 23:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:34:21] Production.INFO: ==7377== Releasing lock... [2024-12-19 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:34:21] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:35:04 [end_date_ymd] => 2024-12-19 23:35:04 [RateCDR] => 1 ) [2024-12-19 23:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:35:04' and `end` < '2024-12-19 23:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:35:16] Production.INFO: count ==736 [2024-12-19 23:35:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:35:04 - End Time 2024-12-19 23:35:04 [2024-12-19 23:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058877', 'tblTempUsageDetail_20' ) start [2024-12-19 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058877', 'tblTempUsageDetail_20' ) end [2024-12-19 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058877', 'tblTempVendorCDR_20' ) start [2024-12-19 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058877', 'tblTempVendorCDR_20' ) end [2024-12-19 23:35:16] Production.INFO: ProcessCDR(1,14058877,1,1,2) [2024-12-19 23:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058877', 'tblTempUsageDetail_20' ) start [2024-12-19 23:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058877', 'tblTempUsageDetail_20' ) end [2024-12-19 23:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:35:19] Production.INFO: ==7453== Releasing lock... [2024-12-19 23:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:35:19] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:36:05 [end_date_ymd] => 2024-12-19 23:36:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:36:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:36:17] Production.INFO: count ==736 [2024-12-19 23:36:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:36:05 - End Time 2024-12-19 23:36:05 [2024-12-19 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058882', 'tblTempUsageDetail_20' ) start [2024-12-19 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058882', 'tblTempUsageDetail_20' ) end [2024-12-19 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058882', 'tblTempVendorCDR_20' ) start [2024-12-19 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058882', 'tblTempVendorCDR_20' ) end [2024-12-19 23:36:18] Production.INFO: ProcessCDR(1,14058882,1,1,2) [2024-12-19 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058882', 'tblTempUsageDetail_20' ) start [2024-12-19 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058882', 'tblTempUsageDetail_20' ) end [2024-12-19 23:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:36:21] Production.INFO: ==7532== Releasing lock... [2024-12-19 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:36:21] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:37:05 [end_date_ymd] => 2024-12-19 23:37:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:37:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:37:17] Production.INFO: count ==735 [2024-12-19 23:37:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:37:05 - End Time 2024-12-19 23:37:05 [2024-12-19 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058887', 'tblTempUsageDetail_20' ) start [2024-12-19 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058887', 'tblTempUsageDetail_20' ) end [2024-12-19 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058887', 'tblTempVendorCDR_20' ) start [2024-12-19 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058887', 'tblTempVendorCDR_20' ) end [2024-12-19 23:37:17] Production.INFO: ProcessCDR(1,14058887,1,1,2) [2024-12-19 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058887', 'tblTempUsageDetail_20' ) start [2024-12-19 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058887', 'tblTempUsageDetail_20' ) end [2024-12-19 23:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:37:20] Production.INFO: ==7644== Releasing lock... [2024-12-19 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:37:20] Production.INFO: 33 MB #Memory Used# [2024-12-19 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:38:05 [end_date_ymd] => 2024-12-19 23:38:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:38:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:38:16] Production.INFO: count ==726 [2024-12-19 23:38:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:38:05 - End Time 2024-12-19 23:38:05 [2024-12-19 23:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058892', 'tblTempUsageDetail_20' ) start [2024-12-19 23:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058892', 'tblTempUsageDetail_20' ) end [2024-12-19 23:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058892', 'tblTempVendorCDR_20' ) start [2024-12-19 23:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058892', 'tblTempVendorCDR_20' ) end [2024-12-19 23:38:16] Production.INFO: ProcessCDR(1,14058892,1,1,2) [2024-12-19 23:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058892', 'tblTempUsageDetail_20' ) start [2024-12-19 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058892', 'tblTempUsageDetail_20' ) end [2024-12-19 23:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:38:20] Production.INFO: ==7722== Releasing lock... [2024-12-19 23:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:38:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:39:05 [end_date_ymd] => 2024-12-19 23:39:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:39:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:39:17] Production.INFO: count ==726 [2024-12-19 23:39:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:39:05 - End Time 2024-12-19 23:39:05 [2024-12-19 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058897', 'tblTempUsageDetail_20' ) start [2024-12-19 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058897', 'tblTempUsageDetail_20' ) end [2024-12-19 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058897', 'tblTempVendorCDR_20' ) start [2024-12-19 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058897', 'tblTempVendorCDR_20' ) end [2024-12-19 23:39:17] Production.INFO: ProcessCDR(1,14058897,1,1,2) [2024-12-19 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058897', 'tblTempUsageDetail_20' ) start [2024-12-19 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058897', 'tblTempUsageDetail_20' ) end [2024-12-19 23:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:39:20] Production.INFO: ==7801== Releasing lock... [2024-12-19 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:39:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:40:05 [end_date_ymd] => 2024-12-19 23:40:05 [RateCDR] => 1 ) [2024-12-19 23:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:40:05' and `end` < '2024-12-19 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:40:17] Production.INFO: count ==726 [2024-12-19 23:40:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:40:05 - End Time 2024-12-19 23:40:05 [2024-12-19 23:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058903', 'tblTempUsageDetail_20' ) start [2024-12-19 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058903', 'tblTempUsageDetail_20' ) end [2024-12-19 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058903', 'tblTempVendorCDR_20' ) start [2024-12-19 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058903', 'tblTempVendorCDR_20' ) end [2024-12-19 23:40:17] Production.INFO: ProcessCDR(1,14058903,1,1,2) [2024-12-19 23:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058903', 'tblTempUsageDetail_20' ) start [2024-12-19 23:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058903', 'tblTempUsageDetail_20' ) end [2024-12-19 23:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:40:20] Production.INFO: ==7876== Releasing lock... [2024-12-19 23:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:40:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:41:05 [end_date_ymd] => 2024-12-19 23:41:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:41:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:41:17] Production.INFO: count ==692 [2024-12-19 23:41:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:41:05 - End Time 2024-12-19 23:41:05 [2024-12-19 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058908', 'tblTempUsageDetail_20' ) start [2024-12-19 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058908', 'tblTempUsageDetail_20' ) end [2024-12-19 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058908', 'tblTempVendorCDR_20' ) start [2024-12-19 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058908', 'tblTempVendorCDR_20' ) end [2024-12-19 23:41:17] Production.INFO: ProcessCDR(1,14058908,1,1,2) [2024-12-19 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058908', 'tblTempUsageDetail_20' ) start [2024-12-19 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058908', 'tblTempUsageDetail_20' ) end [2024-12-19 23:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:41:20] Production.INFO: ==7957== Releasing lock... [2024-12-19 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:41:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-19 23:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:42:04 [end_date_ymd] => 2024-12-19 23:42:04 [RateCDR] => 1 ) [2024-12-19 23: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` >= '2024-12-19 20:42:04' and `end` < '2024-12-19 23: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 ,'') [2024-12-19 23:42:16] Production.INFO: count ==691 [2024-12-19 23:42:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:42:04 - End Time 2024-12-19 23:42:04 [2024-12-19 23:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058913', 'tblTempUsageDetail_20' ) start [2024-12-19 23:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058913', 'tblTempUsageDetail_20' ) end [2024-12-19 23:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058913', 'tblTempVendorCDR_20' ) start [2024-12-19 23:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058913', 'tblTempVendorCDR_20' ) end [2024-12-19 23:42:16] Production.INFO: ProcessCDR(1,14058913,1,1,2) [2024-12-19 23:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058913', 'tblTempUsageDetail_20' ) start [2024-12-19 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058913', 'tblTempUsageDetail_20' ) end [2024-12-19 23:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:42:20] Production.INFO: ==8035== Releasing lock... [2024-12-19 23:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:42:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-19 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:43:05 [end_date_ymd] => 2024-12-19 23:43:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:43:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:43:17] Production.INFO: count ==691 [2024-12-19 23:43:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:43:05 - End Time 2024-12-19 23:43:05 [2024-12-19 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058918', 'tblTempUsageDetail_20' ) start [2024-12-19 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058918', 'tblTempUsageDetail_20' ) end [2024-12-19 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058918', 'tblTempVendorCDR_20' ) start [2024-12-19 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058918', 'tblTempVendorCDR_20' ) end [2024-12-19 23:43:17] Production.INFO: ProcessCDR(1,14058918,1,1,2) [2024-12-19 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058918', 'tblTempUsageDetail_20' ) start [2024-12-19 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058918', 'tblTempUsageDetail_20' ) end [2024-12-19 23:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:43:21] Production.INFO: ==8110== Releasing lock... [2024-12-19 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:43:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-19 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:44:04 [end_date_ymd] => 2024-12-19 23:44:04 [RateCDR] => 1 ) [2024-12-19 23:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:44:04' and `end` < '2024-12-19 23:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:44:16] Production.INFO: count ==690 [2024-12-19 23:44:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:44:04 - End Time 2024-12-19 23:44:04 [2024-12-19 23:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058923', 'tblTempUsageDetail_20' ) start [2024-12-19 23:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058923', 'tblTempUsageDetail_20' ) end [2024-12-19 23:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058923', 'tblTempVendorCDR_20' ) start [2024-12-19 23:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058923', 'tblTempVendorCDR_20' ) end [2024-12-19 23:44:16] Production.INFO: ProcessCDR(1,14058923,1,1,2) [2024-12-19 23:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058923', 'tblTempUsageDetail_20' ) start [2024-12-19 23:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058923', 'tblTempUsageDetail_20' ) end [2024-12-19 23:44:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:44:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:44:19] Production.INFO: ==8185== Releasing lock... [2024-12-19 23:44:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:44:19] Production.INFO: 32.5 MB #Memory Used# [2024-12-19 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:45:04 [end_date_ymd] => 2024-12-19 23:45:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:45:04' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:45:16] Production.INFO: count ==690 [2024-12-19 23:45:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:45:04 - End Time 2024-12-19 23:45:04 [2024-12-19 23:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058928', 'tblTempUsageDetail_20' ) start [2024-12-19 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058928', 'tblTempUsageDetail_20' ) end [2024-12-19 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058928', 'tblTempVendorCDR_20' ) start [2024-12-19 23:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058928', 'tblTempVendorCDR_20' ) end [2024-12-19 23:45:16] Production.INFO: ProcessCDR(1,14058928,1,1,2) [2024-12-19 23:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058928', 'tblTempUsageDetail_20' ) start [2024-12-19 23:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058928', 'tblTempUsageDetail_20' ) end [2024-12-19 23:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:45:19] Production.INFO: ==8262== Releasing lock... [2024-12-19 23:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:45:19] Production.INFO: 32.5 MB #Memory Used# [2024-12-19 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:46:05 [end_date_ymd] => 2024-12-19 23:46:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:46:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:46:18] Production.INFO: count ==689 [2024-12-19 23:46:19] Production.ERROR: pbx CDR StartTime 2024-12-19 20:46:05 - End Time 2024-12-19 23:46:05 [2024-12-19 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058933', 'tblTempUsageDetail_20' ) start [2024-12-19 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058933', 'tblTempUsageDetail_20' ) end [2024-12-19 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058933', 'tblTempVendorCDR_20' ) start [2024-12-19 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058933', 'tblTempVendorCDR_20' ) end [2024-12-19 23:46:19] Production.INFO: ProcessCDR(1,14058933,1,1,2) [2024-12-19 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058933', 'tblTempUsageDetail_20' ) start [2024-12-19 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058933', 'tblTempUsageDetail_20' ) end [2024-12-19 23:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:46:22] Production.INFO: ==8340== Releasing lock... [2024-12-19 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:46:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-19 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:47:04 [end_date_ymd] => 2024-12-19 23:47:04 [RateCDR] => 1 ) [2024-12-19 23:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:47:04' and `end` < '2024-12-19 23:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:47:17] Production.INFO: count ==690 [2024-12-19 23:47:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:47:04 - End Time 2024-12-19 23:47:04 [2024-12-19 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058938', 'tblTempUsageDetail_20' ) start [2024-12-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058938', 'tblTempUsageDetail_20' ) end [2024-12-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058938', 'tblTempVendorCDR_20' ) start [2024-12-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058938', 'tblTempVendorCDR_20' ) end [2024-12-19 23:47:17] Production.INFO: ProcessCDR(1,14058938,1,1,2) [2024-12-19 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058938', 'tblTempUsageDetail_20' ) start [2024-12-19 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058938', 'tblTempUsageDetail_20' ) end [2024-12-19 23:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:47:21] Production.INFO: ==8416== Releasing lock... [2024-12-19 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:47:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-19 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:48:05 [end_date_ymd] => 2024-12-19 23:48:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:48:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:48:18] Production.INFO: count ==692 [2024-12-19 23:48:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:48:05 - End Time 2024-12-19 23:48:05 [2024-12-19 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058943', 'tblTempUsageDetail_20' ) start [2024-12-19 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058943', 'tblTempUsageDetail_20' ) end [2024-12-19 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058943', 'tblTempVendorCDR_20' ) start [2024-12-19 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058943', 'tblTempVendorCDR_20' ) end [2024-12-19 23:48:18] Production.INFO: ProcessCDR(1,14058943,1,1,2) [2024-12-19 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058943', 'tblTempUsageDetail_20' ) start [2024-12-19 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058943', 'tblTempUsageDetail_20' ) end [2024-12-19 23:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:48:21] Production.INFO: ==8497== Releasing lock... [2024-12-19 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:48:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-19 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:49:04 [end_date_ymd] => 2024-12-19 23:49:04 [RateCDR] => 1 ) [2024-12-19 23:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:49:04' and `end` < '2024-12-19 23:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:49:16] Production.INFO: count ==691 [2024-12-19 23:49:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:49:04 - End Time 2024-12-19 23:49:04 [2024-12-19 23:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058948', 'tblTempUsageDetail_20' ) start [2024-12-19 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058948', 'tblTempUsageDetail_20' ) end [2024-12-19 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058948', 'tblTempVendorCDR_20' ) start [2024-12-19 23:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058948', 'tblTempVendorCDR_20' ) end [2024-12-19 23:49:16] Production.INFO: ProcessCDR(1,14058948,1,1,2) [2024-12-19 23:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058948', 'tblTempUsageDetail_20' ) start [2024-12-19 23:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058948', 'tblTempUsageDetail_20' ) end [2024-12-19 23:49:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:49:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:49:19] Production.INFO: ==8573== Releasing lock... [2024-12-19 23:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:49:19] Production.INFO: 32.5 MB #Memory Used# [2024-12-19 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:50:05 [end_date_ymd] => 2024-12-19 23:50:05 [RateCDR] => 1 ) [2024-12-19 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:50:05' and `end` < '2024-12-19 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:50:18] Production.INFO: count ==689 [2024-12-19 23:50:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:50:05 - End Time 2024-12-19 23:50:05 [2024-12-19 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058953', 'tblTempUsageDetail_20' ) start [2024-12-19 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058953', 'tblTempUsageDetail_20' ) end [2024-12-19 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058953', 'tblTempVendorCDR_20' ) start [2024-12-19 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058953', 'tblTempVendorCDR_20' ) end [2024-12-19 23:50:18] Production.INFO: ProcessCDR(1,14058953,1,1,2) [2024-12-19 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058953', 'tblTempUsageDetail_20' ) start [2024-12-19 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058953', 'tblTempUsageDetail_20' ) end [2024-12-19 23:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:50:22] Production.INFO: ==8652== Releasing lock... [2024-12-19 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:50:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-19 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:51:04 [end_date_ymd] => 2024-12-19 23:51:04 [RateCDR] => 1 ) [2024-12-19 23: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` >= '2024-12-19 20:51:04' and `end` < '2024-12-19 23: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 ,'') [2024-12-19 23:51:16] Production.INFO: count ==659 [2024-12-19 23:51:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:51:04 - End Time 2024-12-19 23:51:04 [2024-12-19 23:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058959', 'tblTempUsageDetail_20' ) start [2024-12-19 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058959', 'tblTempUsageDetail_20' ) end [2024-12-19 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058959', 'tblTempVendorCDR_20' ) start [2024-12-19 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058959', 'tblTempVendorCDR_20' ) end [2024-12-19 23:51:16] Production.INFO: ProcessCDR(1,14058959,1,1,2) [2024-12-19 23:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058959', 'tblTempUsageDetail_20' ) start [2024-12-19 23:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058959', 'tblTempUsageDetail_20' ) end [2024-12-19 23:51:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:51:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:51:19] Production.INFO: ==8727== Releasing lock... [2024-12-19 23:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:51:19] Production.INFO: 32.25 MB #Memory Used# [2024-12-19 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:52:05 [end_date_ymd] => 2024-12-19 23:52:05 [RateCDR] => 1 ) [2024-12-19 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:52:05' and `end` < '2024-12-19 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:52:18] Production.INFO: count ==660 [2024-12-19 23:52:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:52:05 - End Time 2024-12-19 23:52:05 [2024-12-19 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058964', 'tblTempUsageDetail_20' ) start [2024-12-19 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058964', 'tblTempUsageDetail_20' ) end [2024-12-19 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058964', 'tblTempVendorCDR_20' ) start [2024-12-19 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058964', 'tblTempVendorCDR_20' ) end [2024-12-19 23:52:18] Production.INFO: ProcessCDR(1,14058964,1,1,2) [2024-12-19 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058964', 'tblTempUsageDetail_20' ) start [2024-12-19 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058964', 'tblTempUsageDetail_20' ) end [2024-12-19 23:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:52:21] Production.INFO: ==8805== Releasing lock... [2024-12-19 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:52:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-19 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:53:04 [end_date_ymd] => 2024-12-19 23:53:04 [RateCDR] => 1 ) [2024-12-19 23:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:53:04' and `end` < '2024-12-19 23:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:53:17] Production.INFO: count ==659 [2024-12-19 23:53:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:53:04 - End Time 2024-12-19 23:53:04 [2024-12-19 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058969', 'tblTempUsageDetail_20' ) start [2024-12-19 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058969', 'tblTempUsageDetail_20' ) end [2024-12-19 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058969', 'tblTempVendorCDR_20' ) start [2024-12-19 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058969', 'tblTempVendorCDR_20' ) end [2024-12-19 23:53:17] Production.INFO: ProcessCDR(1,14058969,1,1,2) [2024-12-19 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058969', 'tblTempUsageDetail_20' ) start [2024-12-19 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058969', 'tblTempUsageDetail_20' ) end [2024-12-19 23:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:53:20] Production.INFO: ==8924== Releasing lock... [2024-12-19 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:53:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-19 23:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:54:04 [end_date_ymd] => 2024-12-19 23:54:04 [RateCDR] => 1 ) [2024-12-19 23:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:54:04' and `end` < '2024-12-19 23:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:54:16] Production.INFO: count ==656 [2024-12-19 23:54:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:54:04 - End Time 2024-12-19 23:54:04 [2024-12-19 23:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058974', 'tblTempUsageDetail_20' ) start [2024-12-19 23:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058974', 'tblTempUsageDetail_20' ) end [2024-12-19 23:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058974', 'tblTempVendorCDR_20' ) start [2024-12-19 23:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058974', 'tblTempVendorCDR_20' ) end [2024-12-19 23:54:16] Production.INFO: ProcessCDR(1,14058974,1,1,2) [2024-12-19 23:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:54:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058974', 'tblTempUsageDetail_20' ) start [2024-12-19 23:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058974', 'tblTempUsageDetail_20' ) end [2024-12-19 23:54:19] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:54:19] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:54:19] Production.INFO: ==9004== Releasing lock... [2024-12-19 23:54:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:54:19] Production.INFO: 32.25 MB #Memory Used# [2024-12-19 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:55:05 [end_date_ymd] => 2024-12-19 23:55:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:55:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:55:17] Production.INFO: count ==655 [2024-12-19 23:55:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:55:05 - End Time 2024-12-19 23:55:05 [2024-12-19 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058979', 'tblTempUsageDetail_20' ) start [2024-12-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058979', 'tblTempUsageDetail_20' ) end [2024-12-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058979', 'tblTempVendorCDR_20' ) start [2024-12-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058979', 'tblTempVendorCDR_20' ) end [2024-12-19 23:55:17] Production.INFO: ProcessCDR(1,14058979,1,1,2) [2024-12-19 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058979', 'tblTempUsageDetail_20' ) start [2024-12-19 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058979', 'tblTempUsageDetail_20' ) end [2024-12-19 23:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:55:20] Production.INFO: ==9082== Releasing lock... [2024-12-19 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:55:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-19 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:56:04 [end_date_ymd] => 2024-12-19 23:56:04 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:56:04' and `end` < '2024-12-19 23:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:56:16] Production.INFO: count ==648 [2024-12-19 23:56:16] Production.ERROR: pbx CDR StartTime 2024-12-19 20:56:04 - End Time 2024-12-19 23:56:04 [2024-12-19 23:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058984', 'tblTempUsageDetail_20' ) start [2024-12-19 23:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058984', 'tblTempUsageDetail_20' ) end [2024-12-19 23:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058984', 'tblTempVendorCDR_20' ) start [2024-12-19 23:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058984', 'tblTempVendorCDR_20' ) end [2024-12-19 23:56:16] Production.INFO: ProcessCDR(1,14058984,1,1,2) [2024-12-19 23:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058984', 'tblTempUsageDetail_20' ) start [2024-12-19 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058984', 'tblTempUsageDetail_20' ) end [2024-12-19 23:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:56:20] Production.INFO: ==9160== Releasing lock... [2024-12-19 23:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:56:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-19 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:57:05 [end_date_ymd] => 2024-12-19 23:57:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:57:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:57:18] Production.INFO: count ==646 [2024-12-19 23:57:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:57:05 - End Time 2024-12-19 23:57:05 [2024-12-19 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058989', 'tblTempUsageDetail_20' ) start [2024-12-19 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058989', 'tblTempUsageDetail_20' ) end [2024-12-19 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058989', 'tblTempVendorCDR_20' ) start [2024-12-19 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058989', 'tblTempVendorCDR_20' ) end [2024-12-19 23:57:18] Production.INFO: ProcessCDR(1,14058989,1,1,2) [2024-12-19 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058989', 'tblTempUsageDetail_20' ) start [2024-12-19 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058989', 'tblTempUsageDetail_20' ) end [2024-12-19 23:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:57:21] Production.INFO: ==9235== Releasing lock... [2024-12-19 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:57:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-19 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:58:05 [end_date_ymd] => 2024-12-19 23:58:05 [RateCDR] => 1 ) [2024-12-19 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` >= '2024-12-19 20:58:05' and `end` < '2024-12-19 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 ,'') [2024-12-19 23:58:18] Production.INFO: count ==646 [2024-12-19 23:58:18] Production.ERROR: pbx CDR StartTime 2024-12-19 20:58:05 - End Time 2024-12-19 23:58:05 [2024-12-19 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058994', 'tblTempUsageDetail_20' ) start [2024-12-19 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058994', 'tblTempUsageDetail_20' ) end [2024-12-19 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058994', 'tblTempVendorCDR_20' ) start [2024-12-19 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058994', 'tblTempVendorCDR_20' ) end [2024-12-19 23:58:18] Production.INFO: ProcessCDR(1,14058994,1,1,2) [2024-12-19 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058994', 'tblTempUsageDetail_20' ) start [2024-12-19 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058994', 'tblTempUsageDetail_20' ) end [2024-12-19 23:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:58:22] Production.INFO: ==9313== Releasing lock... [2024-12-19 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:58:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-19 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-19 20:59:05 [end_date_ymd] => 2024-12-19 23:59:05 [RateCDR] => 1 ) [2024-12-19 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-19 20:59:05' and `end` < '2024-12-19 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-19 23:59:17] Production.INFO: count ==646 [2024-12-19 23:59:17] Production.ERROR: pbx CDR StartTime 2024-12-19 20:59:05 - End Time 2024-12-19 23:59:05 [2024-12-19 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-19 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058999', 'tblTempUsageDetail_20' ) start [2024-12-19 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14058999', 'tblTempUsageDetail_20' ) end [2024-12-19 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058999', 'tblTempVendorCDR_20' ) start [2024-12-19 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14058999', 'tblTempVendorCDR_20' ) end [2024-12-19 23:59:17] Production.INFO: ProcessCDR(1,14058999,1,1,2) [2024-12-19 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14058999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14058999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-19 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14058999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14058999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-19 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058999', 'tblTempUsageDetail_20' ) start [2024-12-19 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14058999', 'tblTempUsageDetail_20' ) end [2024-12-19 23:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-19 23:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-19 23:59:20] Production.INFO: ==9388== Releasing lock... [2024-12-19 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-19 23:59:20] Production.INFO: 32.25 MB #Memory Used#